Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 922450 - media-libs/opencv-4.8.1-r1 stable build fails
Summary: media-libs/opencv-4.8.1-r1 stable build fails
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Paul Zander
URL:
Whiteboard:
Keywords: PullRequest
Depends on:
Blocks:
 
Reported: 2024-01-18 23:39 UTC by CaptainBlood
Modified: 2024-01-23 20:35 UTC (History)
3 users (show)

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


Attachments
build log (media-libs:opencv-4.8.1-r1:20240119-002903.log.gz,1.22 KB, application/gzip)
2024-01-18 23:39 UTC, CaptainBlood
Details

Note You need to log in before you can comment on or make changes to this bug.
Description CaptainBlood 2024-01-18 23:39:08 UTC
Created attachment 882585 [details]
build log

emerge --info opencv
Portage 3.0.61 (python 3.11.7-final-0, default/linux/amd64/17.1, gcc-13, glibc-2.38-r9, 6.7.0-gentoo-std x86_64)
=================================================================
                         System Settings
=================================================================
System uname: Linux-6.7.0-gentoo-std-x86_64-Intel-R-_Core-TM-_i3-6100_CPU_@_3.70GHz-with-glibc2.38
KiB Mem:     3933652 total,    379204 free
KiB Swap:   65535996 total,  65243700 free
Timestamp of repository gentoo: Thu, 18 Jan 2024 21:15:01 +0000
Head commit of repository gentoo: 9a7a003f6e5df44ebb42faa9de2f7c4c5f7843f5
sh bash 5.1_p16-r6
ld GNU ld (Gentoo 2.41 p4) 2.41.0
distcc 3.4 x86_64-pc-linux-gnu [disabled]
app-misc/pax-utils:        1.3.5::gentoo
app-shells/bash:           5.1_p16-r6::gentoo
dev-build/autoconf:        2.13-r7::gentoo, 2.71-r6::gentoo
dev-build/automake:        1.16.5-r1::gentoo
dev-build/cmake:           3.27.9::gentoo
dev-build/libtool:         2.4.7-r1::gentoo
dev-build/make:            4.4.1-r1::gentoo
dev-build/meson:           1.3.0-r2::gentoo
dev-java/java-config:      2.3.3-r1::gentoo
dev-lang/perl:             5.38.2-r1::gentoo
dev-lang/python:           2.7.18_p16-r1::gentoo, 3.10.13::gentoo, 3.11.7::gentoo, 3.12.1_p1::gentoo
dev-lang/rust:             1.75.0::pg_overlay
sys-apps/baselayout:       2.14-r1::gentoo
sys-apps/openrc:           0.53::gentoo
sys-apps/sandbox:          2.38::gentoo
sys-devel/binutils:        2.41-r3::gentoo
sys-devel/binutils-config: 5.5::gentoo
sys-devel/clang:           15.0.7-r3::gentoo, 16.0.6::gentoo, 17.0.6::gentoo
sys-devel/gcc:             10.5.0::gentoo, 11.4.1_p20230824::gentoo, 12.3.1_p20230825::gentoo, 13.2.1_p20240113-r1::gentoo
sys-devel/gcc-config:      2.11::gentoo
sys-devel/lld:             15.0.7::gentoo, 17.0.6::gentoo
sys-devel/llvm:            15.0.7-r3::gentoo, 16.0.6::gentoo, 17.0.6::gentoo
sys-kernel/linux-headers:  6.6::gentoo (virtual/os-headers)
sys-libs/glibc:            2.38-r9::gentoo
Repositories:

4
gentoo
    location: /var/db/repos/gentoo
    sync-type: rsync
    sync-uri: rsync://rsync.europe.gentoo.org/gentoo-portage
    priority: -1000
    volatile: False
    sync-rsync-verify-max-age: 24
    sync-rsync-verify-jobs: 1
    sync-rsync-verify-metamanifest: yes
    sync-rsync-extra-opts: 

local
    location: /var/db/repos/local
    masters: gentoo
    priority: 10000
    volatile: False

ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="* -@EULA"
AR="gcc-ar"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=core2 -mtune=native -O2 -pipe -Wa,-mbranches-within-32B-boundaries "
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/config /usr/share/gnupg/qualified.txt /usr/share/maven-bin-3.9/conf"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php8.1/ext-active/ /etc/php/cgi-php8.1/ext-active/ /etc/php/cli-php8.1/ext-active/ /etc/php/fpm-php8.1/ext-active/ /etc/php/phpdbg-php8.1/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/splash /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CXXFLAGS="-march=core2 -mtune=native -O2 -pipe -Wa,-mbranches-within-32B-boundaries "
DISTDIR="/var/cache/distfiles"
EMERGE_DEFAULT_OPTS="--alert y 			--alphabetical 			--ask-enter-invalid 			--autounmask y  			--autounmask-only n  			--autounmask-unrestricted-atoms y  	--autounmask-write y              --complete-graph y  			--misspell-suggestions n 			--noconfmem 			--nospinner  			--tree 			--with-bdeps y"
ENV_UNSET="CARGO_HOME DBUS_SESSION_BUS_ADDRESS DISPLAY GDK_PIXBUF_MODULE_FILE 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 XDG_STATE_HOME"
FCFLAGS="-march=core2 -mtune=native -O2 -pipe -Wa,-mbranches-within-32B-boundaries "
FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs binpkg-multi-instance buildpkg-live compress-build-logs config-protect-if-modified distlocks ebuild-locks fixlafiles ipc-sandbox merge-sync multilib-strict network-sandbox news parallel-fetch pid-sandbox pkgdir-index-trusted preserve-libs protect-owned qa-unresolved-soname-deps sandbox sfperms split-elog strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync"
FFLAGS="-march=core2 -mtune=native -O2 -pipe -Wa,-mbranches-within-32B-boundaries "
GENTOO_MIRRORS="http://tux.rainside.sk/gentoo/     http://gentoo.mirror.root.lu/"
LANG="fr_FR.utf8"
LDFLAGS="-Wl,-O1 -Wl,-fuse-ld=bfd "
LEX="flex"
LINGUAS="fr"
MAKEOPTS="-j3 -l3"
NM="gcc-nm"
PKGDIR="/var/cache/binpkgs"
PORTAGE_COMPRESS="lzma"
PORTAGE_COMPRESS_FLAGS="-9"
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="/var/tmp"
RANLIB="gcc-ranlib"
SHELL="/bin/bash"
USE="amd64 asm custom-cflags emacs eselect-ldso fortran gentoo-vm gtk-doc minimal ocamlopt split-usr test-rust verify-sig" ABI_X86="64" ALSA_CARDS="hda-intel" CPU_FLAGS_X86="aes avx avx2 f16c fma3 mmx mmxext pclmul popcnt rdrand sse sse2 sse3 sse4_1 sse4_2 ssse3" ELIBC="glibc" GRUB_PLATFORMS="efi-64" INPUT_DEVICES="libinput" KERNEL="linux" L10N="fr" LUA_SINGLE_TARGET="lua5-4" LUA_TARGETS="lua5-4" PHP_TARGETS="php8-1" PYTHON_SINGLE_TARGET="python3_11" PYTHON_TARGETS="python3_11" QEMU_USER_TARGETS="aarch64" RUBY_TARGETS="ruby31" VIDEO_CARDS="intel"
Unset:  ADDR2LINE, ARFLAGS, AS, ASFLAGS, CC, CCLD, CONFIG_SHELL, CPP, CPPFLAGS, CTARGET, CXX, CXXFILT, ELFEDIT, EXTRA_ECONF, F77FLAGS, FC, GCOV, GPROF, INSTALL_MASK, LC_ALL, LD, LFLAGS, LIBTOOL, MAKE, MAKEFLAGS, OBJCOPY, OBJDUMP, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_RSYNC_EXTRA_OPTS, PYTHONPATH, READELF, RUSTFLAGS, SIZE, STRINGS, STRIP, YACC, YFLAGS

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

media-libs/opencv-4.8.0-r3::gentoo was built with the following:
USE="-contrib (-contribcvv) -contribdnn -contribfreetype (-contribhdf) (-contribovis) (-contribsfm) (-contribxfeatures2d) (-cuda) -debug -dnnsamples -download -eigen -examples -features2d -ffmpeg -gdal (-gflags) (-glog) -gphoto2 -gstreamer -gtk3 -ieee1394 -java -jpeg -jpeg2k -lapack -opencl -opencvapps -openexr -opengl -openmp -png -python -qt5 (-tesseract) -testprograms -threads -tiff -v4l -vaapi (-vtk) -webp -xine" ABI_X86="-32 (64) (-x32)" CPU_FLAGS_X86="avx avx2 -avx512f f16c fma3 popcnt sse sse2 sse3 sse4_1 sse4_2 ssse3" PYTHON_TARGETS="-python3_10 -python3_11"
CFLAGS="-march=core2 -mtune=native -O2 -fuse-linker-plugin -fno-fat-lto-objects -pipe -Wa,-mbranches-within-32B-boundaries"
CXXFLAGS="-march=core2 -mtune=native -O2 -fuse-linker-plugin -fno-fat-lto-objects -pipe -Wa,-mbranches-within-32B-boundaries"
-------------------
emerge -p -v opencv

These are the packages that would be merged, in reverse order:

Calculating dependencies  .... .....!!! /etc/portage/package.env references non-existent file: /etc/portage/env/unchecked
!!! /etc/portage/package.env references non-existent file: /etc/portage/env/unchecked
.!!! /etc/portage/package.env references non-existent file: /etc/portage/env/no-build
... done!
Dependency resolution took 87.37 s (backtrack: 0/20).

[ebuild     U  ] media-libs/opencv-4.8.1-r1:0/4.8.1::gentoo [4.8.0-r3:0/4.8.0::gentoo] USE="-contrib (-contribcvv) -contribdnn -contribfreetype (-contribhdf) (-contribovis) (-contribsfm) (-contribxfeatures2d) (-cuda) (-cudnn) -debug -dnnsamples (-download%) -eigen -examples -features2d -ffmpeg -gdal (-gflags) (-glog) -gphoto2 -gstreamer -gtk3 -ieee1394 -java -jpeg -jpeg2k -lapack -non-free% -opencl -opencvapps -openexr -opengl -openmp -png -python -qt5 -qt6% -tbb% (-tesseract) -testprograms (-threads%) -tiff -v4l -vaapi (-vtk) -webp -xine" ABI_X86="-32 (64) (-x32)" CPU_FLAGS_X86="avx avx2 -avx512f f16c fma3 popcnt sse sse2 sse3 sse4_1 sse4_2 ssse3" PYTHON_TARGETS="-python3_10 -python3_11 (-python3_12)" VIDEO_CARDS="intel%*" 0 KiB

Total: 1 package (1 upgrade), Size of downloads: 0 KiB
----------------
emerge -1 opencv

These are the packages that would be merged, in reverse order:

Calculating dependencies  .... ........ ... ...... done!
Dependency resolution took 178.76 s (backtrack: 0/20).

[ebuild     U  ] media-libs/opencv-4.8.1-r1 [4.8.0-r3] USE="(-cudnn) -non-free% -qt6% -tbb%" PYTHON_TARGETS="(-python3_12)" VIDEO_CARDS="intel%*" 

>>> Verifying ebuild manifests

>>> Running pre-merge checks for media-libs/opencv-4.8.1-r1

>>> Emerging (1 of 1) media-libs/opencv-4.8.1-r1::gentoo
 * opencv-4.8.1.tar.gz BLAKE2B SHA512 size ;-) ...                       [ ok ]
 * ade-0.1.2a.tar.gz BLAKE2B SHA512 size ;-) ...                         [ ok ]
>>> Unpacking source...
grep: Perl matching not supported in a --disable-perl-regexp build
 * ERROR: media-libs/opencv-4.8.1-r1::gentoo failed (unpack phase):
 *   Nothing passed to the 'unpack' command
 * 
 * Call stack:
 *          ebuild.sh, line  136:  Called src_unpack
 *        environment, line 5904:  Called unpack
 *   phase-helpers.sh, line  327:  Called die
 * The specific snippet of code:
 *   	[[ -z "$*" ]] && die "Nothing passed to the 'unpack' command"
 * 
 * If you need support, post the output of `emerge --info '=media-libs/opencv-4.8.1-r1::gentoo'`,
 * the complete build log and the output of `emerge -pqv '=media-libs/opencv-4.8.1-r1::gentoo'`.
!!! When you file a bug report, please include the following information:
GENTOO_VM=  CLASSPATH="" JAVA_HOME="/etc/java-config-2/current-system-vm"
JAVACFLAGS="" COMPILER=""
and of course, the output of emerge --info =opencv-4.8.1
 * The complete build log is located at '/var/log/portage/media-libs:opencv-4.8.1-r1:20240119-002903.log.gz'.
 * For convenience, a symlink to the build log is located at '/var/tmp/portage/media-libs/opencv-4.8.1-r1/temp/build.log.gz'.
 * The ebuild environment file is located at '/var/tmp/portage/media-libs/opencv-4.8.1-r1/temp/environment'.
 * Working directory: '/var/tmp/portage/media-libs/opencv-4.8.1-r1/work'
 * S: '/var/tmp/portage/media-libs/opencv-4.8.1-r1/work/opencv-4.8.1'

>>> Failed to emerge media-libs/opencv-4.8.1-r1, Log file:

>>>  '/var/log/portage/media-libs:opencv-4.8.1-r1:20240119-002903.log.gz'
Comment 1 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2024-01-19 00:28:57 UTC
opencv-4.8.1-r1.ebuild:246:     unpack $(echo "${A}" | tr ' ' '\n' | grep -vP "(ade-0.1.2|NVIDIAOpticalFlowSDK)")

grep -P requires grep[pcre]. We can use BRE here fine.
Comment 2 Andreas Sturmlechner gentoo-dev 2024-01-22 19:14:59 UTC
Also, this is only needed for IUSE=cuda and unpacking could be conditional as well, right?
Comment 3 Paul Zander 2024-01-22 19:37:03 UTC
Sorry, I somehow entirely missed this bug report.

We can completely comment src_unpack out for now. It only saves a bit of tiny bit of disk space anyway. I want to rework the pre-download part anyway.

ade is always in A, but doesn't need to be unpacked.

NVIDIAOpticalFlowSDK is only in A for USE="contrib,cuda" and doesn't need to be unpacked.
Comment 4 Larry the Git Cow gentoo-dev 2024-01-23 20:35:02 UTC
The bug has been closed via the following commit(s):

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

commit ace7d0c6c33c07d1f0e8aa57e2cab2f813deb791
Author:     Paul Zander <negril.nx+gentoo@gmail.com>
AuthorDate: 2024-01-22 23:41:10 +0000
Commit:     Andreas Sturmlechner <asturm@gentoo.org>
CommitDate: 2024-01-23 20:34:50 +0000

    media-libs/opencv: 4.8.1-r1 unpack everything always
    
    Not filtering out these two archives adds about 1 MiB to `WORKDIR`, but doesn't rely on `sys-apps/grep[pcre]`.
    Since `pkgcheck` doesn't like them being zip files anyway this is going to change for `-4.9.0` either way.
    
    Closes: https://bugs.gentoo.org/922450
    Signed-off-by: Paul Zander <negril.nx+gentoo@gmail.com>
    Closes: https://github.com/gentoo/gentoo/pull/34970
    Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>

 media-libs/opencv/opencv-4.8.1-r1.ebuild | 4 ----
 1 file changed, 4 deletions(-)