Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 891343 - media-libs/libprojectm-3.1.12-r1 installs '.a' files without static-libs USE
Summary: media-libs/libprojectm-3.1.12-r1 installs '.a' files without static-libs USE
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Craig Andrews
URL:
Whiteboard:
Keywords: PullRequest
Depends on:
Blocks: static-libs
  Show dependency tree
 
Reported: 2023-01-18 20:51 UTC by Agostino Sarubbo
Modified: 2024-06-28 08:55 UTC (History)
3 users (show)

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


Attachments
build.log (build.log,227.60 KB, text/plain)
2023-01-18 20:51 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 2023-01-18 20:51:22 UTC
https://blogs.gentoo.org/ago/2020/07/04/gentoo-tinderbox/

Issue: media-libs/libprojectm-3.1.12 installs '.a' files without static-libs USE.
Discovered on: amd64 (internal ref: usr-merge_tinderbox)

NOTE:
(USR-MERGE-SYSTEM) in the summary means that the bug was found on a machine that runs default/linux/amd64/17.1/systemd/merged-usr profile but this bug MAY or MAY NOT BE related to the new profile.
https://projects.gentoo.org/qa/policy-guide/installed-files.html#pg0302.
Comment 1 Agostino Sarubbo gentoo-dev 2023-01-18 20:51:24 UTC
Created attachment 848793 [details]
build.log

build log and emerge --info
Comment 2 Kai Blaschke 2024-01-30 21:43:46 UTC
The 3.x versions always built both shared and static libraries. There was no way of changing this behavior. Since 4.0, libprojectM uses CMake and will honor the default shared/static library build flags. A version bump will fix this issue.
Comment 3 Agostino Sarubbo gentoo-dev 2024-05-24 06:44:14 UTC
ci has reproduced this issue with version 3.1.12-r1 - Updating summary.
Comment 4 Kai Blaschke 2024-06-27 12:02:27 UTC
Keeping the 3.1.12 release is probably a good idea for aplications which didn't migrate to the 4.x API/ABI, so a fix for the ebuild might be either fixing the autoconf scripts, or simply deleting the shared or static library after the build depending on the USE flag.

I can fix the ebuild and provide a patch depending on the preferred solution.

I'd personally try to fix the autoconf script to not unnecessarily waste CPU resources building the library twice when only one is needed.
Comment 5 Kai Blaschke 2024-06-27 12:08:39 UTC
I might add that I've seen some downstream projects relying on the static library being available, e.g. linking the .a file specifically, so we might check any dependees for that specific issue and add the static-libs flag to the USE dependencies for libprojectm.
Comment 6 Larry the Git Cow gentoo-dev 2024-06-28 08:55:53 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=44f8ed8a5ab719f6ff7c444cdf29f719f445e70b

commit 44f8ed8a5ab719f6ff7c444cdf29f719f445e70b
Author:     NHOrus <jy6x2b32pie9@yahoo.com>
AuthorDate: 2024-06-26 10:56:19 +0000
Commit:     Miroslav Šulc <fordfrog@gentoo.org>
CommitDate: 2024-06-28 08:55:39 +0000

    media-libs/libprojectm: update EAPI 7 -> 8, fix some packaging bugs
    
    As changes are trivial, and should not break anything, not keywording for testing
    Missing include prevents compilation only on aarch64, apparently
    
    Closes: https://bugs.gentoo.org/891343
    Closes: https://bugs.gentoo.org/792204
    Signed-off-by: NHOrus <jy6x2b32pie9@yahoo.com>
    Closes: https://github.com/gentoo/gentoo/pull/37309
    Signed-off-by: Miroslav Šulc <fordfrog@gentoo.org>

 .../libprojectm/files/libprojectm-3.1.12-GL_SMOOTH.patch    | 13 +++++++++++++
 ...ojectm-3.1.12-r1.ebuild => libprojectm-3.1.12-r2.ebuild} |  7 ++++---
 2 files changed, 17 insertions(+), 3 deletions(-)