Summary: | media-libs/libdc1394-2.1.2 will not compile against linux-headers 2.6.38 due to V4L1 removal | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Billy DeVincentis <billydv1> |
Component: | [OLD] Library | Assignee: | Stefaan De Roeck (RETIRED) <stefaan> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | Adrian.Bassett, adrien.duviviers, brad, brent.saner, gbin, hans, jlec, kredba, marsoft, neil, russell, silvio.gerli, stefan-r-bz, waterloo2005, zeekec, zioalex |
Priority: | Normal | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Bug Depends on: | |||
Bug Blocks: | 359595 | ||
Attachments: |
Proposed patch, just does not compile the examples anymore
build log for dbus ebuild with applied remove-examples patch Patch to disable examples compilation for version 1.2.2 patch for the ebuild |
Description
Billy DeVincentis
2011-03-21 12:25:05 UTC
*** Bug 359739 has been marked as a duplicate of this bug. *** I sent a notice to the libdc1394-devel mailinglist. PS: The dc1394_vloopback tool of libdc1394 example utilities which cannot be built anymore is not a required part of libdc1394 itself. And indeed amd64 is affected... blocking the package should work until it is fixed, hopefully soon. v4l shouldve been gone a long time ago. Created attachment 267221 [details, diff]
Proposed patch, just does not compile the examples anymore
This proposed patch seems to fix it, albeit by disabling compilation of the examples altogether. Feel free to double-check whether I forgot something, have not tested it thoroughly.
amd64 will not build build log attached Created attachment 267417 [details]
build log for dbus
Fixed upstream: http://libdc1394.git.sourceforge.net/git/gitweb.cgi?p=libdc1394/libdc1394;a=commitdiff;h=2ee7e7f98dd6225b40d5cd570c240504be7bc86a Similar issue on my ~x86 laptop. The build fails for me since upgrade in kernel headers. My build fails with the following error: creating libdc1394.la (cd .libs && rm -f libdc1394.la && ln -s ../libdc1394.la libdc1394.la) Making all in examples mkdir .libs i686-pc-linux-gnu-gcc -Wall -Wunused -std=gnu99 -march=native -O2 -pipe -Wl,-O1 -Wl,--hash-style=gnu -Wl,--as-needed -o .libs/dc1394_reset_bus dc1394_reset_bus.o ../dc1394/.libs/libdc1394.so /usr/lib/libraw1394.so /usr/lib/libusb-1.0.so -lrt -lm creating dc1394_reset_bus dc1394_vloopback.c:49:28: fatal error: linux/videodev.h: No such file or directory compilation terminated. make[2]: *** [dc1394_vloopback.o] Error 1 make[1]: *** [all-recursive] Error 1 make: *** [all] Error 2 emake failed * ERROR: media-libs/libdc1394-2.1.2 failed (compile phase): * emake failed * * Call stack: * ebuild.sh, line 56: Called src_compile * environment, line 2160: Called die * The specific snippet of code: * emake || die "emake failed"; * * If you need support, post the output of 'emerge --info =media-libs/libdc1394-2.1.2', * the complete build log and the output of 'emerge -pqv =media-libs/libdc1394-2.1.2'. * The complete build log is located at '/var/tmp/portage/media-libs/libdc1394-2.1.2/temp/build.log'. * The ebuild environment file is located at '/var/tmp/portage/media-libs/libdc1394-2.1.2/temp/environment'. * S: '/var/tmp/portage/media-libs/libdc1394-2.1.2/work/libdc1394-2.1.2' >>> Failed to emerge media-libs/libdc1394-2.1.2, Log file: >>> '/var/tmp/portage/media-libs/libdc1394-2.1.2/temp/build.log' My emerge --info Portage 2.2.0_alpha29 (default/linux/x86/10.0/desktop/kde, gcc-4.5.2, glibc-2.13-r2, 2.6.38-pf1 i686) ================================================================= System uname: Linux-2.6.38-pf1-i686-Intel-R-_Pentium-R-_M_processor_2.26GHz-with-gentoo-2.0.2 Timestamp of tree: Mon, 28 Mar 2011 13:15:01 +0000 app-shells/bash: 4.2_p8 dev-java/java-config: 2.1.11-r3 dev-lang/python: 2.7.1-r1, 3.1.3-r1 dev-util/cmake: 2.8.4 sys-apps/baselayout: 2.0.2 sys-apps/openrc: 0.8.0 sys-apps/sandbox: 2.5 sys-devel/autoconf: 2.13, 2.68 sys-devel/automake: 1.9.6-r3, 1.10.3, 1.11.1 sys-devel/binutils: 2.21 sys-devel/gcc: 4.5.2 sys-devel/gcc-config: 1.4.1 sys-devel/libtool: 2.4-r1 sys-devel/make: 3.82 virtual/os-headers: 2.6.38 (sys-kernel/linux-headers) Repositories: gentoo portage Installed sets: ACCEPT_KEYWORDS="x86 ~x86" ACCEPT_LICENSE="*" CBUILD="i686-pc-linux-gnu" CFLAGS="-march=native -O2 -pipe" CHOST="i686-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/share/config /usr/share/config/kdm /usr/share/gnupg/qualified.txt /usr/share/themes/oxygen-gtk/gtk-2.0" 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/skel /etc/splash /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/portage/distfiles" FEATURES="assume-digests binpkg-logs collision-protect distlocks fixlafiles fixpackages news parallel-fetch preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch" FFLAGS="-march=native -O2 -pipe" GENTOO_MIRRORS="http://gentoo.netnitco.net http://gentoo.osuosl.org/ http://gentoo.mirrors.tds.net/gentoo http://mirror.csclub.uwaterloo.ca/gentoo-distfiles/ http://gentoo.wetzlmayr.com/ http://osmirrors.cerias.purdue.edu/pub/gentoo/ http://www.cyberuse.com/gentoo/ http://gentoo.mirrors.hoobly.com/ ftp://gentoo.imj.fr/pub/gentoo/ http://130.59.10.35/ftp/mirror/gentoo/" LANG="en_US.utf8" LC_ALL="" LDFLAGS="-Wl,-O1 -Wl,--hash-style=gnu -Wl,--as-needed" LINGUAS="en en_US" MAKEOPTS="-j1 -s" 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.europe.gentoo.org/gentoo-portage" USE="S3TC X a52 aac aalib acl acpi addressbook alsa amr apm archive audiofile autoipd avahi bash-completion berkdb binfilter bittorrent bluetooth bonjour branding bzip2 cairo cdda cdinstall cdr chm cleartype cli clucene connection-sharing consolekit contrast cracklib crypt cups custom-cflags custom-optimization cxx dbus dc1394 dell designer-plugin desktopglobe dga dhcpcd dirac djvu dri drm dts dv dvb dvd dvdr ebook editor eix embedded emboss emovix enca encode exif extensions faac faad fam fat fbcon fbcondecor fbsplash ffmpeg firefox fits flac flash fortran ftp fuse gallium gcrypt gd gdbm gdu geolocation ggi gif gimp git gles glib glibc-omitfp gmm gmp gnutls gphoto2 gpm graphviz groupwise gsm gtk handbook httpd hyperestraier iconv id3tag ieee1394 imagemagick imlib indi inotify ipod ipv6 jabber jack java javascript jbig jce jingle joystick jpeg jpeg2k kate kde kerberos kig-scripting kipi konqueror ladspa lame laptop lastfm latex lcms ldap libass libcaca libnotify libproxy libsamplerate libtiger live llvm lm_sensors lua lzma lzo mad matroska md5sum meanwhile mikmod mjpeg mmx mng modplug modules mozilla mp3 mp3tunes mp4 mpeg mplayer msn mtp mudflap musepack musicbrainz ncurses network networkmanager nls nova npp nptl nptlonly nsplugin ntfs nut offensive ogg openal openexr opengl openmp optimization optimized-qmake oscar otr pam pango pch pcmcia pcre pdf perl plasma pm-utils pmu png pnm policykit ppds ppp pppd pvr python python3 qalculate qt-faststart qt3support qt4 quicktime qwt rar raw rdp readline remote-access reports resolvconf rle rss rtmp rtsp samba sasl scanner schroedinger sdl sdl-image secure-delete semantic-desktop session shout shutdown skins skype slp smbclient sms sndfile solver sox speex spell sse sse2 ssl stable startup-notification stream strong-optimization subversion svg svga symlink sysfs system-sqlite taglib tcl tcpd teamarena templates tga themedesigner theora threads thumbnail tidy tiff timidity tremor truetype twolame udev udis86 unicode upnp usb vaapi vcd vcdx video vidix vlc vlm vnc vorbis vpx watchdog wavpack webpresence wicd wifi win32codecs windeco winpopup wireshark wmf wpd wpg wps wv2 wxwidgets x264 x86 xanim xattr xcb xcomposite xine xml xorg xosd xulrunner xv xvid xvmc yahoo yv12 zeroconf zlib" ALSA_CARDS="intel8x0 intel8x0m" 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" 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 keyboard mouse synaptics joystick" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en en_US" RUBY_TARGETS="ruby18" SANE_BACKENDS="epson epson2" 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, INSTALL_MASK, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS Any chance of the upstream patch making it into portage anytime soon? If not, can somebody please post explaining how to use it in my overlay so I can get this to compile? TIA (In reply to comment #10) > Any chance of the upstream patch making it into portage anytime soon? If not, > can somebody please post explaining how to use it in my overlay so I can get > this to compile? > TIA 1.) cd into your local overlay.. (for me, /usr/local/portage) 2.) mkdir -p media-libs/libdc1394 3.) cd media-liba/libdc1394 4.) cp -a /usr/portage/media-libs/libdc1394/{files,Manifest,libdc1394-2.1.2.ebuild} . 5.) wget -O disable-examples.patch "http://bugs.gentoo.org/attachment.cgi?id=267221" 6.) patch -i disable-examples.patch # should be fixed by the patch, but juuuuust in case... 7.) ebuild libdc1394-2.1.2.ebuild manifest 8.) eix-sync / emerge --sync (depending on if you have eix installed/are using it) 9.) emerge -1va "=media-libs/libdc1394-2.1.2" i'm about to attach a copy of the patched ebuild itself, which should skip steps 4(ish)-7 for you (though you still have to place it wherever your local overlay is, etc.) Created attachment 267925 [details]
ebuild with applied remove-examples patch
make sure you rebuild the manifest. files dir may or may not need to be copied over to local overlay.
(In reply to comment #5) > Created attachment 267221 [details, diff] > Proposed patch, just does not compile the examples anymore > > This proposed patch seems to fix it, albeit by disabling compilation of the > examples altogether. Feel free to double-check whether I forgot something, have > not tested it thoroughly. great work, buddy; just applied and installed, no errors on AMD64 with USE="X -doc" (In reply to comment #12) > Created attachment 267925 [details] > ebuild with applied remove-examples patch > > make sure you rebuild the manifest. files dir may or may not need to be copied > over to local overlay. Maybe X use flag must be also removed from ebuild, as it isn't used anymore. Please also fix v1.2.2, as it is used by dev-libs/pwlib and maybe some others. Created attachment 268199 [details, diff] Patch to disable examples compilation for version 1.2.2 This bug also affect version 1.2.2 (as described in bug #359739 marked duplicate of this bug ). Here is a simple patch which disable compilation of examples for version 1.2.2, whose configure script does not seems to take into account "--disable-examples". I don't know if my patch do it the right way, but it seems to work. Created attachment 268201 [details, diff]
patch for the ebuild
A note on libdc1394 v1.x: This version requires kernel 2.6.36 or older at runtime. *** Bug 361825 has been marked as a duplicate of this bug. *** when does the patch go into portage ? thanks Thanks, works. Also came across http://comments.gmane.org/gmane.comp.multimedia.libdc1394.devel/745 . Can confirm the included patches work. I'd be for applying these rather than depending on older kernel headers or blocking builds - currently these packages are depended on by a variety of others. works for me too +*libdc1394-2.1.3 (30 Apr 2011) + + 30 Apr 2011; Justin Lecher <jlec@gentoo.org> + +files/libdc1394-videodev.h.patch, +libdc1394-2.1.3.ebuild: + Non Maintainer version bump, Build without V4L1 support, #359735 & #363303 + But for the version: media-libs/libdc1394-1.2.2 the bug is still there! and this is required for instance by: net-libs/ptlib-2.6.7-r1[video,ieee1394] dev-libs/pwlib-1.10.10-r2[ieee1394] (In reply to comment #24) > But for the version: > > media-libs/libdc1394-1.2.2 > > the bug is still there! > > and this is required for instance by: > > net-libs/ptlib-2.6.7-r1[video,ieee1394] > dev-libs/pwlib-1.10.10-r2[ieee1394] While it would surely be nice to be able to build libdc1394 v1 in presence of linux-headers v2.6.38 or later, keep in mind that libdc1394 v1 does not do anything at all anymore if you have kernel 2.6.37 or later at runtime. (In reply to comment #24) > But for the version: > > media-libs/libdc1394-1.2.2 > This is a stable version, the headers are unstable. MIxing of stable and unstable is your fun. (In reply to comment #24) > But for the version: > > media-libs/libdc1394-1.2.2 > This is a stable version, the headers are unstable. MIxing of stable and unstable is your fun. It may be stable, but it is also the latest version in that slot, so it is the default for stable and testing systems to install. I agree that mixing keywords can cause headaches, but this package is also installed on a pure testing system. |