Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 815181 - app-portage/eix prefixes tools with ${CHOST} when cross-compiling
Summary: app-portage/eix prefixes tools with ${CHOST} when cross-compiling
Status: CONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Michał Górny
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-09-27 19:25 UTC by Jakov Smolić
Modified: 2023-01-13 13:46 UTC (History)
3 users (show)

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


Attachments
Build log (log,61.26 KB, text/plain)
2021-09-27 19:26 UTC, Jakov Smolić
Details
cross-emerge --info (emerge --info,4.63 KB, text/plain)
2021-09-27 19:27 UTC, Jakov Smolić
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jakov Smolić archtester gentoo-dev 2021-09-27 19:25:51 UTC
Eix prefixes all tools' names with ${CHOST} when cross-compiling, so it creates broken symlinks to eix and fails to remove eix-functions.sh in src_install.

make[2]: Leaving directory '/usr/x86_64-multilib-linux-gnu/tmp/portage/app-portage/eix-0.35.2/work/eix-0.35.2'
make[1]: Leaving directory '/usr/x86_64-multilib-linux-gnu/tmp/portage/app-portage/eix-0.35.2/work/eix-0.35.2'
rm: cannot remove '/usr/x86_64-multilib-linux-gnu/tmp/portage/app-portage/eix-0.35.2/image/usr/bin/eix-functions.sh': No such file or directory
 * ERROR: app-portage/eix-0.35.2::gentoo failed (install phase):
 *   (no error message)
 *
 * Call stack:
 *     ebuild.sh, line 127:  Called src_install
 *   environment, line 2129:  Called die
 * The specific snippet of code:
 *       rm -r "${ED}"/usr/bin/eix-functions.sh || die
 *


List of files in ${ED}"/usr/bin:

/usr/x86_64-multilib-linux-gnu/tmp/portage/app-portage/eix-0.35.2/image/usr/bin # ls -la
total 1640
drwxr-xr-x 2 root root    4096 Sep 27 19:03 .
drwxr-xr-x 5 root root    4096 Sep 27 19:03 ..
lrwxrwxrwx 1 root root       3 Sep 27 19:03 eix-diff -> eix
lrwxrwxrwx 1 root root       3 Sep 27 19:03 eix-drop-permissions -> eix
lrwxrwxrwx 1 root root       3 Sep 27 19:03 eix-header -> eix
lrwxrwxrwx 1 root root       3 Sep 27 19:03 eix-update -> eix
lrwxrwxrwx 1 root root       3 Sep 27 19:03 masked-packages -> eix
lrwxrwxrwx 1 root root       3 Sep 27 19:03 versionsort -> eix
-rwxr-xr-x 1 root root 1590560 Sep 27 19:03 x86_64-multilib-linux-gnu-eix
-rwxr-xr-x 1 root root     543 Sep 27 19:03 x86_64-multilib-linux-gnu-eix-etcat
-rwxr-xr-x 1 root root      40 Sep 27 19:03 x86_64-multilib-linux-gnu-eix-functions.sh
-rwxr-xr-x 1 root root    3659 Sep 27 19:03 x86_64-multilib-linux-gnu-eix-installed
-rwxr-xr-x 1 root root    8501 Sep 27 19:03 x86_64-multilib-linux-gnu-eix-installed-after
-rwxr-xr-x 1 root root    3911 Sep 27 19:03 x86_64-multilib-linux-gnu-eix-layman
-rwxr-xr-x 1 root root    1188 Sep 27 19:03 x86_64-multilib-linux-gnu-eix-postsync
-rwxr-xr-x 1 root root   11709 Sep 27 19:03 x86_64-multilib-linux-gnu-eix-remote
-rwxr-xr-x 1 root root   18464 Sep 27 19:03 x86_64-multilib-linux-gnu-eix-sync
-rwxr-xr-x 1 root root   11285 Sep 27 19:03 x86_64-multilib-linux-gnu-eix-test-obsolete
Comment 1 Jakov Smolić archtester gentoo-dev 2021-09-27 19:26:58 UTC
Created attachment 741735 [details]
Build log
Comment 2 Jakov Smolić archtester gentoo-dev 2021-09-27 19:27:36 UTC
Created attachment 741738 [details]
cross-emerge --info
Comment 3 Martin Väth 2021-10-02 08:37:32 UTC
I have no experience with cross-compiling.
It sounds to me as if not prefixing with ${CHOST} would be the right thing to do.
I guess that this happens automatically by some autoconf magic, or is something else reliable for this prefixing?
What is the "correct" way how to suppress it?