Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 04 Nov 2021 17:50:00 +0000
From:      bugzilla-noreply@freebsd.org
To:        ruby@FreeBSD.org
Subject:   [Bug 259639] ports-mgmt/poudriere-devel: Build of databases/ruby-bdb fails if USE_TMPFS is set to 'no' in poudriere.conf
Message-ID:  <bug-259639-21402-m65FKAWvFT@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-259639-21402@https.bugs.freebsd.org/bugzilla/>
References:  <bug-259639-21402@https.bugs.freebsd.org/bugzilla/>

index | next in thread | previous in thread | raw e-mail

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.

help

Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-259639-21402-m65FKAWvFT>