Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 466852 - sci-mathematics/gmp-ecm-6* - QA Notice: the following files are outside of the prefix: /usr/include/gmp-ecm/*
Summary: sci-mathematics/gmp-ecm-6* - QA Notice: the following files are outside of th...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Patrick Lauer
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-04-22 22:41 UTC by Steven Trogdon
Modified: 2015-03-11 04:19 UTC (History)
2 users (show)

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 Steven Trogdon 2013-04-22 22:41:14 UTC
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
}
Comment 1 François Bissey 2013-04-23 02:46:58 UTC
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.
Comment 2 Patrick Lauer gentoo-dev 2015-03-11 04:19:57 UTC
+  11 Mar 2015; Patrick Lauer <patrick@gentoo.org> gmp-ecm-6.4.4-r1.ebuild:                                                                                                                                                                  
+  Fix prefix paths #466852