Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 400823 - media-libs/opencollada-0_p864 install fails: mv cannot move image/usr/lib to a subdirectory of itself
Summary: media-libs/opencollada-0_p864 install fails: mv cannot move image/usr/lib to ...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Sebastian Pipping
URL:
Whiteboard:
Keywords: PATCH
Depends on:
Blocks:
 
Reported: 2012-01-25 20:24 UTC by Anton Kochkov
Modified: 2012-01-27 16:54 UTC (History)
1 user (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 Anton Kochkov 2012-01-25 20:24:57 UTC
Failed snippet of code:
mv "${D}"/usr/{lib,$(get_libdir)} || die
Comment 1 Sebastian Pipping gentoo-dev 2012-01-27 16:34:23 UTC
Interesting, I didn't think of that problem:

  # mkdir lib

  # mv lib/ lib/
  mv: cannot move `lib/' to a subdirectory of itself, `lib/lib'

Let's see, what I can do.  Thanks for the report!
Comment 2 Sebastian Pipping gentoo-dev 2012-01-27 16:54:23 UTC
I expect this to work:

-       mv "${D}"/usr/{lib,$(get_libdir)} || die
+       if [[ $(get_libdir) != 'lib' ]]; then
+               mv "${D}"/usr/{lib,$(get_libdir)} || die
+       fi

Please re-open if needed.

+  27 Jan 2012; Sebastian Pipping <sping@gentoo.org> opencollada-0_p864.ebuild:
+  Fix installation on arch x86 (bug #400823)
+

Closing.