Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 36685 - libgphoto2 should install a proper /etc/hotplug/usb/usbcam.usermap
Summary: libgphoto2 should install a proper /etc/hotplug/usb/usbcam.usermap
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All All
: High enhancement (vote)
Assignee: Alastair Tse (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-12-28 15:29 UTC by Chris Gianelloni (RETIRED)
Modified: 2006-12-31 13:47 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 Chris Gianelloni (RETIRED) gentoo-dev 2003-12-28 15:29:52 UTC
The one that is installed by the ebuild is blank.  It should probably install a proper one.
Comment 1 Alastair Tse (RETIRED) gentoo-dev 2003-12-29 03:01:58 UTC
which version of libgphoto2? can you include outputs like emerge info?
Comment 2 Chris Gianelloni (RETIRED) gentoo-dev 2003-12-29 03:52:05 UTC
Sure:

$ emerge -vp libgphoto2
 
These are the packages that I would merge, in order:
 
Calculating dependencies ...done!
[ebuild   R   ] media-libs/libgphoto2-2.1.2-r1  -nls -doc +jpeg

$ emerge info
Portage 2.0.49-r15 (default-x86-1.4, gcc-3.2.3, glibc-2.3.2-r3, 2.4.22-gentoo-r2)
=================================================================
System uname: 2.4.22-gentoo-r2 i686 AMD Athlon(tm) MP 2200+
Gentoo Base System version 1.4.3.10
distcc 2.11.1 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [enabled]
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CFLAGS="-march=athlon-mp -O2 -pipe -fomit-frame-pointer -fprefetch-loop-arrays -fmerge-all-constants -fforce-addr -foptimize-register-move -frename-registers -mfpmath=sse,387 -mno-push-args -mno-align-stringops -maccumulate-outgoing-args"
CHOST="i686-pc-linux-gnu"
COMPILER="gcc3"
CONFIG_PROTECT="/etc /var/qmail/control /usr/share/config /usr/kde/2/share/config /usr/kde/3/share/config /usr/X11R6/lib/X11/xkb"
CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d"
CXXFLAGS="-march=athlon-mp -O2 -pipe -fomit-frame-pointer -fprefetch-loop-arrays -fmerge-all-constants -fforce-addr -foptimize-register-move -frename-registers -mfpmath=sse,387 -mno-push-args -mno-align-stringops -maccumulate-outgoing-args"DISTDIR="/usr/portage/distfiles"
FEATURES="sandbox ccache distcc digest autoaddcvs notitles cvs"
GENTOO_MIRRORS="ftp://ftp.gtlib.cc.gatech.edu/pub/gentoo ftp://mirrors.tds.net/gentoo ftp://ftp.ussg.iu.edu/pub/linux/gentoo http://adelie.polymtl.ca/ ftp://csociety-ftp.ecn.purdue.edu/pub/gentoo/"
MAKEOPTS="-j4"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.us.gentoo.org/gentoo-portage"
USE="x86 3dnow acpi avi cdr crypt dvd encode esd gphoto2 gif gnome gtk gtk2 ipv6 java jpeg ldap mmx mozilla mpeg oggvorbis opengl oss pam pdflib perl pic png quicktime readline sdl spell sse ssl tiff truetype X xml xml2 xmms xv zlib"
 
Is there anything else you need?
Comment 3 Michiel de Bruijne 2003-12-29 09:51:18 UTC
I had installed media-libs/libgphoto2-2.1.2-r1 after it was bumped stable. /etc/hotplug/usb/usbcam.usermap was empty. To help you with this bug I have rebuild media-libs/libgphoto2-2.1.2-r1 and now all known camera's are listed in /etc/hotplug/usb/usbcam.usermap. I suspect that the same happens when Chris re-emerge libgphoto2.
Comment 4 Alastair Tse (RETIRED) gentoo-dev 2004-01-02 18:12:51 UTC
can one of you try running /usr/lib/libgphoto2/print-usb-usermap ? does it output anything?

it is possible that the usb component hasn't been enabled and thus none of the usb device entries were compiled in.
Comment 5 Chris Gianelloni (RETIRED) gentoo-dev 2004-01-02 18:33:06 UTC
It installs a proper usbmap the SECOND time you emerge the libraries.
Comment 6 Alastair Tse (RETIRED) gentoo-dev 2004-01-08 19:33:49 UTC
moving usbcam.usermap generation to postinst() with different filename. print-usb-usermap needs the library files installed before it works properly, hence it only works on second merge, or new entries only get appended on second merge.