Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 413987 - media-tv/xawtv with --as-needed drops libm link
Summary: media-tv/xawtv with --as-needed drops libm link
Status: RESOLVED WONTFIX
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New 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, PMASKED
: 436708 (view as bug list)
Depends on:
Blocks:
 
Reported: 2012-04-29 14:18 UTC by Milos Ivanovic
Modified: 2016-02-21 23:35 UTC (History)
5 users (show)

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


Attachments
xawtv-3.95-as-needed.patch (xawtv-3.95-as-needed.patch,627 bytes, patch)
2012-04-29 17:56 UTC, Julian Ospald
Details | Diff
xawtv-3.95-r2.ebuild.diff (xawtv-3.95-r2.ebuild.diff,303 bytes, text/plain)
2012-04-29 17:57 UTC, Julian Ospald
Details
ebuild for latest version (xawtv-3.103.ebuild,3.38 KB, text/plain)
2014-01-12 20:41 UTC, James Broadhead
Details
xawtv-3.103.ebuild (xawtv-3.103.ebuild,3.38 KB, text/plain)
2014-01-12 20:42 UTC, James Broadhead
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Milos Ivanovic 2012-04-29 14:18:06 UTC
"ld --as-needed used to compile it and its dependencies dropped the libm link which these plugins directly needed but only linked indirectly.
The fix is to simply link them explicitly. Additionally conv-mjpeg is missing a link against libjpeg."

Above excerpt taken from https://bugs.launchpad.net/ubuntu/+source/xawtv/+bug/821916

--------------------------------------------------------------------------------

--- /usr/portage/media-tv/xawtv/xawtv-3.95-r2.ebuild
+++ /usr/local/portage/media-tv/xawtv/xawtv-3.95-r2.ebuild
@@ -84,6 +84,8 @@
 	# It tries to include FSlib.h directly, but this seems to have moved.
 	use X && has_version x11-libs/libFS && append-flags -I/usr/include/X11/fonts
 
+	append-ldflags $(no-as-needed)
+
 	econf \
 		$(use_with X x) \
 		$(use_enable xext xfree-ext) \

--------------------------------------------------------------------------------

Without the above additions (which are only temporary), we get this while trying to use the streamer binary:
dlopen: /usr/lib64/xawtv/flt-disor.so: undefined symbol: tan
dlopen: /usr/lib64/xawtv/flt-gamma.so: undefined symbol: pow

Please link the needed libraries explicitly in the build process in order to fix this efficiently.
Comment 2 Julian Ospald 2012-04-29 17:57:34 UTC
Created attachment 310433 [details]
xawtv-3.95-r2.ebuild.diff
Comment 3 Samuli Suominen (RETIRED) gentoo-dev 2013-05-03 01:19:19 UTC
*** Bug 436708 has been marked as a duplicate of this bug. ***
Comment 4 Matteo 'The Peach' Pescarin 2013-05-04 10:21:52 UTC
As I wrote in bug #436708:

>> This bug was fixed upstream. We should probably pull a new version into
>> portage.

> JWZ already reported it a while ago:
> https://bugs.gentoo.org/show_bug.cgi?id=456100
Comment 5 James Broadhead 2014-01-12 20:41:30 UTC
Created attachment 367744 [details]
ebuild for latest version

As a starting-off point, here's an ebuild for the latest xawtv on the 3x branch. 

This drops the patches for the previous version. Interested parties should check that that is warranted before this can be merged into the main tree.
Comment 6 James Broadhead 2014-01-12 20:42:41 UTC
Created attachment 367746 [details]
xawtv-3.103.ebuild
Comment 7 jospezial 2014-10-09 17:31:39 UTC
You could make this bug depend on https://bugs.gentoo.org/show_bug.cgi?id=358013
(media-tv/xawtv-3.103 version bump)
There is an EAPI=5 ebuild.