Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 911564 - dev-lang/python-3.12.0_beta4_p1 - $PREFIX/etc/init.d/pydoc-3.12:/sbin/openrc-run (script pydoc-3.12 installed in PATH but interpreter /sbin/openrc-run not found)
Summary: dev-lang/python-3.12.0_beta4_p1 - $PREFIX/etc/init.d/pydoc-3.12:/sbin/openrc-...
Status: RESOLVED DUPLICATE of bug 640658
Alias: None
Product: Gentoo/Alt
Classification: Unclassified
Component: Prefix Support (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Prefix
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-08-01 16:25 UTC by Martin Mokrejš
Modified: 2023-08-03 13:32 UTC (History)
0 users

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


Attachments
build.log (build.log.txt,604.81 KB, text/plain)
2023-08-01 16:25 UTC, Martin Mokrejš
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Martin Mokrejš 2023-08-01 16:25:28 UTC
Hi,
  during stage3 bootstrapping from bootstrap-prefix.sh I get a QA notice which should NOT be a fatal error:


Creating directory /auto/vestec1-elixir/projects/biocev/mmokrejs/gentoo/usr/share/man
Creating directory /auto/vestec1-elixir/projects/biocev/mmokrejs/gentoo/usr/share/man/man1
/usr/bin/install -c -m 644 ./Misc/python.man \
        /auto/vestec1-elixir/projects/biocev/mmokrejs/tmp/portage/dev-lang/python-3.12.0_beta4_p1/image/auto/vestec1-elixir/projects/biocev/mmokrejs/gentoo/usr/share/man/man1/python3.12.1
if test "xno" != "xno"  ; then \
        case no in \
                upgrade) ensurepip="--altinstall --upgrade" ;; \
                install|*) ensurepip="--altinstall" ;; \
        esac; \
        LD_LIBRARY_PATH=/auto/vestec1-elixir/projects/biocev/mmokrejs/tmp/portage/dev-lang/python-3.12.0_beta4_p1/work/Python-3.12.0b4 ./python -E -m ensurepip \
                $ensurepip --root=/auto/vestec1-elixir/projects/biocev/mmokrejs/tmp/portage/dev-lang/python-3.12.0_beta4_p1/image/ ; \
fi
>>> Completed installing dev-lang/python-3.12.0_beta4_p1 into /auto/vestec1-elixir/projects/biocev/mmokrejs/tmp/portage/dev-lang/python-3.12.0_beta4_p1/image

 * Final size of build directory: 161206 KiB (157.4 MiB)
 * Final size of installed tree:   48521 KiB ( 47.3 MiB)

 * eprefixing shebang of auto/vestec1-elixir/projects/biocev/mmokrejs/gentoo/usr/bin/python3.12-config
 * QA Notice: the following files use invalid (possible non-prefixed) shebangs:
 *   /auto/vestec1-elixir/projects/biocev/mmokrejs/gentoo/etc/init.d/pydoc-3.12:/sbin/openrc-run (script pydoc-3.12 installed in PATH but interpreter /sbin/openrc-run not found)
 * ERROR: dev-lang/python-3.12.0_beta4_p1::gentoo failed:
 *   Aborting due to QA concerns: invalid shebangs found
 * 
 * Call stack:
 *   misc-functions.sh, line 861:  Called install_qa_check
 *   misc-functions.sh, line 134:  Called source 'install_symlink_html_docs'
 *            05prefix, line 120:  Called install_qa_check_prefix
 *            05prefix, line 116:  Called die
 * The specific snippet of code:
 *              die "Aborting due to QA concerns: invalid shebangs found"
 * 
 * If you need support, post the output of `emerge --info '=dev-lang/python-3.12.0_beta4_p1::gentoo'`,
 * the complete build log and the output of `emerge -pqv '=dev-lang/python-3.12.0_beta4_p1::gentoo'`.
 * The complete build log is located at '/auto/vestec1-elixir/projects/biocev/mmokrejs/tmp/portage/dev-lang/python-3.12.0_beta4_p1/temp/build.log'.
 * The ebuild environment file is located at '/auto/vestec1-elixir/projects/biocev/mmokrejs/tmp/portage/dev-lang/python-3.12.0_beta4_p1/temp/environment'.
 * Working directory: '/auto/vestec1-elixir/projects/biocev/mmokrejs/tmp/portage/dev-lang/python-3.12.0_beta4_p1/image'
 * S: '/auto/vestec1-elixir/projects/biocev/mmokrejs/tmp/portage/dev-lang/python-3.12.0_beta4_p1/work/Python-3.12.0b4'
!!! post install failed; exiting.

>>> Failed to emerge dev-lang/python-3.12.0_beta4_p1, Log file:

>>>  '/auto/vestec1-elixir/projects/biocev/mmokrejs/tmp/portage/dev-lang/python-3.12.0_beta4_p1/temp/build.log'




There is also

OSError: AF_UNIX path too long
make: [Makefile:2390: libinstall] Error 1 (ignored)

in the build.log.
Comment 1 Martin Mokrejš 2023-08-01 16:25:42 UTC
Created attachment 866802 [details]
build.log
Comment 2 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2023-08-01 16:29:25 UTC
This should be fixed already.

Specifically, see https://bugs.gentoo.org/640658#c15.

*** This bug has been marked as a duplicate of bug 640658 ***
Comment 3 Martin Mokrejš 2023-08-01 17:17:23 UTC
Thank you. For the "OSError: AF_UNIX path too long" issue I know I should have filed a different bugreport. I do not know what could be done to that. It is a pity the error is silent although I understand the process of building stages is shaky and tricks are necessary to forward, even "emerge --nodeps" as I see in bootstrap-prefix.sh .
Comment 4 Martin Mokrejš 2023-08-02 09:52:48 UTC
Still there is a problem IMO. On Gentoo::RAP there will NOT ever be /sbin/openrc-run anyway as it makes no sense to install init.d scripts. So this QA check must be disabled during the bootstrap-prefix.sh stage3 anyway.

We get that far because during bootstrap it call "emerge --nodeps" so the QA checks should be disabled too. I searched through manpage emerge.1 and did not find any "QA" hits hoping one can force emerge to ignore the QA checks and just continue.
Comment 5 Martin Mokrejš 2023-08-03 13:30:53 UTC
During bootstrapping I got around by creating an empty file via:

touch $PREFIX/sbin/openrc-run

After a few more glitches I finally completed the bootstrapping on ~amd64.
Comment 6 Fabian Groffen gentoo-dev 2023-08-03 13:32:51 UTC
I think creating a dummy openrc-run at some stage indeed is going to be the easiest way around this