Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 550146 - media-libs/freeglut: USE="-static-libs" does nothing
Summary: media-libs/freeglut: USE="-static-libs" does nothing
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Library (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Matt Turner
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-05-22 09:10 UTC by Hristo Venev
Modified: 2015-08-30 01:19 UTC (History)
1 user (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Hristo Venev 2015-05-22 09:10:56 UTC
Currently setting or unsetting USE="static-libs" has no effect.

--- a/media-libs/freeglut/freeglut-3.0.0.ebuild
+++ b/media-libs/freeglut/freeglut-3.0.0.ebuild
@@ -34,6 +34,7 @@
 src_configure() {
 	local mycmakeargs=(
 		"-DFREEGLUT_GLES=OFF"
+		"-DFREEGLUT_BUILD_STATIC_LIBS=$(usex static-libs ON OFF)"
 	)
 #	$(cmake-utils_use gles FREEGLUT_GLES)
 	cmake-multilib_src_configure


Reproducible: Always

Steps to Reproduce:
USE="static-libs" emerge media-libs/freeglut
equery files media-libs/freeglut | sort > with
USE="-static-libs" emerge media-libs/freeglut
equery files media-libs/freeglut | sort > without
diff with without
Actual Results:  
No difference

Expected Results:  
</usr/$(get_libdir)/libglut.a
Comment 1 Matt Turner gentoo-dev 2015-08-30 01:19:24 UTC
Thank you for the patch. I have pushed it as

commit 21afa1414ec6ba38849592861de78646aaa7e032
Author: Matt Turner <mattst88@gentoo.org>
Date:   Sat Aug 29 18:22:03 2015 -0700

    media-libs/freeglut: Fix USE=-static-libs.
    
    Bug: https://bugs.gentoo.org/550146

which I now see did not handle --author=... properly. Sigh. Sorry about that. :(