When libbluray tried to install after compiling, i got the Message, Package libbluray was not found in the pkg-config search path. Perhaps you should add the directory containing `libbluray.pc' to the PKG_CONFIG_PATH environment variable No package 'libbluray' found Reproducible: Always Steps to Reproduce: 1. emerge libbluray Actual Results: libtool: link: x86_64-pc-linux-gnu-gcc -std=c99 -D_ISOC99_SOURCE -D_POSIX_C_SOURCE=200112L -D_REENTRANT -Wall -Wdisabled-optimization -Wpointer-arith -Wredundant-decls -Wcast-qual -Wwrite-strings -Wtype-limits -Wundef -Wextra -Winline -O3 -fomit-frame-pointer -g -I../.. -I.. -I../file -I../libbluray/bdnav -I/opt/sun-jdk-1.6.0.24/include -I/opt/sun-jdk-1.6.0.24/include/linux -march=x86-64 -O2 -pipe -msse -msse2 -I/opt/sun-jdk-1.6.0.24/include -I/opt/sun-jdk-1.6.0.24/include/linux -Wl,-O1 -o .libs/hdmv_test hdmv_test.o -Wl,--as-needed ../../src/.libs/libbluray.so -L/usr/lib64 -L/usr/lib /usr/lib64/libxml2.so -licui18n -licuuc -licudata -ldl -lz -lm -lpthread x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I../.. -std=c99 -D_ISOC99_SOURCE -D_POSIX_C_SOURCE=200112L -D_REENTRANT -Wall -Wdisabled-optimization -Wpointer-arith -Wredundant-decls -Wcast-qual -Wwrite-strings -Wtype-limits -Wundef -Wextra -Winline -O3 -fomit-frame-pointer -g -I../.. -I.. -I../file -I../libbluray/bdnav -I/opt/sun-jdk-1.6.0.24/include -I/opt/sun-jdk-1.6.0.24/include/linux -march=x86-64 -O2 -pipe -msse -msse2 -I/opt/sun-jdk-1.6.0.24/include -I/opt/sun-jdk-1.6.0.24/include/linux -c bdj_test.c /bin/sh ../../libtool --tag=CC --mode=link x86_64-pc-linux-gnu-gcc -std=c99 -D_ISOC99_SOURCE -D_POSIX_C_SOURCE=200112L -D_REENTRANT -Wall -Wdisabled-optimization -Wpointer-arith -Wredundant-decls -Wcast-qual -Wwrite-strings -Wtype-limits -Wundef -Wextra -Winline -O3 -fomit-frame-pointer -g -I../.. -I.. -I../file -I../libbluray/bdnav -I/opt/sun-jdk-1.6.0.24/include -I/opt/sun-jdk-1.6.0.24/include/linux -march=x86-64 -O2 -pipe -msse -msse2 -I/opt/sun-jdk-1.6.0.24/include -I/opt/sun-jdk-1.6.0.24/include/linux -Wl,-O1 -Wl,--as-needed -o bdj_test bdj_test.o ../../src/libbluray.la -lpthread libtool: link: x86_64-pc-linux-gnu-gcc -std=c99 -D_ISOC99_SOURCE -D_POSIX_C_SOURCE=200112L -D_REENTRANT -Wall -Wdisabled-optimization -Wpointer-arith -Wredundant-decls -Wcast-qual -Wwrite-strings -Wtype-limits -Wundef -Wextra -Winline -O3 -fomit-frame-pointer -g -I../.. -I.. -I../file -I../libbluray/bdnav -I/opt/sun-jdk-1.6.0.24/include -I/opt/sun-jdk-1.6.0.24/include/linux -march=x86-64 -O2 -pipe -msse -msse2 -I/opt/sun-jdk-1.6.0.24/include -I/opt/sun-jdk-1.6.0.24/include/linux -Wl,-O1 -o .libs/bdj_test bdj_test.o -Wl,--as-needed ../../src/.libs/libbluray.so -L/usr/lib64 -L/usr/lib /usr/lib64/libxml2.so -licui18n -licuuc -licudata -ldl -lz -lm -lpthread make[3]: Leaving directory `/var/tmp/portage/media-libs/libbluray-0.0.1_pre20110210/work/libbluray-0.0.1_pre20110210/src/examples' make[2]: Leaving directory `/var/tmp/portage/media-libs/libbluray-0.0.1_pre20110210/work/libbluray-0.0.1_pre20110210/src' make[2]: Entering directory `/var/tmp/portage/media-libs/libbluray-0.0.1_pre20110210/work/libbluray-0.0.1_pre20110210' make[2]: Leaving directory `/var/tmp/portage/media-libs/libbluray-0.0.1_pre20110210/work/libbluray-0.0.1_pre20110210' make[1]: Leaving directory `/var/tmp/portage/media-libs/libbluray-0.0.1_pre20110210/work/libbluray-0.0.1_pre20110210' make -j1 Package libbluray was not found in the pkg-config search path. Perhaps you should add the directory containing `libbluray.pc' to the PKG_CONFIG_PATH environment variable No package 'libbluray' found cc -march=x86-64 -O2 -pipe -msse -msse2 -I/opt/sun-jdk-1.6.0.24/include -I/opt/sun-jdk-1.6.0.24/include/linux -O2 -fPIC -Wall -D_REENTRANT -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -c -o input_bluray.o input_bluray.c Package libbluray was not found in the pkg-config search path. Perhaps you should add the directory containing `libbluray.pc' to the PKG_CONFIG_PATH environment variable No package 'libbluray' found input_bluray.c:42:30: fatal error: libbluray/bluray.h: No such file or directory compilation terminated. make: *** [input_bluray.o] Error 1 * ERROR: media-libs/libbluray-0.0.1_pre20110210 failed (compile phase): * emake failed * * If you need support, post the output of 'emerge --info =media-libs/libbluray-0.0.1_pre20110210', * the complete build log and the output of 'emerge -pqv =media-libs/libbluray-0.0.1_pre20110210'. * The complete build log is located at '/var/tmp/portage/media-libs/libbluray-0.0.1_pre20110210/temp/build.log'. * The ebuild environment file is located at '/var/tmp/portage/media-libs/libbluray-0.0.1_pre20110210/temp/environment'. * S: '/var/tmp/portage/media-libs/libbluray-0.0.1_pre20110210/work/libbluray-0.0.1_pre20110210' emerge --info Portage 2.1.9.40 (default/linux/amd64/10.0/desktop/kde, gcc-4.5.2, glibc-2.13-r1, 2.6.37-gentoo x86_64) ================================================================= System uname: Linux-2.6.37-gentoo-x86_64-Dual-Core_AMD_Opteron-tm-_Processor_8216-with-gentoo-2.0.1 Timestamp of tree: Thu, 17 Feb 2011 10:30:01 +0000 app-shells/bash: 4.1_p9 dev-java/java-config: 2.1.11-r3 dev-lang/python: 2.7.1, 3.1.3 dev-util/cmake: 2.8.3-r1 sys-apps/baselayout: 2.0.1-r1 sys-apps/openrc: 0.7.0 sys-apps/sandbox: 2.5 sys-devel/autoconf: 2.13, 2.68 sys-devel/automake: 1.9.6-r3, 1.10.3, 1.11.1 sys-devel/binutils: 2.21 sys-devel/gcc: 4.5.2 sys-devel/gcc-config: 1.4.1 sys-devel/libtool: 2.4-r1 sys-devel/make: 3.82 virtual/os-headers: 2.6.36.1 (sys-kernel/linux-headers) ACCEPT_KEYWORDS="amd64 ~amd64" ACCEPT_LICENSE="*" CBUILD="x86_64-pc-linux-gnu" CFLAGS="-march=x86-64 -O2 -pipe -msse -msse2" CHOST="x86_64-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/share/config /usr/share/gnupg/qualified.txt" CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5.3/ext-active/ /etc/php/cgi-php5.3/ext-active/ /etc/php/cli-php5.3/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/splash /etc/terminfo" CXXFLAGS="-march=x86-64 -O2 -pipe -msse -msse2" DISTDIR="/usr/portage/distfiles" FEATURES="assume-digests binpkg-logs buildpkg distlocks fixlafiles fixpackages metadata-transfer news parallel-fetch protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch" FFLAGS="" GENTOO_MIRRORS="http://distfiles.gentoo.org" LDFLAGS="-Wl,-O1 -Wl,--as-needed" LINGUAS="de" MAKEOPTS="-j6" PKGDIR="/usr/portage/distfiles/pkg-files" 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" PORTDIR_OVERLAY="/var/lib/layman/rion" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="X a52 aac aalib acl acpi alsa amd64 apache2 apm berkdb bluray bootchart branding bzip2 cairo cdda cdparanoia cdr cleartype cli consolekit cpudetection cracklib crypt cups cxx dbus desktopglobe dri dts dvd dvdr emboss enca encode exif fam ffmpeg firefox flac fortran gdbm gdu gensplash gif glibc-omitfp glitz gpm gstreamer gtk hddtemp iconv imagemagick innodb java java6 javascript jpeg kde kdehiddenvisibility kdm kipi lame lcms libnotify lm_sensors lzma lzo mad matroska mikmod mmx mng modules mp3 mp4 mpeg mudflap multilib mysql ncurses nls nptl nptlonly nsplugin nspluginwrapper ogg openal opengl openmp optimisememory pam pango pcre pdf perl phonon php pic plasma png policykit ppds pppd python qt3support qt4 quicktime readline samba sdl semantic-desktop session spell sqlite sqlite3 sse sse2 ssl startup-notification suid svg sysfs tcpd threads truetype udev unicode usb userlocales vorbis wxwidgets x264 xcb xine xinetd xml xorg xscreensaver xulrunner xv xvid zip zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci 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 authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user deflate autoindex dir env expires ext_filter filter headers include info log_config logio mime mime_magic negotation rewrite site status unique_id usertrack vhost_alias dav" APACHE2_MPMS="worker" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" 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 ubx" INPUT_DEVICES="evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="de" PHP_TARGETS="php5-3" QEMU_SOFTMMU_TARGETS="i386 x86_64" QEMU_USER_TARGETS="i386 x86_64" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="vesa nv nvidia vmware" 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" Unset: CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Attach full build log.
Created attachment 262901 [details] build.log
OK, it's xine useflag, that breaks it: that Makefile uses pkg-config to locate the lib before the lib gets installed. For the moment, it's only noticeable when libbluray isn't installed yet.
Can't we make the xine part a separate package, e.g. libbluray-xine? That should solve the issue at hand, and also have another benefit: It would make xine[bluray] depend on a package instead of a USE flag. As long as we don't have a fix for bug #256519 in portage, that would be a major win. Looking at the ebuild, the build process for the xine player wrapper seems th be quite separate from the lest of libbluray. So making it two ebuilds based on the same source tarball should be easy enough. If you want, I can write those ebuilds.
(In reply to comment #3) > For the moment, it's only noticeable when libbluray isn't installed yet. Funny. So how anybody got libbluray installed as it doesn't compile if it is not installed yet?!? Interestingly when I run make in the work directory it resumes and finishes compilation without any further errors. A make clean; make is also finishing without errors. So why is this error triggered when emerging but not when compiling "normally"?
(In reply to comment #5) > Funny. So how anybody got libbluray installed as it doesn't compile if it is > not installed yet?!? USE=-xine emerge libbluray && USE=xine emerge libbluray > Interestingly when I run make in the work directory it resumes and finishes > compilation without any further errors. A make clean; make is also finishing > without errors. So why is this error triggered when emerging but not when > compiling "normally"? Because what fails is the make in the player_wrappers/xine subdirectory, not the one in the main directory. That subdir doesn't seem to get included in "normal" builds.
Created attachment 265133 [details] libbluray-xine-0.0.1_pre20110210.ebuild This is my proposal for a stand-alone libbluray-xine package.
Created attachment 265135 [details] libbluray-0.0.1_pre20110210-r1.ebuild This revbump skips the xine plugin installation but PDEPENDS on that other ebuild instead. The revbump is necessary for the DEPEND from libbluray-xine. The ebuild also fixes the DOCS variable, which has to be an arry in order to work as intended.
Created attachment 265137 [details, diff] Diff ebuilds against original This diff shows what I changes in the new ebuilds with respect to the original.
*** Bug 369831 has been marked as a duplicate of this bug. ***
(In reply to comment #8) > The ebuild also fixes the DOCS variable, which has to be an array in order to > work as intended. Strings still work since they're the last case in the conditional statement (check pms or portage code), but I'll move it to an array.
Fixed in the latest revision in CVS.