In gentoo-prefix I get, for both of the above packages: strip: x86_64-pc-linux-gnu-strip --strip-unneeded -R .comment -R .GCC.command.line -R .note.gnu.gold-version usr/lib/libecm.so.0.0.0 usr/bin/ecm ecompressdir: bzip2 -9 /usr/share/doc ecompressdir: bzip2 -9 /usr/share/man * QA Notice: the following files are outside of the prefix: * /usr * /usr/include * /usr/include/gmp-ecm * /usr/include/gmp-ecm/mul_fft-params.h * /usr/include/gmp-ecm/ecm.h * /usr/include/gmp-ecm/champions.h * /usr/include/gmp-ecm/ecm-ecm.h * /usr/include/gmp-ecm/config.h * /usr/include/gmp-ecm/ecm-params.h * /usr/include/gmp-ecm/ecm-gmp.h * /usr/include/gmp-ecm/ecm-impl.h * /usr/include/gmp-ecm/sp.h * /usr/include/gmp-ecm/longlong.h * /usr/include/gmp-ecm/mpmod.h * ERROR: sci-mathematics/gmp-ecm-6.4.4-r1 failed: * Aborting due to QA concerns: there are files installed outside the prefix * * Call stack: * misc-functions.sh, line 1893: Called install_qa_check * misc-functions.sh, line 244: Called install_qa_check_prefix * misc-functions.sh, line 932: Called die * The specific snippet of code: * die "Aborting due to QA concerns: there are files installed outside the prefix" * * If you need support, post the output of `emerge --info '=sci-mathematics/gmp-ecm-6.4.4-r1'`, * the complete build log and the output of `emerge -pqv '=sci-mathematics/gmp-ecm-6.4.4-r1'`. * The complete build log is located at '/storage/strogdon/gentoo/var/tmp/portage/sci-mathematics/gmp-ecm-6.4.4-r1/temp/build.log'. * The ebuild environment file is located at '/storage/strogdon/gentoo/var/tmp/portage/sci-mathematics/gmp-ecm-6.4.4-r1/temp/environment'. * Working directory: '/storage/strogdon/gentoo/var/tmp/portage/sci-mathematics/gmp-ecm-6.4.4-r1/image' * S: '/storage/strogdon/gentoo/var/tmp/portage/sci-mathematics/gmp-ecm-6.4.4-r1/work/ecm-6.4.4' !!! post install failed; exiting. >>> Failed to emerge sci-mathematics/gmp-ecm-6.4.4-r1, Log file: >>> '/storage/strogdon/gentoo/var/tmp/portage/sci-mathematics/gmp-ecm-6.4.4-r1/temp/build.log' * Messages for package sci-mathematics/gmp-ecm-6.4.4-r1: * ERROR: sci-mathematics/gmp-ecm-6.4.4-r1 failed: * Aborting due to QA concerns: there are files installed outside the prefix * * Call stack: * misc-functions.sh, line 1893: Called install_qa_check * misc-functions.sh, line 244: Called install_qa_check_prefix * misc-functions.sh, line 932: Called die * The specific snippet of code: * die "Aborting due to QA concerns: there are files installed outside the prefix" * * If you need support, post the output of `emerge --info '=sci-mathematics/gmp-ecm-6.4.4-r1'`, * the complete build log and the output of `emerge -pqv '=sci-mathematics/gmp-ecm-6.4.4-r1'`. * The complete build log is located at '/storage/strogdon/gentoo/var/tmp/portage/sci-mathematics/gmp-ecm-6.4.4-r1/temp/build.log'. * The ebuild environment file is located at '/storage/strogdon/gentoo/var/tmp/portage/sci-mathematics/gmp-ecm-6.4.4-r1/temp/environment'. * Working directory: '/storage/strogdon/gentoo/var/tmp/portage/sci-mathematics/gmp-ecm-6.4.4-r1/image' * S: '/storage/strogdon/gentoo/var/tmp/portage/sci-mathematics/gmp-ecm-6.4.4-r1/work/ecm-6.4.4' The problem is here: src_install() ... mkdir -p "${D}/usr/include/${PN}/" cp "${S}"/*.h "${D}/usr/include/${PN}" || die "Failed to copy headers" # needed by other apps like YAFU }
What Steve meant in his comment is that ${D} should have been ${ED} in src_install. From the prefix point of view something better could be done for the custom-tune flag. I have something that would probably work on a linux prefix but let me down on macos. This should also have been filled as a prefix support bug.
+ 11 Mar 2015; Patrick Lauer <patrick@gentoo.org> gmp-ecm-6.4.4-r1.ebuild: + Fix prefix paths #466852