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

Re: [RFH] rebuilding the archive with cowbuilder



Hi,

thanks for your hints. For the record, here are my current solutions for
my questions:

Am 16.02.2007 20:31 schrieb Bastian Venthur:
> 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?

I'm using some ugly pipe hack:

What I have: a regular Sources.gz
What I want: a file of the following form

package1 arch1 arch2 arch3
package2 all
package3 any
package4 archfoo
...

Here is my current solution:

grep -E "^Package|^Architecture|^$" Sources | paste -s -d "=" | sed
"s/==/\n/g" | sed "s/=/ /g" | cut -d " " -f 2,4- > list

(After you laughed, please send me patches :))

With some even uglier hack I sorted the list by the size of the package
in order to build the smallest packages first.

I think I'll replace that with some python code.

> 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?

--use-pdebild-internal works pretty well.

Thanks for your hints!


Cheers,

Bastian

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



Reply to: