Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 73074 - libusb dependency for www-apps/nut ebuild forgotten when using NUT_DRIVERS="newhidups"
Summary: libusb dependency for www-apps/nut ebuild forgotten when using NUT_DRIVERS="n...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: x86 Linux
: High minor (vote)
Assignee: Robin Johnson
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-12-01 13:53 UTC by Julien Biezemans
Modified: 2006-05-17 23:10 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 Julien Biezemans 2004-12-01 13:53:41 UTC
modern MGE USB ups devices can be used with the new "newhidups" driver supplied in nut. Using the NUT_DRIVERS="newhidups" kinda work but the libusb dependency must be emerged manually. the ebuild doesn't care about it.

here is the failure before merging libusb:

gcc -I../include -O2 -mcpu=athlon-xp -march=athlon-xp -fomit-frame-pointer -pipe -Wall -Wsign-compare -o upsdrvctl upsdrvctl.c ../common/upsconf.o \
        ../common/parseconf.o ../common/common.o
In file included from libusb.c:35:
hid-usb.h:2:30: usb.h: No such file or directory
distcc[29214] ERROR: compile libusb.c on nephtys/1 failed
make[1]: *** [libusb.o] Error 1
make[1]: *** Waiting for unfinished jobs....
newhidups.c:385: warning: `hu_find_valinfo' defined but not used
In file included from libhid.c:38:
hid-usb.h:2:30: usb.h: No such file or directory
distcc[29213] ERROR: compile libhid.c on anubis/2 failed
make[1]: *** [libhid.o] Error 1
make: *** [build] Error 1

!!! ERROR: www-apps/nut-2.0.0 failed.
!!! Function src_compile, Line 55, Exitcode 2
!!! compile problem
!!! If you need support, post the topmost build error, NOT this status message. 

Reproducible: Always
Steps to Reproduce:
1. libusb is not installed on system
2. NUT_DRIVERS="newhidups" emerge www-apps/nut

Actual Results:  
compilation failure, missing hid-usb.h header file.

Expected Results:  
should hace compiled nut with newhidups driver.

Portage 2.0.51-r3 (default-linux/x86/2004.3, gcc-3.3.4, glibc-2.3.4.20040808-r1,
2.6.9-gentoo-r6 i686)
=================================================================
System uname: 2.6.9-gentoo-r6 i686 AMD Athlon(tm) XP 2400+
Gentoo Base System version 1.4.16
distcc 2.16 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [enabled]
Autoconf: sys-devel/autoconf-2.59-r5
Automake: sys-devel/automake-1.8.5-r1
Binutils: sys-devel/binutils-2.15.90.0.1.1-r3
Headers:  sys-kernel/linux-headers-2.4.21-r1
Libtools: sys-devel/libtool-1.5.2-r7
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CFLAGS="-O2 -mcpu=athlon-xp -march=athlon-xp -fomit-frame-pointer -pipe"
CHOST="i686-pc-linux-gnu"
COMPILER=""
CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config
/usr/kde/3.3/env /usr/kde/3.3/share/config /usr/kde/3.3/shutdown
/usr/kde/3/share/config /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 -mcpu=athlon-xp -march=athlon-xp -fomit-frame-pointer -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs autoconfig ccache distcc distlocks sandbox sfperms"
GENTOO_MIRRORS="http://ftp.belnet.be/mirror/rsync.gentoo.org/gentoo/
http://ftp.gentoo.skynet.be/pub/gentoo/"
MAKEOPTS="-j8"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://amenophis/gentoo-portage"
USE="3dnow X aalib acpi alsa apache2 apm avi berkdb bitmap-fonts cdr cgi crypt
cups dba dga directfb divx4linux dvd dvdr encode esd f77 fam fbdev flac
foomaticdb fortran gd gdbm gif gnome gpm gstreamer gtk gtk2 guile icq
imagemagick imap imlib ipv6 jabber java jpeg kde ldap libg++ libwww live mad
mikmod mmx motif mozilla moznocompose moznoirc moznomail mpeg mysql mythtv nas
ncurses network nls oggvorbis opengl oss pam pda pdflib perl png python qt
quicktime readline rtc samba sdl slang slp spell sqlite sse ssl svga tcltk tcpd
tetex tiff truetype usb v4l v4l2 videos x86 xinerama xml xml2 xmms xv xvid zlib"
Comment 1 Renat Lumpau (RETIRED) gentoo-dev 2005-07-03 17:28:17 UTC
This ain't web-apps...
Comment 2 Julien Biezemans 2005-07-04 17:08:02 UTC
Seems still problematic with www-apps/nut-2.0.1_pre4. I also think nut should go
in another category (sys-power?)
Comment 3 Niels Laukens 2005-08-20 07:22:20 UTC
this is solved in the experimental ebuilds in bug #85296
Comment 4 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2006-05-17 22:46:11 UTC
commiting in a moment
Comment 5 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2006-05-17 23:10:58 UTC
Fixed in CVS.