Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 947845 - dev-vcs/git-2.48.0: mv: cannot overwrite '/tmp/portage/dev-vcs/git-2.48.0/image//usr/lib64/perl5/vendor_perl/5.40/Git': Directory not empty
Summary: dev-vcs/git-2.48.0: mv: cannot overwrite '/tmp/portage/dev-vcs/git-2.48.0/ima...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Robin Johnson
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2025-01-11 05:34 UTC by Michał Górny
Modified: 2025-01-11 06:37 UTC (History)
1 user (show)

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


Attachments
/var/log/portage/dev-vcs:git-2.48.0:20250111-050645.log (dev-vcs:git-2.48.0:20250111-050645.log,654.97 KB, text/plain)
2025-01-11 05:34 UTC, Michał Górny
Details
emerge --info (emerge-info.txt,8.37 KB, text/plain)
2025-01-11 05:35 UTC, Michał Górny
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2025-01-11 05:34:59 UTC
Created attachment 916270 [details]
/var/log/portage/dev-vcs:git-2.48.0:20250111-050645.log

make[1]: Entering directory '/tmp/portage/dev-vcs/git-2.48.0/work/git-2.48.0'
install contrib/mw-to-git//git-remote-mediawiki contrib/mw-to-git//git-mw '/tmp/portage/dev-vcs/git-2.48.0/image/usr/libexec/git-core'
make[1]: Leaving directory '/tmp/portage/dev-vcs/git-2.48.0/work/git-2.48.0'
make: Leaving directory '/tmp/portage/dev-vcs/git-2.48.0/work/git-2.48.0/contrib/mw-to-git'
mv: cannot overwrite '/tmp/portage/dev-vcs/git-2.48.0/image//usr/lib64/perl5/vendor_perl/5.40/Git': Directory not empty
 * ERROR: dev-vcs/git-2.48.0::gentoo failed (install phase):
 *   (no error message)
 * 
 * Call stack:
 *     ebuild.sh, line 136:  Called src_install
 *   environment, line 3888:  Called die
 * The specific snippet of code:
 *           mv "${ED}"/usr/share/perl5/Git "${ED}/$(perl_get_vendorlib)" || die;
 * 
 * If you need support, post the output of `emerge --info '=dev-vcs/git-2.48.0::gentoo'`,
 * the complete build log and the output of `emerge -pqv '=dev-vcs/git-2.48.0::gentoo'`.
 * The complete build log is located at '/var/log/portage/dev-vcs:git-2.48.0:20250111-050645.log'.
 * For convenience, a symlink to the build log is located at '/tmp/portage/dev-vcs/git-2.48.0/temp/build.log'.
 * The ebuild environment file is located at '/tmp/portage/dev-vcs/git-2.48.0/temp/environment'.
 * Working directory: '/tmp/portage/dev-vcs/git-2.48.0/work/git-2.48.0'
 * S: '/tmp/portage/dev-vcs/git-2.48.0/work/git-2.48.0'
Comment 1 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2025-01-11 05:35:15 UTC
Created attachment 916271 [details]
emerge --info
Comment 2 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2025-01-11 05:48:21 UTC
I'll take a look in a few.
Comment 3 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2025-01-11 05:52:24 UTC
Needs USE=mediawiki, I think.
Comment 4 Larry the Git Cow gentoo-dev 2025-01-11 06:37:32 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b5a52e4ff39a8485c504f1d449597b40077bf3e6

commit b5a52e4ff39a8485c504f1d449597b40077bf3e6
Author:     Sam James <sam@gentoo.org>
AuthorDate: 2025-01-11 05:57:16 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2025-01-11 06:36:35 +0000

    dev-vcs/git: fix USE=mediawiki
    
    The Makefile actually gets the Perl handling right so if we let it install
    first, we already have something in the correct Perl dir, and our mv fails.
    
    Just do it afterwards instead.
    
    Closes: https://bugs.gentoo.org/947845
    Signed-off-by: Sam James <sam@gentoo.org>

 dev-vcs/git/git-2.48.0.ebuild  |  8 ++++----
 dev-vcs/git/git-9999-r1.ebuild | 12 ++++--------
 dev-vcs/git/git-9999-r2.ebuild | 12 ++++--------
 dev-vcs/git/git-9999-r3.ebuild | 12 ++++--------
 4 files changed, 16 insertions(+), 28 deletions(-)