Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 366599 - net-libs/libssh2-1.2.8: autotools scripts don't set the VERSION correctly (breaks app-emulation/libvirt)
Summary: net-libs/libssh2-1.2.8: autotools scripts don't set the VERSION correctly (br...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: Normal normal (vote)
Assignee: Gentoo Netmon project
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-05-09 14:33 UTC by Lars
Modified: 2011-05-10 20:00 UTC (History)
1 user (show)

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


Attachments
Fix autotools version bug in configure.ac (autotools-version-bug.patch,377 bytes, patch)
2011-05-09 18:11 UTC, Stratos Psomadakis (RETIRED)
Details | Diff
Upstream patch to fix VERSION bug in autotools scripts (libssh2-1.2.8-r1-version-bug.patch,1.19 KB, patch)
2011-05-10 08:28 UTC, Stratos Psomadakis (RETIRED)
Details | Diff
revision bump ebuild with autotools scripts upstream patch included (libssh2-1.2.8-r1.ebuild,1.30 KB, text/plain)
2011-05-10 08:30 UTC, Stratos Psomadakis (RETIRED)
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Lars 2011-05-09 14:33:56 UTC
During the checking and configure phase emerge libvirt stops with error, that libssh2 is missing, but libssh2 is installed.

checking sys/inotify.h usability... yes
checking sys/inotify.h presence... yes
checking for sys/inotify.h... yes
checking for LIBSSH2... no
configure: error: libssh2 >= 1.0 is required for Phyp driver

!!! Please attach the following file when seeking support:
!!! /var/tmp/portage/app-emulation/libvirt-0.9.1/work/libvirt-0.9.1/config.log
 * ERROR: app-emulation/libvirt-0.9.1 failed (configure phase):
 *   econf failed
 * 
 * Call stack:
 *     ebuild.sh, line   56:  Called src_configure
 *   environment, line 4626:  Called econf '--disable-debug' '--with-libvirtd' '--without-avahi' '--without-xen' '--without-xen-inotify' '--without-libxl' '--without-openvz' '--with-lxc' '--without-vbox' '--with-uml' '--with-qemu' '--with-phyp' '--with-esx' '--with-network' '--with-storage-fs' '--with-storage-lvm' '--with-storage-iscsi' '--with-storage-disk' '--with-storage-mpath' '--without-numactl' '--without-selinux' '--with-udev' '--without-capng' '--with-polkit' '--without-sasl' '--without-macvtap' '--without-libpcap' '--enable-nls' '--with-python' '--with-yajl' '--without-netcf' '--without-audit' '--without-hal' '--disable-static' '--docdir=/usr/share/doc/libvirt-0.9.1' '--with-remote' '--localstatedir=/var' '--with-remote-pid-file=/var/run/libvirtd.pid'
 *     ebuild.sh, line  557:  Called die
 * The specific snippet of code:
 *                      die "econf failed"
 * 
 * If you need support, post the output of 'emerge --info =app-emulation/libvirt-0.9.1',
 * the complete build log and the output of 'emerge -pqv =app-emulation/libvirt-0.9.1'.
 * The complete build log is located at '/var/tmp/portage/app-emulation/libvirt-0.9.1/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/app-emulation/libvirt-0.9.1/temp/environment'.
 * S: '/var/tmp/portage/app-emulation/libvirt-0.9.1/work/libvirt-0.9.1'

Reproducible: Always




Portage 2.1.9.48 (default/linux/amd64/10.0/desktop/kde, gcc-4.5.2, glibc-2.13-r2, 2.6.38-gentoo-r1-110404 x86_64)
=================================================================
System uname: Linux-2.6.38-gentoo-r1-110404-x86_64-QEMU_Virtual_CPU_version_0.12.5-with-gentoo-2.0.2
Timestamp of tree: Mon, 09 May 2011 06:00:01 +0000
app-shells/bash:          4.2_p8-r1
dev-java/java-config:     2.1.11-r3
dev-lang/python:          2.7.1-r1, 3.1.3-r1
dev-util/cmake:           2.8.4-r1
sys-apps/baselayout:      2.0.2
sys-apps/openrc:          0.8.2-r1
sys-apps/sandbox:         2.5
sys-devel/autoconf:       2.13, 2.68
sys-devel/automake:       1.10.3, 1.11.1-r1
sys-devel/binutils:       2.21
sys-devel/gcc:            4.5.2
sys-devel/gcc-config:     1.4.1-r1
sys-devel/libtool:        2.4-r1
sys-devel/make:           3.82
sys-kernel/linux-headers: 2.6.38 (virtual/os-headers)
sys-libs/glibc:           2.13-r2
ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=x86-64 -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/config /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/php/apache2-php5.3/ext-active/ /etc/php/cgi-php5.3/ext-active/ /etc/php/cli-php5.3/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-march=x86-64 -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="assume-digests binpkg-logs buildpkg distlocks fixlafiles fixpackages metadata-transfer news parallel-fetch protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch"
FFLAGS=""
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LDFLAGS="-Wl,-O1,--as-needed"
LINGUAS="de"
MAKEOPTS="-j10"
PKGDIR="/usr/portage/binfiles"
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/tree"
PORTDIR_OVERLAY="/usr/portage/layman/rion"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X a52 aac aalib acl acpi alsa amd64 apache2 apm berkdb bluray bootchart branding bzip2 cairo cdda cdparanoia cdr cleartype cli consolekit cracklib crypt cups cxx dbus desktopglobe dri dts dvd dvdr emboss enca encode exif fam ffmpeg firefox flac fortran gdbm gdu gensplash gif glibc-omitfp glitz gpm gstreamer gtk hddtemp iconv imagemagick innodb java java6 javascript jpeg kde kdehiddenvisibility kdm kipi lame lcms libnotify lm_sensors lzma lzo mad matroska mmx mng modules mp3 mp4 mpeg mudflap multilib mysql ncurses nls nptl nptlonly nsplugin nspluginwrapper ogg openal opengl openmp optimisememory pam pango pcre pdf perl phonon php pic plasma png policykit ppds pppd python qt3support qt4 quicktime readline samba sdl semantic-desktop session spell sqlite sqlite3 sse sse2 ssl startup-notification suid svg sysfs tcpd threads truetype udev unicode usb userlocales vorbis wxwidgets x264 xcb xine xinetd xml xorg xscreensaver xulrunner xv xvid zip 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 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" CAMERAS="ptp2" 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 ubx" INPUT_DEVICES="evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="de" PHP_TARGETS="php5-3" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="vesa nv nvidia vmware" 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" 
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Rafał Mużyło 2011-05-09 15:27:57 UTC
Anything noteworthy in that config.log ?
Comment 2 Stratos Psomadakis (RETIRED) gentoo-dev 2011-05-09 18:11:50 UTC
Created attachment 272645 [details, diff]
Fix autotools version bug in configure.ac

I think there's a bug in autotools scripts(configure.ac), that doesn't set the version correctly, and thus the pkg-info installation file for libssh2 is wrong, and you get the build error when compiling libvirt.
Can you try the patch I attached?
Comment 3 Stratos Psomadakis (RETIRED) gentoo-dev 2011-05-09 18:37:12 UTC
btw, the autotools scripts are fixed (in a different way) in libssh2 git repo, just one day after the release :P
Comment 4 Stratos Psomadakis (RETIRED) gentoo-dev 2011-05-09 18:54:17 UTC
And for a very quick workaround, you can just edit /usr/lib/pkgconfig/libssh2.pc and set the version correctly.
Comment 5 Rafał Mużyło 2011-05-09 19:50:34 UTC
Actually, upstream fix is more correct, as yours uses obsolete macro variant, even though the whole problem is caused by upstream doing odd things with $VERSION in the first place.
Comment 6 Stratos Psomadakis (RETIRED) gentoo-dev 2011-05-09 19:58:38 UTC
Yeap, I know, but I posted a 'quickfix' patch (based on the working 1.2.7 release), before checking out the upstream repo.
Anyway, someone from the netmon herd maintainers should propably do a revision bump, including any of the fixes proposed.
Comment 7 Stratos Psomadakis (RETIRED) gentoo-dev 2011-05-10 08:28:32 UTC
Created attachment 272713 [details, diff]
Upstream patch to fix VERSION bug in autotools scripts
Comment 8 Stratos Psomadakis (RETIRED) gentoo-dev 2011-05-10 08:30:48 UTC
Created attachment 272715 [details]
revision bump ebuild with autotools scripts upstream patch included
Comment 9 Jeroen Roovers (RETIRED) gentoo-dev 2011-05-10 20:00:36 UTC
Fixed in 1.2.8-r1.