Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 922158 - catalyst-9999: fails to build stage1 - cannot control use flags
Summary: catalyst-9999: fails to build stage1 - cannot control use flags
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Hosted Projects
Classification: Unclassified
Component: Catalyst (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Gentoo Catalyst Developers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-01-15 08:34 UTC by Anton Gubarkov
Modified: 2024-01-16 19:48 UTC (History)
3 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
stage1.spec (stage1.spec,398 bytes, text/x-rpm-spec)
2024-01-15 08:34 UTC, Anton Gubarkov
Details
lex package.use (lex,34 bytes, text/plain)
2024-01-15 08:36 UTC, Anton Gubarkov
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Anton Gubarkov 2024-01-15 08:34:17 UTC
Created attachment 882314 [details]
stage1.spec

Hi, 
I'm not sure this is the right place to discuss it, please direct me otherwise.

I'm trying to build a livecd to recover my root-on-ZFS machine with ZFS 2.2. Existing liveCDs don't have high enough version of zfs to read my pool.

When building stage1 according to https://wiki.gentoo.org/wiki/Catalyst 

I get
PF16W6Y2 /usr/src/linux # catalyst -f stage1.spec 
15 Jan 2024 11:24:39 MSK: NOTICE  : Loading configuration file: /etc/catalyst/catalyst.conf
NOTICE:catalyst:Loading configuration file: /etc/catalyst/catalyst.conf
15 Jan 2024 11:24:39 MSK: NOTICE  : conf_values[options] = ['autoresume', 'bindist', 'kerncache', 'pkgcache', 'seedcache']
NOTICE:catalyst:conf_values[options] = ['autoresume', 'bindist', 'kerncache', 'pkgcache', 'seedcache']
15 Jan 2024 11:24:39 MSK: NOTICE  : Processing spec file: stage1.spec
NOTICE:catalyst:Processing spec file: stage1.spec
15 Jan 2024 11:24:39 MSK: NOTICE  : Using target: stage1
NOTICE:catalyst:Using target: stage1
15 Jan 2024 11:24:39 MSK: NOTICE  : Accepted source file extensions search order: ['tar.xz', 'tpxz', 'xz', 'tar.bz2', 'bz2', 'tbz2', 'squashfs', 'sfs', 'tar.gz', 'gz', 'tar']
NOTICE:catalyst:Accepted source file extensions search order: ['tar.xz', 'tpxz', 'xz', 'tar.bz2', 'bz2', 'tbz2', 'squashfs', 'sfs', 'tar.gz', 'gz', 'tar']
15 Jan 2024 11:24:39 MSK: NOTICE  : Source path set to /var/tmp/catalyst/builds/default/stage3-amd64-openrc-latest.tar.xz
NOTICE:catalyst:Source path set to /var/tmp/catalyst/builds/default/stage3-amd64-openrc-latest.tar.xz
15 Jan 2024 11:24:39 MSK: NOTICE  : --- Running action sequence: unpack
NOTICE:catalyst:--- Running action sequence: unpack
15 Jan 2024 11:24:39 MSK: NOTICE  : Referenced SEEDCACHE does not appear to be a directory, trying to untar...
NOTICE:catalyst:Referenced SEEDCACHE does not appear to be a directory, trying to untar...
15 Jan 2024 11:24:39 MSK: NOTICE  : Resume: "chroot" is valid...
NOTICE:catalyst:Resume: "chroot" is valid...
15 Jan 2024 11:24:39 MSK: NOTICE  : Resume: "seed source" hash matches chroot...
NOTICE:catalyst:Resume: "seed source" hash matches chroot...
15 Jan 2024 11:24:39 MSK: NOTICE  : Resume: Valid resume point detected, skipping seed unpack operation...
NOTICE:catalyst:Resume: Valid resume point detected, skipping seed unpack operation...
15 Jan 2024 11:24:39 MSK: NOTICE  : --- Running action sequence: config_profile_link
NOTICE:catalyst:--- Running action sequence: config_profile_link
15 Jan 2024 11:24:39 MSK: NOTICE  : --- Running action sequence: setup_confdir
NOTICE:catalyst:--- Running action sequence: setup_confdir
15 Jan 2024 11:24:39 MSK: NOTICE  : Resume point detected, skipping setup_confdir operation...
NOTICE:catalyst:Resume point detected, skipping setup_confdir operation...
15 Jan 2024 11:24:39 MSK: NOTICE  : --- Running action sequence: process_repos
NOTICE:catalyst:--- Running action sequence: process_repos
15 Jan 2024 11:24:39 MSK: NOTICE  : --- Running action sequence: bind
NOTICE:catalyst:--- Running action sequence: bind
15 Jan 2024 11:24:39 MSK: NOTICE  : --- Running action sequence: chroot_setup
NOTICE:catalyst:--- Running action sequence: chroot_setup
15 Jan 2024 11:24:39 MSK: NOTICE  : Resume point detected, skipping chroot_setup operation...
NOTICE:catalyst:Resume point detected, skipping chroot_setup operation...
15 Jan 2024 11:24:39 MSK: NOTICE  : --- Running action sequence: setup_environment
NOTICE:catalyst:--- Running action sequence: setup_environment
15 Jan 2024 11:24:39 MSK: NOTICE  : --- Running action sequence: run_local
NOTICE:catalyst:--- Running action sequence: run_local
Running chroot.sh in chroot:
    chroot /var/tmp/catalyst/tmp/default/stage1-amd64-2024.01.14 /tmp/chroot.sh
>>> Regenerating /etc/ld.so.cache...
Updating seed stage...
emerge --quiet --jobs 8 --load-average 6.0 --buildpkg=n --update --deep --newuse @world
emerge --quiet --jobs 8 --load-average 6.0 --usepkg --buildpkg --binpkg-respect-use=y --newuse --oneshot --nodeps sys-apps/baselayout
emerge --quiet --jobs 8 --load-average 6.0 --usepkg --buildpkg --binpkg-respect-use=y --newuse --implicit-system-deps=n --oneshot app-admin/eselect app-arch/bzip2 app-arch/gzip app-arch/xz-utils app-arch/tar app-shells/bash:0 dev-build/make net-misc/rsync net-misc/wget sys-devel/autoconf sys-devel/automake sys-devel/libtool sys-apps/baselayout sys-apps/coreutils sys-apps/diffutils sys-apps/file sys-apps/findutils sys-apps/gawk sys-apps/grep sys-apps/less sys-apps/net-tools sys-apps/portage sys-apps/sed sys-apps/shadow sys-devel/binutils sys-devel/bison sys-devel/flex sys-devel/gcc sys-devel/gettext sys-devel/gnuconfig sys-devel/patch virtual/editor virtual/libc virtual/os-headers virtual/pkgconfig

!!! The ebuild selected to satisfy "app-alternatives/lex" for /tmp/stage1root/ has unmet requirements.
- app-alternatives/lex-0-r1::gentoo USE="-flex -reflex" ABI_X86="(64)"

  The following REQUIRED_USE flag constraints are unsatisfied:
    exactly-one-of ( flex reflex )

(dependency required by "sys-devel/flex-2.6.4-r6::gentoo" [ebuild])
(dependency required by "sys-devel/flex" [argument])
15 Jan 2024 11:24:45 MSK: ERROR   : CatalystError: cmd(['/usr/share/catalyst/targets/stage1/controller.sh', 'run']) exited 1
ERROR:catalyst:CatalystError: cmd(['/usr/share/catalyst/targets/stage1/controller.sh', 'run']) exited 1
15 Jan 2024 11:24:45 MSK: ERROR   : Exception running action sequence run_local
Traceback (most recent call last):
  File "/usr/lib/python3.11/site-packages/catalyst/base/stagebase.py", line 38, in run_sequence
    func()
  File "/usr/lib/python3.11/site-packages/catalyst/base/stagebase.py", line 1415, in run_local
    cmd([self.settings['controller_file'], 'run'],
  File "/usr/lib/python3.11/site-packages/catalyst/support.py", line 66, in cmd
    raise CatalystError('cmd(%r) exited %s' % (args, ret),
catalyst.support.CatalystError: cmd(['/usr/share/catalyst/targets/stage1/controller.sh', 'run']) exited 1
ERROR:catalyst:Exception running action sequence run_local
Traceback (most recent call last):
  File "/usr/lib/python3.11/site-packages/catalyst/base/stagebase.py", line 38, in run_sequence
    func()
  File "/usr/lib/python3.11/site-packages/catalyst/base/stagebase.py", line 1415, in run_local
    cmd([self.settings['controller_file'], 'run'],
  File "/usr/lib/python3.11/site-packages/catalyst/support.py", line 66, in cmd
    raise CatalystError('cmd(%r) exited %s' % (args, ret),
catalyst.support.CatalystError: cmd(['/usr/share/catalyst/targets/stage1/controller.sh', 'run']) exited 1 

I have added the @portage_confdir@/package.use/lex to enable flex over reflex but to no avail.
Comment 1 Anton Gubarkov 2024-01-15 08:36:08 UTC
Created attachment 882315 [details]
lex package.use
Comment 2 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2024-01-15 15:28:39 UTC
I recommend looking at https://gitweb.gentoo.org/proj/releng.git/. They use package.use.force so the USE=-* doesn't interfere with it.
Comment 3 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2024-01-15 15:30:06 UTC
(I've called it invalid for now but someone is free to reopen; the docs may need improving if nothing else though...)
Comment 4 immolo 2024-01-16 19:48:41 UTC
This was an issue with the docs, formatting somehow got broken so it was difficult to spot the link to https://wiki.gentoo.org/wiki/Catalyst/Custom_Media_Image 

Just as a FYI The main catalyst article is just an overview of the configure options of the tool and examples to complete certain tasks can be found at  https://wiki.gentoo.org/wiki/Catalyst#Detailed_usage_examples

If you have any ideas on how to improve these then please do add them or at the very least add them as an idea to the discussion pages.