Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 190552 - media-tv/mythtv0.21_pre* does not compile with as-needed ldflags
Summary: media-tv/mythtv0.21_pre* does not compile with as-needed ldflags
Status: RESOLVED UPSTREAM
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Television related Applications in Gentoo's Portage
URL: http://svn.mythtv.org/trac/ticket/2402
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-08-28 18:05 UTC by ra
Modified: 2007-08-28 20:01 UTC (History)
0 users

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 ra 2007-08-28 18:05:35 UTC
My system is built with the as-needed ldflags. Only application not to work with this is mythtv.

Removing all LDFLAGS in make.conf does not fix the problem, as it seems to extract the ldflags from somewhere else. Not sure where.

I fixed the problem by re-enabling the old patch "mythtv-0.20-as-needed.patch" - but with the following changes to make it work with the current trunk.

--- mythtv-0.20-as-needed.patch   2006-09-16 18:17:04.000000000 +0100
+++ mythtv-0.20-as-needed.patch   2007-08-28 02:39:24.000000000 +0100
@@ -7,7 +7,7 @@
  DEPENDPATH  += ../libmyth ../libavcodec ../libavformat ../libavutil
  DEPENDPATH  += ../libmythmpeg2 ../libmythdvdnav
 +DEPENDPATH  += ../libmythui
- DEPENDPATH  += ./dvbdev ./mpeg ./hdhomerun
+ DEPENDPATH  += ./dvbdev ./mpeg ./hdhomerun ./iptv
  DEPENDPATH  += ../libmythlivemedia/BasicUsageEnvironment/include
  DEPENDPATH  += ../libmythlivemedia/BasicUsageEnvironment
 @@ -26,12 +27,16 @@

Reproducible: Always

Steps to Reproduce:
1. emerge mythtv (with as-needed ldflags)
2.
3.

Actual Results:  
Does not complile

Expected Results:  
Should compile
Comment 1 Doug Goldstein (RETIRED) gentoo-dev 2007-08-28 18:23:49 UTC
removing the flags from make.conf won't work because your whole system was built with as-needed. This bug certainly does not block 129413 as, this is a development branch of upstream and will be masked forever.

upstream has rejected the as-needed fixes that I've proposed since they feel that the libraries should be built in a different order. However, that's not how the code currently flows.

Since 0.21 is purely upstream's trunk. We keep as hands off as possible, you'll have to take the issue up with them.

I have attached the ticket I created for the issue with them, however further discussions took place on IRC. They have no plans to fix it until libmythui is fully used.
Comment 2 ra 2007-08-28 18:43:14 UTC
The patch supposedly breaks Mac build, which I guess is why they haven't incorporated it.

While they figure out a solution, could you enable the patch so this ebuild works with as-needed on Gentoo at least?
Comment 3 Doug Goldstein (RETIRED) gentoo-dev 2007-08-28 18:49:59 UTC
It's a bogus claim on their part. The issue is they need to fix the depends in their build system.
Comment 4 ra 2007-08-28 20:01:23 UTC
could you enable the patch so this ebuild works with as-needed on Gentoo at least?