On 12/03/15 09:04, Tati Chevron wrote: > I'm trying to build the no_ada flavour of gcc 4.9 using dpb on a > machine running 5.8-release, and it fails: > > # export FLAVOR=no_ada > # dpb -D BUILD_USER=ports -D CDROM_ONLY -D FTP_ONLY -F 0 -L > /portswork/logs -l /portswork/locks lang/gcc/4.9 > > Fatal: Unknown flavor(s) no_ada (in test/a) > (No flavors for this port). (in test/a) > *** Error 1 in / (/usr/ports/infrastructure/mk/bsd.port.mk:3567 > '.BEGIN': @exit 1) > dpb: Can't obtain vital information from the ports tree > Usage: dpb [-aceimqrRsuUvx] [-A arch] [-B chroot] [-C plist] [-f m] [-F m] > [-I pathlist] [-J p] [-j n] [-p parallel] [-P pathlist] [-h hosts] > [-L logdir] [-l lockdir] [-b log] [-M threshold] [-X pathlist] > [pathlist ...] > > Infact, trying to build other flavoured ports fails in a similar way. > > What am I doing wrong here? > better to ask on ports@ mail list for questions on ports.
Add the flavor to the package path. FLAVOR is specific to a port so dpb will try to use these with a FLAVOR of no_ada even if the packages exist, dpb needs to determine the package name for the no_ada FLAVOR for each of these. bison-3.0.4p0 bzip2-1.0.6p7 gmake-4.1p0 gmp-5.0.2p3 libexecinfo-0.2p5v0 libmpc-0.9p1 mpfr-3.1.0.3p0 xz-5.2.2 zip-3.0p0 Should be using dpb ... lang/gcc/4.9,no_ada for subpackages $ pkg_info -Pq gcc*-4.9* lang/gcc/4.9,-main lang/gcc/4.9,-libs use dpb ... lang/gcc/4.9,-main You can check package paths using make $ cd /usr/ports $ make SUBDIR="lang/gcc/4.9,no_ada" clean ===> lang/gcc/4.9,no_ada ===> Cleaning for gcc-4.9.3p2 for multiple ports $ make SUBDIR="lang/gcc/4.9,no_ada lang/gcc/4.9,-main lang/gcc/4.9,-libs lang/gcc/4.9,-main,no_ada" clean ===> lang/gcc/4.9,no_ada ===> Cleaning for gcc-4.9.3p2 ===> lang/gcc/4.9,-main ===> Cleaning for gcc-4.9.3p2 ===> lang/gcc/4.9,-libs ===> Cleaning for gcc-libs-4.9.3p2 ===> lang/gcc/4.9,-main,no_ada ===> Cleaning for gcc-4.9.3p2 See man pkgpaths(7)
