Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 299173 - media-video/acidrip-0.14-r1 test for MPlayer: sh: line 1: 3664 Segmentation fault
Summary: media-video/acidrip-0.14-r1 test for MPlayer: sh: line 1: 3664 Segmentation ...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Gentoo Media-video project
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-01-01 03:18 UTC by Don Bishop
Modified: 2015-01-06 18:44 UTC (History)
3 users (show)

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


Attachments
elog output from most recend build attempt (media-video:acidrip-0.14-r1:20100101-031325.log,998 bytes, text/plain)
2010-01-01 03:20 UTC, Don Bishop
Details
new ebuild based on acidrip-0.14-r2.ebuild with this bug solution (acidrip-0.14-r3.ebuild,641 bytes, text/plain)
2010-02-15 23:14 UTC, Hack_leberry Finn
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Don Bishop 2010-01-01 03:18:33 UTC
When emerging acidrip-0.14-r1 it fails when it checks for mplayer.  This happened first on an emerge -e world, but now it's repeatable always.  acidrip is installed, runs and works, but now won't recompile.  mplayer is installed and works (and recompiled). finds lsdvd just fine (test for lsdvd: found)
zit ~ # which mplayer
/usr/bin/mplayer

Reproducible: Always

Steps to Reproduce:
1.emerge -v acidrip
2.
3.

Actual Results:  
Running additional test to be sure acidrip will work
test for lsdvd: found
test for MPlayer: sh: line 1:  4170 Segmentation fault      mplayer 2 &>1 > /dev/null
Not Found!


Expected Results:  
it should have found mplayer -- it's installed and works:

zit ~ # which mplayer
/usr/bin/mplayer


zit ~ # emerge --info
Portage 2.1.6.13 (default/linux/x86/10.0, gcc-4.3.4, glibc-2.11-r0, 2.6.30-gentoo-r8 i686)
=================================================================
System uname: Linux-2.6.30-gentoo-r8-i686-Intel-R-_Core-TM-2_Quad_CPU_Q9400_@_2.66GHz-with-gentoo-1.12.13
Timestamp of tree: Fri, 25 Dec 2009 23:30:01 +0000
ccache version 2.4 [enabled]
app-shells/bash:     4.0_p35
dev-java/java-config: 1.3.7-r1, 2.1.9-r2
dev-lang/python:     2.4.6, 2.5.4-r3, 2.6.4
dev-python/pycrypto: 2.1.0_beta1
dev-util/ccache:     2.4-r7
dev-util/cmake:      2.6.4-r3
sys-apps/baselayout: 1.12.13
sys-apps/sandbox:    1.6-r2
sys-devel/autoconf:  2.13, 2.63-r1
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10.2
sys-devel/binutils:  2.20
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   2.2.6b
virtual/os-headers:  2.6.27-r2
ACCEPT_KEYWORDS="x86"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-march=prescott -O2 -pipe -funroll-loops -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/X11/xkb /var/lib/hsqldb"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c /etc/udev/rules.d"
CXXFLAGS="-march=prescott -O2 -pipe -funroll-loops -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="ccache distlocks fixpackages parallel-fetch protect-owned sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo"
LDFLAGS="-Wl,-O1"
LINGUAS="en_US"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://kreiger.bish0p.org/gentoo-portage"
USE="3dnow 3dnowex X a52 aac acl alsa apache2 bash-completion berkdb binary-drivers brasero bzip2 cairo cli consolekit cracklib crypt cups cxx dbus deprecated device-mapper discouraged dri dv dvd dvdr dvdread dvi encode escreen esd etwin evo evolution exif fam fame fbcon ffmpeg firefox flac fortran fpx gb gd gdbm gif gimp gimpprint gkrellm glade glibc-omitfp gnome gnomedb gpm grammar gs gtk gtkhtml gzip hal iconv imagemagick imlib2 inherit-graph ipv6 java jbig joystick jpeg jpeg2k kpathsea ladspa libclamav libnotify libsamplerate logrotate lzw madwifi mjpeg mmx modules mp2 mp3 mpd mpeg mpeg2 mpeg4 mplayer mppe-mppc mudflap multiuser mysql mysqli mythtv ncurses net nfs nptl nptlonly nsplugin nvidia odbc ogg openal opengl openmp openssl opensslcrypt pam pcap pcapnav pcre pdf pdfkit perfprofiling perl player png ppds pppd python qt3 qt3support qt4 readline reflection reiser4 reiserfs samba session shorten sndfile sourceview sox spl sse ssl svg sysfs syslog tcpd tga theora tiff tk transcode truetype unicode v4l2 valgrind vhosts vim-pager vim-syntax vorbis wav wifi win32codecs winbind wireshark wma wxgtk1 wxwindows x86 xine xinerama xml xmlreader xmlrpc xmlwriter xorg xpm xrandr xv xvid xvmc zip zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1 emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic auth_digest authn_anon authn_dbd authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock dbd deflate dir disk_cache env expires ext_filter file_cache filter headers ident imagemap include info log_config logio mem_cache mime mime_magic negotiation proxy proxy_ajp proxy_balancer proxy_connect proxy_http rewrite setenvif so speling status unique_id userdir usertrack vhost_alias" ELIBC="glibc" INPUT_DEVICES="evdev keyboard mouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en_US" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="nvidia fbdev vesa"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LANG, LC_ALL, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY
Comment 1 Don Bishop 2010-01-01 03:20:31 UTC
Created attachment 214816 [details]
elog output from most recend build attempt
Comment 2 Hack_leberry Finn 2010-02-15 11:58:45 UTC
The same problem with acidrip-0.14-r2 rebuild after update tu mplayer-1.0_rc4_p20100213. This test doesn't set any variable so it is obsolete when media-video/mplayer is set in dependences.
Comment 3 Hack_leberry Finn 2010-02-15 23:14:02 UTC
Created attachment 219831 [details]
new ebuild based on acidrip-0.14-r2.ebuild with this bug solution

As I said, tesing presence of mplayer, is obsolete when mplayer is in dependences. Solution is to delete test lines from makefile, by comand: 
sed -i '58,62d' ${S}/Makefile.PL
Comment 4 Don Bishop 2010-09-26 14:47:38 UTC
For those that have this problem, this can be a very frustrating bug.  I have several gentoo machines, and the mainstream ebuild works fine on all of them except the one I want it to work on!  It's the same machine I reported on above. I have gone to extraordinary measures to figure out what is different between these various machines, but I cannot find the issue: deleted all directories and files associated with acidrip, elogs, temp directories, you name it.  I have changed use flags, done emerge -e world more times than you can count, and I can even get a successful return from the Makefile.PL script that performs the test -- it only fails when run from the ebuild environment.

ANYWAY...The sed patch proposed by Hack_leberry Finn works perfectly.  I was hoping that the maintainer would fix the ebuild officially, but so far, no joy.

Until then, anyone wanting to work around this may choose to do what I finally did:  Create a portage overlay, and put your own acidrip-0.14-r3.ebuild in there.  It's pretty easy:

1. Edit your /etc/make.conf file and uncomment this line: PORTDIR_OVERLAY=/usr/local/portage
2. mkdir -p /usr/local/portage/media-video/acidrip/files
3. cd /usr/portage/media-video/acidrip
4. cp /usr/portage/media-video/acidrip/files/acidrip-mplayer.patch files/
5. cp /usr/portage/media-video/acidrip/acidrip-0.14-r2.ebuild ./acidrip-0.14-r3.ebuild
6. edit the acidrip-0.14-r3.ebuild: Change EAPI="2" to EAPI=3 and add the line sed -i '58,62d' ${S}/Makefile.PL just after the epatch "${FILESDIR}/${PN}-mplayer.patch" line  (this is essentially Hack_leberry Finn's fix)
7. ebuild acidrip-0.14-r3.ebuild digest
8. emerge -uvDN acidrip

You will likely get a message from portage mentioning that it will use [1] /usr/local/portage -- which is what you want

It should emerge just fine.

Comment 5 Don Bishop 2010-09-26 15:04:25 UTC
[red face]  Don't change EAPI to "3" in my step 6 above (comment #4).  While it should work okay, it's not correct, so better to leave it as EAPI="2".  Sorry for the misstep.
Comment 6 Steve Dibb (RETIRED) gentoo-dev 2014-08-22 15:50:04 UTC
Removed the dependency checks from the Makefile completely.

Thanks for the bug report, and patch!

Fixed in CVS.