Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 809428

Summary: sys-devel/gettext fails to cross-compile
Product: Gentoo Linux Reporter: Thomas Sachau <tommy>
Component: Current packagesAssignee: Gentoo's Team for Core System packages <base-system>
Status: RESOLVED NEEDINFO    
Severity: normal    
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
See Also: https://bugs.gentoo.org/show_bug.cgi?id=835766
Whiteboard:
Package list:
Runtime testing required: ---

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.