[Bug 259639] ports-mgmt/poudriere{-devel}: databases/ruby-bdb fails to build with USE_TMPFS=NO in poudriere.conf: chmod: $file: Operation not permitted
Date: Thu, 01 Jan 2026 19:10:20 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=259639
Dirk Meyer <dinoex@FreeBSD.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |dinoex@FreeBSD.org
--- Comment #7 from Dirk Meyer <dinoex@FreeBSD.org> ---
I have the same problem on FreeBSD-14.3 and ruby-3.3.x
why files in question are copied to staging area as owned by root?
because the files are hardlinks from the template in
/usr/local/lib/ruby/3.3/rdoc/generator/template/darkfish/fonts/
ls -l work/stage/usr/local/share/doc/ruby33/bdb/doc/fonts/
total 463
-rw-r--r-- 2 root wheel 94668 Dec 3 07:03 Lato-Light.ttf
-rw-r--r-- 2 root wheel 94196 Dec 3 07:03 Lato-LightItalic.ttf
-rw-r--r-- 2 root wheel 96184 Dec 3 07:03 Lato-Regular.ttf
-rw-r--r-- 2 root wheel 95316 Dec 3 07:03 Lato-RegularItalic.ttf
-rw-r--r-- 2 root wheel 138268 Dec 3 07:03 SourceCodePro-Bold.ttf
-rw-r--r-- 2 root wheel 138680 Dec 3 07:03 SourceCodePro-Regular.ttf
if you build the ports as user by hand:
$ make clean all
find `make -V WRKSRC` -uid 0
COPYTREE_SHARE:
(cd /wrkdirs/usr/ports/databases/ruby-bdb/work/bdb-0.6.6/docs/doc && /bin/sh -c
'(/usr/bin/find -Ed $1 $3 | /usr/bin/cpio -dumpl $2 >/dev/null 2>&1) &&
/usr/bin/find -Ed $1 $3 \( -type d -exec /bin/sh -c '\''cd '\''$2'\'' &&
chmod 755 "$@"'\'' . {} + -o -type f -exec /bin/sh -c '\''cd '\''$2'\'' &&
chmod 0644 "$@"'\'' . {} + \)' COPYTREE_SHARE .
/wrkdirs/usr/ports/databases/ruby-bdb/work/stage/usr/local/share/doc/ruby33/bdb/doc)
chmod fails on files owned by root in workdir at stage, hardlink copies from
localbase.
With USE_TMPFS=yes, the file can not be hardlinked and is copied, the copy has
the unprivileged user as owner and the package is build successfully.
I am not sure what will be the best way to fix this.
I used some workaround in Makefile.local or /etc/rc.conf for now.
--
You are receiving this mail because:
You are on the CC list for the bug.