Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 414891 - x11-misc/slim-1.3.3 - CMake Error at /usr/share/cmake/Modules/FindPackageHandleStandardArgs.cmake:97 (MESSAGE): Could NOT find GLUT (missing: GLUT_INCLUDE_DIR)
Summary: x11-misc/slim-1.3.3 - CMake Error at /usr/share/cmake/Modules/FindPackageHand...
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:
: 415467 (view as bug list)
Depends on:
Blocks:
 
Reported: 2012-05-06 16:16 UTC by Darren Smith
Modified: 2012-05-11 13:35 UTC (History)
2 users (show)

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 Darren Smith 2012-05-06 16:16:50 UTC
# emerge -av1 slim

These are the packages that would be merged, in order:

Calculating dependencies... done!
[ebuild     U  ] x11-misc/slim-1.3.3 [1.3.2-r7] USE="consolekit pam -branding" 0 kB

Total: 1 package (1 upgrade), Size of downloads: 0 kB

Would you like to merge these packages? [Yes/No] 

>>> Verifying ebuild manifests

>>> Emerging (1 of 1) x11-misc/slim-1.3.3
 * slim-1.3.3.tar.gz RMD160 SHA1 SHA256 size ;-) ...                     [ ok ]
>>> Unpacking source...
>>> Unpacking slim-1.3.3.tar.gz to /var/tmp/portage/x11-misc/slim-1.3.3/work
>>> Source unpacked in /var/tmp/portage/x11-misc/slim-1.3.3/work
>>> Preparing source in /var/tmp/portage/x11-misc/slim-1.3.3/work/slim-1.3.3 ...
 * Applying slim-1.3.3-config.diff ...                                   [ ok ]
 * Applying 15287-fix-pam-authentication-with-pam_unix2.patch ...        [ ok ]
 * Applying 405579-fix-numlock.patch ...                                 [ ok ]
>>> Source prepared.
>>> Configuring source in /var/tmp/portage/x11-misc/slim-1.3.3/work/slim-1.3.3 ...
>>> Working in BUILD_DIR: "/var/tmp/portage/x11-misc/slim-1.3.3/work/slim-1.3.3_build"
cmake --no-warn-unused-cli -C /var/tmp/portage/x11-misc/slim-1.3.3/work/slim-1.3.3_build/gentoo_common_config.cmake -DCMAKE_INSTALL_PREFIX=/usr -DUSE_PAM=ON -DUSE_CONSOLEKIT=ON -DCMAKE_BUILD_TYPE=Gentoo -DCMAKE_INSTALL_DO_STRIP=OFF -DCMAKE_USER_MAKE_RULES_OVERRIDE=/var/tmp/portage/x11-misc/slim-1.3.3/work/slim-1.3.3_build/gentoo_rules.cmake  /var/tmp/portage/x11-misc/slim-1.3.3/work/slim-1.3.3
Not searching for unused variables given on the command line.
loading initial cache file /var/tmp/portage/x11-misc/slim-1.3.3/work/slim-1.3.3_build/gentoo_common_config.cmake
-- The C compiler identification is GNU 4.5.3
-- The CXX compiler identification is GNU 4.5.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
-- 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.9") 
CMake Error at /usr/share/cmake/Modules/FindPackageHandleStandardArgs.cmake:97 (MESSAGE):
  Could NOT find GLUT (missing: GLUT_INCLUDE_DIR)
Call Stack (most recent call first):
  /usr/share/cmake/Modules/FindPackageHandleStandardArgs.cmake:288 (_FPHSA_FAILURE_MESSAGE)
  /usr/share/cmake/Modules/FindGLUT.cmake:68 (FIND_PACKAGE_HANDLE_STANDARD_ARGS)
  CMakeLists.txt:76 (find_package)


-- Configuring incomplete, errors occurred!
 * ERROR: x11-misc/slim-1.3.3 failed (configure phase):
 *   cmake failed
 * 
 * Call stack:
 *     ebuild.sh, line   85:  Called src_configure
 *   environment, line 2712:  Called cmake-utils_src_configure
 *   environment, line  624:  Called _execute_optionaly 'src_configure'
 *   environment, line  212:  Called enable_cmake-utils_src_configure
 *   environment, line  974:  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.3',
 * the complete build log and the output of 'emerge -pqv =x11-misc/slim-1.3.3'.
 * The complete build log is located at '/var/tmp/portage/x11-misc/slim-1.3.3/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/x11-misc/slim-1.3.3/temp/environment'.
 * Working directory: '/var/tmp/portage/x11-misc/slim-1.3.3/work/slim-1.3.3_build'
 * S: '/var/tmp/portage/x11-misc/slim-1.3.3/work/slim-1.3.3'

>>> Failed to emerge x11-misc/slim-1.3.3, Log file:

>>>  '/var/tmp/portage/x11-misc/slim-1.3.3/temp/build.log'

 * Messages for package x11-misc/slim-1.3.3:

 * ERROR: x11-misc/slim-1.3.3 failed (configure phase):
 *   cmake failed
 * 
 * Call stack:
 *     ebuild.sh, line   85:  Called src_configure
 *   environment, line 2712:  Called cmake-utils_src_configure
 *   environment, line  624:  Called _execute_optionaly 'src_configure'
 *   environment, line  212:  Called enable_cmake-utils_src_configure
 *   environment, line  974:  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.3',
 * the complete build log and the output of 'emerge -pqv =x11-misc/slim-1.3.3'.
 * The complete build log is located at '/var/tmp/portage/x11-misc/slim-1.3.3/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/x11-misc/slim-1.3.3/temp/environment'.
 * Working directory: '/var/tmp/portage/x11-misc/slim-1.3.3/work/slim-1.3.3_build'
 * S: '/var/tmp/portage/x11-misc/slim-1.3.3/work/slim-1.3.3'


Reproducible: Always
Comment 1 Jeroen Roovers (RETIRED) gentoo-dev 2012-05-06 23:29:43 UTC
Please post your output for:
1) emerge --info
2) emerge -vpq dev-util/cmake
Comment 2 Darren Smith 2012-05-08 23:29:39 UTC
# emerge --info && emerge -vpq dev-util/cmake
Portage 2.1.10.57 (default/linux/amd64/10.0/desktop, gcc-4.5.3, glibc-2.15-r1, 3.2.16 x86_64)
=================================================================
System uname: Linux-3.2.16-x86_64-AMD_Phenom-tm-_II_X6_1090T_Processor-with-gentoo-2.1
Timestamp of tree: Sun, 06 May 2012 01:15:01 +0000
app-shells/bash:          4.2_p28
dev-java/java-config:     2.1.11-r3
dev-lang/python:          2.7.3-r2
dev-util/cmake:           2.8.8-r1
dev-util/pkgconfig:       0.26
sys-apps/baselayout:      2.1
sys-apps/openrc:          0.9.9.3
sys-apps/sandbox:         2.5
sys-devel/autoconf:       2.13, 2.69
sys-devel/automake:       1.9.6-r3, 1.11.5
sys-devel/binutils:       2.22-r1
sys-devel/gcc:            4.5.3-r2
sys-devel/gcc-config:     1.7
sys-devel/libtool:        2.4.2
sys-devel/make:           3.82-r3
sys-kernel/linux-headers: 3.2-r1 (virtual/os-headers)
sys-libs/glibc:           2.15-r1
Repositories: gentoo x-portage
ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="* -@EULA AdobeFlash-10.3 PUEL dlj-1.1 Oracle-BCLA-JavaSE skype-eula"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=amdfam10 -O2 -pipe -ggdb"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /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/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-march=amdfam10 -O2 -pipe -ggdb"
DISTDIR="/usr/portage/distfiles"
FEATURES="assume-digests binpkg-logs distlocks ebuild-locks fixlafiles news parallel-fetch protect-owned sandbox sfperms splitdebug strict unknown-features-warn unmerge-logs unmerge-orphans userfetch"
FFLAGS=""
GENTOO_MIRRORS="http://gentoo.osuosl.org/ http://gentoo.cites.uiuc.edu/pub/gentoo/ http://www.gtlib.gatech.edu/pub/gentoo/ http://gentoo.chem.wisc.edu/gentoo/"
LANG="en_US.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LINGUAS="en en_US"
MAKEOPTS="-j6"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_EXTRA_OPTS="--timeout=30"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --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="/usr/local/portage"
SYNC="rsync://rsync2.us.gentoo.org/gentoo-portage"
USE="3dnow 3dnowext X a52 aac alsa amd64 aspell bzip2 cairo caps cdda cddb cdparanoia cdr consolekit cracklib crypt cscope css cups cxx dbus djbfft dts dv dvd dvdnav encode exif faac faad ffmpeg flac ftp gd geoip gif glib gnutls gphoto2 gstreamer gtk gtk3 hunspell iconv icu id3tag inotify introspection ipc ipod jpeg lame libsamplerate loop-aes lzma mad matroska mbox midi mikmod mmx mmxext mp3 mp4 mpeg multilib nls nptl ogg opengl openrc oss pam pcf pcre pdf png policykit psf quicktime rar readline sdl sndfile spell sse sse2 sse3 ssl ssse3 svg taglib theora threads threadsafe thunar tiff truetype udev unicode upnp utp vorbis wavpack webp x264 xcb xml xorg xscreensaver xv xvid zlib" ALSA_CARDS="hda-intel" ALSA_PCM_PLUGINS="*" CAMERAS="canon ptp2" CURL_SSL="gnutls" ELIBC="glibc" INPUT_DEVICES="evdev" KERNEL="linux" LINGUAS="en en_US" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="radeon vesa" XFCE_PLUGINS="menu"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, USE_PYTHON

[ebuild   R   ] dev-util/cmake-2.8.8-r1  USE="-emacs -ncurses -qt4 -test -vim-syntax"
Comment 3 Jeroen Roovers (RETIRED) gentoo-dev 2012-05-09 04:57:59 UTC
# ChangeLog for dev-util/cmake
# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2
# $Header: /var/cvsroot/gentoo-x86/dev-util/cmake/ChangeLog,v 1.195 2012/05/06 19:05:27 dilfridge Exp $

*cmake-2.8.8-r2 (06 May 2012)

  06 May 2012; Andreas K. Huettel <dilfridge@gentoo.org>
  -cmake-2.8.8-r1.ebuild, +cmake-2.8.8-r2.ebuild,
  +files/cmake-2.8.8-pkgconfig.patch:
  Add fix for pkgconfig usage, bug 414659 and others

Could you try that version?
Comment 4 Samuli Suominen (RETIRED) gentoo-dev 2012-05-10 07:36:27 UTC
(In reply to comment #3)
> # ChangeLog for dev-util/cmake
> # Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2
> # $Header: /var/cvsroot/gentoo-x86/dev-util/cmake/ChangeLog,v 1.195
> 2012/05/06 19:05:27 dilfridge Exp $
> 
> *cmake-2.8.8-r2 (06 May 2012)
> 
>   06 May 2012; Andreas K. Huettel <dilfridge@gentoo.org>
>   -cmake-2.8.8-r1.ebuild, +cmake-2.8.8-r2.ebuild,
>   +files/cmake-2.8.8-pkgconfig.patch:
>   Add fix for pkgconfig usage, bug 414659 and others
> 
> Could you try that version?

Good guess (except that x11-misc/slim ebuild is in fact missing the dependency for media-libs/freeglut entirely)
Comment 5 Ian Stakenvicius (RETIRED) gentoo-dev 2012-05-10 14:04:35 UTC
Slim shouldn't need GLUT; i'll look into this further.
Comment 6 Ian Stakenvicius (RETIRED) gentoo-dev 2012-05-10 14:12:18 UTC
RIGHT.  So CMakeLists.txt for slim is for some reason using find_package(GLUT) to determine if libXmu is installed or not.  I'll try and get a patch in place within a few hours.
Comment 7 Ian Stakenvicius (RETIRED) gentoo-dev 2012-05-10 15:37:00 UTC
Fixed.  Need to use cmake-2.8.8 or higher, as the Xmu check is now within find(X11); fortunately this isn't really an issue since slim-1.3.3 is still ~arch.

I am open to accepting patches to slim to make it work on earlier versions of cmake, but my first two attempts didn't work so well so I won't be doing it myself..
Comment 8 Samuli Suominen (RETIRED) gentoo-dev 2012-05-11 13:35:05 UTC
*** Bug 415467 has been marked as a duplicate of this bug. ***