Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 568608 - media-plugins/frei0r-plugins-1.4 fails to build with media-libs/opencv-2
Summary: media-plugins/frei0r-plugins-1.4 fails to build with media-libs/opencv-2
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Media-video project
URL:
Whiteboard:
Keywords: REGRESSION
Depends on:
Blocks: opencv-3
  Show dependency tree
 
Reported: 2015-12-18 07:19 UTC by jms
Modified: 2016-05-06 16:01 UTC (History)
2 users (show)

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


Attachments
build log (media-plugins:frei0r-plugins-1.4:20151218-065627.log,50.69 KB, text/x-log)
2015-12-18 07:22 UTC, jms
Details
frei0r-plugins-1.4-opencv3.patch (frei0r-plugins-1.4-opencv3.patch,3.63 KB, patch)
2015-12-19 12:34 UTC, PhobosK
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description jms 2015-12-18 07:19:15 UTC
package was build previously without problem
can't rebuild it

Reproducible: Always
Comment 1 jms 2015-12-18 07:22:21 UTC
Created attachment 419560 [details]
build log

emerge --info =media-plugins/frei0r-plugins-1.4
Portage 2.2.26 (python 3.4.3-final-0, default/linux/amd64/13.0/desktop/kde, gcc-5.3.0, glibc-2.21-r1, 4.2.6-gentoo-jms-002 x86_64)
=================================================================
                         System Settings
=================================================================
System uname: Linux-4.2.6-gentoo-jms-002-x86_64-Intel-R-_Core-TM-_i5-3210M_CPU_@_2.50GHz-with-gentoo-2.2
KiB Mem:     7673120 total,   2916380 free
KiB Swap:    8396796 total,   8330204 free
Timestamp of repository gentoo: Thu, 17 Dec 2015 16:15:01 +0000
sh bash 4.3_p42
ld GNU ld (Gentoo 2.25.1 p1.1) 2.25.1
app-shells/bash:          4.3_p42::gentoo
dev-java/java-config:     2.2.0::gentoo
dev-lang/perl:            5.20.2::gentoo
dev-lang/python:          2.7.11::gentoo, 3.4.3-r5::gentoo
dev-util/cmake:           3.4.1::gentoo
dev-util/pkgconfig:       0.28-r2::gentoo
sys-apps/baselayout:      2.2::gentoo
sys-apps/openrc:          0.18.4::gentoo
sys-apps/sandbox:         2.6-r1::gentoo
sys-devel/autoconf:       2.13::gentoo, 2.69::gentoo
sys-devel/automake:       1.11.6-r1::gentoo, 1.13.4::gentoo, 1.14.1::gentoo, 1.15::gentoo
sys-devel/binutils:       2.25.1-r1::gentoo
sys-devel/gcc:            4.9.3::gentoo, 5.3.0::gentoo
sys-devel/gcc-config:     1.7.3::gentoo
sys-devel/libtool:        2.4.6-r1::gentoo
sys-devel/make:           4.1-r1::gentoo
sys-kernel/linux-headers: 3.18::gentoo (virtual/os-headers)
sys-libs/glibc:           2.21-r1::gentoo
Repositories:

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

gamerlay
    location: /var/lib/layman/gamerlay
    masters: gentoo
    priority: 0

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

ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="* -@EULA"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=native -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/php/apache2-php5.5/ext-active/ /etc/php/apache2-php5.6/ext-active/ /etc/php/cgi-php5.5/ext-active/ /etc/php/cgi-php5.6/ext-active/ /etc/php/cli-php5.5/ext-active/ /etc/php/cli-php5.6/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-march=native -O2 -pipe "
DISTDIR="/portage/distfiles"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs clean-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://91.121.124.139/gentoo-distfiles/ http://91.121.125.139/gentoo-distfiles/ ftp://ftp.swin.edu.au/gentoo  ftp://gentoo.mirrors.ovh.net/gentoo-distfiles/"
LANG="en_GB.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j4"
PKGDIR="/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"
PORTAGE_TMPDIR="/var/tmp"
USE="X a52 aac aalib acl acpi alsa amd64 ao avahi bash-completion berkdb bindist bluetooth branding bzip2 cairo cdaudio cdda cddb cdparanoia cdr cjk cli consolekit cracklib crypt css cups cxx dbus declarative dhcpcd dri dts dv dvb dvd dvdnav dvdr emboss encode evdev exif ffmpeg firefox flac fontconfig fortran gd gdbm gif glamor gpm gstreamer gtk gzip iconv icu imap inotify ipv6 jpeg jpeg2k kde kipi laptop lcms ldap libkms libnotify lzma lzo mad maildir matroska memlimit mhash mikmod mime mmap mmx mmxext mng mod modules motif mp3 mp4 mpeg mtp multilib mysql ncurse ncurses networkmanager nls nptl ogg openal opengl openmp oss pam pango pcmcia pcre pdf phonon plasma png policykit ppds pulseaudio qt3support qt4 quicktime raw readline resolvconf scanner sdl seccomp semantic-desktop sematic-deskyop session smp solid spell sse sse2 ssl startup-notification svg syslog taglib tcpd theora thumbnail tidy tiff truetype udev udisks unicode upower usb utf8 v4l v4l2 vaapi vcd vdpau video vim-syntax vorbis wifi win32codecs wxwidgets x x264 xattr xcb xcomposit xcomposite xine xinerama xml xosd xpm xscreensaver xulrunner xv xvid xvmc zip zlib" ABI_X86="64 32" 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 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" INPUT_DEVICES="evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="en_GB en es fr en" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-5 php5-6" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_4" RUBY_TARGETS="ruby20 ruby21" USERLAND="GNU" VIDEO_CARDS="intel i965 nvidia modesetting" 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

=================================================================
                        Package Settings
=================================================================

media-plugins/frei0r-plugins-1.4::gentoo was built with the following:
USE="facedetect (policykit) scale0tilt -doc" ABI_X86="64"
Comment 2 jms 2015-12-18 08:03:48 UTC
with
[I] media-libs/opencv
     Available versions:  2.4.9(0/2.4) (~)2.4.10(0/2.4) (~)2.4.11(0/2.4) ~3.0.0(0/3.0) {contrib cuda doc +eigen examples ffmpeg gstreamer gtk ieee1394 ipp java jpeg jpeg2k libav opencl openexr opengl openmp pch png +python qt4 qt5 testprograms threads tiff v4l vtk xine ELIBC="FreeBSD" PYTHON_SINGLE_TARGET="python2_7 python3_3 python3_4" PYTHON_TARGETS="python2_7 python3_3 python3_4"}
     Installed versions:  2.4.11(07:55:46 18/12/15)(eigen ffmpeg gstreamer gtk jpeg jpeg2k opengl openmp png python qt4 tiff v4l xine -cuda -doc -examples -ieee1394 -ipp -java -libav -opencl -openexr -pch -testprograms -threads -vtk ELIBC="-FreeBSD" PYTHON_TARGETS="python2_7")
     Homepage:            http://opencv.org
     Description:         A collection of algorithms and sample code for various computer vision problems
Comment 3 jms 2015-12-18 08:13:18 UTC
might be something to do with media-libs/opencv version

media-plugins/frei0r-plugins-1.3
compile fine with media-libs/opencv-2.4.11


might be related Bug 568540
Comment 4 jms 2015-12-18 10:32:54 UTC
note noticed this while rebuilding after gcc-5.3.0 upgrade
Comment 5 PhobosK 2015-12-19 10:58:09 UTC
This is because you use OpenCV 2 (2.4.11 to be precise), and the patch in the portage tree is wrong...

This should be fixed with my new frei0r-plugins-1.4-opencv3.patch ...
See bug #555782 and try the resolution with my patch... Then please report back...
Comment 6 PhobosK 2015-12-19 12:34:13 UTC
Created attachment 419766 [details, diff]
frei0r-plugins-1.4-opencv3.patch

The proper patch for =media-plugins/frei0r-plugins-1.4 with >=media-libs/opencv-3.0.0


This patch adds a backwards compatibility with previous OpenCV 2 versions.

Please test and report back...
Comment 7 Juergen Rose 2015-12-28 07:35:49 UTC
(In reply to PhobosK from comment #6)
> Created attachment 419766 [details, diff] [details, diff]
> frei0r-plugins-1.4-opencv3.patch
> 
> The proper patch for =media-plugins/frei0r-plugins-1.4 with
> >=media-libs/opencv-3.0.0
> 
> 
> This patch adds a backwards compatibility with previous OpenCV 2 versions.
> 
> Please test and report back...

I had the same problem with opencv-2.4.11 and sys-devel/gcc-5.3.0 and I can confirm that the patch works.
Comment 8 Michael Palimaka (kensington) gentoo-dev 2016-01-31 17:41:01 UTC
I'll commit this soon if there's no objection from media-video@.
Comment 9 Michael Palimaka (kensington) gentoo-dev 2016-05-06 16:01:52 UTC
Thanks, fixed in git.

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=2dbcf233bb85e3785ff8748d364c24ef42b84ffd