Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 497924 - media-libs/phonon-vlc-0.7.1, cmake picks up wrong directory
Summary: media-libs/phonon-vlc-0.7.1, cmake picks up wrong directory
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] KDE (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo KDE team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-01-12 18:46 UTC by Lukasz Ligowski
Modified: 2014-01-13 03:30 UTC (History)
0 users

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 Lukasz Ligowski 2014-01-12 18:46:21 UTC
cmake is looking for a file /usr/local/share/phonon/buildsystem//FindPhononInternal.cmake

which is actually in /usr/share/phonon/buildsystem

I'm not sure if this is correct but file /usr/local/lib64/cmake/phonon/PhononConfig.cmake
 
contains this line
get_filename_component(rootDir ${currentDir}/../../.. ABSOLUTE) # get the chosen install prefix

as this file is read throuhg /usr/local/lib64 rootDir is sed to /usr/local and not /usr




Reproducible: Always

Steps to Reproduce:
1. emerge phonon-vlc-0.7.1
2. fail
Actual Results:  
>>> Emerging (1 of 1) media-libs/phonon-vlc-0.7.1
 * phonon-backend-vlc-0.7.1.tar.xz SHA256 SHA512 WHIRLPOOL size ;-) ...                                                                                                                                                                                                 [ ok ]
>>> Unpacking source...
>>> Unpacking phonon-backend-vlc-0.7.1.tar.xz to /var/tmp/portage/media-libs/phonon-vlc-0.7.1/work
>>> Source unpacked in /var/tmp/portage/media-libs/phonon-vlc-0.7.1/work
>>> Preparing source in /var/tmp/portage/media-libs/phonon-vlc-0.7.1/work/phonon-backend-vlc-0.7.1 ...
>>> Source prepared.
>>> Configuring source in /var/tmp/portage/media-libs/phonon-vlc-0.7.1/work/phonon-backend-vlc-0.7.1 ...
 * qt4: running myconfigure
>>> Working in BUILD_DIR: "/var/tmp/portage/media-libs/phonon-vlc-0.7.1/work/phonon-backend-vlc-0.7.1-qt4"
cmake --no-warn-unused-cli -C /var/tmp/portage/media-libs/phonon-vlc-0.7.1/work/phonon-backend-vlc-0.7.1-qt4/gentoo_common_config.cmake -G Unix Makefiles -DCMAKE_INSTALL_PREFIX=/usr -DPHONON_BUILD_PHONON4QT5=OFF -DCMAKE_BUILD_TYPE=Gentoo -DCMAKE_INSTALL_DO_STRIP=OFF -DCMAKE_USER_MAKE_RULES_OVERRIDE=/var/tmp/portage/media-libs/phonon-vlc-0.7.1/work/phonon-backend-vlc-0.7.1-qt4/gentoo_rules.cmake  /var/tmp/portage/media-libs/phonon-vlc-0.7.1/work/phonon-backend-vlc-0.7.1
Not searching for unused variables given on the command line.
loading initial cache file /var/tmp/portage/media-libs/phonon-vlc-0.7.1/work/phonon-backend-vlc-0.7.1-qt4/gentoo_common_config.cmake
-- The C compiler identification is GNU 4.7.2
-- The CXX compiler identification is GNU 4.7.2
-- Check for working C compiler: /usr/bin/x86_64-pc-linux-gnu-gcc
-- Check for working C compiler: /usr/bin/x86_64-pc-linux-gnu-gcc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/x86_64-pc-linux-gnu-g++
-- Check for working CXX compiler: /usr/bin/x86_64-pc-linux-gnu-g++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
CMake Error at cmake/FindPhonon.cmake:23 (include):
  include could not find load file:

    /usr/local/share/phonon/buildsystem//FindPhononInternal.cmake
Call Stack (most recent call first):
  CMakeLists.txt:7 (find_package)


-- Found Phonon: /usr/local/lib/cmake/phonon  
CMake Error at CMakeLists.txt:8 (macro_ensure_version):
  Unknown CMake command "macro_ensure_version".


-- Configuring incomplete, errors occurred!
 * ERROR: media-libs/phonon-vlc-0.7.1::gentoo failed (configure phase):
 *   cmake failed


Expected Results:  
build successfull

Portage 2.2.8 (default/linux/amd64/13.0/desktop/kde, gcc-4.7.2, glibc-2.17, 3.11.4-gentoo x86_64)
=================================================================
System uname: Linux-3.11.4-gentoo-x86_64-Intel-R-_Core-TM-_i5-3570K_CPU_@_3.40GHz-with-gentoo-2.2
KiB Mem:    16373792 total,  11213200 free
KiB Swap:          0 total,         0 free
Timestamp of tree: Sun, 12 Jan 2014 17:30:01 +0000
ld GNU ld (GNU Binutils) 2.23.2
app-shells/bash:          4.2_p45
dev-java/java-config:     2.1.12-r1
dev-lang/python:          2.7.6, 3.2.5-r3, 3.3.3
dev-util/cmake:           2.8.11.2
dev-util/pkgconfig:       0.28
sys-apps/baselayout:      2.2
sys-apps/openrc:          0.12.4
sys-apps/sandbox:         2.6-r1
sys-devel/autoconf:       2.13, 2.69
sys-devel/automake:       1.11.6, 1.12.6, 1.13.4
sys-devel/binutils:       2.23.2
sys-devel/gcc:            4.7.2-r1, 4.8.2-r1
sys-devel/gcc-config:     1.7.3
sys-devel/libtool:        2.4.2
sys-devel/make:           3.82-r4
sys-kernel/linux-headers: 3.9 (virtual/os-headers)
sys-libs/glibc:           2.17
Repositories: gentoo
Installed sets: @browsers, @database, @development/code, @development/debug, @development/games, @development/hardware, @development/haskell, @development/hpc, @development/ide, @development/lib, @development/llvm, @development/profiling, @development/python/libs, @development/python/pypy, @development/python/sci, @development/science/misc, @development/util, @development/vcs, @development/web, @games, @kde/all, @kde/kdelibs, @kde/kdeutils, @kde/misc, @mail, @multimedia/design, @multimedia/sound, @multimedia/video, @office/burner, @office/editing, @office/graphics, @office/misc, @office/reading, @office/tex, @system/base, @system/compression, @system/drivers, @system/fonts, @system/gentoo, @system/network, @system/qt, @system/util, @system/vim, @system/windows, @util
ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="* -@EULA dlj-1.1 AdobeFlash-10.3 Google-TOS Oracle-BCLA-JavaSE AdobeFlash-11.x"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -pipe -march=native"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/lib64/python2.7/site-packages/buildbot/status/web /usr/share/config /usr/share/gnupg/qualified.txt /usr/share/polkit-1/actions /var/lib/hsqldb"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5.5/ext-active/ /etc/php/cgi-php5.5/ext-active/ /etc/php/cli-php5.5/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"
CXXFLAGS="-O2 -pipe -march=native"
DISTDIR="/usr/portage/distfiles"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs candy config-protect-if-modified distlocks downgrade-backup ebuild-locks fixlafiles merge-sync news parallel-fetch preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j5"
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"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY=""
USE="X a52 aac acl acpi alsa amd64 avahi bash-completion bluetooth branding bzip2 cairo cdda cddb cdr cli consolekit cracklib crypt cscope cups cxx dbus declarative djvu dri dts dvd dvdr emboss encode exif fam firefox flac fortran freetype gdbm gif iconv idn imagemagick ipv6 jpeg kde kipi lcms ldap libnotify lzma mad md5sum mime mmx mng modules mp3 mp4 mpeg mudflap multilib ncurses nls nptl ogg opengl openmp pam pango pcre pdf phonon plasma png policykit posix ppds python qt4 readline semantic-desktop session spell sse sse2 ssl startup-notification svg tcpd tetex threads tiff truetype udev udisks unicode upower usb userlocales vim-syntax vorbis wxwidgets x264 xattr xcb xcomposite xinerama xml xscreensaver xv xvid zeroconf zlib" ABI_X86="64" 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" 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="canon" 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 ublox ubx" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="en pl" NGINX_MODULES_HTTP="access auth_basic autoindex browser charset empty_gif fastcgi geo gzip limit_req limit_zone map memcached proxy referer rewrite scgi split_clients ssi upstream_ip_hash userid uwsgi dav" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-5" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_2" RUBY_TARGETS="ruby19 ruby18" SANE_BACKENDS="epson epson2" 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 3.2"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, SYNC
Comment 1 Michael Palimaka (kensington) gentoo-dev 2014-01-12 23:40:43 UTC
(In reply to Lukasz Ligowski from comment #0)
> I'm not sure if this is correct but file
> /usr/local/lib64/cmake/phonon/PhononConfig.cmake
>  
> contains this line
> get_filename_component(rootDir ${currentDir}/../../.. ABSOLUTE) # get the
> chosen install prefix

> -- Found Phonon: /usr/local/lib/cmake/phonon

Did you install a local copy of phonon at one time? It's strange to see those files there. (If you didn't put it there, you can use 'equery b filename' to check if it was installed by a package.)
Comment 2 Lukasz Ligowski 2014-01-13 01:42:36 UTC
I get this:

monolith ~ # equery b /usr/local/lib/cmake/phonon
 * Searching for /usr/local/lib/cmake/phonon ... 
media-libs/phonon-4.7.1 (/usr/lib64/cmake/phonon)

It looks like /usr/local/lib is symlinked to /usr/lib. Is this correct?

monolith local # pwd
/usr/local
monolith local # ls -l
total 8
drwxr-xr-x 1 root root 26 Mar 30  2013 bin
drwxr-xr-x 1 root root  0 Sep 23  2012 distfiles
lrwxrwxrwx 1 root root  8 Mar 26  2013 lib -> ../lib64
lrwxrwxrwx 1 root root  3 Mar 26  2013 lib64 -> lib
drwxr-xr-x 1 root root 10 Jun 20  2012 sbin
drwxr-xr-x 1 root root 10 Aug 17 13:05 share
Comment 3 Michael Palimaka (kensington) gentoo-dev 2014-01-13 01:45:45 UTC
(In reply to Lukasz Ligowski from comment #2)
> It looks like /usr/local/lib is symlinked to /usr/lib. Is this correct?
> 
> monolith local # pwd
> /usr/local
> monolith local # ls -l
> total 8
> drwxr-xr-x 1 root root 26 Mar 30  2013 bin
> drwxr-xr-x 1 root root  0 Sep 23  2012 distfiles
> lrwxrwxrwx 1 root root  8 Mar 26  2013 lib -> ../lib64
> lrwxrwxrwx 1 root root  3 Mar 26  2013 lib64 -> lib
> drwxr-xr-x 1 root root 10 Jun 20  2012 sbin
> drwxr-xr-x 1 root root 10 Aug 17 13:05 share

That looks strange, here's what mine looks like:

# ls -l /usr/local/
total 16
drwxr-xr-x 2 root root 4096 Mar 21  2013 bin
lrwxrwxrwx 1 root root    5 Apr  4  2013 lib -> lib64
drwxr-xr-x 2 root root 4096 Mar 21  2013 lib64
drwxr-xr-x 5 root root 4096 Sep 21 14:13 portage
drwxr-xr-x 2 root root 4096 Mar 21  2013 sbin

I suspect that strange symlink is the cause of the issues.
Comment 4 Lukasz Ligowski 2014-01-13 03:30:02 UTC
You are right. Closing. 

Thanks!