Created attachment 679134 [details] The output of emerge --info and build.log libplist-2.2.0-r2 fails to build with the error: * ACCESS DENIED: symlinkat: /src/libplist.la ln: failed to create symbolic link '/src/libplist.la': Permission denied As noted in the forums this looks like a bug in the ebuild: https://forums.gentoo.org/viewtopic-p-8548458.html#8548458 src_compile() { # ln -s "${native_builddir}/src/libplist-2.0.la" "${native_builddir}/src/libplist.la" python_compile() { emake -C "${BUILD_DIR}"/cython \ VPATH="${S}/cython:${native_builddir}/cython" \ plist_la_LIBADD="${native_builddir}/src/libplist-2.0.la" } local native_builddir=${BUILD_DIR} [...] where ${native_builddir} is used before it is defined so the symbolic link fails because it is pointing to the wrong location. My emerge --info and build.log are attached.
For what it's worth, I created a modified ebuild in a local repo and moved the line: local native_builddir=${BUILD_DIR} to the top of the src_compile() function and that appears to fix the issue for me. I've never really created a patch before so I'm not sure if I did it correctly, but I'll attach one of my fix. It's a pretty trivial change in any case.
Created attachment 679149 [details, diff] A patch to fix the symbolic link error
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=936f8dab651f66208417a0479e4d4a65e97a315f commit 936f8dab651f66208417a0479e4d4a65e97a315f Author: Andreas Sturmlechner <asturm@gentoo.org> AuthorDate: 2021-03-27 22:13:13 +0000 Commit: Andreas Sturmlechner <asturm@gentoo.org> CommitDate: 2021-03-27 22:15:44 +0000 app-pda/libplist: python3_9, drop static-libs, fix src_compile() Reported-by: Reid Swanson <reid@reidswanson.com> Closes: https://bugs.gentoo.org/761130 Package-Manager: Portage-3.0.17, Repoman-3.0.2 Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org> app-pda/libplist/libplist-2.2.0-r3.ebuild | 113 ++++++++++++++++++++++++++++++ 1 file changed, 113 insertions(+)