Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 402727 - net-print/hplip-3.11.10 should depend on libusb unconditionally
Summary: net-print/hplip-3.11.10 should depend on libusb unconditionally
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Printing (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Daniel Pielmeier
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-02-08 16:20 UTC by Francisco J. Vazquez
Modified: 2012-02-17 18:32 UTC (History)
2 users (show)

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


Attachments
build.log (build.log,12.69 KB, text/plain)
2012-02-08 20:31 UTC, Francisco J. Vazquez
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Francisco J. Vazquez 2012-02-08 16:20:36 UTC
I see libusb is only a dependency if !minimal. However, hplip fails to compile with USE=minimal if libusb is not present. It compiles ok if I install libusb:0 beforehand. It should be an unconditional dependency.



Reproducible: Always




Portage 2.2.0_alpha81 (default/linux/amd64/10.0/server, gcc-4.5.3, glibc-2.13-r4, 3.0.4-gentoo x86_64)
=================================================================
System uname: Linux-3.0.4-gentoo-x86_64-AMD_Athlon-tm-_II_X2_255_Processor-with-gentoo-2.0.3
Timestamp of tree: Tue, 07 Feb 2012 08:30:01 +0000
app-shells/bash:          4.1_p9
dev-lang/python:          2.7.2-r3, 3.1.4-r3
dev-util/cmake:           2.8.6-r4
dev-util/pkgconfig:       0.26
sys-apps/baselayout:      2.0.3
sys-apps/openrc:          0.9.4
sys-apps/sandbox:         2.5
sys-devel/autoconf:       2.68
sys-devel/automake:       1.11.1
sys-devel/binutils:       2.21.1-r1
sys-devel/gcc:            4.5.3-r1
sys-devel/gcc-config:     1.4.1-r1
sys-devel/libtool:        2.4-r1
sys-devel/make:           3.82-r1
sys-kernel/linux-headers: 2.6.39 (virtual/os-headers)
sys-libs/glibc:           2.13-r4
Repositories: gentoo
Installed sets: @system
ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=native -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/openvpn/easy-rsa /var/yp/Makefile"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /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"
CXXFLAGS="-march=native -O2 -pipe"
DISTDIR="/usr/local/portage/distfiles"
FEATURES="assume-digests binpkg-logs distlocks ebuild-locks fixlafiles news parallel-fetch preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch"
FFLAGS=""
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LANG="en_US.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j2"
PKGDIR="/usr/local/portage/packages_965be"
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/local/portage/tree"
PORTDIR_OVERLAY=""
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X acl amd64 berkdb blas bzip2 cli cracklib crypt cups cxx dbus dri fbcon fortran gdbm gif gpm iconv ipv6 jpeg mmx modules mudflap multilib ncurses nls nptl nptlonly openmp pam pcre pdf perl png pppd python rar readline session snmp sse sse2 ssl svg sysfs tcpd tiff truetype unicode vorbis xml xorg 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" CALLIGRA_FEATURES="kexi words flow plan stage tables krita karbon braindump" 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" PHP_TARGETS="php5-3" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="intel" 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, LC_ALL, LINGUAS, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Daniel Pielmeier gentoo-dev 2012-02-08 19:59:50 UTC
emerge --unmerge dev-libs/libusb
USE="minimal" emerge -av =hplip-3.11.10

Works fine here. Please attach the full build log of your failing install.
Comment 2 Francisco J. Vazquez 2012-02-08 20:31:56 UTC
Created attachment 301301 [details]
build.log
Comment 3 Daniel Pielmeier gentoo-dev 2012-02-09 11:01:32 UTC
I think I found the problem. I guess hplip builds fine if you enable the hpijs use flag.
Comment 4 Francisco J. Vazquez 2012-02-09 11:25:30 UTC
Yep, with hpijs enabled I don't need libusb to emerge hplip, it compiles fine.
Comment 5 Daniel Pielmeier gentoo-dev 2012-02-09 20:36:38 UTC
(In reply to comment #4)
> Yep, with hpijs enabled I don't need libusb to emerge hplip, it compiles fine.

Thanks for your feedback. I am thinking about removing the minimal use flag. It has never done what it should. There is also no such configure option, just some others I used for the minimal build. These configure options are intransparent and probably wrong. So I think it is better to drop the flag completely.
Comment 6 Francisco J. Vazquez 2012-02-10 10:57:10 UTC
I hope you add a new USE for pygobject, then. I used "minimal" because I just need the hpcups/hpijs driver and the ppds (it's a minimal server). It works great that way.
Comment 7 Daniel Pielmeier gentoo-dev 2012-02-10 14:22:47 UTC
(In reply to comment #6)
> I hope you add a new USE for pygobject, then. I used "minimal" because I just
> need the hpcups/hpijs driver and the ppds (it's a minimal server). It works
> great that way.

Maybe I keep the minimal flag. Which use flags do you enable/disable for hplip to build only drivers and ppds?
Comment 8 Francisco J. Vazquez 2012-02-10 17:36:33 UTC
Right now I have it emerged with:

[ebuild   R    ] net-print/hplip-3.11.10  USE="X acl hpcups minimal snmp -doc -fax -hpijs -kde -libnotify -parport -policykit -qt4 -scanner -static-ppds"

(the X use flag is ignored, since scanner is not set). Since I don't need hpijs I decided to emerge libusb:0 by hand, emerge hplip and then unmerge libusb.

Maybe minimal is a bit redundant, since you can disable most other things anyway (scanner, fax, qt4, etc). The only thing that can be disabled only by setting USE=minimal is pygobject, which pulls several other packages.
Comment 9 Daniel Pielmeier gentoo-dev 2012-02-16 19:35:14 UTC
+*hplip-3.12.2-r1 (16 Feb 2012)
+
+  16 Feb 2012; Daniel Pielmeier <billie@gentoo.org> +hplip-3.12.2-r1.ebuild,
+  +files/hplip-3.12.2-minimal.patch:
+  Add a patch to fix minimal build with hpijs disabled and hpcups enabled. This
+  should fix bug #402727. Thanks to Francisco Vazquez for the report. Correct
+  other USE="minmal" related issues.

I have added a patch to hplip-3.12.2-r1 which should enable a minimal build with hpijs disabled and hpcups enabled. The patch fixes the configure script to behave the same for a hpijs driver only build and a hpcups driver only build. I think if only the driver is built it should make no difference if it is hpijs or hpcups.
Comment 10 Daniel Pielmeier gentoo-dev 2012-02-16 19:36:04 UTC
Please test if everything works correct now.
Comment 11 Francisco J. Vazquez 2012-02-17 12:26:21 UTC
Yep, everything works well and there's no need to have libusb:0 installed to emerge anymore.

Thanks!