Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 9 Aug 2014 15:10:12 +0200
From:      Matthias Apitz <guru@unixarea.de>
To:        freebsd-ports@freebsd.org
Subject:   poudriere and failing ports (and other questions)
Message-ID:  <20140809131012.GA17400@sh4-5.1blu.de>

next in thread | raw e-mail | index | archive | help


Hello,

I'm doing my first steps with poudriere(8) to build packages
for my farm of laptops and run into some questions and/or
problems; 

I was able to create the jail and SVN co the ports succesfull after
updating last night my build hos to head:

FreeBSD vm-tiny-r269739 11.0-CURRENT FreeBSD 11.0-CURRENT #0 r269739: Sat Aug  9 07:07:40 CEST 2014     guru@vm-tiny-r269739:/usr/obj/usr/src/sys/GENERIC  i386

the jail was built with:

# poudriere jail -c -j freebsd-head -m svn+http -v head

and the ports tree with:

# poudriere ports -c -p ports-head -m svn+http -B head

So far so good.

Now the questions:

1)
I wanted to check the possible build options for my ports and
tried:

$ cat /usr/local/etc/poudriere-list
x11/xorg
x11/kde4

$ poudriere options -cf /usr/local/etc/poudriere-list -p ports-head
===>  Switching to root credentials to create /usr/local/share/poudriere/../../etc/poudriere.d/options/x11_xorg
Password:
===>  Returning to user credentials
===> Building/installing dialog4ports as it is required for the config dialog
===>  Cleaning for dialog4ports-0.1.5_2
===>  License BSD2CLAUSE accepted by the user
===>   dialog4ports-0.1.5_2 depends on file: /usr/local/sbin/pkg - not found
===>    Verifying install for /usr/local/sbin/pkg in /usr/local/poudriere/ports/ports-head/ports-mgmt/pkg
You are about to convert your system to pkgng while you have ports/packages
installed with the old pkg_install tools.

Ofc I do not have /usr/local/sbin/pkg in the host. There is still
the old pkg_* land installed.
But why poudriere is seeing that and not using what it's in
the jail?

2)
When I fire up the building for the above two ports in the list:
x11/xorg
x11/kde4

with:

# poudriere bulk -f /usr/local/etc/poudriere-list -j freebsd-head -p ports-head

some of the ports are failing to build, for example:

====>> [01] Starting build of audio/libvorbis
====>> [01] Finished build of audio/libvorbis: Success
====>> [01] Starting build of www/p5-HTTP-Date
====>> [01] Finished build of www/p5-HTTP-Date: Failed: build-depends
====>> [01] Skipping build of sysutils/p5-File-Listing: Dependent port www/p5-HTTP-Date failed
====>> [01] Skipping build of www/p5-HTTP-Cookies: Dependent port www/p5-HTTP-Date failed
====>> [01] Skipping build of www/p5-HTTP-Daemon: Dependent port www/p5-HTTP-Date failed
====>> [01] Skipping build of www/p5-HTTP-Message: Dependent port www/p5-HTTP-Date failed
====>> [01] Skipping build of www/p5-HTTP-Negotiate: Dependent port www/p5-HTTP-Date failed
====>> [01] Skipping build of www/p5-libwww: Dependent port www/p5-HTTP-Date failed
====>> [01] Skipping build of x11/xscreensaver: Dependent port www/p5-HTTP-Date failed
====>> [01] Starting build of databases/sqlite3
====>> [01] Finished build of databases/sqlite3: Success
====>> [01] Starting build of graphics/jasper
====>> [01] Finished build of graphics/jasper: Success

How do I deal with such failing ports? In the past I just
went to the place, run 'make install' again and looked what the
problem was. And now, with poudriere, how I have todo this?


3)
Some, but not all, fetched distfiles are ending up in /usr/ports/distfiles:

$ ls -l /usr/ports/distfiles
total 18424
-rw-r--r--  1 root  wheel    562616 24 mar  2012 expat-2.1.0.tar.gz
-rw-r--r--  1 root  wheel  16341773 16 ago  2013 gettext-0.18.3.1.tar.gz
-rw-r--r--  1 root  wheel      7693  1 jun  2005 gettext-1.05.tar.gz
-rw-r--r--  1 root  wheel     77963 26 jun 16:16 indexinfo-0.2.tar.gz
-rw-r--r--  1 root  wheel   1706540  5 ago 22:38 pkg-1.3.5.1.tar.xz

Where are the others and why only some are there?

4)
A lot of builds fail with some problem in misc/help2man:

...
====>> [01] Skipping build of textproc/xmlto: Dependent port misc/help2man failed
====>> [01] Skipping build of x11-servers/xorg-server: Dependent port misc/help2man failed
====>> [01] Skipping build of astro/xplanet: Dependent port misc/help2man failed
====>> [01] Skipping build of x11/xscreensaver: Dependent port misc/help2man failed

This port itself failed with the log attached below. I do not
understand the missing (sub-) port:

===>   help2man-1.43.3_1 depends on package: /new_packages/All/p5-Locale-gettext
-1.05_3.txz - not found

p5-Locale-gettext-1.05_3.txz was built and is in

$ ls -l /usr/local/poudriere/data/packages/freebsd-head-ports-head/All/p5-Locale-gettext-1.05_3.txz
-rw-r--r--  1 root  wheel  12416  9 ago 14:03 /usr/local/poudriere/data/packages/freebsd-head-ports-head/All/p5-Locale-gettext-1.05_3.txz

Why the build is looking into '/new_packages/All/...'

Thanks for your time reading all this.

	matthias



====>> Building misc/help2man
build started at Sat Aug  9 14:04:12 CEST 2014
port directory: /usr/ports/misc/help2man
building for: FreeBSD freebsd-head-ports-head-job-01 11.0-CURRENT FreeBSD 11.0-CURRENT i386
maintained by: sunpoet@FreeBSD.org
Makefile ident:      $FreeBSD: head/misc/help2man/Makefile 359190 2014-06-25 06:36:10Z bapt $
Poudriere version: 3.0.8

---Begin Environment---
OSVERSION=1100028
UNAME_v=FreeBSD 11.0-CURRENT
UNAME_r=11.0-CURRENT
BLOCKSIZE=K
MAIL=/var/mail/root
STATUS=1
MASTERMNT=/usr/local/poudriere/data/build/freebsd-head-ports-head/ref
PKG_EXT=txz
FORCE_PACKAGE=yes
tpid=60724
PATH=/sbin:/bin:/usr/sbin:/usr/bin:/usr/games:/usr/local/sbin:/usr/local/bin:/root/bin
POUDRIERE_BUILD_TYPE=bulk
NBPARALLEL=1
PKGNG=1
PKGNAME=help2man-1.43.3_1
PKG_DELETE=/usr/local/sbin/pkg-static delete -y -f
PKG_ADD=/usr/local/sbin/pkg-static add
PWD=/root
MASTERNAME=freebsd-head-ports-head
USER=root
HOME=/root
POUDRIERE_VERSION=3.0.8
SKIPSANITY=0
LOCALBASE=/usr/local
PACKAGE_BUILDING=yes
PKG_BIN=/usr/local/sbin/pkg-static
---End Environment---

---Begin OPTIONS List---
===> The following configuration options are available for help2man-1.43.3_1:
     NLS=on: Native Language Support
===> Use 'make config' to modify these settings
---End OPTIONS List---

--CONFIGURE_ARGS--
--enable-nls --prefix=/usr/local ${_LATE_CONFIGURE_ARGS}
--End CONFIGURE_ARGS--

--CONFIGURE_ENV--
XDG_DATA_HOME=/wrkdirs/usr/ports/misc/help2man/work  XDG_CONFIG_HOME=/wrkdirs/usr/ports/misc/help2man/work  HOME=/wrkdirs/usr/ports/misc/help2man/work TMPDIR="/tmp" XDG_DATA_HOME=/wrkdirs/usr/ports/misc/help2man/work  XDG_CONFIG_HOME=/wrkdirs/usr/ports/misc/help2man/work  HOME=/wrkdirs/usr/ports/misc/help2man/work TMPDIR="/tmp" MAKE=gmake-lite ac_cv_path_PERL=/usr/local/bin/perl ac_cv_path_PERL_PATH=/usr/local/bin/perl SHELL=/bin/sh CONFIG_SHELL=/bin/sh CONFIG_SITE=/usr/ports/Templates/config.site lt_cv_sys_max_cmd_len=262144
--End CONFIGURE_ENV--

--MAKE_ENV--
XDG_DATA_HOME=/wrkdirs/usr/ports/misc/help2man/work  XDG_CONFIG_HOME=/wrkdirs/usr/ports/misc/help2man/work  HOME=/wrkdirs/usr/ports/misc/help2man/work TMPDIR="/tmp" XDG_DATA_HOME=/wrkdirs/usr/ports/misc/help2man/work  XDG_CONFIG_HOME=/wrkdirs/usr/ports/misc/help2man/work  HOME=/wrkdirs/usr/ports/misc/help2man/work TMPDIR="/tmp" NO_PIE=yes SHELL=/bin/sh NO_LINT=YES PREFIX=/usr/local  LOCALBASE=/usr/local  LIBDIR="/usr/lib"  CC="clang" CFLAGS="-O2 -pipe  -L/usr/local/lib -lintl -fno-strict-aliasing"  CPP="clang-cpp" CPPFLAGS=""  LDFLAGS="" LIBS=""  CXX="clang++" CXXFLAGS="-O2 -pipe -L/usr/local/lib -lintl -fno-strict-aliasing "  MANPREFIX="/usr/local" BSD_INSTALL_PROGRAM="install  -s -o root -g wheel -m 555"  BSD_INSTALL_LIB="install  -s -o root -g wheel -m 444"  BSD_INSTALL_SCRIPT="install  -o root -g wheel -m 555"  BSD_INSTALL_DATA="install  -o root -g wheel -m 444"  BSD_INSTALL_MAN="install  -o root -g wheel -m 444"
--End MAKE_ENV--

--SUB_LIST--
PREFIX=/usr/local
LOCALBASE=/usr/local
DATADIR=/usr/local/share/help2man
DOCSDIR=/usr/local/share/doc/help2man
EXAMPLESDIR=/usr/local/share/examples/help2man
WWWDIR=/usr/local/www/help2man
ETCDIR=/usr/local/etc/help2man
--End SUB_LIST--

---Begin make.conf---
USE_PACKAGE_DEPENDS=yes
BATCH=yes
WRKDIRPREFIX=/wrkdirs
PACKAGES=/packages
DISTDIR=/distfiles
#### /usr/local/etc/poudriere.d/freebsd-head-make.conf ####
WITH_PKGNG=yes       # Only required for versions before 10.0
CC=clang             # Highly recommended over GCC,
CXX=clang++          # but only needed for 8.X and 9.X
CPP=clang-cpp        # since it's the default in 10.0
MASTER_SITE_BACKUP?= \
http://ftp2.us.freebsd.org/pub/FreeBSD/ports/distfiles/${DIST_SUBDIR/}
#
# from aurora:
#
# WITHOUT_PKGNG=yes
WITH_NEW_XORG=yes
WITHOUT_HAL=yes
#
#
# added 20130612 guru
# CPUTYPE?=pentium3
SENDMAIL_CFLAGS=-I/usr/local/include/sasl -DSASL
SENDMAIL_LDFLAGS=-L/usr/local/lib
SENDMAIL_LDADD=-lsasl2
#
# not used until now:
# FETCH_BEFORE_ARGS=-p4 -T 10
# OPTIONS_UNSET= DEBUG HELP STATIC GNUTLS DOCS EXAMPLES IPV6 \
#            MANPAGES PTH IDN LIBIDN NLS DBUS SOUND ALSA PULSEAUDIO \
#            DOCBOOK CUPS TESTS HTMLDOCS BONJOUR GSSAPI APIDOCS
DISABLE_MAKE_JOBS=yes
DISTDIR=/portdistfiles
PACKAGES=/new_packages
---End make.conf---
===>  Cleaning for help2man-1.43.3_1
=======================<phase: check-config   >============================
===========================================================================
=======================<phase: pkg-depends    >============================
===>   help2man-1.43.3_1 depends on file: /usr/local/sbin/pkg - found
===========================================================================
=======================<phase: fetch-depends  >============================
===========================================================================
=======================<phase: fetch          >============================
===>  License GPLv3 accepted by the user
=> help2man-1.43.3.tar.gz doesn't seem to exist in /portdistfiles/.
=> Attempting to fetch http://ftp.gnu.org/gnu/help2man/help2man-1.43.3.tar.gz
help2man-1.43.3.tar.gz                                   0  B    0  Bps
===> Fetching all distfiles required by help2man-1.43.3_1 for building
===========================================================================
=======================<phase: checksum       >============================
===>  License GPLv3 accepted by the user
===> Fetching all distfiles required by help2man-1.43.3_1 for building
=> SHA256 Checksum OK for help2man-1.43.3.tar.gz.
===========================================================================
=======================<phase: extract-depends>============================
===========================================================================
=======================<phase: extract        >============================
===>  License GPLv3 accepted by the user
===> Fetching all distfiles required by help2man-1.43.3_1 for building
===>  Extracting for help2man-1.43.3_1
=> SHA256 Checksum OK for help2man-1.43.3.tar.gz.
===========================================================================
=======================<phase: patch-depends  >============================
===========================================================================
=======================<phase: patch          >============================
===>  Patching for help2man-1.43.3_1
===========================================================================
=======================<phase: build-depends  >============================
===>   help2man-1.43.3_1 depends on package: p5-Locale-gettext>=0 - not found
===>    Verifying install for p5-Locale-gettext>=0 in /usr/ports/devel/p5-Locale-gettext
===>   help2man-1.43.3_1 depends on package: /new_packages/All/p5-Locale-gettext-1.05_3.txz - not found
===>   USE_PACKAGE_DEPENDS_ONLY set - not building missing dependency from source
*** Error code 1

Stop.
make: stopped in /usr/ports/misc/help2man
===>  Cleaning for help2man-1.43.3_1
build of /usr/ports/misc/help2man ended at Sat Aug  9 14:04:14 CEST 2014
build time: 00:00:02
-- 
Matthias Apitz               |  /"\   ASCII Ribbon Campaign:
E-mail: guru@unixarea.de     |  \ /   - No HTML/RTF in E-mail
WWW: http://www.unixarea.de/ |   X    - No proprietary attachments
phone: +49-170-4527211       |  / \   - Respect for open standards
                             | en.wikipedia.org/wiki/ASCII_Ribbon_Campaign



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20140809131012.GA17400>