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

Re: Build-depends method



On Sun, Jan 25, 2004 at 11:29:07AM -0800, Shaun Jackman wrote:
> When packaging a new package, what's a methodical way to find *all* 
> its Build-Depends packages?

I was surprised nobody brought this pearl from the maint-guide up yet:

  strace -f -o /tmp/log ./configure
  # or make instead of ./configure, if the package doesn't use autoconf
  for x in `dpkg -S $(grep open /tmp/log|perl -pe 's!.*open\(\"([^\"]*).*!$1!' |grep "^/"| sort | uniq| grep -v "^\(/tmp\|/dev\|/proc\)" ) 2>/dev/null|cut -f1 -d":"| sort | uniq`; do echo -n "$x (>=" `dpkg -s $x|grep ^Version|cut -f2 -d":"` "), "; done

:-)

/* Steinar */
-- 
Homepage: http://www.sesse.net/



Reply to: