Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 501950 - dev-python/pyfits-3.2 - mv: cannot stat ‘.../image//usr/lib64/python-exec/*/*’: No such file or directory
Summary: dev-python/pyfits-3.2 - mv: cannot stat ‘.../image//usr/lib64/python-exec/*/*...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Development (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Astronomy project
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-02-21 02:43 UTC by Joseph Booker
Modified: 2014-02-26 17:13 UTC (History)
2 users (show)

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


Attachments
build.log (build.log,72.71 KB, text/x-log)
2014-02-21 02:43 UTC, Joseph Booker
Details
List of files in $ED (image,34.23 KB, text/plain)
2014-02-21 02:44 UTC, Joseph Booker
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Joseph Booker 2014-02-21 02:43:33 UTC
Created attachment 370924 [details]
build.log

There's a problem with the solution to Bug #500460: it doesn't work on AMD64 systems and causes dev-python/pyfits-3.2 to fail to install.

Specially, this loop in the ebuild:
    for binary in "${ED}"/usr/bin/* "${ED}"/usr/$(get_libdir)/python-exec/*/*
    do
        mv ${binary}{,-${PN}} || die "failed renaming"
    done

Causes $binary to be ${ED}/usr/lib64/python-exec/*/* (with literal astericks), since it doesn't match the files installed in $ED/usr/lib/python-exec

I'm attaching the build log and the file structure in $ED to clarify. I'm not sure if this is a distutils-r1 or python-r1 bug (for not using get_libdir) or with the pyfits ebuild itself.
Comment 1 Joseph Booker 2014-02-21 02:44:11 UTC
Created attachment 370926 [details]
List of files in $ED
Comment 2 Sébastien Fabbro (RETIRED) gentoo-dev 2014-02-26 17:13:59 UTC
+  26 Feb 2014; Sébastien Fabbro <bicatali@gentoo.org> pyfits-3.2.ebuild:
+  Use scriptdir for python execs
+