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
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.
I can confirm this too. After I commented the line in ebuild, it was built succesfully.
And I can confirm this as well.
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'
I've removed the quotes. Let's hope that works.
(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".
Note that those LDFLAGS are from default/linux/make.defaults.
I believe this is now resolved. Please confirm and let me know if you get QA messages other than python_convert_shebangs.
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?
(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.
built and tested on x86 and x86_64. no errors or warnings. thanks!