Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 809428 - sys-devel/gettext fails to cross-compile
Summary: sys-devel/gettext fails to cross-compile
Status: RESOLVED NEEDINFO
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo's Team for Core System packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-08-21 16:56 UTC by Thomas Sachau
Modified: 2022-03-22 01:33 UTC (History)
0 users

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Thomas Sachau gentoo-dev 2021-08-21 16:56:22 UTC
In src_configure, it is defined that for none-native ABIs, it only builds runtime, but in src_install it does an unconditional rm *.html independent from the ABI. So for none-native ABIs, this will fail due to missing html files.

Simple fix: The rm call should also only be run for the native ABI.
Comment 1 David Seifert gentoo-dev 2021-08-21 19:01:26 UTC
This sounds like a portage-multilib bug, without any additional info.
Comment 2 Thomas Sachau gentoo-dev 2021-09-19 07:55:56 UTC
This is an issue for any external tool that cross-compiles the package (like cross-toolchain, prefix and multilib-portage, check bug 711590 for ncurses as an example). I for myself and for multilib-portage can workaround this by setting COMPLETE_MULTILIB=yes in the environment.

The easiest way to fix this for everyone (as docs should the the same for any target ABI) would be to use 'if multilib_is_native_abi; then  rm "${ED}"/usr/share/doc/${PF}/*.html || die ; fi' to only remove the files when they are actually installed.
Comment 3 Mike Gilbert gentoo-dev 2021-09-20 14:24:16 UTC
I believe the only way for this to happen is if src_install is invoked more than once. This would not happen under normal circumstances.

Please attach a build log demonstrating the problem.