Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 432628

Summary: >=dev-libs/glib-2.30.2 - non-POSIX mv -v argument in ebuild
Product: Gentoo Linux Reporter: Joshua B. Kahlenberg <jbkberg>
Component: [OLD] GNOMEAssignee: Gentoo Linux Gnome Desktop Team <gnome>
Status: RESOLVED FIXED    
Severity: normal    
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: All   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: emerge --info

Description Joshua B. Kahlenberg 2012-08-24 20:22:20 UTC
glib ebuilds >=2.30.2 use non-POSIX argument to mv that can cause emerge to fail in the prepare phase when using mv implementations that do not support the argument.

Solution: remove -v argument to mv in glib ebuild
Comment 1 Alexandre Rostovtsev (RETIRED) gentoo-dev 2012-08-25 14:55:17 UTC
dev-libs/glib is keyworded on linux and freebsd. On linux, gnu coreutils is part of the base profile package set that all ebuilds can assume is installed, and coreutils supports "mv -v". Similarly, on freebsd, "mv -v" is supported by sys-freebsd/freebsd-bin which is part of the freebsd base profile package set.

Please describe the system where you experienced a failure due to "mv -v", and provide the "emerge --info" output. And verify that removing the "mv -v" is sufficient to allow glib to build on that system.
Comment 2 Pacho Ramos gentoo-dev 2012-09-11 07:19:28 UTC
(In reply to comment #1)
> dev-libs/glib is keyworded on linux and freebsd. On linux, gnu coreutils is
> part of the base profile package set that all ebuilds can assume is
> installed, and coreutils supports "mv -v". Similarly, on freebsd, "mv -v" is
> supported by sys-freebsd/freebsd-bin which is part of the freebsd base
> profile package set.
> 
> Please describe the system where you experienced a failure due to "mv -v",
> and provide the "emerge --info" output. And verify that removing the "mv -v"
> is sufficient to allow glib to build on that system.
Comment 3 Joshua B. Kahlenberg 2012-09-11 17:01:05 UTC
Created attachment 323536 [details]
emerge --info
Comment 4 Joshua B. Kahlenberg 2012-09-11 17:11:43 UTC
(In reply to comment #1)
> dev-libs/glib is keyworded on linux and freebsd. On linux, gnu coreutils is
> part of the base profile package set that all ebuilds can assume is
> installed, and coreutils supports "mv -v". Similarly, on freebsd, "mv -v" is
> supported by sys-freebsd/freebsd-bin which is part of the freebsd base
> profile package set.
> 
> Please describe the system where you experienced a failure due to "mv -v",
> and provide the "emerge --info" output. And verify that removing the "mv -v"
> is sufficient to allow glib to build on that system.

The system uses portage for package-management and busybox for most of the user utilities. I realize that supporting non-standard, feature-limited utilities is not a goal of Gentoo. Removing the "-v" argument resolves the problem.
Comment 5 Alexandre Rostovtsev (RETIRED) gentoo-dev 2012-09-11 18:06:47 UTC
(In reply to comment #4)
Lots of gnome-related ebuilds assume non-posix utilities, and that's unlikely to change. However, glib is a core library that even embedded/feature-limited users will find hard to avoid, and since "mv -v" in this case was basically decorative, I say we drop the "-v" to make things a bit easier for you :)

>  11 Sep 2012; Alexandre Rostovtsev <tetromino@gentoo.org> glib-2.30.2.ebuild,
>  glib-2.30.3.ebuild, glib-2.32.3.ebuild, glib-2.32.4.ebuild:
>  Avoid 'mv -v' for embedded users with busybox (bug #432628).
Comment 6 Pacho Ramos gentoo-dev 2012-09-12 18:57:36 UTC
Not sure if maybe a repoman check could search for expressions like "mv -v" that we should not use per problems like this. Otherwise, this is likely to occur again when we forget "-v" is not supported in busybox :|