Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 826702 - media-plugins/gst-plugins-opencv-1.18.4-r1 configure fails after upgrading to media-libs/opencv-4.5.4
Summary: media-plugins/gst-plugins-opencv-1.18.4-r1 configure fails after upgrading to...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: GStreamer package maintainers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-11-23 00:43 UTC by cyrillic
Modified: 2021-12-28 01:24 UTC (History)
2 users (show)

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


Attachments
build.log (build.log,20.00 KB, text/plain)
2021-11-23 00:44 UTC, cyrillic
Details
build.log (build.log,60.63 KB, text/plain)
2021-11-23 01:48 UTC, cyrillic
Details

Note You need to log in before you can comment on or make changes to this bug.
Description cyrillic 2021-11-23 00:43:20 UTC
media-plugins/gst-plugins-opencv-1.18.4-r1 configure fails after upgrading to media-libs/opencv-4.5.4

It seems that one of the needed headers has been removed.

Reproducible: Always

Actual Results:  
Needed header "opencv4/opencv2/objdetect.hpp" not found
Comment 1 cyrillic 2021-11-23 00:44:15 UTC
Created attachment 755338 [details]
build.log
Comment 2 cyrillic 2021-11-23 01:48:06 UTC
Created attachment 755342 [details]
build.log

Oops, my bad.

This header is now provided when USE="contribdnn" , but now there is a different error.
Comment 3 Jonas Stein gentoo-dev 2021-11-23 05:16:39 UTC
Thank you for the report. We need to have all information at hand before ticket assignment. Please 
* paste the emerge info 
as described on https://wiki.gentoo.org/wiki/Attach_the_logs_to_the_bug_ticket

Please reopen this ticket (Status:UNCONFIRMED) afterwards.
Comment 4 cyrillic 2021-11-24 00:12:52 UTC
# emerge --info
Portage 3.0.28 (python 3.10.0-final-0, default/linux/amd64/17.1/desktop/gnome/systemd, gcc-11.2.0, glibc-2.34-r2, 5.16.0-rc2 x86_64)
=================================================================
System uname: Linux-5.16.0-rc2-x86_64-AMD_Ryzen_Threadripper_2970WX_24-Core_Processor-with-glibc2.34
KiB Mem:    65841944 total,  62599916 free
KiB Swap:          0 total,         0 free
Head commit of repository gentoo: c47fdcc36ce2a93af8ad40b208123ba541a59f8d

sh bash 5.1_p12
ld GNU ld (Gentoo 2.37_p1 p1) 2.37
app-shells/bash:          5.1_p12::gentoo
dev-java/java-config:     2.3.1::gentoo
dev-lang/perl:            5.34.0-r5::gentoo
dev-lang/python:          3.10.0_p1::gentoo
dev-lang/rust:            1.56.1::gentoo
dev-util/cmake:           3.22.0::gentoo
sys-apps/baselayout:      2.8::gentoo
sys-apps/openrc:          0.44.8::gentoo
sys-apps/sandbox:         3.1::gentoo
sys-devel/autoconf:       2.13-r1::gentoo, 2.71-r1::gentoo
sys-devel/automake:       1.13.4-r2::gentoo, 1.16.5::gentoo
sys-devel/binutils:       2.37_p1-r1::gentoo
sys-devel/gcc:            11.2.0::gentoo
sys-devel/gcc-config:     2.5-r1::gentoo
sys-devel/libtool:        2.4.6-r6::gentoo
sys-devel/make:           4.3::gentoo
sys-kernel/linux-headers: 5.15::gentoo (virtual/os-headers)
sys-libs/glibc:           2.34-r2::gentoo
Repositories:

newstuff
    location: /mnt/repos/newstuff
    masters: gentoo
    priority: -1030
    eclass-overrides: fixes

gnomelive
    location: /mnt/repos/gnomelive
    masters: gentoo
    priority: -1010
    eclass-overrides: fixes

gentoo
    location: /mnt/repos/gentoo
    sync-type: git
    sync-uri: https://anongit.gentoo.org/git/repo/gentoo.git
    priority: -1000
    eclass-overrides: fixes

crossdev
    location: /mnt/repos/crossdev
    masters: gentoo
    eclass-overrides: fixes

fixes
    location: /mnt/repos/fixes
    masters: gentoo
    priority: 10
    eclass-overrides: fixes

Installed sets: @clang, @rocm, @system
ACCEPT_KEYWORDS="* amd64 ~*"
ACCEPT_LICENSE="@FREE"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=nocona -mtune=native -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /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/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-march=nocona -mtune=native -O2 -pipe"
DISTDIR="/mnt/distfiles"
ENV_UNSET="CARGO_HOME DBUS_SESSION_BUS_ADDRESS DISPLAY GOBIN GOPATH PERL5LIB PERL5OPT PERLPREFIX PERL_CORE PERL_MB_OPT PERL_MM_OPT XAUTHORITY XDG_CACHE_HOME XDG_CONFIG_HOME XDG_DATA_HOME XDG_RUNTIME_DIR"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs binpkg-multi-instance config-protect-if-modified distlocks ebuild-locks fixlafiles ipc-sandbox merge-sync multilib-strict network-sandbox news parallel-fetch pid-sandbox preserve-libs protect-owned qa-unresolved-soname-deps sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LANG="en_US.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j48"
PKGDIR="/var/tmp/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 --exclude=/.git"
PORTAGE_TMPDIR="/tmp"
USE="X a52 aac acl alsa amd64 berkdb bluetooth bluray boost brotli bzip2 cairo caps cdr colord cpudetection css cups curl custom-cflags cxx dbus drm dts dvd eds egl encode exif expat fbcon ffmpeg flac flickr fontconfig fortran gdbm geolocation gif glamor glib gnome gnome-keyring gnutls gpm graphite gssapi gstreamer gtk gtk3 harfbuzz heif ibus icu idn imagemagick introspection ipv6 jpeg jpeg2k kmod kms lcms libass libglvnd libinput libnotify lzma mp3 mpi nautilus ncurses networkmanager nls nptl numa ocamlopt ogg opencl opencv openexr opengl openmp openssl opus orc pam pango pcre pdf png policykit postproc postscript pulseaudio python qml readline samba speex spell split-usr ssl ssp svg systemd tcl telepathy theora threads tiff tk tools tracker truetype udev unicode upnp-av usb user-session utils v4l vala vorbis vpx vulkan wayland webp x264 x265 xcb xkb xml xmp xv xvmc zlib zstd" ABI_X86="64" CPU_FLAGS_X86="mmx mmxext sse sse2 sse3" CURL_SSL="openssl" ELIBC="glibc" INPUT_DEVICES="libinput wacom" KERNEL="linux" L10N="en" LLVM_TARGETS="AMDGPU BPF X86" LUA_SINGLE_TARGET="lua5-4" PYTHON_SINGLE_TARGET="python3_10" PYTHON_TARGETS="python3_10" RUBY_TARGETS="ruby30" USERLAND="GNU" VIDEO_CARDS="amdgpu intel nouveau radeon radeonsi"
Unset:  CC, CPPFLAGS, CTARGET, CXX, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, LINGUAS, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, RUSTFLAGS
Comment 5 cyrillic 2021-11-24 00:35:51 UTC
Ok, the original problem was that media-libs/opencv[contribdnn] is now needed starting with version 4.5.4

The second problem was because the rest of my gstreamer installation is much newer than media-plugins/gst-plugins-opencv-1.18.4-r1 and this has nothing to do with opencv.
Comment 6 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2021-11-24 00:36:45 UTC
Thanks! In future, do file a new bug per package/error though.
Comment 7 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2021-11-24 00:37:09 UTC
(In reply to cyrillic from comment #5)
> Ok, the original problem was that media-libs/opencv[contribdnn] is now
> needed starting with version 4.5.4
> 

We need to fix the dependency then?

> The second problem was because the rest of my gstreamer installation is much
> newer than media-plugins/gst-plugins-opencv-1.18.4-r1 and this has nothing
> to do with opencv.

No, there's actually a genuine bug with the bad package, so I'll fix that at least.
Comment 8 Larry the Git Cow gentoo-dev 2021-11-24 00:39:59 UTC
The bug has been closed via the following commit(s):

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

commit cf2e42975a010e28b9a3f1922a2b11d5581210ea
Author:     Sam James <sam@gentoo.org>
AuthorDate: 2021-11-24 00:38:49 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2021-11-24 00:39:50 +0000

    media-plugins/gst-plugins-opencv: depend on opencv[contribdnn] too
    
    Closes: https://bugs.gentoo.org/826702
    Signed-off-by: Sam James <sam@gentoo.org>

 ...gins-opencv-1.18.4-r1.ebuild => gst-plugins-opencv-1.18.4-r2.ebuild} | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Additionally, it has been referenced in the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=7056f86ced5f21183c8000720d5508f7dab7594f

commit 7056f86ced5f21183c8000720d5508f7dab7594f
Author:     Sam James <sam@gentoo.org>
AuthorDate: 2021-11-24 00:37:30 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2021-11-24 00:39:49 +0000

    media-libs/gst-plugins-bad: fix glib/volatile build failure in consumers
    
    Revbump required as this leaks into exposed headers and broke the build
    for e.g. gst-plugins-opencv.
    
    Bug: https://bugs.gentoo.org/826702
    Signed-off-by: Sam James <sam@gentoo.org>

 media-libs/gst-plugins-bad/Manifest                                 | 1 +
 ...lugins-bad-1.18.4-r1.ebuild => gst-plugins-bad-1.18.4-r2.ebuild} | 6 ++++++
 2 files changed, 7 insertions(+)
Comment 9 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2021-11-24 00:40:13 UTC
Both fixed :)
Comment 10 Larry the Git Cow gentoo-dev 2021-12-28 01:24:49 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=11f22dbd44047fa6ff4a011e2d42c6f9799fa5b3

commit 11f22dbd44047fa6ff4a011e2d42c6f9799fa5b3
Author:     Sam James <sam@gentoo.org>
AuthorDate: 2021-12-28 01:17:44 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2021-12-28 01:24:38 +0000

    media-plugins/gst-plugins-opencv: fix build with newer glib
    
    Closes: https://bugs.gentoo.org/805944
    Closes: https://bugs.gentoo.org/826702
    Signed-off-by: Sam James <sam@gentoo.org>

 .../files/gst-plugins-bad-1.18.4-volatile-glib.patch       | 14 ++++++++++++++
 .../gst-plugins-opencv/gst-plugins-opencv-1.18.4-r2.ebuild |  1 +
 2 files changed, 15 insertions(+)