Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 12969 - an extremely weird subversion build problem (probably other ebuilds too)
Summary: an extremely weird subversion build problem (probably other ebuilds too)
Status: RESOLVED WONTFIX
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All All
: High normal (vote)
Assignee: Karl Trygve Kalleberg (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-12-31 02:09 UTC by Georgi Georgiev
Modified: 2003-05-08 06:00 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 Georgi Georgiev 2002-12-31 02:09:59 UTC
emerging subversion works fine until after the compile stage. However!
I added a "set -x" in the beginning of src_install() and here it goes:

<long and ugly output>
$ ebuild subversion-0.10_pre1.ebuild install
<snip>
+ cp -av /var/tmp/portage/subversion-0.10_pre1/work/tmpinstall_svn/bin
/var/tmp/portage/subversion-0.10_pre1/work/tmpinstall_svn/include
/var/tmp/portage/subversion-0.10_pre1/work/tmpinstall_svn/info
/var/tmp/portage/subversion-0.10_pre1/work/tmpinstall_svn/lib
/var/tmp/portage/subversion-0.10_pre1/work/tmpinstall_svn/man
/var/tmp/portage/subversion-0.10_pre1/image//usr/svn
<snip>
`/var/tmp/portage/subversion-0.10_pre1/work/tmpinstall_svn/lib/libexpat.so' ->
`/var/tmp/portage/subversion-0.10_pre1/image//usr/svn/lib/libexpat.so'
cp: failed to preserve ownership for
/var/tmp/portage/subversion-0.10_pre1/image//usr/svn/lib/libexpat.so: No such
file or directory
`/var/tmp/portage/subversion-0.10_pre1/work/tmpinstall_svn/lib/libexpat.so.0.0.0'
-> `/var/tmp/portage/subversion-0.10_pre1/image//usr/svn/lib/libexpat.so.0.0.0'
`/var/tmp/portage/subversion-0.10_pre1/work/tmpinstall_svn/lib/libexpat.so.0' ->
`/var/tmp/portage/subversion-0.10_pre1/image//usr/svn/lib/libexpat.so.0'
<snip>
</long and ugly output>

Needless to say, libexpat.so is a symlink to libexpat.so.0.0.0 (and so is
libexpat.so.0).
What's wrong with my "cp"? Why cannot it preserve ownership of the symlinks? Why
is it failing if the target of the symlink does not exist?

I don't think this is a problem with the ebuild but it sure is annoying... 
I tried substituting the line "cp -av ${I_SVN}/* ${D}/usr/svn" with
"tar -C ${I_SVN} -c . | tar -C ${D}/usr/svn -x" but I again got

+ tar -C /var/tmp/portage/subversion-0.10_pre1/work/tmpinstall_svn -c .
+ tar -C /var/tmp/portage/subversion-0.10_pre1/image//usr/svn -x
tar: ./lib/libexpat.so: Cannot change ownership to uid 0, gid 0: No such file or
directory
tar: ./lib/libsvn_fs.so: Cannot change ownership to uid 0, gid 0: No such file
or directory
tar: ./lib/libsvn_wc.so: Cannot change ownership to uid 0, gid 0: No such file
or directory
tar: ./lib/libsvn_ra.so: Cannot change ownership to uid 0, gid 0: No such file
or directory
tar: Error exit delayed from previous errors

....
what am I supposed to do??? Is it a problem with my setup or??
Comment 1 Georgi Georgiev 2002-12-31 02:15:36 UTC
does this have anything to do with http://bugs.gentoo.org/show_bug.cgi?id=12376
Ececuting the command that was giving problems in the shell worked FINE.
Comment 2 Alain Penders (RETIRED) gentoo-dev 2003-01-16 10:31:13 UTC
Not the fix to your problem, but you may want to try out the subversion 0.16.1
emerge I just made available...  see bug #14040.
Comment 3 Alain Penders (RETIRED) gentoo-dev 2003-03-23 14:42:08 UTC
Newer Subversion ebuilds which work very differently are available.  Please use those.  See #17440
Comment 4 Patrick Kursawe (RETIRED) gentoo-dev 2003-05-08 06:00:28 UTC
Found the sucker. Setting the ownership does not work with "sandbox" in FEATURES.