Article View: linux.gentoo.user
Article #119Re: [gentoo-user] custom ebuild issues
From: Pocket
Date: Thu, 12 Nov 2026 00:10
Date: Thu, 12 Nov 2026 00:10
183 lines
6493 bytes
6493 bytes
On 11/11/26 17:31, Darren Kirby wrote:
> 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.
>
Don't have that file
ls -1 /etc/portage/
binrepos.conf
make.conf
make.profile
package.accept_keywords
package.license
package.mask
package.use
profile
repos.conf
> 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.
>
I did do this
SRC_URI="https://github.com/raspberrypi/linux/archive/refs/tags/stable_20260911.tar.gz
-> linux-stable_20260911.tar.gz"
> Typically, you would use the 'ebuild' command to test each step of the build
> rather than going straight to emerge.
>
>
Ok I'll have to read up on ebuild
>> 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.
ls -1 /var/db/repos/pocket
linux-rpi
metadata
profiles
>
> 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?
>
ls -1 /etc/portage/repos.conf/
eselect-repo.conf
pocket.conf
cat /etc/portage/repos.conf/pocket.conf
[pocket]
location = /var/db/repos/pocket
>
>> !!! 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.
>
Will have to research this more as I don't know what is means
> Also, there's a syntax error in the ebuild file. Maybe missing a fi or }
Yes it was missing the } in then src_install function
>
>
>> * 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.
It does
> 2. Make sure /var/db/repos/pocket/metadata/layout.conf contains masters =
> gentoo.
cat /var/db/repos/pocket/metadata/layout.conf
masters = gentoo
thin-manifests = true
sign-manifests = false
> 3. Add linux-rpi to /etc/portage/categories.
That file is missing
> 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:
I am gonna create an ebuild file linux-rpi-6.18.50.ebuild that does
nothing and see if I can get that to work
Thanks
--
Hindi madali ang maging ako
Technical Details
Message-ID:
<NYqy5-bk52-3@gated-at.bofh.it>Path:
mbox-mo1.pugleaf.net!news-lax.pugleaf.net!news-ams.pugleaf.net!srl.newsdeef.eu!newsfeed.bofh.team!usenet.goja.nl.eu.org!3.eu.feeder.erje.net!feeder.erje.net!fu-berlin.de!news.servidellagleba.it!bofh.it!news.nic.it!robomodReferences:
<NYn7b-bi6s-5@gated-at.bofh.it> <NYnqx-bieg-11@gated-at.bofh.it> <NYo3f-biCz-3@gated-at.bofh.it> <NYp8Z-bjcY-3@gated-at.bofh.it>Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-lax.pugleaf.net!news-ams.pugleaf.net!srl.newsdeef.eu!newsfeed.bofh.team!usenet.goja.nl.eu.org!3.eu.feeder.erje.net!feeder.erje.net!fu-berlin.de!news.servidellagleba.it!bofh.it!news.nic.it!robomod From: Pocket <pocket@oldfart.online> Newsgroups: linux.gentoo.user Subject: Re: [gentoo-user] custom ebuild issues Date: Thu, 12 Nov 2026 01:10:01 +0100 Message-ID: <NYqy5-bk52-3@gated-at.bofh.it> References: <NYn7b-bi6s-5@gated-at.bofh.it> <NYnqx-bieg-11@gated-at.bofh.it> <NYo3f-biCz-3@gated-at.bofh.it> <NYp8Z-bjcY-3@gated-at.bofh.it> X-Original-To: gentoo-user@lists.gentoo.org 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 User-Agent: Mozilla Thunderbird Content-Language: en-US Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Envelope-From: pocket@oldfart.online Approved: robomod@news.nic.it Lines: 183 Organization: linux.* mail to news gateway Sender: robomod@news.nic.it X-Original-Date: Wed, 11 Nov 2026 19:05:32 -0500 X-Original-Message-ID: <99bd61bc-eddb-4ef1-9be1-9b388df343d0@oldfart.online> X-Original-References: <12e9698d-1818-4568-aeba-579a893c761a@oldfart.online> <R5CYfkMjQIC-SJgEexO0Cw@dragonbyte.ca> <8f1cd73a-c9c6-4d60-85a4-297aa7db84d9@oldfart.online> <NkCdn_rFQn-qtGbB0ayztw@dragonbyte.ca>