Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 549162

Summary: media-libs/libbluray-0.8.0 emerge failed
Product: Gentoo Linux Reporter: email200202
Component: [OLD] LibraryAssignee: Gentoo Linux bug wranglers <bug-wranglers>
Status: RESOLVED DUPLICATE    
Severity: normal CC: Adrian.Bassett
Priority: Normal    
Version: unspecified   
Hardware: x86   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description email200202 2015-05-11 09:30:33 UTC
media-libs/libbluray-0.8.0 emerge failed

Reproducible: Always

Steps to Reproduce:
1. emerge -av1 =media-libs/libbluray-0.8.0

Actual Results:  
>>> Unpacking source... 
>>> Unpacking libbluray-0.8.0.tar.bz2 to /var/tmp/portage/media-libs/libbluray-0.8.0/work 
>>> Source unpacked in /var/tmp/portage/media-libs/libbluray-0.8.0/work 
>>> Preparing source in /var/tmp/portage/media-libs/libbluray-0.8.0/work/libbluray-0.8.0 ... 
sed: can't read src/Makefile.am: No such file or directory 
 * ERROR: media-libs/libbluray-0.8.0::gentoo failed (prepare phase): 
 *   (no error message) 
 * 
 * Call stack: 
 *     ebuild.sh, line  93:  Called src_prepare 
 *   environment, line 5140:  Called die 
 * The specific snippet of code: 
 *           sed -i '/^jar_DATA/d' src/Makefile.am || die; 


Expected Results:  
emerge will not fail.

GENTOO_VM=icedtea-bin-7  CLASSPATH="" JAVA_HOME="/opt/icedtea-bin-7.2.5.5" 
JAVACFLAGS="-source 1.6 -target 1.6" COMPILER="" 

# emerge --info =libbluray-0.8.0 
Portage 2.2.18 (python 2.7.9-final-0, default/linux/x86/13.0/desktop, gcc-4.9.2, glibc-2.20-r2, 4.0.2-gentoo i686) 
================================================================= 
                         System Settings 
================================================================= 
System uname: Linux-4.0.2-gentoo-i686-Intel-R-_Core-TM-2_Quad_CPU_Q9450_@_2.66GHz-with-gentoo-2.2 
KiB Mem:     3498636 total,    638008 free 
KiB Swap:    8388604 total,   8346944 free 
Timestamp of repository gentoo: Mon, 11 May 2015 08:00:01 +0000 
sh bash 4.3_p33-r2 
ld GNU ld (Gentoo 2.25 p1.0) 2.25 
distcc 3.2rc1 i686-pc-linux-gnu [disabled] 
ccache version 3.2.2 [disabled] 
app-shells/bash:          4.3_p33-r2::gentoo 
dev-java/java-config:     2.2.0::gentoo 
dev-lang/perl:            5.20.2-r1::gentoo 
dev-lang/python:          2.7.9-r2::gentoo, 3.4.3::gentoo 
dev-util/ccache:          3.2.2::gentoo 
dev-util/cmake:           3.2.2::gentoo 
dev-util/pkgconfig:       0.28-r2::gentoo 
sys-apps/baselayout:      2.2::gentoo 
sys-apps/openrc:          0.15.1::gentoo 
sys-apps/sandbox:         2.6-r1::gentoo 
sys-devel/autoconf:       2.13::gentoo, 2.69-r1::gentoo 
sys-devel/automake:       1.11.6-r1::gentoo, 1.13.4::gentoo, 1.14.1::gentoo, 1.15::gentoo 
sys-devel/binutils:       2.25::gentoo 
sys-devel/gcc:            4.9.2::gentoo 
sys-devel/gcc-config:     1.8::gentoo 
sys-devel/libtool:        2.4.6-r1::gentoo 
sys-devel/make:           4.1-r1::gentoo 
sys-kernel/linux-headers: 4.0::gentoo (virtual/os-headers) 
sys-libs/glibc:           2.20-r2::gentoo 
Repositories: 

gentoo 
    location: /usr/portage 
    sync-type: rsync 
    sync-uri: rsync://rsync.gentoo.org/gentoo-portage 
    priority: -1000 

x-portage 
    location: /usr/local/portage 
    masters: gentoo 
    priority: 0 

sage-on-gentoo 
    location: /var/lib/layman/sage-on-gentoo 
    masters: gentoo 
    priority: 50 

Installed sets: @system 
ACCEPT_KEYWORDS="x86 ~x86" 
ACCEPT_LICENSE="* PUEL" 
CBUILD="i686-pc-linux-gnu" 
CFLAGS="-march=prescott -O2 -pipe" 
CHOST="i686-pc-linux-gnu" 
CONFIG_PROTECT="/etc /usr/lib/libreoffice/program/sofficerc /usr/share/config /usr/share/gnupg/qualified.txt" 
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /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" 
CXXFLAGS="-march=prescott -O2 -pipe" 
DISTDIR="/usr/portage/distfiles" 
EMERGE_DEFAULT_OPTS="--quiet-build=n --with-bdeps=y" 
FCFLAGS="-O2 -march=i686 -pipe" 
FEATURES="assume-digests binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync news preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync" 
FFLAGS="-O2 -march=i686 -pipe" 
GENTOO_MIRRORS="http://distfiles.gentoo.org" 
LANG="en_US.UTF-8" 
LC_ALL="en_US.UTF-8" 
LDFLAGS="-Wl,-O1 -Wl,--as-needed" 
MAKEOPTS="-j5 -s " 
PKGDIR="/usr/portage/packages" 
PORTAGE_CONFIGROOT="/" 
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages" 
PORTAGE_TMPDIR="/var/tmp" 
USE="X a52 aac aacs aalib acl acpi alsa asf berkdb bidi bluetooth bluray branding bzip2 cairo cdda cdio cdr cli consolekit cracklib crypt cups cxx dbus declarative directfb dri dts dv dvb dvd dvdr dvi emboss enca encode exif extensions extras faac faad fam fbcon ffmpeg firefox flac fontconfig fortran gcj gdbm gif glamor gpm graphviz gstreamer gtk gtk2 httpd iconv icu imagemagick imlib ipod java jpeg jpeg2k kde lcms ldap libcaca libmpeg2 libnotify live lua lzo mad matroska mjpeg mng modplug modules mp3 mp4 mpeg multislot mysql ncurses nls nptl ogg opengl openmp pam pango pcre pdf png policykit postproc ppds profile qt3support qt4 quicktime readline rtc rtmp samba scanner script sdl session speex spell sql sqlite ssl startup-notification subversion svg svga tcpd theora threads tiff toolame truetype twolame udev udisks unicode upower usb v4l vcd vidix vlm vorbis webkit wxwidgets x264 x86 xanim xcb xine xinerama xml xv xvid xvmc zlib" ABI_X86="32" ALSA_CARDS="intel8x0" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="kexi words flow plan sheets stage tables krita karbon braindump author" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="mmx mmxext sse sse2 sse3 sse4_1 ssse3" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ublox ubx" INPUT_DEVICES="evdev keyboard mouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="en ar" LIRC_DEVICES="all" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-5" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_4" QEMU_SOFTMMU_TARGETS="i386" QEMU_USER_TARGETS="arm" RUBY_TARGETS="ruby19 ruby20" USERLAND="GNU" VIDEO_CARDS="nvidia" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account" 
USE_PYTHON="2.7" 
Unset:  CPPFLAGS, CTARGET, INSTALL_MASK, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 email200202 2015-05-11 09:31:34 UTC
I fixed the path for the Makefile.am in the ebuild file is fixed. 

vi /usr/portage/media-libs/libbluray/libbluray-0.8.0.ebuild 
       #sed -i '/^jar_DATA/d' src/Makefile.am || die 
        sed -i '/^jar_DATA/d' Makefile.am 


The package compiles but it fails during the install phase. 

libtool: warning: remember to run 'libtool --finish /usr/lib' 
Java QA Notice: installing versioned jar 'libbluray-j2se-0.8.0.jar' 
 * ERROR: media-libs/libbluray-0.8.0::gentoo failed (install phase): 
 *   /var/tmp/portage/media-libs/libbluray-0.8.0/work/libbluray-0.8.0-abi_x86_32.x86/src/.libs/libbluray-j2se-0.8.0.jar does not exist
Comment 2 email200202 2015-05-11 09:32:13 UTC
Again removing "src" from the path of the jar file fixed the problem and the package installed. 

# vi /usr/portage/media-libs/libbluray/libbluray-0.8.0.ebuild 
       #java-pkg_dojar "${BUILD_DIR}"/src/.libs/${PN}-j2se-${PV}.jar 
        java-pkg_dojar "${BUILD_DIR}"/.libs/${PN}-j2se-${PV}.jar
Comment 3 Rafał Mużyło 2015-05-11 19:17:30 UTC

*** This bug has been marked as a duplicate of bug 549160 ***