Article View: linux.gentoo.user
Article #117Re: [gentoo-user] custom ebuild issues
From: Darren Kirby
Date: Wed, 11 Nov 2026 22:40
Date: Wed, 11 Nov 2026 22:40
142 lines
6822 bytes
6822 bytes
--nextParttjmmF4iCSAWPXzKeEfJJyA
Content-Transfer-Encoding: 7Bit
Content-Type: text/plain; charset="utf-8"; protected-headers="v1"
From: Darren Kirby <darren@dragonbyte.ca>
To: gentoo-user@lists.gentoo.org
Subject: Re: [gentoo-user] custom ebuild issues
Date: Wed, 11 Nov 2026 15:31:05 -0700
Message-ID: <NkCdn_rFQn-qtGbB0ayztw@dragonbyte.ca>
In-Reply-To: <8f1cd73a-c9c6-4d60-85a4-297aa7db84d9@oldfart.online>
MIME-Version: 1.0
On Wednesday, 11 November 2026 14:28:20 MST Pocket wrote:
> >>
> >> /var/db/repos/pocket/linux-rpi
> >>
> >> then created an ebuild there
> >>
> >> linux-rpi-6.18.50.ebuild
Apologies, I missed this the first time.
I think to use a 'non standard' category you need to register it in /etc/
portage/categories. So you would edit or create that file and put 'linux-rpi'
in there. Or it may be easier to just find a suitable existing category (say,
sys-kernel), make a directory with that name in your repo, and put the ebuild
in there.
s
>
> I did follow [0] and I have a script that does that.
>
> manifest fails
>
> linux-rpi-6.18.50.ebuild is skel.ebuild
Have you changed anything in skel.ebuild other than the name? I expect it
won't manifest without at least the SRC_URI variable being set correctly, if
not others. It needs to create a digest for the source package.
Typically, you would use the 'ebuild' command to test each step of the build
rather than going straight to emerge.
> ebuild linux-rpi-6.18.50.ebuild manifest
> Appending /var/db/repos to PORTDIR_OVERLAY...
This is suspicious. It should be
/var/db/repos/<repo name>
which is 'pocket' according to what you've posted.
Do you have a /etc/portage/repos.conf file? Or is it a directory with
/etc/portage/repos.conf/pocket.conf in it? What's in these files?
> !!! Repository 'x-repos' is missing masters attribute in
> '/var/db/repos/metadata/layout.conf'
> !!! Set 'masters = gentoo' in this file for future compatibility
> /var/db/repos/pocket/linux-rpi/linux-rpi-6.18.50.ebuild: line 75: syntax
> error: unexpected end of file from `{' command on line 68
>
> Messages for package pocket/linux-rpi-6.18.50::x-repos:
This is way off. This means portage thinks that the repository is 'x-repos',
the category is 'pocket', and the package is 'linux-rpi'. Only one of those
matches what you've posted. Better double check your script and repo config.
Also, there's a syntax error in the ebuild file. Maybe missing a fi or }
> * ERROR: pocket/linux-rpi-6.18.50::x-repos failed (depend phase):
> * error sourcing ebuild
> *
> * Call stack:
> * ebuild.sh, line 693: Called die
> * The specific snippet of code:
> * source "${EBUILD}" || die "error sourcing ebuild"
> *
> * If you need support, post the output of `emerge --info
> '=pocket/linux-rpi-6.18.50::x-repos'`,
> * the complete build log and the output of `emerge -pqv
> '=pocket/linux-rpi-6.18.50::x-repos'`.
> * Working directory: '/usr/lib/python3.14/site-packages'
> * S: '/var/tmp/portage/pocket/linux-rpi-6.18.50/work/linux-rpi-6.18.50'
>
> emerge --info '=pocket/linux-rpi-6.18.50::x-repos'
>
> emerge: there are no ebuilds to satisfy
> "=pocket/linux-rpi-6.18.50::x-repos".
>
> emerge: searching for similar names...
> emerge: Maybe you meant any of these: sec-policy/selinux-rpm,
> sec-policy/selinux-rpc, sec-policy/selinux-rpcbind?
>
> emerge -pqv '=pocket/linux-rpi-6.18.50::x-repos'
>
> emerge: there are no ebuilds to satisfy
> "=pocket/linux-rpi-6.18.50::x-repos".
>
> emerge: searching for similar names...
> emerge: Maybe you meant any of these: sec-policy/selinux-rpm,
> sec-policy/selinux-rpc, sec-policy/selinux-rpcbind?
I would:
1. Make sure /etc/portage/repos.conf/pocket.conf points to /var/db/repos/
pocket.
2. Make sure /var/db/repos/pocket/metadata/layout.conf contains masters =
gentoo.
3. Add linux-rpi to /etc/portage/categories.
4. Fix the shell syntax error in the ebuild.
Then try:
ebuild /var/db/repos/pocket/linux-rpi/linux-rpi-6.18.50.ebuild manifest
After that's working, then try discoverability with emerge...
Run:
--nextParttjmmF4iCSAWPXzKeEfJJyA
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: This is a digitally signed message part.
Content-Transfer-Encoding: 7Bit
-----BEGIN PGP SIGNATURE-----
iQHPBAABCAA5FiEE1402jAdqhwYiTHMAIEFTe6YbkTsFAmr07KkbFIAAAAAABAAO
bWFudTIsMi41KzEuMTIsMiwyAAoJECBBU3umG5E73T8L/36kTsKSKdUTzXng/PBh
cXV3D1pr0IoJSZRbfYS1SzqYya+3QAPSfMTQ4q/YepnRN5663nXMFtJg4mwIn7WI
fen7c78kMP7c++O6FygovKUF4fuAYqg5JnSm8NNkAaQ8CU8wfD/x7UPHZ34/ngRQ
rPpMO+hK5NCSNX8Uy/BcmGBBeYxFqqgYj8tVaZb1LgX/S2T7q7apbcp4pMaihJrp
5G3aAmeZHy+f3upYk+DOiY+yDHaT+7Ct8Sdj7zp/AL6RBXYnjk7Rmm29NcoWpN0u
r/Bg2E64ywDdGDOD1w04egVE9PFleC7FF0MWSlq/t8NxEnQAmDo0Y70vcMCrrzF0
y51Y1eze6JoW+iRIeYrhiag+pHxQDMxvpaR7la83O96mXmRwzDFk7b5x5DjzBbqV
zCUA6o9oLnR6T6IPV5UOSJ9y+5Or3G5ZDia7sTeEmzxfkbyqEm2IY4eqA7pfyyzF
RTtR53dOfpc3wb3CwtS6gmiIzeHCaIVYOl+b54naRLwFuA==
=hqsm
-----END PGP SIGNATURE-----
--nextParttjmmF4iCSAWPXzKeEfJJyA--
Technical Details
Message-ID:
<NYp8Z-bjcY-3@gated-at.bofh.it>Path:
mbox-mo1.pugleaf.net!news-lax.pugleaf.net!srl.newsdeef.eu!news.corradoroberto.it!news.servidellagleba.it!bofh.it!news.nic.it!robomodReferences:
<NYp8Z-bjcY-5@gated-at.bofh.it> <NYn7b-bi6s-5@gated-at.bofh.it> <NYnqx-bieg-11@gated-at.bofh.it> <NYo3f-biCz-3@gated-at.bofh.it>Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-lax.pugleaf.net!srl.newsdeef.eu!news.corradoroberto.it!news.servidellagleba.it!bofh.it!news.nic.it!robomod From: Darren Kirby <darren@dragonbyte.ca> Newsgroups: linux.gentoo.user Subject: Re: [gentoo-user] custom ebuild issues Date: Wed, 11 Nov 2026 23:40:01 +0100 Message-ID: <NYp8Z-bjcY-3@gated-at.bofh.it> References: <NYp8Z-bjcY-5@gated-at.bofh.it> <NYn7b-bi6s-5@gated-at.bofh.it> <NYnqx-bieg-11@gated-at.bofh.it> <NYo3f-biCz-3@gated-at.bofh.it> List-ID: Gentoo Linux mail <gentoo-user.gentoo.org> Reply-To: gentoo-user@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply MIME-Version: 1.0 Content-Type: multipart/signed; boundary="nextParttjmmF4iCSAWPXzKeEfJJyA"; micalg="pgp-sha256"; protocol="application/pgp-signature" X-Fe-Attachment-Name: signature.asc X-Feas-Bec-Info: WlpIGw0aAQkEARIJHAEHBlJSCRoLAAEeDUhZUEhYSFhIWUhZXkguLT4lWFpYWFhYWlhZW1hQSFpYSAwJGhoNBigMGgkPBwYKERwNRgsJSFhIWlBIDw0GHAcHRR0bDRooBAEbHBtGDw0GHAcHRgcaD0hYSFpIWVtIX11GWV1fRlpYUUZfWEhQSFhIWEhZSFhIWEhYSFpQSA8NBhwHB0UdGw0aKAQBGxwbRg8NBhwHB0YHGg9IWA== X-Feas-Client-IP: 10.9.9.182 X-Fe-Last-Public-Client-IP: 75.157.209.70 X-Fe-Policy-ID: 1:3:0:SYSTEM Approved: robomod@news.nic.it Lines: 142 Organization: linux.* mail to news gateway Sender: robomod@news.nic.it X-Original-Date: Wed, 11 Nov 2026 15:31:05 -0700 X-Original-Message-ID: <NkCdn_rFQn-qtGbB0ayztw@dragonbyte.ca> X-Original-References: <12e9698d-1818-4568-aeba-579a893c761a@oldfart.online> <R5CYfkMjQIC-SJgEexO0Cw@dragonbyte.ca> <8f1cd73a-c9c6-4d60-85a4-297aa7db84d9@oldfart.online>