sometimes port installation fails with DEPENDS_TARGET=package

Björn König bkoenig at
Tue Mar 22 18:46:20 PST 2005


I have problems with the installation of ports with sysutils/portupgrade 
which might concern not this program itself.

Let's make an example. I often install ports and create packages for 
other machines with

   portinstall -p audio/liba52

which basically does something like

   cd /usr/ports/audio/liba52
   make DEPENDS_TARGET=package

The port audio/liba52 depends on math/djbfft whereas package creation of 
this port is forbidden. math/djbfft won't built. The problem actually is 
that the build process doesn't stop at this point. It returns to 
audio/liba52 and continues to build it ignoring that a dependency port 
was not installed. This causes errors in all probability.

My suggestion is that the portmgr team changes the behaviour insofar 
that the build process will stop cleanly. In this case I would be glad 
if Akinori Musha creates a workaround that portinstall will continue 
installing software.

Another solution would be that a port will be installed nevertheless in 
face of the definition DEPENDS_TARGET=package and that a package can't 
be created. Akinori would be out of the woods.

Thanks in advance
Regards Björn

# cd audio/liba52
# make DEPENDS_TARGET=package
===>  Vulnerability check disabled, database not found
===>  Extracting for liba52-0.7.4_1
=> Checksum OK for a52dec-0.7.4.tar.gz.
===>  Patching for liba52-0.7.4_1
===>   liba52-0.7.4_1 depends on file: /usr/local/lib/libdjbfft.a - not 
===>    Verifying package for /usr/local/lib/libdjbfft.a in 
===>  djbfft-0.76_1 may not be packaged: Forbidden - we have patches to 
the distribution..
===>   Returning to build of liba52-0.7.4_1
===>   liba52-0.7.4_1 depends on executable: gmake - found
===>   liba52-0.7.4_1 depends on file: /usr/local/bin/libtool13 - found
===>  Configuring for liba52-0.7.4_1
cc -DHAVE_CONFIG_H -I. -I. -I../include -I../include -I../include -pipe 
-I/usr/local/include -O -pipe -fomit-frame-pointer -prefer-non-pic -c 
imdct.c  -fPIC -DPIC -o .libs/imdct.lo
cc: unrecognized option `-prefer-non-pic'
imdct.c:32:26: djbfft/fftc4.h: No such file or directory
imdct.c: In function `a52_imdct_init':
imdct.c:423: error: `fftc4_un128' undeclared (first use in this function)
imdct.c:423: error: (Each undeclared identifier is reported only once
imdct.c:423: error: for each function it appears in.)
imdct.c:424: error: `fftc4_un64' undeclared (first use in this function)
gmake[1]: *** [imdct.lo] Fehler 1
gmake[1]: Leaving directory 
gmake: *** [all-recursive] Fehler 1
*** Error code 2

Stop in /usr/ports/audio/liba52.

More information about the freebsd-ports mailing list