[Bug 259639] ports-mgmt/poudriere-devel: Build of databases/ruby-bdb fails if USE_TMPFS is set to 'no' in poudriere.conf
Date: Thu, 04 Nov 2021 17:50:00 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=259639
--- Comment #2 from Yasuhiro Kimura <yasu@freebsd.org> ---
(In reply to Bryan Drewery from comment #1)
I saved working directory with `poudriere testport -w` and checked owner of
files in question. Then they are owned by root. Next I added
'BUILD_AS_NON_ROOT=no' to poudriere.conf and tried test build. Then build
completed successfully. So it is correct that this is build-as-non-root issue.
But I wonder why these files are owned by root. There is following target in
databases/ruby-bdb/Makefile
--------------------------------------------------------------------------------
post-install-DOCS-on:
${MKDIR} ${STAGEDIR}${DOCSDIR}/doc
(cd ${WRKSRC} && ${INSTALL_DATA} ${DOCS} ${STAGEDIR}${DOCSDIR})
(cd ${WRKSRC}/docs/doc && ${COPYTREE_SHARE} .
${STAGEDIR}${DOCSDIR}/doc)
--------------------------------------------------------------------------------
And the error happens with last line.
If I understand correctly staging phase is done with UID=65534 and GID=65534.
And each line of above target is also executed with same UID and GID.
Then why files in question are copied to staging area as owned by root?
--
You are receiving this mail because:
You are on the CC list for the bug.