[ebuild U ] media-libs/libavif-1.2.0:0/16.1.1::gentoo [1.1.1:0/16.1.1::gentoo] USE="aom dav1d extras gdk-pixbuf -examples -libyuv% -rav1e -svt-av1 -test" ABI_X86="32 (64) (-x32)" 13.613 KiB -- Found ZLIB: /usr/lib64/libz.so (found version "1.3.1") -- Found PNG: /usr/lib64/libpng.so (found suitable version "1.6.47", minimum required is "1.6.32") -- Found JPEG: /usr/lib64/libjpeg.so (found version "62") -- libavif: libxml2 not found; avifenc will ignore any gain map in JPEG files -- libavif(AVIF_LIBARGPARSE=LOCAL): compiled library not found at /var/tmp/portage/media-libs/libavif-1.2.0/work/libavif-1.2.0/ext/libargparse/build/libargparse.a; using FetchContent -- libavif(AVIF_LIBARGPARSE=LOCAL): fetching and configuring libargparse [1/9] Creating directories for 'libargparse-populate' [1/9] Performing download step (git clone) for 'libargparse-populate' Cloning into 'libargparse-src'... fatal: unable to access 'https://github.com/kmurray/libargparse.git/': Could not resolve host: github.com Cloning into 'libargparse-src'... fatal: unable to access 'https://github.com/kmurray/libargparse.git/': Could not resolve host: github.com Cloning into 'libargparse-src'... fatal: unable to access 'https://github.com/kmurray/libargparse.git/': Could not resolve host: github.com Had to git clone more than once: 3 times. CMake Error at libargparse-subbuild/libargparse-populate-prefix/tmp/libargparse-populate-gitclone.cmake:50 (message): Failed to clone repository: 'https://github.com/kmurray/libargparse.git' FAILED: libargparse-populate-prefix/src/libargparse-populate-stamp/libargparse-populate-download /var/tmp/portage/media-libs/libavif-1.2.0/work/libavif-1.2.0_build-abi_x86_64.amd64/_deps/libargparse-subbuild/libargparse-populate-prefix/src/libargparse-populate-stamp/libargparse-populate-download cd /var/tmp/portage/media-libs/libavif-1.2.0/work/libavif-1.2.0_build-abi_x86_64.amd64/_deps && /usr/bin/cmake -DCMAKE_MESSAGE_LOG_LEVEL=VERBOSE -P /var/tmp/portage/media-libs/libavif-1.2.0/work/libavif-1.2.0_build-abi_x86_64.amd64/_deps/libargparse-subbuild/libargparse-populate-prefix/tmp/libargparse-populate-gitclone.cmake && /usr/bin/cmake -E touch /var/tmp/portage/media-libs/libavif-1.2.0/work/libavif-1.2.0_build-abi_x86_64.amd64/_deps/libargparse-subbuild/libargparse-populate-prefix/src/libargparse-populate-stamp/libargparse-populate-download ninja: build stopped: subcommand failed. CMake Error at /usr/share/cmake/Modules/FetchContent.cmake:1918 (message): Build step for libargparse failed: 1 Call Stack (most recent call first): /usr/share/cmake/Modules/FetchContent.cmake:1609 (__FetchContent_populateSubbuild) /usr/share/cmake/Modules/FetchContent.cmake:2145:EVAL:2 (__FetchContent_doPopulation) /usr/share/cmake/Modules/FetchContent.cmake:2145 (cmake_language) /usr/share/cmake/Modules/FetchContent.cmake:1978:EVAL:1 (__FetchContent_Populate) /usr/share/cmake/Modules/FetchContent.cmake:1978 (cmake_language) cmake/Modules/AvifExternalProjectUtils.cmake:3 (FetchContent_Populate) cmake/Modules/LocalLibargparse.cmake:33 (avif_fetchcontent_populate_cmake) CMakeLists.txt:719 (include) -- Configuring incomplete, errors occurred! * ERROR: media-libs/libavif-1.2.0::gentoo failed (configure phase): * cmake failed * * Call stack: * ebuild.sh, line 136: Called src_configure * environment, line 2538: Called cmake-multilib_src_configure * environment, line 634: Called multilib-minimal_src_configure * environment, line 1865: Called multilib_foreach_abi 'multilib-minimal_abi_src_configure' * environment, line 2115: Called multibuild_foreach_variant '_multilib_multibuild_wrapper' 'multilib-minimal_abi_src_configure' * environment, line 1820: Called _multibuild_run '_multilib_multibuild_wrapper' 'multilib-minimal_abi_src_configure' * environment, line 1818: Called _multilib_multibuild_wrapper 'multilib-minimal_abi_src_configure' * environment, line 383: Called multilib-minimal_abi_src_configure * environment, line 1859: Called multilib_src_configure * environment, line 2352: Called cmake_src_configure * environment, line 910: Called die * The specific snippet of code: * "${CMAKE_BINARY}" "${cmakeargs[@]}" "${CMAKE_USE_DIR}" || die "cmake failed";
Created attachment 921220 [details] build.log
Created attachment 921221 [details] emerge --info [ebuild N ] dev-cpp/argparse-3.0::gentoo USE="-test" 114 KiB I will try with that installed.
Installing dev-cpp/argparse does not help. And it looks as this is not the libargparse what libavif uses. Can't find a fitting ebuild anywhere.
Exactly the same problem here.
Oh, boy, 2021 (that's the year of the last commit to the said repo) I believe the dev, that commited this to the main tree meant to add to the ebuild something like --- libavif-1.2.0.ebuild +++ libavif-1.2.0.ebuild @@ -10,8 +10,6 @@ SRC_URI=" https://github.com/AOMediaCodec/libavif/archive/v${PV}.tar.gz -> ${P}.tar.gz + https://github.com/kmurray/libargparse/archive/ee74d1b53bd680748af14e737378de57e2a0a954.tar.gz + -> libargparse-ee74d1b53bd680748af14e737378de57e2a0a954.tar.gz " LICENSE="BSD-2" @@ -63,7 +61,6 @@ -DAVIF_BUILD_GDK_PIXBUF=$(usex gdk-pixbuf ON OFF) -DAVIF_ENABLE_WERROR=OFF + -DFETCHCONTENT_SOURCE_DIR_LIBARGPARSE="${WORKDIR}/libargparse-ee74d1b53bd680748af14e737378de57e2a0a954" ) if multilib_is_native_abi; then but forgot(
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=507345efe594f73390078dbf4a1f21bf4953463d commit 507345efe594f73390078dbf4a1f21bf4953463d Author: NRK <nrk@disroot.org> AuthorDate: 2025-03-21 09:07:38 +0000 Commit: Sam James <sam@gentoo.org> CommitDate: 2025-03-21 10:21:33 +0000 media-libs/libavif: fix build with USE=extras needs a bundled libargparse when building extra tools. Closes: https://bugs.gentoo.org/951614 Signed-off-by: NRK <nrk@disroot.org> Closes: https://github.com/gentoo/gentoo/pull/41205 Signed-off-by: Sam James <sam@gentoo.org> media-libs/libavif/Manifest | 1 + media-libs/libavif/libavif-1.2.0.ebuild | 20 +++++++++++++++++++- 2 files changed, 20 insertions(+), 1 deletion(-)