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

Automatically satisfying Build-Depends from local control file



Hello,

When downloading a source package from somewhere else, I often find
myself in the situation that after..

$ dpkg-buildpackage -us -uc
[...]
dpkg-checkbuilddeps: Unmet build dependencies: libreadline6-dev libncursesw5-dev (>= 5.3) libbz2-dev liblzma-dev libgdbm-dev libdb-dev tk8.5-dev blt-dev (>= 2.4z) libbluetooth-dev libffi-dev (>= 3.0.5) xvfb
dpkg-buildpackage: warning: build dependencies/conflicts unsatisfied; aborting
dpkg-buildpackage: warning: (Use -d flag to override.)

...I have to manually/painfully construct the command line...

$ sudo apt-get install libreadline6-dev libncursesw5-dev libbz2-dev liblzma-dev libgdbm-dev libdb-dev tk8.5-dev blt-dev  libbluetooth-dev libffi-dev xvfb

...by copying every package name, but omitting the version numbers. 


Has someone already written a tool to automate this? I.e., parse
debian/control and run the appropriate apt-get command?

I think I am *not* looking for apt-get build-deps, because I'm talking
about source packages not included in an apt repository. 

Best,

   -Nikolaus

-- 
 »Time flies like an arrow, fruit flies like a Banana.«

  PGP fingerprint: 5B93 61F8 4EA2 E279 ABF6  02CF A9AD B7F8 AE4E 425C


Reply to: