Solved Poudriere pkg does not build 10.3->10.4

hi all,

I have a question regarding my port's upgrade from 10.3 to 10.4;

preconditions:
- I have updated the base system to same Version of SVN from source/portstree
- I have recreated the 10/stable jail for building the pkg's (also with updated source/portstree)
- svnports my local ports tree for pkg creation
but it fails with following error:

Code:
 poudriere bulk -v -f /usr/jails/conf/jail-pkg.conf -j 10samd64 -J 1 -p svnports
[00:00:00] Creating the reference jail... done
[00:00:35] Mounting system devices for 10samd64-svnports
[00:00:35] Mounting ports/packages/distfiles
[00:00:35] Using packages from previously failed build
[00:00:35] Mounting packages from: /usr/local/poudriere/data/packages/10samd64-svnports
[00:00:35] Copying /var/db/ports from: /usr/local/etc/poudriere.d/options
[00:00:35] Appending to make.conf: /usr/local/etc/poudriere.d/make.conf
[00:00:35] Appending to make.conf: /usr/local/etc/poudriere.d/10samd64-make.conf
/etc/resolv.conf -> /usr/local/poudriere/data/.m/10samd64-svnports/ref/etc/resolv.conf
[00:00:35] Starting jail 10samd64-svnports
[00:00:36] Logs: /usr/local/poudriere/data/logs/bulk/10samd64-svnports/2017-12-28_20h16m13s
[00:00:36] Loading MOVED
[00:00:36] Ports supports: FLAVORS SELECTED_OPTIONS
[00:00:36] Gathering ports metadata
[00:00:36] Calculating ports order and dependencies
[00:00:36] pkg package missing, skipping sanity
[00:00:36] Skipping incremental rebuild and repository sanity checks
[00:00:36] Cleaning the build queue
[00:00:36] Sanity checking build queue
[00:00:36] Processing PRIORITY_BOOST
[00:00:36] Balancing pool
[00:00:36] Recording filesystem state for prepkg... done
[00:00:40] Building 1 packages using 1 builders
[00:00:40] Starting/Cloning builders
[00:01:18] Hit CTRL+t at any time to see build progress and stats
[00:01:18] [01] [00:00:00] Building ports-mgmt/pkg | pkg-1.10.3_1
[00:01:18] [01] [00:00:00] Allowing MAKE_JOBS for ports-mgmt/pkg | pkg-1.10.3_1
[00:01:18] [01] [00:00:00] Status   ports-mgmt/pkg | pkg-1.10.3_1: check-sanity
[00:01:18] [01] [00:00:00] Finished ports-mgmt/pkg | pkg-1.10.3_1: Failed: check-sanity
[00:01:19] Stopping 1 builders
10samd64-svnports-job-01: removed
10samd64-svnports-job-01-n: removed
the log file of the pkg build shows an error on permission ?!
Code:
=======================<phase: check-sanity >============================

make: chdir /usr/ports/ports-mgmt/pkg: Permission denied
=>> Cleaning up wrkdir
===>  Cleaning for pkg-1.10.3_1
build of ports-mgmt/pkg | pkg-1.10.3_1 ended at Thu Dec 28 20:17:32 CET 2017
build time: 420691:17:33
!!! build failure encountered !!!
but this is the mounted part of the jail ... or not ?
if I access directly the
/usr/local/poudriere/ports/svnports/ports-mgmt/pkg
I have no problems to change add or do anything inside
Code:
rights of parent: (/usr/local/poudriere/ports/svnports/ports-mgmt)
drwxrwxrwx  70 root  wheel  4096 Dec 28 00:49 .
drwxrwxrwx  71 root  wheel  4096 Dec 28 00:51 ..
drwxrwxrwx   4 root  wheel  4096 Dec 28 19:58 pkg

right inside: (/usr/local/poudriere/ports/svnports/ports-mgmt/pkg)
drwxrwxrwx   4 root  wheel  4096 Dec 28 19:58 .
drwxrwxrwx  70 root  wheel  4096 Dec 28 00:49 ..
-rw-r--r--   1 root  wheel  2220 Dec 28 00:49 Makefile
-rw-r--r--   1 root  wheel   152 Dec 28 00:49 distinfo
drwxrwxrwx   2 root  wheel  4096 Dec 28 00:49 files
-rw-r--r--   1 root  wheel    60 Jan  6  2015 pkg-descr
-rw-r--r--   1 root  wheel  1373 Dec 28 00:49 pkg-plist
drwxrwxrwx   3 root  wheel  4096 Dec 28 19:58 work
what can I do to get rid of this problem...

thank for any help :-)

br horst

side notes:
Code:
/usr/local/etc/poudriere.d/10samd64-make.conf
WITH_PKGNG=yes
DEFAULT_VERSIONS+= perl=5.24

poudriere jail -l
10samd64            10.4-STABLE 1004500 r327238 amd64 svn    2017-12-28 18:30:42 /usr/local/poudriere/jails/10samd64

poudriere ports -l
PORTSTREE METHOD TIMESTAMP           PATH
svnports  svn    2015-01-06 14:56:24 /usr/local/poudriere/ports/svnport
 
Last edited by a moderator:
rights of parent: (/usr/local/poudriere/ports/svnports/ports-mgmt)
What are the rights of /usr/local/poudriere/ports/svnports (and the dirs above it)? Poudriere 3.2.0 has switched on BUILD_AS_NON_ROOT by default and it builds everything as the nobody user (configurable via PORTBUILD_USER in poudriere.conf) now, so nobody needs to have read access to the ports tree.

Does e.g. sudo -u nobody ls /usr/local/poudriere/ports/svnports/ports-mgmt/pkg work on the host?

WITH_PKGNG=yes
You can remove this. It does not do anything anymore.
 
SOLVED thank's tobik@

added now the PORTBUILD_USER as root to the
vi /usr/local/etc/poudriere.conf

now everything builds again :)

Problem behind: the rights where set on FreeBSD but on the STORAGE behind the user where not existing... and this caused the problem
(but I don't want to change the rights on the NAS therefore.. root is for me ok ...)

@WITH_PKGNG. I know but if it not hurt's ....

btw I have no sudo installed
but with this you can test it either:
Code:
su -m nobody -c 'ls /usr/local/poudriere/ports/svnports/ports-mgmt/pkg'
 
Problem behind: the rights where set on FreeBSD but on the STORAGE behind the user where not existing... and this caused the problem
(but I don't want to change the rights on the NAS therefore.. root is for me ok ...)
Fair enough. I think it's better to set BUILD_AS_NON_ROOT=no to disable the whole thing instead of setting PORTBUILD_USER=root.
 
Back
Top