Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 846899 - net-libs/libupnpp-0.21.0 installs libtool files (.la) without corresponding static libraries
Summary: net-libs/libupnpp-0.21.0 installs libtool files (.la) without corresponding s...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Erik Mackdanz
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-05-22 06:10 UTC by Agostino Sarubbo
Modified: 2022-07-02 18:55 UTC (History)
1 user (show)

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


Attachments
build.log (build.log,82.74 KB, text/plain)
2022-05-22 06:10 UTC, Agostino Sarubbo
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Agostino Sarubbo gentoo-dev 2022-05-22 06:10:54 UTC
https://blogs.gentoo.org/ago/2020/07/04/gentoo-tinderbox/

Issue: net-libs/libupnpp-0.21.0 installs libtool files (.la) without corresponding static libraries.
Discovered on: amd64 (internal ref: ci)
Comment 1 Agostino Sarubbo gentoo-dev 2022-05-22 06:10:56 UTC
Created attachment 779711 [details]
build.log

build log and emerge --info
Comment 2 Erik Mackdanz gentoo-dev 2022-07-02 00:38:57 UTC
Closing as invalid.

No corresponding libupnpp.a is built.

Reviewing how libtool works, libupnpp.la is nonetheless valid to install for its other benefits e.g. encapsulating:

  # Libraries that this one depends upon.
  dependency_libs=' -lpthread -lnpupnp -lcurl -lexpat'

I could strip the file but I'm not certain that no linking program could use it.
Comment 3 David Seifert gentoo-dev 2022-07-02 18:01:35 UTC
1. There's a QA policy that states that libtool archives need to be deleted, unless you have an overriding reason not to (and some abstract form of "encapsulation" definitely isn't an overriding reason): https://projects.gentoo.org/qa/policy-guide/installed-files.html#pg0303

2. There are reasons why we delete .la files, and they specifically mention the _lack_ of encapsulation (because they increase rebuild burdens): https://flameeyes.blog/2010/10/05/libtool-archives-and-their-pointless-points/

Just remove the .la files unless you can show that they are absolutely necessary.
Comment 4 Erik Mackdanz gentoo-dev 2022-07-02 18:54:38 UTC
Thanks for the documentation links.
Comment 5 Larry the Git Cow gentoo-dev 2022-07-02 18:55:20 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0ef47bae6e5f3b1d4e5a2e2a15af1034fe8457ce

commit 0ef47bae6e5f3b1d4e5a2e2a15af1034fe8457ce
Author:     Erik Mackdanz <stasibear@gentoo.org>
AuthorDate: 2022-07-02 18:53:14 +0000
Commit:     Erik Mackdanz <stasibear@gentoo.org>
CommitDate: 2022-07-02 18:54:56 +0000

    net-libs/libupnpp: remove libtool archive
    
    Closes: https://bugs.gentoo.org/846899
    Signed-off-by: Erik Mackdanz <stasibear@gentoo.org>

 net-libs/libupnpp/libupnpp-0.21.0.ebuild | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)