Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 104858 - mpio-0.7.1_pre2 compilation fails, complains about not having libusb >=0.1.7 even though it is present.
Summary: mpio-0.7.1_pre2 compilation fails, complains about not having libusb >=0.1.7 ...
Status: RESOLVED WONTFIX
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: x86 Linux
: High major
Assignee: Gentoo Sound Team
URL:
Whiteboard: Pending Removal 3 March 2007
Keywords: PMASKED
: 134968 (view as bug list)
Depends on:
Blocks:
 
Reported: 2005-09-05 00:02 UTC by Markus Lindstrom
Modified: 2007-02-03 22:15 UTC (History)
2 users (show)

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


Attachments
removing libusb version check in configure script. (mpio-0.7.1_pre2-libusb.patch,880 bytes, patch)
2006-04-28 10:03 UTC, Anton Bolshakov
Details | Diff
use this ebuild and the patch above to compile. (mpio-0.7.1_pre2-r1.ebuild,927 bytes, text/plain)
2006-08-12 19:53 UTC, Anton Bolshakov
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Markus Lindstrom 2005-09-05 00:02:17 UTC
Trying to compile mpio-0.7.1_pre2 on my machine irremediably fails during the
first parts of the build. Indeed, here's the failure point:

*** configure: WARNING: you need at least version 0.1.7 of the libusb library
for USB support
*** http://sourceforge.net/projects/libusb/
*** If you cannot find the appropriate version, try CVS

It should be noted that libusb-0.1.10a is currently installed.


Reproducible: Always
Steps to Reproduce:
1. Install latest x86 libusb (0.1.10a)
2. Try installing mpio-0.7.1_pre2.

Actual Results:  
mpio's configure complains about not finding libusb.

Expected Results:  
mpio's configure script should detect the present libusb installation.
Comment 1 Mr. Bones. (RETIRED) gentoo-dev 2005-09-05 00:30:46 UTC
You didn't include the output of emerge --info as instructed on the bug
submission page.  Please do that.
Comment 2 Markus Lindstrom 2005-09-05 01:08:35 UTC
Woops! Didn't pay too much attention, first time here ;-).

Portage 2.0.51.22-r2 (default-linux/x86/2005.1, gcc-3.3.5-20050130,
glibc-2.3.5-r1, 2.6.12-gentoo-r4 i686)
=================================================================
System uname: 2.6.12-gentoo-r4 i686 AMD Athlon(tm) 64 Processor 3000+
Gentoo Base System version 1.6.13
ccache version 2.3 [enabled]
dev-lang/python:     2.3.5
sys-apps/sandbox:    1.2.12
sys-devel/autoconf:  2.13, 2.59-r6
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6
sys-devel/binutils:  2.15.92.0.2-r10
sys-devel/libtool:   1.5.18-r1
virtual/os-headers:  2.6.11-r2
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=athlon-xp -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3/share/config
/usr/lib/X11/xkb /usr/lib/mozilla/defaults/pref /usr/share/config
/usr/share/texmf/dvipdfm/config/ /usr/share/texmf/dvips/config/
/usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/
/usr/share/texmf/xdvi/ /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-O2 -march=athlon-xp -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig ccache distlocks sandbox sfperms strict"
GENTOO_MIRRORS="http://mir.zyrianes.net/gentoo/
http://ftp.easynet.nl/mirror/gentoo/ ftp://ftp.easynet.nl/mirror/gentoo/"
LANG="en_US.UTF-8"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="x86 3dnow X aalib acpi alsa apache2 atm avi berkdb bitmap-fonts bluetooth
bonobo bzip2 cdparanoia cdr cjk crypt cups curl divx4linux dvd eds emboss encode
esd ethereal fbcon flac foomaticdb fortran ftp gd gdbm gif gnome gpm gstreamer
gtk gtk2 gtkhtml guile iconv icq imagemagick imlib ipv6 java javascript joystick
jpeg ldap libg++ libwww lm_sensors mad mikmod mmx mono motif mozilla mp3 mpeg
msn ncurses nls nptl nvidia ogg oggvorbis opengl pam pdflib perl png ppds python
quicktime readline samba sdl slang spell sse ssl svga tcltk tcpd tetex theora
tiff truetype truetype-fonts type1-fonts unicode usb v4l vorbis win32codecs xine
xml xml2 xmms xv zlib userland_GNU kernel_linux elibc_glibc"
Unset:  ASFLAGS, CTARGET, LC_ALL, LDFLAGS, LINGUAS
Comment 3 Brian Atkinson 2005-09-05 21:25:41 UTC
The same happens on an amd64 system.  emerge --info below:

Portage 2.0.51.22-r2 (default-linux/amd64/2005.0, gcc-3.4.4, glibc-2.3.5-r1,
2.6.12-gentoo-r4 x86_64)
=================================================================
System uname: 2.6.12-gentoo-r4 x86_64 AMD Athlon(tm) 64 Processor 2800+
Gentoo Base System version 1.6.13
dev-lang/python:     2.3.5
sys-apps/sandbox:    1.2.12
sys-devel/autoconf:  2.13, 2.59-r6
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6
sys-devel/binutils:  2.15.92.0.2-r10
sys-devel/libtool:   1.5.18-r1
virtual/os-headers:  2.6.11-r2
ACCEPT_KEYWORDS="amd64"
AUTOCLEAN="yes"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -fomit-frame-pointer -pipe -march=k8"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.4/env
/usr/kde/3.4/share/config /usr/kde/3.4/shutdown /usr/kde/3/share/config
/usr/lib/X11/xkb /usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-O2 -fomit-frame-pointer -pipe -march=k8"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig distlocks sandbox sfperms strict"
GENTOO_MIRRORS="http://gentoo.chem.wisc.edu/gentoo/ http://distfiles.gentoo.org/
http://www.ibiblio.org/pub/Linux/distributions/gentoo"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://rsync.us.gentoo.org/gentoo-portage/"
USE="amd64 X alsa arts avi berkdb bitmap-fonts cdparanoia crypt cups encode fam
flac foomaticdb fortran gdbm gif gphoto2 gpm gstreamer gtk gtk2 imlib ipv6
ithreads java jpeg kde lzw lzw-tiff mad mozilla mp3 mpeg ncurses netboot nls
nvidia ogg opengl pam pdflib perl png python qt quicktime rdesktop readline
samba sdl spell ssl tcpd tiff truetype-fonts type1-fonts usb userlocales vorbis
wifi xine xml2 xpm xscreensaver xv zeroconf zlib userland_GNU kernel_linux
elibc_glibc"
Unset:  ASFLAGS, CTARGET, LANG, LC_ALL, LDFLAGS, LINGUAS, PORTDIR_OVERLAY
Comment 4 Tero Taipale 2005-10-13 02:00:08 UTC
 Downgrading to dev-libs/libusb-0.1.7-r1 works. It's the same if you try to
build manually from source. Maybe some error in the makefiles?
Comment 5 TGL 2005-10-15 16:20:59 UTC
Autoconf version checking is obviously wrong (string comparison):

if test "$LIBUSB_VER" \< "0.1.7"; then
    AC_MSG_WARN([
*** You need at least version 0.1.7 of the libusb library for USB support
*** http://sourceforge.net/projects/libusb/
*** If you cannot find the appropriate version, try CVS
            ])
    exit 1
fi

What is funny is that it's a copy/paste from libgphoto2, where it is just used
to display a warning because it is known to be broken, but it has been made
fatal in mpio. The proper fix would be to use a real version comparison macro
like ax_compare_version, but i guess for the need of making this ebuild work
ripping out the offending chunk would be enough.
Comment 6 Anton Bolshakov 2006-04-28 10:03:01 UTC
Created attachment 85672 [details, diff]
removing libusb version check in configure script.

add unpack section to the build:

src_unpack()
{
        unpack ${A}
        cd "${S}"
        epatch ${FILESDIR}/${P}-libusb.patch
}

Please check the patch and close a bug.
Comment 7 Anton Bolshakov 2006-04-28 10:07:34 UTC
it should be also one more line in ebuild:
inherit eutils
Comment 8 Jakub Moc (RETIRED) gentoo-dev 2006-05-30 16:05:17 UTC
*** Bug 134968 has been marked as a duplicate of this bug. ***
Comment 9 Anton Bolshakov 2006-08-12 19:53:11 UTC
Created attachment 94106 [details]
use this ebuild and the patch above to compile.
Comment 10 Jakub Moc (RETIRED) gentoo-dev 2007-02-03 22:15:55 UTC
# Diego Pettenò <flameeyes@gentoo.org> (03 Feb 2007)
# Pending removal March 3rd, no upstream, old package
# requires specific hardware.
media-sound/mpio