Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 285262 - xlockmore doesn't install /usr/bin/xlock
Summary: xlockmore doesn't install /usr/bin/xlock
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: High normal (vote)
Assignee: Desktop Misc. Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-09-17 01:52 UTC by Chris Reffett (RETIRED)
Modified: 2010-02-14 15:43 UTC (History)
2 users (show)

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


Attachments
xlockmore build.log (build.log,71.40 KB, text/plain)
2009-09-19 15:15 UTC, Chris Reffett (RETIRED)
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Chris Reffett (RETIRED) gentoo-dev Security 2009-09-17 01:52:42 UTC
x11-misc/xlockmore-5.28 isn't installing the /usr/bin/xlock binary, making it rather useless.

emerge --info:
Portage 2.2_rc40 (default/linux/amd64/2008.0, gcc-4.3.2, glibc-2.9_p20081201-r2, 2.6.28-gentoo-r5 x86_64)
=================================================================                                        
System uname: Linux-2.6.28-gentoo-r5-x86_64-Intel-R-_Core-TM-2_Extreme_CPU_X9650_@_3.00GHz-with-gentoo-1.12.11.1
Timestamp of tree: Wed, 16 Sep 2009 23:00:01 +0000                                                              
ccache version 2.4 [enabled]                                                                                    
app-shells/bash:     4.0_p28
dev-java/java-config: 2.1.8-r1
dev-lang/python:     2.5.4-r3, 2.6.2-r1
dev-util/ccache:     2.4-r7
dev-util/cmake:      2.6.4
sys-apps/baselayout: 1.12.11.1
sys-apps/sandbox:    1.6-r2
sys-devel/autoconf:  2.13, 2.63-r1
sys-devel/automake:  1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10.2
sys-devel/binutils:  2.18-r3
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   2.2.6a
virtual/os-headers:  2.6.27-r2
ACCEPT_KEYWORDS="amd64"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -march=core2 -mno-tls-direct-seg-refs -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/bin/startfluxbox /usr/share/config /usr/share/fluxbox/menu /var/lib/hsqldb /var/spool/torque"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/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 /etc/udev/rules.d"
CXXFLAGS="-O2 -march=core2 -mno-tls-direct-seg-refs -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="assume-digests ccache distlocks fixpackages parallel-fetch preserve-libs protect-owned sandbox sfperms strict unmerge-logs unmerge-orphans userfetch"
GENTOO_MIRRORS="http://mirror.rit.edu/gentoo http://mirror.tjhsst.edu/gentoo"
LDFLAGS="-Wl,-O1 -Wl,--hash-style=gnu -Wl,--as-needed"
LINGUAS="en_US en"
MAKEOPTS="-j5"
PKGDIR="/usr/portage/packages"
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="/usr/local/portage/overlay"
SYNC="rsync://robustus/gentoo-portage"
USE="X a52 aac acl acpi ads aim alsa amd64 anthy audiofile bash-completion berkdb bzip2 cairo cdda cddb cdr cjk cli consolekit cracklib crypt cups curl d dbus divx dmx doc dri dvd dvdread encode esd exif fam fbcon fftw flac foomaticdb fortran ftp gcj gd gdbm gdm gif glitz gnome gpm gs gstreamer gtk hal icecast iconv id3tag imagemagick imlib immqt-bc ipv6 isdnlog jabber java javascript jpeg jpeg2k kde kerberos latex ldap libcaca libnotify libwww live loop-aes mad matroska mikmod mime mmx mng mono motif mozdevelop mp3 mpeg mplayer msn mtp mudflap multilib musicbrainz mysql ncurses netboot netpbm new-login nls nptl nptlonly nsplugin nvidia objc ogg opengl openmp pam pango pch pcre pdf perl php plotutils pmu png policykit ppds pppd pulseaudio python qt3support qt4 quicktime rdesktop readline reflection ruby samba sasl sdl semantic-desktop session skins slang soap spell spl sqlite sse sse2 ssl svg sysfs tcl tcpd teamarena theora threads tiff tk truetype unicode usb vim-syntax vorbis wmf x264 xcb xcomposite xine xinerama xml xorg xpm xscreensaver xulrunner xv yahoo 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 autoindex cache 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" ELIBC="glibc" INPUT_DEVICES="mouse keyboard evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en_US en" USERLAND="GNU" VIDEO_CARDS="nvidia nv vga fbdev intel none"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LANG, LC_ALL, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Lars Wendler (Polynomial-C) (RETIRED) gentoo-dev 2009-09-17 06:13:27 UTC
I cannot reproduce the problem. Can you please post the output of 

  emerge -pv xlockmore
Comment 2 Chris Reffett (RETIRED) gentoo-dev Security 2009-09-17 17:23:33 UTC
2011creffett@meson ~ $ emerge -pv xlockmore

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

Calculating dependencies... done!
[ebuild   R   ] x11-misc/xlockmore-5.28  USE="crypt esd gtk motif opengl pam truetype -debug -nas -xlockrc" 0 kB

Total: 1 package (1 reinstall), Size of downloads: 0 kB
Comment 3 Samuli Suominen (RETIRED) gentoo-dev 2009-09-19 13:59:45 UTC
Works for me. Need a full build.log.
Comment 4 Chris Reffett (RETIRED) gentoo-dev Security 2009-09-19 15:15:51 UTC
Created attachment 204609 [details]
xlockmore build.log

Here's the build.log. Note the line at the end that says "chmod: cannot access `/var/tmp/portage/x11-misc/xlockmore-5.28/image//usr/bin/xlock': No such file or directory"
Comment 5 Olivier Crete (RETIRED) gentoo-dev 2009-09-19 21:17:47 UTC
Build deps problem:

"/usr/X11R6/include/freetype/freetype.h", line 27: Error: #error "This is freetype.h of FreeType 1!".
Comment 6 Rémi Cardona (RETIRED) gentoo-dev 2009-09-19 21:42:32 UTC
Why was this assigned to x11?

Cheers
Comment 7 Dan Johnson 2009-10-19 14:41:50 UTC
Ah: note the following error:

"/usr/X11R6/include/freetype/freetype.h", line 27: Error: #error "This is freetype.h of FreeType 1!".

which occurs twice, once during the build and once when it is trying to install. Why this didn't cause the ebuild to fail, though, I'm not sure...

Seems to be a freetype-related error.
Comment 8 Chris Reffett (RETIRED) gentoo-dev Security 2009-10-19 14:50:36 UTC
The box in question has both slots of freetype installed. Would it be worth trying to remove the dependencies on freetype:1 and unmerging it, and then remerging xlockmore?
Comment 9 Dan Johnson 2009-12-01 18:14:51 UTC
The freetype error doesn't seem to be the problem, as this bug still shows up with USE="-truetype". In fact, ld seems to be failing out:

"/opt/SunStudioExpress/prod/lib/amd64/ld: unrecognised emulation mode: no-tls-direct-seg-refs"

It's using sun studio express. Even though as far as I know, the machine is not configured to do so unless called explicitly.

this seems to be called from the "CC -O2 -march=core2 -mno-tls-direct-seg-refs -pipe -o ../xlock/xlock ../xlock/xlock.o ..." line (rather long)

apparently because the configure script found CC before another c++ compiler:
"checking for CC... CC
checking whether we are using the GNU C++ compiler... no"

CC being sun studio express:
"equery b CC
[ Searching for file(s) CC in *... ]
dev-lang/sunstudioexpress-2009.03 (/opt/SunStudioExpress/prod/include/CC)
dev-lang/sunstudioexpress-2009.03 (/opt/SunStudioExpress/bin/CC -> ../prod/bin/CC)
dev-lang/sunstudioexpress-2009.03 (/opt/SunStudioExpress/prod/bin/CC)"

which, isn't right, of course. We want to be using gcc (g++). Especially since we're using gcc-specific flags. Does anyone know why the configure script would have found this one before gcc's?
Comment 10 Samuli Suominen (RETIRED) gentoo-dev 2010-02-14 14:59:38 UTC
Does it help if you add 'toolchain-funcs' to inherit line of the ebuild, and 'tc-export CC' to the beginning of src_configure() function?

Comment 11 Samuli Suominen (RETIRED) gentoo-dev 2010-02-14 15:00:40 UTC
Diego, seriously, is sunstudioexpress adding CC binary to default search path?
Comment 12 Diego Elio Pettenò (RETIRED) gentoo-dev 2010-02-14 15:06:34 UTC
Uhm it might… but there are a few notes there:

 - nothing sane should use CC as default name, rather cc…;
 - we have a $CC variable just to avoid stuff like that;
 - sunstudioexpress is masked, feel free to punt.
Comment 13 Samuli Suominen (RETIRED) gentoo-dev 2010-02-14 15:32:31 UTC
AC_PROG_CC
dnl Check if C++ compiler is present. If not set CXX to the C-compiler used
OK, sunstudioexpress is punted now.

sigh:

dnl for the other compilations.
if test "$CC" = gcc; then
  AC_CHECK_PROGS(CXX, $CCC g++ CC C++ c++ cxx cc++ xlC $CC, gcc)
else
  AC_CHECK_PROGS(CXX, $CCC CC C++ g++ c++ cxx cc++ xlC $CC, gcc)
fi
AC_PROG_CXX
if test "${CXX}" = "xlC" ; then
  CXXFLAGS="${CXXFLAGS} -+"
fi
Comment 14 Samuli Suominen (RETIRED) gentoo-dev 2010-02-14 15:43:45 UTC
   14 Feb 2010; Samuli Suominen <ssuominen@gentoo.org>
+  xlockmore-5.29.1.ebuild, +files/xlockmore-5.29.1-configure.in.patch:
+  Remove extra CC and CXX checks from configure.in to avoid #285262.