Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 428426 - sys-freebsd/freebsd-lib-9.0 fails on src_install sometimes
Summary: sys-freebsd/freebsd-lib-9.0 fails on src_install sometimes
Status: RESOLVED DUPLICATE of bug 428014
Alias: None
Product: Gentoo/Alt
Classification: Unclassified
Component: FreeBSD (show other bugs)
Hardware: All FreeBSD
: Normal normal (vote)
Assignee: Gentoo/BSD Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-07-28 13:20 UTC by i.Dark_Templar
Modified: 2012-07-29 12:06 UTC (History)
0 users

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


Attachments
Fixed ebuild which worked for me. (freebsd-lib-9.0-r3.ebuild,16.53 KB, text/plain)
2012-07-28 13:23 UTC, i.Dark_Templar
Details

Note You need to log in before you can comment on or make changes to this bug.
Description i.Dark_Templar 2012-07-28 13:20:27 UTC
When I was updating freebsd-lib-9.0 from freebsd install cd, it failed installing, saying something like "couldn't move "$D"/usr/lib64/libc.so to "$D"/lib/: no such dir".

I've made fixed ebuild which didn't cause such error.

Later, at installed Gentoo/FreeBSD I couldn't repeat this bug. And I didn't try to repeat it from freebsd install cd yet.

System: Gentoo/FreeBSD amd64.

Reproducible: Couldn't Reproduce

Steps to Reproduce:
1. boot from freebsd install cd and go to shell
2. chroot into gentoo/freebsd
3. emerge freebsd-lib-9.0
Actual Results:  
emerge fails

Expected Results:  
emerge shouldn't have errors
Comment 1 i.Dark_Templar 2012-07-28 13:23:59 UTC
Created attachment 319514 [details]
Fixed ebuild which worked for me.

Fix makes always first create directory before moving lib there.

There is diff:
--- freebsd-lib-9.0-r3.ebuild.backup	2012-06-11 18:01:27.000000000 +0400
+++ freebsd-lib-9.0-r3.ebuild	2012-07-28 17:09:34.964632747 +0400
@@ -384,6 +384,7 @@
 
 	# Move the library if needed
 	if [ "$1" != "$2" ] ; then
+		dodir "/$1"
 		mv "${D}/$2/libc.so.7" "${D}/$1/" || die
 	fi
Comment 2 Yuta SATOH 2012-07-29 11:55:10 UTC
This issue is duplicate bug 428014.
And, bug 428014 has been fixed.

simple solution)
emerge --sync && emerge sys-freebsd/freebsd-lib
Comment 3 Richard Yao (RETIRED) gentoo-dev 2012-07-29 12:06:26 UTC
Thanks Yuta.

*** This bug has been marked as a duplicate of bug 428014 ***