pena libgphoto2 # CAMERAS="canon" ebuild libgphoto2-2.1.6-r1.ebuild clean preinst Generating usbcam-gphoto2.usermap .. * Unable to find /var/tmp/portage/libgphoto2-2.1.6-r1/image//usr/lib/libgphoto2/print-usb-usermap * and therefore unable to generate hotplug usermap. * You will have to manually generate it by running: * /usr/lib/libgphoto2/print-usb-usermap > /etc/hotplug/usb/usbcam-gphoto2.usermap find: /var/tmp/portage/libgphoto2-2.1.6-r1/image//: No such file or directory find: /var/tmp/portage/libgphoto2-2.1.6-r1/image//: No such file or directory preinst should be inline with other steps like ebuild <ebuild> install that executes unpack, compile and so on if they are not done. This problem is present in versions 2.0.54 and 2.1_pre3-r1 at least. Portage 2.1_pre3-r1 (default-linux/x86/2005.1, gcc-3.4.5, glibc-2.3.5-r3, 2.6.14-gentoo-r6 i686) ================================================================= System uname: 2.6.14-gentoo-r6 i686 Intel(R) Pentium(R) 4 CPU 2.40GHz Gentoo Base System version 1.12.0_pre12 distcc 2.18.3 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled] ccache version 2.4 [enabled] dev-lang/python: 2.4.2 sys-apps/sandbox: 1.2.17 sys-devel/autoconf: 2.13, 2.59-r7 sys-devel/automake: 1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r1 sys-devel/binutils: 2.16.1-r1 sys-devel/libtool: 1.5.22 virtual/os-headers: 2.6.11-r3 ACCEPT_KEYWORDS="x86 ~x86" AUTOCLEAN="yes" CBUILD="i686-pc-linux-gnu" CFLAGS="-O2 -march=pentium4 -pipe -mfpmath=sse -ffast-math -fomit-frame-pointer" CHOST="i686-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/kde/3/share/config /usr/share/X11/xkb /usr/share/config /var/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/splash /etc/terminfo /etc/env.d" CXXFLAGS="-O2 -march=pentium4 -pipe -mfpmath=sse -ffast-math -fomit-frame-pointer" DISTDIR="/usr/src/distfiles" FEATURES="autoaddcvs autoconfig ccache collision-protect cvs distlocks fixpackages sandbox sfperms sign strict stricter verify-rdepend" GENTOO_MIRRORS=" http://trumpetti.atm.tut.fi/gentoo http://lame.lut.fi/linux/gentoo " LANG="en_US.utf8" LC_ALL="en_US.utf8" LINGUAS="fi" MAKEOPTS="-j2 " PKGDIR="/home/pkg/" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/mnt/checkouts/overlays/betelgeuse" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="x86 aac acl acpi alsa apm arts audiofile avi bash-completion berkdb bitmap-fonts bluetooth bzip2 bzlib cdb cddb cdparanoia cdr crypt cups curl dbus divx4linux dts dvd dvdr dvdread emboss esd exif expat fam ffmpeg firefox foomaticdb freetype gif glut gmp gstreamer gtk2 hal idn imagemagick java jpeg kde kdeenablefinal lcms libg++ libwww logitech-mouse mad makecheck mikmod mjpeg mmx mmx2 mng mp3 mpeg ncurses network nptl nptlonly nsplugin nvidia offensive ogg oggvorbis openal opengl pam pcre pdflib png qt quicktime readline real rtc ruby samba spell sqlite sse sse2 ssl subversion svg symlink tcpd theora tiff truetype truetype-fonts type1-fonts udev unicode usb userlocales vorbis win32codecs xine xml xml2 xv xvid zlib elibc_glibc kernel_linux linguas_fi userland_GNU video_cards_nvidia" Unset: ASFLAGS, CTARGET, LDFLAGS
Same seems to apply to postinst.
Hmm, {pre,post}inst aren't listed in actionmap so don't have any dependencies. Don't know if there is a reason behind this. Would have to shuffle doebuild a bit to fix this, nothing I'd push into 2.1.2. Anyone else taking a look at this?
You can call these functions on /var/db/pkg/*/*/*.ebuild if you want. Otherwise, I'd suggest to call the 'merge' target, since that calls both preinst and postinst automatically.