Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 426942 - media-tv/mythtv-0.25.2_p20120716 build failure
Summary: media-tv/mythtv-0.25.2_p20120716 build failure
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal with 1 vote (vote)
Assignee: MythTV Maintainers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-07-17 06:08 UTC by Myk Taylor
Modified: 2012-07-22 05:47 UTC (History)
9 users (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 Myk Taylor 2012-07-17 06:08:14 UTC
The ebuild line:

  # Pass our LDFLAGS along so we don't get QA warnings
  myconf="${myconf} --extra-ldflags=\"${LDFLAGS}\""

is causing configure to error out in the append() function, which appears to be unable to handle quote characters.  Removing the "myconf=..." line in the ebuild allows the emerge to complete successfully.  I did not see any QA warnings, though (apart from the python_convert_shebangs warnings, which are a separate issue).

Reproducible: Always
Comment 1 Gregg Casillo 2012-07-17 19:14:35 UTC
Confirmed though I did not try removing that "myconf=..." line. I'd prefer to wait for a fix, because I'm not sure what that line does or how important it is.
Comment 2 Mikko Koskelin 2012-07-18 12:19:17 UTC
I can confirm this too. After I commented the line in ebuild, it was built succesfully.
Comment 3 Todd Goodman 2012-07-18 15:00:27 UTC
And I can confirm this as well.
Comment 4 Eduard Huguet 2012-07-20 21:50:58 UTC
Confirmed as well. This is emerge output:

>>> Configuring source in /var/tmp/portage/media-tv/mythtv-0.25.2_p20120716/work/mythtv-0.25.2 ...
 * Running ./configure --prefix=/usr --mandir=/usr/share/man --libdir-name=lib64 --enable-pic --enable-symbol-visibility --disable-altivec --disable-audio-jack --disable-audio-pulseoutput --enable-dvb --disable-firewire --enable-lirc --enable-libxvid --dvb-path=/usr/include --enable-xrandr --enable-xv --enable-x11 --enable-nonfree --disable-libcec --enable-libmp3lame --enable-libx264 --enable-libvpx --enable-libfaac --without-bindings=perl --with-bindings=python --python=python2.7 --compile-type=profile --enable-proc-opt --enable-vdpau --disable-joystick-menu --enable-symbol-visibility --extra-ldflags="-Wl,-O1 -Wl,--as-needed" --disable-distcc --disable-ccache
./configure: eval: line 654: unexpected EOF while looking for matching `"'
./configure: eval: line 655: syntax error: unexpected end of file
 * ERROR: media-tv/mythtv-0.25.2_p20120716 failed (configure phase):
 *   configure died
 * 
 * Call stack:
 *     ebuild.sh, line  85:  Called src_configure
 *   environment, line 5251:  Called die
 * The specific snippet of code:
 *       ./configure ${myconf} || die "configure died"
 * 
 * If you need support, post the output of `emerge --info '=media-tv/mythtv-0.25.2_p20120716'`,
 * the complete build log and the output of `emerge -pqv '=media-tv/mythtv-0.25.2_p20120716'`.
 * The complete build log is located at '/var/tmp/portage/media-tv/mythtv-0.25.2_p20120716/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/media-tv/mythtv-0.25.2_p20120716/temp/environment'.
 * Working directory: '/var/tmp/portage/media-tv/mythtv-0.25.2_p20120716/work/mythtv-0.25.2'
 * S: '/var/tmp/portage/media-tv/mythtv-0.25.2_p20120716/work/mythtv-0.25.2'
Comment 5 Doug Goldstein (RETIRED) gentoo-dev 2012-07-21 02:58:29 UTC
I've removed the quotes. Let's hope that works.
Comment 6 Anders Hellgren gentoo-dev 2012-07-21 07:46:13 UTC
(In reply to comment #5)
> I've removed the quotes. Let's hope that works.

Reopening

This gives instead

 * Running ./configure --prefix=/usr --mandir=/usr/share/man --libdir-name=lib64 --enable-pic --enable-symbol-visibility --disable-altivec --disable-audio-jack --disable-audio-pulseoutput --disable-dvb --disable-firewire --disable-lirc --disable-libxvid --dvb-path=/usr/include --enable-xrandr --enable-xv --enable-x11 --enable-nonfree --disable-libcec --enable-libmp3lame --enable-libx264 --enable-libvpx --enable-libfaac --with-bindings=perl,python --python=python2.7 --compile-type=profile --enable-proc-opt --disable-joystick-menu --enable-symbol-visibility --extra-ldflags=-Wl,-O1 -Wl,--as-needed --disable-distcc --disable-ccache
Unknown option "-Wl,--as-needed".
Comment 7 Anders Hellgren gentoo-dev 2012-07-21 08:00:17 UTC
Note that those LDFLAGS are from default/linux/make.defaults.
Comment 8 Doug Goldstein (RETIRED) gentoo-dev 2012-07-21 18:46:19 UTC
I believe this is now resolved. Please confirm and let me know if you get QA messages other than python_convert_shebangs.
Comment 9 Myk Taylor 2012-07-21 20:29:40 UTC
Builds and runs.  There are a few warnings shown, though:


* QA Notice: USE Flag 'roap' not in IUSE for media-tv/mythtv-0.25.2_p20120716

I believe this is due to a roap-raop mismatch in the line:
  use roap || myconf="${myconf} --disable-libdns-sd"
which probably should be:
  use raop || myconf="${myconf} --disable-libdns-sd"


Also, from the configure stage:

Warning! --enable-proc-opt shouldn't be used with --arch, --cpu or --tune
Disabling it now.

For reference, this was my configure commandline:

 * Running ./configure --prefix=/usr --mandir=/usr/share/man --libdir-name=lib64 --enable-pic --disable-altivec --disable-audio-jack --disable-audio-pulseoutput --disable-dvb --enable-firewire --disable-lirc --enable-libxvid --dvb-path=/usr/include --enable-xrandr --enable-xv --enable-x11 --enable-nonfree --disable-libcec --disable-libdns-sd --enable-libmp3lame --enable-libx264 --enable-libvpx --enable-libfaac --without-bindings=perl,python --compile-type=profile --enable-proc-opt --enable-vdpau --enable-vaapi --disable-joystick-menu --enable-symbol-visibility --cpu=host --disable-distcc --disable-ccache

I noticed that the gcc params include both:
  -march=native -march=amdfam10
the -march=native is from my /etc/make.conf, and I assume the -march=amdfam10 got in there due to --cpu=host in the configure line.  I don't think this would cause any problems, but is this necessary?  Would just removing --cpu fix both the double "-march=" and the configure warning about --enable-proc-opt?
Comment 10 Doug Goldstein (RETIRED) gentoo-dev 2012-07-21 20:47:22 UTC
(In reply to comment #9)
> Builds and runs.  There are a few warnings shown, though:
> 
> 
> * QA Notice: USE Flag 'roap' not in IUSE for media-tv/mythtv-0.25.2_p20120716
> 
> I believe this is due to a roap-raop mismatch in the line:
>   use roap || myconf="${myconf} --disable-libdns-sd"
> which probably should be:
>   use raop || myconf="${myconf} --disable-libdns-sd"

Already fixed if you emerge --sync.

> 
> Also, from the configure stage:
> 
> Warning! --enable-proc-opt shouldn't be used with --arch, --cpu or --tune
> Disabling it now.

Already fixed if you emerge --sync.

> 
> For reference, this was my configure commandline:
> 
>  * Running ./configure --prefix=/usr --mandir=/usr/share/man
> --libdir-name=lib64 --enable-pic --disable-altivec --disable-audio-jack
> --disable-audio-pulseoutput --disable-dvb --enable-firewire --disable-lirc
> --enable-libxvid --dvb-path=/usr/include --enable-xrandr --enable-xv
> --enable-x11 --enable-nonfree --disable-libcec --disable-libdns-sd
> --enable-libmp3lame --enable-libx264 --enable-libvpx --enable-libfaac
> --without-bindings=perl,python --compile-type=profile --enable-proc-opt
> --enable-vdpau --enable-vaapi --disable-joystick-menu
> --enable-symbol-visibility --cpu=host --disable-distcc --disable-ccache
> 
> I noticed that the gcc params include both:
>   -march=native -march=amdfam10
> the -march=native is from my /etc/make.conf, and I assume the
> -march=amdfam10 got in there due to --cpu=host in the configure line.  I
> don't think this would cause any problems, but is this necessary?  Would
> just removing --cpu fix both the double "-march=" and the configure warning
> about --enable-proc-opt?

No because Gentoo allows people to build packages not for the current system used for building. The behavior is copied from ffmpeg's ebuild since MythTV copies ffmpeg's configure script and tweaks it.

This package is seriously the bane of my existence.

I'm inclined to leave it as is for the time being until I get motivated to try yet another workaround for their busted configure script. The original bug is fixed. Things work more correctly so its really good enough.
Comment 11 Myk Taylor 2012-07-22 05:47:53 UTC
built and tested on x86 and x86_64.  no errors or warnings.  thanks!