[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

[RFH] rebuilding the archive with cowbuilder



Hi,

I want to rebuild the archive but am to lazy to setup this whole
wanna-build/buildd/sbuild stuff.

I thought it would be easier to write a simple script which builds each
package with cowbuilder as I already do when building my own packages.

Assuming you have a list with all packages to build in a textfile my
script basically does (pseudocode):

for package in file
	mkdir package
	cd package
	apt-get source package
	cd package-*

	pdebuild --buildresult .. &> somelogfile

	cd ../..
	rm -rf *

So far so good, now I have two problems:

1. My package list contains all packages from
ftp.debian.org/../Sources.gz, this means I'm also building packages
which are not targeted for the arch this script is running. What is the
quickest way to get just the relevant packages for this arch?

2. I've noticed that cowbuilder runs the clean-target of debian/rules
before it enters the clean environment. This means that sometimes the
build already fails before pbuilder enters the clean environment since
clean already fails (E.g. when cdbs is not installed on the host
system). Is this a bug or a feature of cowbuilder/pbuilder? Is there a
workaround?


Cheers,

Bastian
	
-- 
Bastian Venthur                                      http://venthur.de
Debian Developer                                 venthur at debian org



Reply to: