SVN: toys/tools/cleanbuild/cleanbuild

glen glen at pld-linux.org
Mon Apr 26 20:16:10 CEST 2010


Author: glen
Date: Mon Apr 26 20:16:10 2010
New Revision: 11347

Modified:
   toys/tools/cleanbuild/cleanbuild
Log:
- make $BUILDDIR configurable and default longer for debuginfo to work

Modified: toys/tools/cleanbuild/cleanbuild
==============================================================================
--- toys/tools/cleanbuild/cleanbuild	(original)
+++ toys/tools/cleanbuild/cleanbuild	Mon Apr 26 20:16:10 2010
@@ -13,6 +13,10 @@
 CLEANAFTER=false
 FORCE_UMOUNT=false
 REBUILDDB=false
+# Whatever you set here as value, consider that it may not be shorter than
+# /usr/lib/debug (or /usr/src/debug) for debuginfo to work.
+# You get "Only dest dir longer than base dir not supported" error otherwise.
+BUILDDIR=/usr/src/BUILD
 
 [ -r .cleanbuildrc ] && . ./.cleanbuildrc
 
@@ -286,11 +290,11 @@
 	# replicate files which already belong to $USER
 	# so they will have correct owner and permissions
 	cp -a $CHDIR/$CHHOME/{tmp,rpm}
-	cp -a $CHDIR/$CHHOME/tmp $CHDIR/BUILD
+	cp -a $CHDIR/$CHHOME/tmp $CHDIR$BUILDDIR
 
 	cp -a $CHDIR/$CHHOME/{.bashrc,.rpmmacros}
-	cat <<-'EOM' > $CHDIR/$CHHOME/.rpmmacros
-	%_builddir		/BUILD
+	cat <<-EOM > $CHDIR/$CHHOME/.rpmmacros
+	%_builddir		$BUILDDIR
 	%buildroot		%{_builddir}/%{name}-%{version}-root-%(id -u -n)
 	%_rpmdirname	cleanRPMS
 	%_rpmdir		%{expand:%%global _rpmdir %([ -d %{_topdir}/../%{_rpmdirname} ] && (cd %{_topdir}/../%{_rpmdirname}; pwd) || echo %{_topdir}/%{_rpmdirname})}%_rpmdir


More information about the pld-cvs-commit mailing list