see build.log Portage 2.1.9.24 (default/linux/amd64/10.0/developer, gcc-4.5.1, glibc-2.12.1-r3, 2.6.35-zen2-dark-jedi x86_64) ================================================================= System uname: Linux-2.6.35-zen2-dark-jedi-x86_64-AMD_Phenom-tm-_II_X6_1055T_Processor-with-gentoo-2.0.1 Timestamp of tree: Unknown distcc 3.1 x86_64-pc-linux-gnu [disabled] ccache version 3.1.2 [disabled] app-shells/bash: 4.1_p9 dev-java/java-config: 2.1.11-r2 dev-lang/python: 2.6.6-r1, 3.1.2-r4 dev-util/ccache: 3.1.2 dev-util/cmake: 2.8.1-r2 sys-apps/baselayout: 2.0.1-r1 sys-apps/openrc: 0.6.5 sys-apps/sandbox: 2.3-r1 sys-devel/autoconf: 2.13, 2.68 sys-devel/automake: 1.8.5-r4, 1.9.6-r3, 1.10.3, 1.11.1 sys-devel/binutils: 2.20.1-r1 sys-devel/gcc: 4.4.5, 4.5.1-r1 sys-devel/gcc-config: 1.4.1 sys-devel/libtool: 2.4 sys-devel/make: 3.82 virtual/os-headers: 2.6.36 (sys-kernel/linux-headers) ACCEPT_KEYWORDS="amd64 ~amd64" ACCEPT_LICENSE="*" CBUILD="x86_64-pc-linux-gnu" CFLAGS="-O2 -march=core2 -pipe" CHOST="x86_64-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/share/config" CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5.3/ext-active/ /etc/php/cgi-php5.3/ext-active/ /etc/php/cli-php5.3/ext-active/ /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="-O2 -march=core2 -pipe" DISTDIR="/usr/myportage/distfiles/" FEATURES="assume-digests binpkg-logs buildpkg collision-protect distlocks fixlafiles fixpackages metadata-transfer news nodoc parallel-fetch protect-owned sandbox sfperms splitdebug test-fail-continue unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox" GENTOO_MIRRORS="http://distfiles.hw.lan/ ftp://ftp.cc.uoc.gr/mirrors/linux/gentoo/" LDFLAGS="-Wl,-O1 -Wl,--hash-style=gnu,--enable-new-dtags -Wl,--as-needed" LINGUAS="en el" MAKEOPTS="-j7" PKGDIR="/usr/myportage/packages/" 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/portage" PORTDIR_OVERLAY=" " SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="X a52 aac acl acpi alsa amd64 apm bash-completion bluetooth bzip2 bzlib cairo cdr chm cli consolekit cracklib crypt ctype cups custom-cxxflags cxx dbus dga divx divx4linux dri dts dvd dvdr dvdread emboss encode exif fat ffmpeg firefox flac foomaticdb gd gif gimp gimpprint glib glitz gnutls gphoto2 gpm hal iconv id3tag imagemagick imlib ipv6 ipw4965 jpeg laptop lcms libnotify libwww lm_sensors mad mikmod mime mjpeg mmx mmxext mng modules mozilla mp3 mp4 mpeg mplayer mudflap multilib multiuser ncurses networkmanager nls nptl ntfs ogg opengl openmp pam pango pcre pdf perl php png policykit posix ppds pppd private-headers python qt3support qt4 quicktime rar raster readline reiserfs session simplexml smp sockets spell sqlite sqlite3 srt sse sse2 sse3 ssl ssse3 startup-notification subtitles svg symlink sysfs syslog tcpd threads truetype unicode usb userlocales v4l v4l2 vorbis x264 xcb xcomposite xfs xine xml xmlreader xorg xscreensaver xv xvid zip zlib" ALSA_CARDS="hda-intel" 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" 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="keyboard mouse synaptics evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en el" PHP_TARGETS="php5-2" 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, FFLAGS, INSTALL_MASK, LANG, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Created attachment 255161 [details] build.log
Same error here on ~amd64. I did some tests : - I emerged libgphoto with every cameras in the CAMERAS variable except the st2205 one. Portage emerges gd as a dependecy and libgphoto2 without any problem. - I then emerged libgphoto2 with no CAMERAS variable. Portage installed libgphoto2 with every camera drivers without any problem. - I unmerged gd and did the same thing, the installation failed. gd is needed in order to compile the st2205 driver, but portage won't install it if the CAMERAS variable is not set. Portage 2.1.9.24 (default/linux/amd64/10.0/desktop/gnome, gcc-4.5.1, glibc-2.12.1-r3, 2.6.36-gentoo-r1 x86_64) ================================================================= System uname: Linux-2.6.36-gentoo-r1-x86_64-Intel-R-_Core-TM-2_Quad_CPU_Q6600_@_2.40GHz-with-gentoo-2.0.1 Timestamp of tree: Tue, 23 Nov 2010 16:25:01 +0000 ccache version 3.1.2 [enabled] app-shells/bash: 4.1_p9 dev-java/java-config: 2.1.11-r2 dev-lang/python: 2.6.6-r1, 3.1.2-r4 dev-util/ccache: 3.1.2 dev-util/cmake: 2.8.1-r2 sys-apps/baselayout: 2.0.1-r1 sys-apps/openrc: 0.6.5 sys-apps/sandbox: 2.3-r1 sys-devel/autoconf: 2.13, 2.68 sys-devel/automake: 1.9.6-r3, 1.10.3, 1.11.1 sys-devel/binutils: 2.20.1-r1 sys-devel/gcc: 4.4.5, 4.5.1-r1 sys-devel/gcc-config: 1.4.1 sys-devel/libtool: 2.4 sys-devel/make: 3.82 virtual/os-headers: 2.6.36 (sys-kernel/linux-headers) ACCEPT_KEYWORDS="amd64 ~amd64" ACCEPT_LICENSE="* -@EULA googleearth RTCW-ETEULA AdobeFlash-10 AdobeFlash-10.1" CBUILD="x86_64-pc-linux-gnu" CFLAGS="-O2 -pipe -march=native -fomit-frame-pointer" CHOST="x86_64-pc-linux-gnu" CONFIG_PROTECT="/etc /var/lib/hsqldb" CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo" CXXFLAGS="-O2 -pipe -march=native -fomit-frame-pointer" DISTDIR="/usr/portage/distfiles" FEATURES="assume-digests binpkg-logs ccache distlocks fixlafiles fixpackages news parallel-fetch protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch" GENTOO_MIRRORS="http://distfiles.gentoo.org" LANG="fr_FR.UTF-8" LC_ALL="fr_FR.UTF-8" LDFLAGS="-Wl,-O1 -Wl,--as-needed" LINGUAS="fr fr_FR" MAKEOPTS="-j5" PKGDIR="/usr/portage/packages" 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/portage" PORTDIR_OVERLAY="/usr/local/portage" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="X a52 aac acl acpi alsa amd64 amr applet avahi berkdb branding bzip2 cairo cdda cddb cdr cli consolekit cracklib crypt cups custom-optimization cxx dbus device-mapper dri dts dv dvd dvdr emboss enca encode exif extras fat ffmpeg firefox flac fortran gallium gd gdbm gdu gif gimp glade glitz gmail gnome gnome-keyring gphoto2 gstreamer gtk howl-compat iconv id3tag imap jpeg jpeg2k lcms ldap libnotify libv4l2 mad matroska mdnsresponder-compat mikmod mmx mmxext mng modplug modules moonlight mp3 mp4 mpeg mudflap multilib musepack nautilus ncurses nls nptl nptlonly nsplugin ogg ogm opengl openmp optimization pam pango pch pcre pdf perl png policykit posix ppds pppd python qt3support qt4 rar readline scanner sdl session sift sip smp speex spell sqlite srt sse sse2 sse3 ssl ssse3 startup-notification strong-optimization svg symlink sysfs taglib tcpd theora tiff truetype udev unicode upnp usb v4l2 vorbis wav webkit wifi wma wmf wxwidgets x264 xcb xml xorg xulrunner xv xvid zlib" ALSA_CARDS="intel8x0" 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="authn_file authz_groupfile dav dav_fs auth_digest" 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" LINGUAS="fr fr_FR" PHP_TARGETS="php5-2" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="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: CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
That's unfortunate but I don't see any clean way to solve this, maybe portage dev can help ?
Can you make it build with no cameras when CAMERAS is unset? You can use CAMERAS="*", or USE="cameras_*" if you want to build all cameras.
wouldn't that differ from the expected behavior of ebuilds with IUSE_EXPAND ?
(In reply to comment #5) > wouldn't that differ from the expected behavior of ebuilds with IUSE_EXPAND ? I'm not sure what ebuilds you're referring to. Anyway, I think my suggestion is a reasonable solution, regardless of how other ebuilds may behave (maybe the other ebuilds should be changed).
*** Bug 347049 has been marked as a duplicate of this bug. ***
Created attachment 255733 [details, diff] Fixes the build issue with libgphoto2-2.4.10 Hopefully this should work did for me
Created attachment 255735 [details] Updated ebuild to apply patch for libgphoto2 issue New ebuild which applies patch to allow libgphoto2 to compile
Dark Foo is right. The real cause of the problem is just a misplaced semicolon in camlibs/st2205/st2205_decode.c. This bug isn't a problem when media-libs/gd is installed because: #ifdef HAVE_GD ... #else ... int st2205_rgb24_to_rgb565(CameraPrivateLibrary *pl, int **src, unsigned char *dest); <--- rogue semicolon { return GP_ERROR_NOT_SUPPORTED; } #endif
media-libs/gd is a dependency that is required to build this camera driver, however as explained earlier in this report, when building all camera drivers with CAMERAS="", no condition in RDEPEND/DEPEND specific to a driver are satisfied. We will change the behavior of the ebuild as suggested by Zac if possible so that CAMERAS="" builds no driver. This will probably need a news item though.
So what is the suggested method to deal with this? pick up a random driver to build and done with that? Just to avoid all the compilation mess on every world update
I think I'll make a driver the default (like template, directory or some such) and the rest will be up to the user.
I've just been testing unstable x86 and this particular package is still causing grief. Logs have been attached.
Created attachment 259549 [details] emerge --info
Created attachment 259550 [details] emerge -pqv
Created attachment 259551 [details] build log
Created attachment 259553 [details] build environment
+ 12 Jan 2011; Gilles Dartiguelongue <eva@gentoo.org> libgphoto2-2.4.10.ebuild: + Change selective cameras build logic. Builds all when CAMERAS is set to *, + nothing if empty and only the ones specified otherwise in order to not + violate package manager handling, bug #346491. + Only news item to write now.
Will try to look at news item soon
News committed