Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 04 Nov 2021 17:50:00 +0000
From:      bugzilla-noreply@freebsd.org
To:        ports-bugs@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-7788-RvPVuLpSdW@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-259639-7788@https.bugs.freebsd.org/bugzilla/>
References:  <bug-259639-7788@https.bugs.freebsd.org/bugzilla/>

next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D259639

--- 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=3Dno' to poudriere.conf and tried test build. Then build
completed successfully. So it is correct that this is build-as-non-root iss=
ue.

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=3D65534 and GID=3D=
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?

--=20
You are receiving this mail because:
You are the assignee for the bug.=



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