Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 303117 - net-libs/libvncserver-0.9.7 installs libtool wrapper to /usr/bin/storepasswd
Summary: net-libs/libvncserver-0.9.7 installs libtool wrapper to /usr/bin/storepasswd
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High major (vote)
Assignee: No maintainer - Look at https://wiki.gentoo.org/wiki/Project:Proxy_Maintainers if you want to take care of it
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 303111
  Show dependency tree
 
Reported: 2010-02-01 16:22 UTC by Stuart Shelton
Modified: 2011-11-16 02:17 UTC (History)
5 users (show)

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


Attachments
libvncserver-0.9.1 build log (libvncserver-0.9.1.log,88.51 KB, text/plain)
2010-02-02 23:25 UTC, Stuart Shelton
Details
libvncserver-0.9.7 build log (libvncserver-0.9.7.log,70.66 KB, text/plain)
2010-02-02 23:27 UTC, Stuart Shelton
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Stuart Shelton 2010-02-01 16:22:52 UTC
Even after repeated rebuilds, the libvncserver ebuild installs only a libtool wrapper to "${ROOT}/usr/bin/storepasswd".

I've seen this happen before, but a rebuild has generally cleared the problem.

I've noticed that on IRIX, the first install of any new version of binutils always installs libtool wrapper scripts in place of binaries, but subsequent rebuilds (of the same version) will correctly install binaries.

The fact that this can occur across packages on completely dissimilar platforms suggests that there's something fundamental but subtle at play here...

As in Bug 303111, I suggest that portage should scan the "${D}"/"${ED}" directory as the final step of the "install" stage, and abort the build if a libtool wrapper is detected for any file not named "libtool" or "ltmain.sh".  At least this way, bug reports can be made on broken packages, rather than having broken files left sitting around undetected...
Comment 1 Stuart Shelton 2010-02-01 16:23:49 UTC
# emerge --info
Portage 2.1.7.16 (default/linux/x86/10.0/server, gcc-4.3.4, glibc-2.10.1-r1, 2.6.30-gentoo-r6 i686)
=================================================================
System uname: Linux-2.6.30-gentoo-r6-i686-VIA_Esther_processor_2000MHz-with-gentoo-1.12.13
Timestamp of tree: Wed, 27 Jan 2010 22:15:02 +0000
app-shells/bash:     4.0_p35
dev-java/java-config: 2.1.9-r2
dev-lang/python:     2.6.4
dev-util/cmake:      2.6.4-r3
sys-apps/baselayout: 1.12.13
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.6b
virtual/os-headers:  2.6.27-r2
ACCEPT_KEYWORDS="x86"
ACCEPT_LICENSE="*"
ACCEPT_PROPERTIES="*"
ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1 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"
ANT_HOME="/usr/share/ant"
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"
ARCH="x86"
AUTOCLEAN="yes"
CAMERAS="canon topfield"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-Os -march=i686 -mfpmath=sse -mmmx -msse -msse2 -msse3 -fomit-frame-pointer -pipe"
CHOST="i686-pc-linux-gnu"
CLEAN_DELAY="5"
COLLISION_IGNORE="/lib/modules"
CONFIG_PROTECT="/etc /etc/env.d /lib/rcscripts/addons /lib/rcscripts/lcdsplash /opt/openjms/config /usr/share/X11/xkb /var/bind /var/www/localhost/htdocs/wordpress"
CONFIG_PROTECT_MASK="/etc/X11/xkb /etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts /etc/fonts/fonts.conf /etc/gconf /etc/mono /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"
CVS_RSH="ssh"
CXXFLAGS="-Os -march=i686 -mfpmath=sse -mmmx -msse -msse2 -msse3 -fomit-frame-pointer -pipe"
DISTDIR="/usr/portage/distfiles"
EDITOR="/usr/bin/vim"
ELIBC="glibc"
EMERGE_DEFAULT_OPTS="--verbose"
EMERGE_WARNING_DELAY="10"
EPREFIX=""
EROOT="/"
FEATURES="assume-digests collision-protect distlocks fixpackages metadata-transfer news parallel-fetch protect-owned sandbox sfperms splitdebug strict unmerge-logs unmerge-orphans userfetch userpriv usersandbox"
FETCHCOMMAND="/usr/bin/wget -t 5 -T 60 --passive-ftp -O "${DISTDIR}/${FILE}" "${URI}""
FLTK_DOCDIR="/usr/share/doc/fltk-2.0_pre6786/html"
GCC_SPECS=""
GDK_USE_XFT="1"
GENTOO_MIRRORS="        http://distfiles.gentoo.org     http://gentoo.oregonstate.edu   http://gentoo.osuosl.org        http://www.mirror.ac.uk/sites/www.ibiblio.org/gentoo    http://www.ibiblio.org/pub/Linux/distributions/gentoo "
GUILE_LOAD_PATH="/usr/share/guile/1.8"
HOME="/root"
INFOPATH="/usr/share/info:/usr/share/binutils-data/i686-pc-linux-gnu/2.18/info:/usr/share/gcc-data/i686-pc-linux-gnu/4.3.4/info"
INPUT_DEVICES="keyboard mouse evdev"
I_KNOW_WHAT_I_AM_DOING="yes"
JAVAC="/etc/java-config-2/current-system-vm/bin/javac"
JAVA_HOME="/etc/java-config-2/current-system-vm"
JDK_HOME="/etc/java-config-2/current-system-vm"
KERNEL="linux"
LCD_DEVICES="ncurses picolcd png ppm text usbhub usblcd X xosd"
LDFLAGS="-Wl,-O1"
LESS="-R -M --shift 5"
LESSOPEN="|lesspipe.sh %s"
LINGUAS="en_GB en"
LOGNAME="root"
MANPATH="/etc/java-config-2/current-system-vm/man:/usr/local/share/man:/usr/share/man:/usr/share/binutils-data/i686-pc-linux-gnu/2.18/man:/usr/share/gcc-data/i686-pc-linux-gnu/4.3.4/man:/etc/java-config/system-vm/man/:/usr/lib/php5/man/:/usr/qt/3/doc/man"
NETBEANS="apisupport cnd groovy gsf harness ide identity j2ee java mobility nb php profiler soa visualweb webcommon websvccommon xml"
OLDPWD="/"
OPENGL_PROFILE="xorg-x11"
PAGER="/usr/bin/less"
PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/opt/bin:/usr/i686-pc-linux-gnu/gcc-bin/4.3.4:/usr/qt/3/bin"
PKGDIR="/usr/portage/packages"
PORTAGE_ARCHLIST="ppc x86-openbsd ppc-openbsd ppc64 x86-winnt x86-fbsd ppc-aix alpha arm x86-freebsd s390 amd64 arm-linux x86-macos x64-openbsd ia64-hpux hppa x86-netbsd amd64-linux ia64-linux x86 sparc-solaris x64-freebsd sparc64-solaris x86-linux x64-macos sparc m68k-mint ia64 mips ppc-macos x86-interix hppa-hpux amd64-fbsd x64-solaris mips-irix m68k sh x86-solaris sparc-fbsd"
PORTAGE_BINHOST_CHUNKSIZE="3000"
PORTAGE_BIN_PATH="/usr/lib/portage/bin"
PORTAGE_COMPRESS_EXCLUDE_SUFFIXES="css gif htm[l]? jp[e]?g js pdf png"
PORTAGE_CONFIGROOT="/"
PORTAGE_DEBUG="0"
PORTAGE_DEPCACHEDIR="/var/cache/edb/dep"
PORTAGE_ELOG_CLASSES="warn error log"
PORTAGE_ELOG_MAILFROM="portage@localhost"
PORTAGE_ELOG_MAILSUBJECT="[portage] ebuild log for ${PACKAGE} on ${HOST}"
PORTAGE_ELOG_MAILURI="root"
PORTAGE_ELOG_SYSTEM="echo save"
PORTAGE_FETCH_CHECKSUM_TRY_MIRRORS="5"
PORTAGE_FETCH_RESUME_MIN_SIZE="350K"
PORTAGE_GID="250"
PORTAGE_INST_GID="0"
PORTAGE_INST_UID="0"
PORTAGE_PYM_PATH="/usr/lib/portage/pym"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_RSYNC_RETRIES="3"
PORTAGE_TMPDIR="/var/tmp"
PORTAGE_TMPFS="/dev/shm"
PORTAGE_VERBOSE="1"
PORTAGE_WORKDIR_MODE="0700"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
PORT_LOGDIR="/var/log/portage"
PRELINK_PATH_MASK="/usr/lib/klibc"
PROFILE_ONLY_VARIABLES="ARCH ELIBC KERNEL USERLAND"
PWD="/root"
PYTHONDONTWRITEBYTECODE="1"
QMAKESPEC="linux-g++"
QTDIR="/usr/qt/3"
RESUMECOMMAND="/usr/bin/wget -c -t 5 -T 60 --passive-ftp -O "${DISTDIR}/${FILE}" "${URI}""
ROOT="/"
ROOTPATH="/opt/bin:/usr/i686-pc-linux-gnu/gcc-bin/4.3.4:/usr/qt/3/bin"
RPMDIR="/usr/portage/rpm"
RUBY_TARGETS="ruby18"
SHELL="/bin/bash"
SHLVL="1"
STAGE1_USE="-nls libffi"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
TERM="iris-ansi"
TMP="/tmp/.private/root"
TMPDIR="/tmp/.private/root"
USE="X aac aalib accessibility acl acpi alsa amr amrnb amrwb ao applet archive ares aspell asyncns audit automount avahi bash-completion beagle berkdb bittorrent bluetooth bonjour branding bzip2 cairo caps cdb cddb chroot cli consolekit cracklib crypt curl custom-optimization cxx dbi dbus device-mapper dirac djvu dmx dri eds encode epiphany erandom exif expat faac faad fam fbcon festival ffmpeg fftw finger flac fontconfig fontforge ftp fuse galago gd gdbm gif glib glibc-omitfp glitz gmp gnome gnome-keyring gnutls gphoto2 gpm graphviz gs gsm gstreamer gtk guile hal hpn iconv icu id3tag idea idn ieee1394 imagemagick imap imlib immqt-bc iodbc ipv6 ithreads jack java javamail javascript jbig jce jms jpeg jpeg2k kerberos ladspa lcms ldap libcaca libedit libffi libgcrypt libnotify libsamplerate libwww linuxthreads-tls lirc lm_sensors log4j lua lzo mad mailwrapper mbox mbrola mmap mmx mng modules mono motif mp3 mpd mpeg mudflap mysql nas nautilus ncurses network network-cron nfs nls nntp nptl nptlonly nsplugin nss ntp odbc ogg openexr opengl openmp pam pango pch pcre pdf perl phonon php plotutils png policykit pppd pulseaudio pwdb python qt3 qt3support qt4 radius raw readline reflection remote rle rpc rrdtool rss samba sasl schroedinger sdl servlet-api session sharedmem slang slp sndfile snmp speex spell spl sqlite sqlite3 sse sse2 sse3 ssl startup-notification svg sysfs syslog t1lib tcl tcpd test theora threads threadsafe tidy tiff tk tracker truetype unicode urandom usb userlocales vhook vidix vim-syntax vorbis wavpack webkit win32codecs wmf x264 x86 xattr xcb xfs xft xine xinerama xinetd xml xmp xorg xpm xprint xulrunner xv xvid xvmc zeroconf zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1 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" CAMERAS="canon topfield" ELIBC="glibc" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="ncurses picolcd png ppm text usbhub usblcd X xosd" LINGUAS="en_GB en" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="via vesa fbdev" 
USER="root"
USERLAND="GNU"
USE_EXPAND="ALSA_CARDS ALSA_PCM_PLUGINS APACHE2_MODULES APACHE2_MPMS CAMERAS CROSSCOMPILE_OPTS DVB_CARDS ELIBC FCDSL_CARDS FOO2ZJS_DEVICES FRITZCAPI_CARDS INPUT_DEVICES KERNEL LCD_DEVICES LINGUAS LIRC_DEVICES MISDN_CARDS NETBEANS_MODULES QEMU_SOFTMMU_TARGETS QEMU_USER_TARGETS RUBY_TARGETS SANE_BACKENDS USERLAND VIDEO_CARDS"
USE_EXPAND_HIDDEN="CROSSCOMPILE_OPTS ELIBC KERNEL USERLAND"
USE_ORDER="env:pkg:conf:defaults:pkginternal:env.d"
VIDEO_CARDS="via vesa fbdev"
XDG_CONFIG_DIRS="/etc/xdg"
XDG_DATA_DIRS="/usr/local/share:/usr/share:/usr/share/gdm"
_="/usr/bin/emerge"
bash4="4.0.35(1)-release"
Comment 2 Peter Volkov (RETIRED) gentoo-dev 2010-02-02 06:51:35 UTC
Since this happens on IRIX I assign this bug on prefix team.
Comment 3 Stuart Shelton 2010-02-02 10:36:46 UTC
You're misunderstanding - this is from an x86 Linux machine, and so is definitely a mainline portage problem.  I was merely pointing out that it *also* happens on IRIX...
Comment 4 Stuart Shelton 2010-02-02 10:45:02 UTC
Could someone re-assign this bug back to bug-wranglers (or whomsoever) please?
Comment 5 Peter Volkov (RETIRED) gentoo-dev 2010-02-02 13:25:05 UTC
bugwranglers are not working on bugs, but merely assign them to correct team. Unfortunately this package has no maintainer atm. That said this library is used by app-emulation/xen-tools:hvm, kde-base/krdc:vnc, kde-base/krfb,
x11-misc/x11vnc:system-libvncserver. Maybe somebody of you guys, want to maintain dependent library (and fix this bug)?
Comment 6 Peter Volkov (RETIRED) gentoo-dev 2010-02-02 13:28:35 UTC
And, btw, there is a new version out: http://sourceforge.net/projects/libvncserver/files/ ...

Stuart, also could you: 1. attach full build.log and 2. try to reproduce this problem with 0.9.7?
Comment 7 Stuart Shelton 2010-02-02 23:25:49 UTC
Created attachment 218235 [details]
libvncserver-0.9.1 build log
Comment 8 Stuart Shelton 2010-02-02 23:27:52 UTC
Created attachment 218237 [details]
libvncserver-0.9.7 build log


0.9.7 seems to suffer from exactly the same problem: /usr/bin/storepasswd ends up being a libtool wrapper script, starting:

#! /bin/sh

# storepasswd - temporary wrapper script for .libs/storepasswd
# Generated by ltmain.sh - GNU libtool 1.5.22 (1.1220.2.365 2005/12/18 22:14:06)
#
# The storepasswd program cannot be directly executed until all the libtool
# libraries that it depends on are installed.
#
# This wrapper script should never be moved out of the build directory.
# If it is, it will not operate correctly.
Comment 9 Jorge Manuel B. S. Vicetto (RETIRED) Gentoo Infrastructure gentoo-dev 2010-02-03 03:52:00 UTC
I took a quick look at the package and noticed a few things:

1. The file that gets installed into /usr/bin/storepasswd is the one at /var/tmp/portage/net-libs/libvncserver-0.9.7/work/LibVNCServer-0.9.7/examples/storepasswd which is itself a libtool wrapper.

2. The Makefile.am for examples has the following

noinst_PROGRAMS=example pnmshow regiontest pnmshow24 fontsel \
        vncev storepasswd colourmaptest simple simple15 $(MAC) \
        $(FILETRANSFER) backchannel $(BLOOPTEST) camera rotate

which is preventing the installation of the binaries generated in that dir (including the one from storepasswd.c?), but not the installation of the script storepasswd.
Comment 10 Jorge Manuel B. S. Vicetto (RETIRED) Gentoo Infrastructure gentoo-dev 2010-02-03 04:00:22 UTC
After looking more closely at the Makefile.am and checking the tarball, the issue seems to be that storepasswd is being built as a lib and not as a program.
Comment 11 Jorge Manuel B. S. Vicetto (RETIRED) Gentoo Infrastructure gentoo-dev 2010-02-03 04:12:36 UTC
Current ebuild:

src_install() {
        emake install DESTDIR="${D}" || die
        dobin examples/storepasswd
        dodoc AUTHORS ChangeLog NEWS README TODO
}
Comment 12 Sven Wegener gentoo-dev 2010-02-03 21:11:38 UTC
Looking at the dependencies, it makes most sense that I'm going to take this package. It has the same author as x11vnc and they share a common codebase.

And concerning storepasswd: I'd either drop it or install it from .libs for the short fix. For dropping: It's a library and it's up to the application to actually provide password storage. x11vnc has the -storepasswd option for it, which does exactly what the storepasswd binary does.
Comment 13 Jorge Manuel B. S. Vicetto (RETIRED) Gentoo Infrastructure gentoo-dev 2010-02-05 10:39:20 UTC
(In reply to comment #12)
> And concerning storepasswd: I'd either drop it or install it from .libs for the
> short fix. For dropping: It's a library and it's up to the application to
> actually provide password storage. x11vnc has the -storepasswd option for it,
> which does exactly what the storepasswd binary does.

Please review the sed calls, use Makefile.am and if you want to install storepasswd, take it out from the noinst_PROGRAMS so that it's installed directly by make.
Comment 14 Pacho Ramos gentoo-dev 2010-04-17 17:29:12 UTC
This also requires net-libs/libvncserver-0.9.7 to be stabilized
Comment 15 Pacho Ramos gentoo-dev 2010-04-17 17:29:38 UTC
(In reply to comment #14)
> This also requires net-libs/libvncserver-0.9.7 to be stabilized
> 

Wrong bug, sorry for the noise
Comment 16 Michael Weber (RETIRED) gentoo-dev 2011-11-16 02:17:27 UTC
+  16 Nov 2011; Michael Weber <xmw@gentoo.org> -libvncserver-0.9.1.ebuild,
+  libvncserver-0.9.8.2.ebuild:
+  Drop storepasswd (bug 303117). Remove old version. non-maint commit.
+