Hi Massimo!

On Mon, 26 Mar 2001, Massimo Dal Zotto wrote:

> The nroff command is executed by a tcl script invoked by the makefile
> to process some tcl man pages. Finding all such dependencies would mean
> examining every source file.
> 
> Is there any tool or trick to find automatically all build dependencies
> needed to compile a package?

I usually setup a minimalistic chroot[1,2] and keep trying to build my
packages - adding one build-dependency after the other - until the
compile runs through.

                                        yours,
                                        peter

1. wget http://ftp.de.debian.org/debian/dists/\
        potato/main/disks-i386/current/base2_2.tgz
   tar xzf base2_2.tgz
   cp /etc/apt/sources.list etc/apt/
   cp /etc/resolv.conf etc/
   cp /etc/hosts etc/
   chroot .
   dpkg --get-selections |
        awk '{print $1}' |
        grep -v "^apt$" | 
        xargs dpkg --purge # purge everything but essential and apt
   mount -t proc none /proc
   apt-get update
   apt-get dist-upgrade
   apt-get install build-essential

2. there's also dbootstrap or so to setup chroots but I've never tried it.
-- 
 PGP signed and encrypted  |  .''`.  ** Debian GNU/Linux **
    messages preferred.    | : :' :    By professionals,
                           | `. `'      for professionals
 http://www.palfrader.org/ |   `-    http://www.debian.org/

Attachment: pgpOLQWrbvtiQ.pgp
Description: PGP signature

Reply via email to