Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 761130 - app-pda/libplist-2.2.0-r2 fails to build
Summary: app-pda/libplist-2.2.0-r2 fails to build
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: No maintainer - Look at https://wiki.gentoo.org/wiki/Project:Proxy_Maintainers if you want to take care of it
URL:
Whiteboard:
Keywords: PATCH
Depends on:
Blocks:
 
Reported: 2020-12-21 18:57 UTC by Reid Swanson
Modified: 2021-03-27 22:16 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
The output of emerge --info and build.log (libplist-files.tar.xz,7.36 KB, application/x-xz)
2020-12-21 18:57 UTC, Reid Swanson
Details
A patch to fix the symbolic link error (libplist-2.2.0.patch,573 bytes, patch)
2020-12-21 21:13 UTC, Reid Swanson
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
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(+)