Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 432632 - non-POSIX mv -v argument in multiple sys-* ebuilds
Summary: non-POSIX mv -v argument in multiple sys-* ebuilds
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: All All
: Normal normal (vote)
Assignee: Gentoo's Team for Core System packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-08-24 20:35 UTC by Joshua B. Kahlenberg
Modified: 2012-09-22 18:43 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 Joshua B. Kahlenberg 2012-08-24 20:35:01 UTC
The -v argument to mv is not in POSIX and can cause the emerge to fail with some mv implementations.

Affected ebuilds:

sys-apps/dbus/dbus-1.4.16.ebuild
sys-apps/moreutils/moreutils-0.45-r1.ebuild
sys-apps/moreutils/moreutils-0.46.ebuild
sys-apps/moreutils/moreutils-0.47.ebuild
sys-apps/usbutils/usbutils-005.ebuild
sys-fs/multipath-tools/multipath-tools-0.4.9-r5.ebuild
sys-fs/ntfs3g/ntfs3g-2012.1.15-r2.ebuild
sys-fs/ntfs3g/ntfs3g-2012.1.15-r1.ebuild
sys-process/psmisc/psmisc-22.18.ebuild
sys-process/psmisc/psmisc-22.19.ebuild
sys-process/psmisc/psmisc-22.16.ebuild

Solution: Remove -v argument to mv in above ebuilds.
Comment 2 SpanKY gentoo-dev 2012-08-25 22:35:23 UTC
Commit message: Drop useless -vf args to mv
http://sources.gentoo.org/sys-fs/multipath-tools/multipath-tools-0.4.9-r5.ebuild?r1=1.1&r2=1.2
Comment 4 SpanKY gentoo-dev 2012-08-25 22:35:38 UTC
Commit message: Drop useless -vf args to mv
http://sources.gentoo.org/sys-apps/usbutils/usbutils-005.ebuild?r1=1.4&r2=1.5
Comment 5 SpanKY gentoo-dev 2012-08-25 22:36:13 UTC
Commit message: Drop useless -vf args to mv
http://sources.gentoo.org/sys-apps/dbus/dbus-1.4.16.ebuild?r1=1.11&r2=1.12
Comment 6 SpanKY gentoo-dev 2012-08-25 22:37:53 UTC
Commit message: Drop useless -vf args to mv
http://sources.gentoo.org/sys-fs/ntfs3g/ntfs3g-2012.1.15-r1.ebuild?r1=1.12&r2=1.13
Comment 7 SpanKY gentoo-dev 2012-08-25 22:46:23 UTC
we don't generally like mondo bugs that cover more than one package as they often times cover more than one maintainer
Comment 8 Samuli Suominen (RETIRED) gentoo-dev 2012-08-27 07:10:25 UTC
there is no posix way to make `mv` verbose? -v actually improves maintainbility to some extend...
Comment 9 Samuli Suominen (RETIRED) gentoo-dev 2012-09-22 11:44:45 UTC
(In reply to comment #8)
> there is no posix way to make `mv` verbose? -v actually improves
> maintainbility to some extend...

nothing?
Comment 10 SpanKY gentoo-dev 2012-09-22 18:43:49 UTC
(In reply to comment #9)

i don't think the issue is limited to `mv`.  you could make the same argument for mv, cp, rm, sed, chown, chmod, etc...

if it's something you really want to pursue, i'd suggest adding a `v` to eutils like the (untested):
v() {
    local a q
    for a ; do
        [[ ${a} == *" "* ]] && q="'" || q=
        printf "${q}%s${q} " "${a}"
    done
    printf "\n"
    "$@"
}

then you can just run:
    v mv ...

good luck posting that to gentoo-dev :p