Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 587840 - app-misc/lirc-0.9.4 - Missing dependency virtual/libusb: commandir.c:32:17: fatal error: usb.h: No such file or directory
Summary: app-misc/lirc-0.9.4 - Missing dependency virtual/libusb: commandir.c:32:17: f...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Craig Andrews
URL:
Whiteboard:
Keywords: PATCH
Depends on:
Blocks:
 
Reported: 2016-07-02 22:31 UTC by Juergen Rose
Modified: 2016-07-08 11:48 UTC (History)
3 users (show)

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


Attachments
build.log (build.log,60.98 KB, application/octet-stream)
2016-07-02 22:31 UTC, Juergen Rose
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Juergen Rose 2016-07-02 22:31:51 UTC
Created attachment 439472 [details]
build.log

'MAKEOPTS=-j1 emerge -v1 lirc' fails with:
...

libtool: compile:  x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I.. -I../lib -I../lib -I.. -Wall -Wp,-D_FORTIFY_SOURCE=2 -pthread -Wall -DPLUGINDOCS=\"/usr/share/doc/lirc-0.9.4/plugindocs\" -DHAVE_LIBUDEV_H -march=core-avx2 -O2 -pipe -c default.c  -fPIC -DPIC -o .libs/default.o
<command-line>:0:0: warning: "_FORTIFY_SOURCE" redefined
<built-in>: note: this is the location of the previous definition
/bin/sh ../libtool  --tag=CC   --mode=link x86_64-pc-linux-gnu-gcc -pthread -Wall -DPLUGINDOCS=\"/usr/share/doc/lirc-0.9.4/plugindocs\" -DHAVE_LIBUDEV_H -march=core-avx2 -O2 -pipe -module -avoid-version -L../lib -llirc_driver -ludev -Wl,--as-needed -o default.la -rpath /usr/lib64/lirc/plugins default.lo  -ldl 
libtool: link: x86_64-pc-linux-gnu-gcc -shared  -fPIC -DPIC  .libs/default.o   -Wl,-rpath -Wl,/var/tmp/portage/app-misc/lirc-0.9.4/work/lirc-0.9.4/lib/.libs -L../lib /var/tmp/portage/app-misc/lirc-0.9.4/work/lirc-0.9.4/lib/.libs/liblirc_driver.so -ludev -ldl  -pthread -march=core-avx2 -O2 -Wl,--as-needed   -pthread -Wl,-soname -Wl,default.so -o .libs/default.so
libtool: link: ( cd ".libs" && rm -f "default.la" && ln -s "../default.la" "default.la" )
/bin/sh ../libtool  --tag=CC   --mode=compile x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I..  -I../lib -I../lib -I.. -Wall -Wp,-D_FORTIFY_SOURCE=2  -pthread -Wall -DPLUGINDOCS=\"/usr/share/doc/lirc-0.9.4/plugindocs\" -DHAVE_LIBUDEV_H  -march=core-avx2 -O2 -pipe -c -o commandir_la-commandir.lo `test -f 'commandir.c' || echo './'`commandir.c
libtool: compile:  x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I.. -I../lib -I../lib -I.. -Wall -Wp,-D_FORTIFY_SOURCE=2 -pthread -Wall -DPLUGINDOCS=\"/usr/share/doc/lirc-0.9.4/plugindocs\" -DHAVE_LIBUDEV_H -march=core-avx2 -O2 -pipe -c commandir.c  -fPIC -DPIC -o .libs/commandir_la-commandir.o
<command-line>:0:0: warning: "_FORTIFY_SOURCE" redefined
<built-in>: note: this is the location of the previous definition
commandir.c:32:17: fatal error: usb.h: No such file or directory








root@sysresccd:/usr/src/linux(229)# emerge --info '=app-misc/lirc-0.9.4::gentoo'
Portage 2.3.0 (python 3.4.4-final-0, default/linux/amd64/13.0/desktop, gcc-5.4.0, glibc-2.23-r2, 3.18.25-std471-amd64 x86_64)
=================================================================
                         System Settings
=================================================================
System uname: Linux-3.18.25-std471-amd64-x86_64-Intel-R-_Core-TM-_i7-4770_CPU_@_3.40GHz-with-gentoo-2.2
KiB Mem:    16370220 total,   3463044 free
KiB Swap:          0 total,         0 free
Timestamp of repository gentoo: Sat, 02 Jul 2016 14:30:01 +0000
sh bash 4.3_p46
ld GNU ld (Gentoo 2.25.1 p1.1) 2.25.1
app-shells/bash:          4.3_p46::gentoo
dev-java/java-config:     2.2.0-r3::gentoo
dev-lang/perl:            5.24.0-r1::gentoo
dev-lang/python:          2.7.11-r2::gentoo, 3.4.4::gentoo
dev-util/cmake:           3.5.2-r1::gentoo
dev-util/pkgconfig:       0.29.1::gentoo
sys-apps/baselayout:      2.2-r1::gentoo
sys-apps/openrc:          0.21.1::gentoo
sys-apps/sandbox:         2.10-r2::gentoo
sys-devel/autoconf:       2.13::gentoo, 2.69-r2::gentoo
sys-devel/automake:       1.11.6-r2::gentoo, 1.13.4-r1::gentoo, 1.14.1-r1::gentoo, 1.15-r2::gentoo
sys-devel/binutils:       2.25.1-r1::gentoo
sys-devel/gcc:            5.4.0::gentoo
sys-devel/gcc-config:     1.8-r1::gentoo
sys-devel/libtool:        2.4.6-r2::gentoo
sys-devel/make:           4.2.1::gentoo
sys-kernel/linux-headers: 4.6::gentoo (virtual/os-headers)
sys-libs/glibc:           2.23-r2::gentoo
Repositories:

gentoo
    location: /usr/portage_grizzly
    sync-type: rsync
    sync-uri: rsync://rsync.gentoo.org/gentoo-portage
    priority: -1000

x-portage
    location: /usr/local/portage
    masters: gentoo
    priority: 0

g-cpan
    location: /var/lib/cpan
    masters: gentoo
    priority: 1

g-octave
    location: /var/lib/g-octave
    masters: gentoo
    priority: 2

sage-on-gentoo
    location: /var/lib/layman/sage-on-gentoo
    masters: gentoo science
    priority: 50

science
    location: /var/lib/layman/science
    masters: gentoo
    priority: 50

sunrise
    location: /var/lib/layman/sunrise
    masters: gentoo
    priority: 50

x11
    location: /var/lib/layman/x11
    masters: gentoo
    priority: 50

ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="* -@EULA"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=core-avx2 -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/lib64/libreoffice/program/sofficerc /usr/share/config /usr/share/gnupg/qualified.txt"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /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=core-avx2 -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync news parallel-fetch preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://gentoo.inode.at/ ftp://gentoo.inode.at/source/ http://gd.tuwien.ac.at/opsys/linux/gentoo/ ftp://gd.tuwien.ac.at/opsys/linux/gentoo/ http://gentoo.supp.name/ rsync://ftp6.linux.cz/pub/linux/gentoo/ rsync://ftp.fi.muni.cz/pub/linux/gentoo/ ftp://ftp.fi.muni.cz/pub/linux/gentoo/ rsync://trumpetti.atm.tut.fi/gentoo/ ftp://trumpetti.atm.tut.fi/gentoo/ http://trumpetti.atm.tut.fi/gentoo/ ftp://de-mirror.org/gentoo/ http://de-mirror.org/gentoo/ rsync://de-mirror.org/gentoo/ ftp://ftp.wh2.tu-dresden.de/pub/mirrors/gentoo http://mirror.netcologne.de/gentoo/ ftp://mirror.netcologne.de/gentoo/ rsync://mirror.netcologne.de/gentoo/ http://linux.rz.ruhr-uni-bochum.de/download/gentoo-mirror/ ftp://ftp.halifax.rwth-aachen.de/gentoo/ http://ftp.halifax.rwth-aachen.de/gentoo/ rsync://ftp.halifax.rwth-aachen.de/gentoo/ ftp://sunsite.informatik.rwth-aachen.de/pub/Linux/gentoo ftp://ftp.spline.inf.fu-berlin.de/mirrors/gentoo/ http://ftp.spline.inf.fu-berlin.de/mirrors/gentoo/ ftp://ftp.uni-erlangen.de/pub/mirrors/gentoo http://ftp.uni-erlangen.de/pub/mirrors/gentoo ftp://ftp-stud.hs-esslingen.de/pub/Mirrors/gentoo/ rsync://ftp-stud.hs-esslingen.de/gentoo/ http://ftp-stud.hs-esslingen.de/pub/Mirrors/gentoo/ ftp://ftp.snt.utwente.nl/pub/os/linux/gentoo http://ftp.snt.utwente.nl/pub/os/linux/gentoo rsync://ftp.snt.utwente.nl/gentoo rsync://gentoo.prz.rzeszow.pl/gentoo http://gentoo.prz.rzeszow.pl http://gentoo.po.opole.pl rsync://ftp.vectranet.pl/gentoo/ http://ftp.vectranet.pl/gentoo/ ftp://ftp.vectranet.pl/gentoo/ http://gentoo.mirror.pw.edu.pl/"
LANG="en_US.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j9"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --exclude=/.git"
PORTAGE_TMPDIR="/var/tmp"
USE="X Xaw3d a52 aac acl acpi admin alsa amd64 armadillo aspell atlas audacious audiofile automap automount barcode bash-completion berkdb blas bluetooth boost branding btrfs bzip2 cairo cdda cdr cilkv clama cli cmake collada consolekit contrib cracklib crypt cups curl cxx daap db dbus designer devhelp device-mapper dia doc dot dri dts dvd dvdr emacs emboss encode examples exif extra extras faac faad fam firefox flac fltk fontconfig fortran fortran95 gd gdal gdbm gfortran gif gimp git glamor glpk gmp gnome gnome-keyring gnome-print gnutls gphoto2 gpm graphics graphviz gsl gstreamer gtk gtk3 hddtemp hdf hdf5 http httpd hvm iconv icu imagemagick introspection ipv6 jadetex jpeg jpeg2k kate lame lapack latex lcms ldap libkms libnotify lm_sensors lua mad mkl mmx mmxext mng modules mono motif mozilla mp3 mp4 mpeg mpi mpi-threads multilib mysql mysqli ncurses netpbm nls nptl octave ogg opengl openmp pam pango pcre pdf pdl2 png policykit ppds preview-latex python qt3support qt4 qt5 readline romio sage sasl sdl seccomp session sndfile spell sql sqlite sse sse2 ssl startup-notification svg systemd szip tcl tcpd tex tex4ht texmacs threads tiff tk truetype udev udisks unicode upower usb vorbis vtk wxwidgets x264 xa xattr xcb xetex xml xv xvid zlib zsh-completion" ABI_X86="64" 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" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd 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 sheets stage tables krita karbon braindump author" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="aes avx avx2 fma3 mmx mmxext popcnt sse sse2 sse3 sse4_1 sse4_2 ssse3" 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 ublox ubx" GRUB_PLATFORMS="efi-64 pc" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" L10N="de en fr ru" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="de en fr ru" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-5" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_4" RUBY_TARGETS="ruby20 ruby21" USERLAND="GNU" VIDEO_CARDS="intel i965 radeon" 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:  CC, CPPFLAGS, CTARGET, CXX, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON





root@sysresccd:/usr/src/linux(230)# emerge -pqv '=app-misc/lirc-0.9.4::gentoo'
[ebuild  N    ] app-misc/lirc-0.9.4  USE="X systemd -audio -doc -ftdi -iguanair -inputlirc -irman -static-libs"
Comment 1 Juergen Rose 2016-07-02 22:36:20 UTC
There is no /usr/include/usb.h. Should app-misc/lirc depend on libusb-compat?
Comment 2 Adam Feldman gentoo-dev 2016-07-06 17:46:16 UTC
https://sourceforge.net/p/lirc/git/ci/master/tree/configure.ac Shows an automagic dependency for detecting libusb's presence, so might make sense to just hard depend on it.
Comment 3 Craig Andrews gentoo-dev 2016-07-06 21:29:25 UTC
I've requested the upstream make the dependency on libusb optional: https://sourceforge.net/p/lirc/tickets/205/
Hopefully we can add a "usb" use flag in the future.

I've also modified the ebuild to depend on virtual/libusb:0 in this pull request:
https://github.com/gentoo/gentoo/pull/1837
Comment 4 Patrice Clement gentoo-dev 2016-07-08 11:48:42 UTC
commit 14651c90aa1f5ce03a64d5cfe73c51c2f7894ecf (HEAD -> master, origin/master, origin/HEAD)
Author:     Craig Andrews <candrews@integralblue.com>
AuthorDate: Wed Jul 6 17:27:49 2016 -0400
Commit:     Patrice Clement <monsieurp@gentoo.org>
CommitDate: Fri Jul 8 11:20:29 2016 +0000

app-misc/lirc-0.9.4: add dependency on virtual/libusb:0

Gentoo-Bug: https://bugs.gentoo.org/587840
Closes: https://github.com/gentoo/gentoo/pull/1837

Signed-off-by: Patrice Clement <monsieurp@gentoo.org>

app-misc/lirc/lirc-0.9.4.ebuild | 1 +
1 file changed, 1 insertion(+)