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

Re: I made a script for auto. creating build-depends



On Wed, Jul 26, 2000 at 01:58:47PM +0200, Adrian Bunk wrote:
> On Wed, 26 Jul 2000, Christian Hammers wrote:
> 
> > Hello
> 
> Hi Christian,
> 
> > After the recent questions how to automatically create a list
> > of packages that belong to the build dependencies line I've wrote 
> > a perl script, that reads the file generated by
> > 	# strace -f -F -e trace=file -o /tmp/trace debuild
> > and produces a list like:
> > 	binutils (>= 2.9.5.0.22-4)
> > 	cpp (>= 1:2.95.2-6)
> > 	debhelper (>= 2.0.82)
> > 	dpkg-dev (>= 1.6.9)
> > 	file (>= 3.28-1)
> > 	gcc (>= 1:2.95.2-6)
> > It takes essential packages and the build-essentials list into account.
> >...
> 
> I tried:
> $ strace -f -F -e trace=file -o /tmp/trace dpkg-buildpackage -rfakeroot
> 
> and then
> $ ../strace2builddepends.pl /tmp/trace 
> $
> 
> That means I didn't get any Build-Depends! Where's my mistake?

change the double space in the regex for the strace lines to " +" (one
space and a '+'), else it only picks up 4 digit PID's.

Ben

-- 
 -----------=======-=-======-=========-----------=====------------=-=------
/  Ben Collins  --  ...on that fantastic voyage...  --  Debian GNU/Linux   \
`  bcollins@debian.org  --  bcollins@openldap.org  --  bcollins@linux.com  '
 `---=========------=======-------------=-=-----=-===-======-------=--=---'



Reply to: