stefantalpalaru / gentoo-overlay

Gentoo overlay
GNU General Public License v2.0
43 stars 11 forks source link

media-gfx/gmic-3.3.4-r100 can't find gimp-2.0/babl #141

Closed ExecutorElassus closed 6 months ago

ExecutorElassus commented 6 months ago

During config phase I get the following error:

Producing filter translation .qm files
-- Checking for module 'gimp-2.0'
--   Package 'babl', required by 'gegl-0.4', not found
CMake Error at /usr/share/cmake/Modules/FindPkgConfig.cmake:619 (message):
  The following required packages were not found:

   - gimp-2.0

Call Stack (most recent call first):
  /usr/share/cmake/Modules/FindPkgConfig.cmake:841 (_pkg_check_modules_internal)
  CMakeLists.txt:666 (pkg_check_modules)

I have gegl-0.4.46, gimp-2.10.36-r1, and babl-9999 installed. Any idea why gmic is failing to find them?

stefantalpalaru commented 6 months ago

Does the live ebuild for "babl" install pkg-config files?

This is babl-0.1.106:

# qlist -e babl | grep '\.pc'
/usr/lib64/pkgconfig/babl-0.1.pc
/usr/lib64/pkgconfig/babl.pc
ExecutorElassus commented 6 months ago

That command only returns

/usr/lib64/pkgconfig/babl-0.1.pc

not the second file. Do I need to change a config somewhere?

stefantalpalaru commented 6 months ago

Do I need to change a config somewhere?

Fork and fix that live ebuild, if you must use it

# diff -u /usr/portage/media-libs/babl/babl-0.1.106.ebuild /usr/portage/media-libs/babl/babl-9999.ebuild
--- /usr/portage/media-libs/babl/babl-0.1.106.ebuild    2023-12-08 10:10:52.000000000 +0100
+++ /usr/portage/media-libs/babl/babl-9999.ebuild   2023-05-24 22:12:50.000000000 +0200
@@ -1,4 +1,4 @@
-# Copyright 1999-2023 Gentoo Authors
+# Copyright 1999-2022 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2

 EAPI=8
@@ -13,7 +13,7 @@
    SRC_URI=""
 else
    SRC_URI="https://download.gimp.org/pub/${PN}/${PV:0:3}/${P}.tar.xz"
-   KEYWORDS="~alpha amd64 ~arm arm64 ~hppa ~ia64 ~loong ~mips ~ppc ppc64 ~riscv -sparc x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x64-solaris"
+   KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~riscv -sparc ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x64-solaris"
 fi

 DESCRIPTION="A dynamic, any to any, pixel format conversion library"
@@ -60,10 +60,3 @@
    )
    meson_src_configure
 }
-
-src_install() {
-   meson_src_install
-
-   # Create symlink for backward compatibility. See also bug 871690
-   dosym -r /usr/"$(get_libdir)"/pkgconfig/babl-0.1.pc /usr/"$(get_libdir)"/pkgconfig/babl.pc
-}
ExecutorElassus commented 6 months ago

It seems I had gimp, gegl, and babl all keyworded to emerge the live ebuilds, but then some point later removed the -9999 for gimp and gegl, but not babl. I've now removed that flag as well, emerged babl-0.1.106, and now gmic installs fine. So I think you can close this issue as invalid, since the problem was with a different package. Thanks for all the work you do on this overlay; yours is the only source I have for a working electricsheep and the packages I need to keep flowblade working.