gnome-extra/cinnamon-1.2.1-r1 fails in src_prepare () on x86 whilst succeeding on AMD64. The problem line in the ebuild is: mv files/usr/lib files/usr/$(get_libdir) || die "mv failed" and the error diagnostic is: * Applying cinnamon-1.1.3-automagic-gnome-bluetooth.patch ... [ ok ] * Applying cinnamon-1.2-optional-networkmanager.patch ... [ ok ] * Applying cinnamon-1.1.3-extensionjs_path.patch ... [ ok ] * Applying cinnamon-1.1.3-xdg-open.patch ... [ ok ] mv: cannot move `files/usr/lib' to a subdirectory of itself, `files/usr/lib/lib' The problem only arises when $(get_libdir) returns a value such that the mv target is the same as the mv source: on x86 the returned value is 'lib' whereas on AMD64 it is 'lib64'. A simple debug statement 'echo files/usr/lib is files/usr/$(get_libdir)' added to the ebuild before the mv statement gives: x86: files/usr/lib is files/usr/lib AMD64: files/usr/lib is files/usr/lib64 Reproducible: Always
Created attachment 300353 [details, diff] mv directory only when $(get_libdir) is not "lib" Is such a fix dirty?
(In reply to comment #1) > Created attachment 300353 [details, diff] [details, diff] > mv directory only when $(get_libdir) is not "lib" Fixed, thanks. Sorry that x86 doesn't get much testing these days. > 30 Jan 2012; Alexandre Rostovtsev <tetromino@gentoo.org> > cinnamon-1.2-r1.ebuild: > Fix building on x86 (bug #401223, thanks to Adrian Bassett and Lucian > Muresan).