From 7a3f524201f1fe2ec1ba851f595e86aa4a4b8f51 Mon Sep 17 00:00:00 2001 From: "Jan Alexander Steffens (heftig)" Date: Thu, 9 May 2013 02:29:52 +0200 Subject: makechrootpkg: Add hack for svn sources and makepkg 4.1.1 --- makechrootpkg.in | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'makechrootpkg.in') diff --git a/makechrootpkg.in b/makechrootpkg.in index dbe705e..d7d3ecf 100644 --- a/makechrootpkg.in +++ b/makechrootpkg.in @@ -276,6 +276,17 @@ _chrootbuild() { ln -sft /srcdest /srcdest_host/* ln -sft /startdir /startdir_host/* + # XXX: Keep svn sources writable + # Since makepkg 4.1.1 they get checked out via cp -a, copying the symlink + for dir in /srcdest /startdir; do + cd $dir + for svndir in */.svn; do + rm ${svndir%/.svn} + cp -a ${dir}_host/${svndir%/.svn} . + chown -R nobody ${svndir%/.svn} + done + done + cd /startdir # XXX: Keep PKGBUILD writable for pkgver() -- cgit v1.2.3-70-g09d2