Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 119236 - svn export broken, suggesting workaround
Summary: svn export broken, suggesting workaround
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Eclasses (show other bugs)
Hardware: All Linux
: Highest major (vote)
Assignee: Akinori Hattori
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-01-16 14:57 UTC by Joe Kappus
Modified: 2006-04-30 08:58 UTC (History)
1 user (show)

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


Attachments
svn-export-workaround.diff (svn-export-workaround.diff,459 bytes, patch)
2006-01-16 14:59 UTC, Joe Kappus
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Joe Kappus 2006-01-16 14:57:52 UTC
This is a well known and acknowledged bug by the subversion devs.  It affects a few subversion ebuilds, so I am proposing that until it gets fixed, the subversion eclass be changed to use cp -r in place of svn export.

The problem, for those who don't know, is that svn export will not copy external trees over.  This behavior is only supposed to happen when --ignore-externals is specified but it happens by default as well.

There are two workaround.

1. The simpler and more sane way to workaround this bug is to use cp -r to copy the source from distrfiles to the workdir.

2. The other way would be to use svn export to fetch the tree direct from the svn server into the workdir.  This would mean double fetching if you wanted a tree in distfiles, so i'm not going to put that as a patch up.

I will suggest workaround #1, and include a patch for the subversion eclass.
Comment 1 Joe Kappus 2006-01-16 14:59:50 UTC
Created attachment 77298 [details, diff]
svn-export-workaround.diff

Workaround #1 for subversion.eclass
Comment 2 SpanKY gentoo-dev 2006-02-05 12:47:33 UTC
added workaround to portage ... please file a new bug when `svn export` is fixed
Comment 3 Christian Birchinger (RETIRED) gentoo-dev 2006-04-29 13:02:24 UTC
The "cp -pPR" replacment was just fine. But the new "rsync -aC" version gives
me lots of troubles. To be exact its the "-C" option of rsync.

I have some dirs from repos not being copied now. First it was when .cvsignore
files existed with stuff like "Makefile.in" inside. It didn't rsync those really
important Makefile.in files.

Now i have all .cvsignore files removed and it still doesn't copy whole dirs for
some weird reason.

Since its about subversion repos, is this problematic CVS option really needed?
Comment 4 Christian Birchinger (RETIRED) gentoo-dev 2006-04-29 13:08:26 UTC
For example the whole dir "core" is missig after rsync -aC
http://svn.atheme.org/audacious/trunk/Plugins/Input/adplug/core
Comment 5 Christian Birchinger (RETIRED) gentoo-dev 2006-04-29 13:16:38 UTC
Reopened bug #129178 as it's the cause for the cp to rsync change.
Leaving this bug closed.
Comment 6 SpanKY gentoo-dev 2006-04-30 08:58:06 UTC
especially since what you've posted has nothing to do with this bug at all