Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Assistance Portage & Programming
  • Search

DEPEND: Invalid atom (for reguire use flag)

Problems with emerge or ebuilds? Have a basic programming question about C, PHP, Perl, BASH or something else?
Post Reply
Advanced search
5 posts • Page 1 of 1
Author
Message
sebekk23
Tux's lil' helper
Tux's lil' helper
Posts: 88
Joined: Sun Mar 29, 2015 6:09 pm

DEPEND: Invalid atom (for reguire use flag)

  • Quote

Post by sebekk23 » Sun Feb 15, 2026 5:57 pm

Hi

I would like to make new package for Gentoo (MQTT explorer, just web client for now), i made my local repo according to guide that i found somewhere at gentoo wiki but my ebuild won't to digest/manifest.

Here is my ebuild:

Code: Select all

EAPI=8
DESCRIPTION="Web-based mqtt client"
HOMEPAGE="https://mqtt-explorer.com/"
SRC_URI="https://github.com/thomasnordquist/MQTT-Explorer/archive/refs/tags/v{PV}.zip"
LICENSE="CC-BY-NC-SA-4.0"
SLOT="0"
KEYWORDS="~amd64"
RDEPEND="
	>=net-libs/nodejs-24.11.1-r1[npm],
	>=sys-apps/yarn-1.22.22
"
DEPEND="${RDEPEND}"
DOC_CONTENTS="
	IMPORTANT: In production, use environment variables:
	export MQTT_EXPLORER_USERNAME=<username>
	export MQTT_EXPLORER_PASSWORD=<password>
"
src_unpack() {
	unpack "${A}"
}
Here is output of: ebuild mqtt-explorer-0.3.5.ebuild manifest unpack

Code: Select all

Error(s) in metadata for 'app-misc/mqtt-explorer-0.3.5':
  DEPEND: Invalid atom (>=net-libs/nodejs-24.11.1-r1[npm],), token 1
  RDEPEND: Invalid atom (>=net-libs/nodejs-24.11.1-r1[npm],), token 1
Mqtt explorer requires npm - so how can i mark it as required for this dependency(nodejs)?
Top
NeddySeagoon
Administrator
Administrator
User avatar
Posts: 56100
Joined: Sat Jul 05, 2003 9:37 am
Location: 56N 3W

  • Quote

Post by NeddySeagoon » Sun Feb 15, 2026 6:06 pm

sebekk23,

Remove the comma (,) after the [npm]

Code: Select all

RDEPEND="
   >=net-libs/nodejs-24.11.1-r1[npm],
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Top
sebekk23
Tux's lil' helper
Tux's lil' helper
Posts: 88
Joined: Sun Mar 29, 2015 6:09 pm

  • Quote

Post by sebekk23 » Sun Feb 15, 2026 7:04 pm

OMG it was it - thx :)
Top
sebekk23
Tux's lil' helper
Tux's lil' helper
Posts: 88
Joined: Sun Mar 29, 2015 6:09 pm

  • Quote

Post by sebekk23 » Sun Feb 15, 2026 8:04 pm

Next question about network sandbox - i've noticed that in live build(ebuild with 9999 version) downloading with i.e npm install works but in normal ebuild it doesn't.

How it(fetching node modules for app) should be done with normal ebuild? Should i prepare all node modules(in this case) in archive and place it somewhere publicly available?
As far as i know disabling network sandbox is worst idea ever :) - or maybe in this case it is worth to disable?


Ps.
Working npm install is used here sunshine-9999.ebuild and here rapydscript-ng-9999.ebuild
Top
NeddySeagoon
Administrator
Administrator
User avatar
Posts: 56100
Joined: Sat Jul 05, 2003 9:37 am
Location: 56N 3W

  • Quote

Post by NeddySeagoon » Sun Feb 15, 2026 8:28 pm

sebekk23,

Disabling the network sandbox is a very bad idea. For a versioned (non-live) package.

Yes, you should package the required modules so that all the fetching can be done during the fetch phase.
As you know what you will be fetching, the tarball will appear in the manifest, with its size and hashes.

There is no need to make the tarball publicly available until you publish the ebuild.
For your own use, portage will find it if you put it into your distfiles directory, with all your other source downloads.
That's plenty good enough for your development.

Now the LICENSE= setting may get difficult, as you need to cite all the licenses that apply to all the modules you will be installing too.
Here be dragons.
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Top
Post Reply

5 posts • Page 1 of 1

Return to “Portage & Programming”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Foundation, Inc.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy

 

 

magic