Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 761130

Summary: app-pda/libplist-2.2.0-r2 fails to build
Product: Gentoo Linux Reporter: Reid Swanson <reid>
Component: Current packagesAssignee: No maintainer - Look at https://wiki.gentoo.org/wiki/Project:Proxy_Maintainers if you want to take care of it <maintainer-needed>
Status: RESOLVED FIXED    
Severity: normal CC: jstein, sam
Priority: Normal Keywords: PATCH
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: The output of emerge --info and build.log
A patch to fix the symbolic link error

Description Reid Swanson 2020-12-21 18:57:16 UTC
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.
Comment 1 Reid Swanson 2020-12-21 21:12:33 UTC
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.
Comment 2 Reid Swanson 2020-12-21 21:13:34 UTC
Created attachment 679149 [details, diff]
A patch to fix the symbolic link error
Comment 3 Larry the Git Cow gentoo-dev 2021-03-27 22:16:11 UTC
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(+)