Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 503036 - x11-misc/slim-1.3.6-r3 should depend on x11-libs/libXrandr - CMake Error: The following variables are used in this project, but they are set to NOTFOUND. ... X11_Xrandr_INCLUDE_PATH (ADVANCED) X11_Xrandr_LIB (ADVANCED)
Summary: x11-misc/slim-1.3.6-r3 should depend on x11-libs/libXrandr - CMake Error: The...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Ian Stakenvicius (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-02-28 11:17 UTC by Anders Larsson
Modified: 2014-02-28 15:52 UTC (History)
1 user (show)

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


Attachments
Build log (build.log,5.92 KB, text/plain)
2014-02-28 11:17 UTC, Anders Larsson
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Anders Larsson 2014-02-28 11:17:48 UTC
Created attachment 371424 [details]
Build log

Emerging x11-misc/slim-1.3.6-r3 fails during configuration phase if x11-libs/libXrandr is not present. x11-libs/libXrandr is not pulled in as a dependency.

Steps to reproduce (with x11-libs/libXrandr not present):
emerge x11-misc/slim -atv

Actual result:
>>> Emerging (1 of 1) x11-misc/slim-1.3.6-r3
>>> Failed to emerge x11-misc/slim-1.3.6-r3, Log file:
>>>  '/var/tmp/portage/x11-misc/slim-1.3.6-r3/temp/build.log'
>>> Jobs: 0 of 1 complete, 1 failed               Load avg: 0.27, 0.22, 0.92
 * Package:    x11-misc/slim-1.3.6-r3
 * Repository: gentoo
 * Maintainer: axs@gentoo.org desktop-misc@gentoo.org
 * USE:        amd64 elibc_glibc kernel_linux pam userland_GNU
 * FEATURES:   preserve-libs sandbox userpriv usersandbox
>>> Unpacking source...
>>> Unpacking slim-1.3.6.tar.gz to /var/tmp/portage/x11-misc/slim-1.3.6-r3/work
>>> Source unpacked in /var/tmp/portage/x11-misc/slim-1.3.6-r3/work
>>> Preparing source in /var/tmp/portage/x11-misc/slim-1.3.6-r3/work/slim-1.3.6 ...
 * Applying slim-1.3.6-config.diff ...
 [ ok ]
 * Applying slim-1.3.5-arm.patch ...
 [ ok ]
 * Applying slim-1.3.6-honour-cflags.patch ...
 [ ok ]
 * Applying slim-1.3.6-libslim-cmake-fixes.patch ...
 [ ok ]
 * Applying slim-1.3.5-disable-ck-for-systemd.patch ...
 [ ok ]
 * Applying slim-1.3.6-strip-systemd-unit-install.patch ...
 [ ok ]
 * Applying slim-1.3.6-systemd-session.patch ...
 [ ok ]
 * Applying slim-1.3.6-session-chooser.patch ...
 [ ok ]
 * Applying slim-1.3.6-fix-slimlock-nopam.patch ...
 [ ok ]
>>> Source prepared.
>>> Configuring source in /var/tmp/portage/x11-misc/slim-1.3.6-r3/work/slim-1.3.6 ...
>>> Working in BUILD_DIR: "/var/tmp/portage/x11-misc/slim-1.3.6-r3/work/slim-1.3.6_build"
cmake --no-warn-unused-cli -C /var/tmp/portage/x11-misc/slim-1.3.6-r3/work/slim-1.3.6_build/gentoo_common_config.cmake -G Unix Makefiles -DCMAKE_INSTALL_PREFIX=/usr -DUSE_PAM=ON -DUSE_CONSOLEKIT=OFF -DCMAKE_BUILD_TYPE=Gentoo -DCMAKE_INSTALL_DO_STRIP=OFF -DCMAKE_USER_MAKE_RULES_OVERRIDE=/var/tmp/portage/x11-misc/slim-1.3.6-r3/work/slim-1.3.6_build/gentoo_rules.cmake  /var/tmp/portage/x11-misc/slim-1.3.6-r3/work/slim-1.3.6
Not searching for unused variables given on the command line.
loading initial cache file /var/tmp/portage/x11-misc/slim-1.3.6-r3/work/slim-1.3.6_build/gentoo_common_config.cmake
-- The C compiler identification is GNU 4.7.3
-- The CXX compiler identification is GNU 4.7.3
-- 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
-- Enable shared library building
-- Looking for XOpenDisplay in /usr/lib64/libX11.so;/usr/lib64/libXext.so
-- Looking for XOpenDisplay in /usr/lib64/libX11.so;/usr/lib64/libXext.so - found
-- Looking for gethostbyname
-- Looking for gethostbyname - found
-- Looking for connect
-- Looking for connect - found
-- Looking for remove
-- Looking for remove - found
-- Looking for shmat
-- Looking for shmat - found
-- Looking for IceConnectionNumber in ICE
-- Looking for IceConnectionNumber in ICE - found
-- Found X11: /usr/lib64/libX11.so
-- Found Freetype: /usr/lib64/libfreetype.so (found version "2.4.11") 
-- Found JPEG: /usr/lib64/libjpeg.so  
-- Found ZLIB: /usr/lib64/libz.so (found version "1.2.8") 
-- Found PNG: /usr/lib64/libpng.so (found version "1.6.8") 
-- Found PkgConfig: /usr/bin/x86_64-pc-linux-gnu-pkg-config (found version "0.28") 
-- checking for one of the modules 'fontconfig'
	FontConfig Found
	PAM Enabled
-- Performing Test PAM_MESSAGE_CONST
-- Performing Test PAM_MESSAGE_CONST - Success
-- Found PAM: /usr/lib64/libpam.so;/usr/lib64/libdl.so
	PAM Found
	ConsoleKit disabled
-- Looking for include file pthread.h
-- Looking for include file pthread.h - found
-- Looking for pthread_create
-- Looking for pthread_create - not found
-- Looking for pthread_create in pthreads
-- Looking for pthread_create in pthreads - not found
-- Looking for pthread_create in pthread
-- Looking for pthread_create in pthread - found
-- Found Threads: TRUE  
-- <<< Gentoo configuration >>>
Build type      Gentoo
Install path    /usr
Compiler flags:
C               -mtune=generic -O2 -pipe 
C++             -mtune=generic -O2 -pipe 
Linker flags:
Executable       -Wl,-O1 -Wl,--as-needed
Module           -Wl,-O1 -Wl,--as-needed
Shared           -Wl,-O1 -Wl,--as-needed

CMake Error: The following variables are used in this project, but they are set to NOTFOUND.
Please set them or make sure they are set and tested correctly in the CMake files:
X11_Xrandr_INCLUDE_PATH (ADVANCED)
   used as include directory in directory /var/tmp/portage/x11-misc/slim-1.3.6-r3/work/slim-1.3.6
   used as include directory in directory /var/tmp/portage/x11-misc/slim-1.3.6-r3/work/slim-1.3.6
   used as include directory in directory /var/tmp/portage/x11-misc/slim-1.3.6-r3/work/slim-1.3.6
X11_Xrandr_LIB (ADVANCED)
    linked by target "libslim" in directory /var/tmp/portage/x11-misc/slim-1.3.6-r3/work/slim-1.3.6
    linked by target "slim" in directory /var/tmp/portage/x11-misc/slim-1.3.6-r3/work/slim-1.3.6
    linked by target "slimlock" in directory /var/tmp/portage/x11-misc/slim-1.3.6-r3/work/slim-1.3.6

-- Configuring incomplete, errors occurred!
 * ERROR: x11-misc/slim-1.3.6-r3::gentoo failed (configure phase):
 *   cmake failed
 * 
 * Call stack:
 *     ebuild.sh, line   93:  Called src_configure
 *   environment, line 2882:  Called cmake-utils_src_configure
 *   environment, line  687:  Called _execute_optionaly 'src_configure'
-- Looking for gethostbyname
-- Looking for gethostbyname - found
-- Looking for connect
-- Looking for connect - found
-- Looking for remove
-- Looking for remove - found
-- Looking for shmat
-- Looking for shmat - found
-- Looking for IceConnectionNumber in ICE
-- Looking for IceConnectionNumber in ICE - found
-- Found X11: /usr/lib64/libX11.so
-- Found Freetype: /usr/lib64/libfreetype.so (found version "2.4.11")
-- Found JPEG: /usr/lib64/libjpeg.so
-- Found ZLIB: /usr/lib64/libz.so (found version "1.2.8")
-- Found PNG: /usr/lib64/libpng.so (found version "1.6.8")
 *   environment, line  221:  Called enable_cmake-utils_src_configure
 *   environment, line  993:  Called die
 * The specific snippet of code:
 *       "${CMAKE_BINARY}" "${cmakeargs[@]}" "${CMAKE_USE_DIR}" || die "cmake failed";
 * 
 * If you need support, post the output of `emerge --info '=x11-misc/slim-1.3.6-r3::gentoo'`,
 * the complete build log and the output of `emerge -pqv '=x11-misc/slim-1.3.6-r3::gentoo'`.
 * The complete build log is located at '/var/tmp/portage/x11-misc/slim-1.3.6-r3/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/x11-misc/slim-1.3.6-r3/temp/environment'.
 * Working directory: '/var/tmp/portage/x11-misc/slim-1.3.6-r3/work/slim-1.3.6_build'
 * S: '/var/tmp/portage/x11-misc/slim-1.3.6-r3/work/slim-1.3.6'
Comment 1 Ian Stakenvicius (RETIRED) gentoo-dev 2014-02-28 15:52:28 UTC
Fixed.  I also noticed that CMakeLists contains a "required" dependency on zlib, but the code never uses it, so i patched that out (not that any gentoo system is likelky to not have zlib)



+  28 Feb 2014; Ian Stakenvicius (_AxS_) <axs@gentoo.org>
+  +files/slim-1.3.6-drop-zlib.patch, slim-1.3.6-r3.ebuild, slim-1.3.6-r4.ebuild:
+  added missing x11-libs/libXrandr dependency, bug 503036; dropped unnecessary
+  configure requirement for zlib
+