Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 871690 - media-libs/babl: missing babl-0.1 pkg-config (.pc) file (media-libs/libmypaint-1.6.1-r2 with glib-2.74.0: glib/mypaint-gegl-glib.h:6:10: fatal error: glib-object.h: No such file or directory)
Summary: media-libs/babl: missing babl-0.1 pkg-config (.pc) file (media-libs/libmypain...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Sergey Torokhov
URL:
Whiteboard:
Keywords: PullRequest
: 868774 (view as bug list)
Depends on:
Blocks:
 
Reported: 2022-09-19 10:26 UTC by Kobboi
Modified: 2022-10-04 18:40 UTC (History)
14 users (show)

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


Attachments
build.log.gz (build.log.gz,6.66 KB, application/gzip)
2022-09-19 10:26 UTC, Kobboi
Details
emerge-info.txt (emerge-info.txt,7.65 KB, text/plain)
2022-09-19 10:26 UTC, Kobboi
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Kobboi 2022-09-19 10:26:03 UTC
libtool: link: x86_64-pc-linux-gnu-gcc -shared  -fPIC -DPIC  ../glib/.libs/libmypaint_gegl_la-mypaint-gegl-glib.o .libs/libmypaint_gegl_la-mypaint-gegl-surface.o   -Wl,-rpath -Wl,/var/tmp/portage/media-libs/libmypaint-1.6.1-r2/work/libmypaint-1.6.1/.libs ../.libs/libmypaint.so -lgegl-0.4 -lgegl-npd-0.4 -lgmodule-2.0 -ljson-glib-1.0 -lgio-2.0 -lgobject-2.0 -lglib-2.0 -lbabl-0.1 -lm  -pthread -pthread -O2 -march=znver3 -g -ggdb3 -Wl,-O1 -Wl,--as-needed -Wl,--export-dynamic -pthread   -pthread -fopenmp -Wl,-soname -Wl,libmypaint-gegl.so.0 -o .libs/libmypaint-gegl.so.0.0.0
libtool: link: (cd ".libs" && rm -f "libmypaint-gegl.so.0" && ln -s "libmypaint-gegl.so.0.0.0" "libmypaint-gegl.so.0")
libtool: link: (cd ".libs" && rm -f "libmypaint-gegl.so" && ln -s "libmypaint-gegl.so.0.0.0" "libmypaint-gegl.so")
libtool: link: ( cd ".libs" && rm -f "libmypaint-gegl.la" && ln -s "../libmypaint-gegl.la" "libmypaint-gegl.la" )
CPPFLAGS="" CFLAGS="-D_POSIX_C_SOURCE=200809L -O2 -march=znver3 -pipe -fomit-frame-pointer -g -ggdb3" LDFLAGS="-Wl,-O1 -Wl,--as-needed" CC="x86_64-pc-linux-gnu-gcc" PKG_CONFIG="/usr/bin/x86_64-pc-linux-gnu-pkg-config" GI_HOST_OS="" DLLTOOL="false" CFLAGS="-D_POSIX_C_SOURCE=200809L -O2 -march=znver3 -pipe -fomit-frame-pointer -g -ggdb3" LDFLAGS="-Wl,-O1 -Wl,--as-needed -lm" CPPFLAGS="" CXXFLAGS="-O2 -march=znver3 -pipe -fomit-frame-pointer -g -ggdb3" /usr/bin/g-ir-scanner  --warn-all --pkg="gegl-0.4" --pkg="glib-2.0" --namespace="MyPaintGegl" --nsversion="1.6" --identifier-prefix="MyPaintGegl" --symbol-prefix="mypaint_gegl" --add-include-path="./.." --add-include-path="." --add-include-path="./.." --add-include-path="`/usr/bin/x86_64-pc-linux-gnu-pkg-config --define-variable=datadir="/usr/share" --variable=girdir gobject-introspection-1.0`" --namespace=MyPaintGegl --nsversion=1.6 --libtool="/bin/sh ../libtool"  --include=GObject-2.0 --include=MyPaint-1.6 --include=Gegl-0.4    --library=libmypaint-gegl.la --library=../libmypaint.la  --cflags-begin  -I.. -I.. -I. -I.. --cflags-end  ../glib/mypaint-gegl-glib.h mypaint-gegl-surface.h ../glib/mypaint-gegl-glib.c mypaint-gegl-surface.c libmypaint-gegl.la Makefile --output MyPaintGegl-1.6.gir
Package babl-0.1 was not found in the pkg-config search path.
Perhaps you should add the directory containing `babl-0.1.pc'
to the PKG_CONFIG_PATH environment variable
Package 'babl-0.1', required by 'virtual:world', not found

In file included from /var/tmp/portage/media-libs/libmypaint-1.6.1-r2/work/libmypaint-1.6.1/gegl/g-ir-cpp-yxndcm4c.c:4:
/var/tmp/portage/media-libs/libmypaint-1.6.1-r2/work/libmypaint-1.6.1/glib/mypaint-gegl-glib.h:6:10: fatal error: glib-object.h: No such file or directory
    6 | #include <glib-object.h>
      |          ^~~~~~~~~~~~~~~
compilation terminated.
Traceback (most recent call last):
  File "/usr/lib/python3.10/site-packages/setuptools/_distutils/unixccompiler.py", line 179, in preprocess
    self.spawn(pp_args)
  File "/usr/lib/python3.10/site-packages/setuptools/_distutils/ccompiler.py", line 1007, in spawn
    spawn(cmd, dry_run=self.dry_run, **kwargs)
  File "/usr/lib/python3.10/site-packages/setuptools/_distutils/spawn.py", line 70, in spawn
    raise DistutilsExecError(
distutils.errors.DistutilsExecError: command '/usr/bin/x86_64-pc-linux-gnu-gcc' failed with exit code 1

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/bin/g-ir-scanner", line 99, in <module>
    sys.exit(scanner_main(sys.argv))
  File "/usr/lib64/gobject-introspection/giscanner/scannermain.py", line 600, in scanner_main
    ss, filenames = create_source_scanner(options, args)
  File "/usr/lib64/gobject-introspection/giscanner/scannermain.py", line 471, in create_source_scanner
    ss.parse_files(filenames)
  File "/usr/lib64/gobject-introspection/giscanner/sourcescanner.py", line 265, in parse_files
    self._parse(headers)
  File "/usr/lib64/gobject-introspection/giscanner/sourcescanner.py", line 311, in _parse
    cc.preprocess(tmp_name_cpp,
  File "/usr/lib64/gobject-introspection/giscanner/ccompiler.py", line 309, in preprocess
    self.compiler.preprocess(source=source,
  File "/usr/lib/python3.10/site-packages/setuptools/_distutils/unixccompiler.py", line 181, in preprocess
    raise CompileError(msg)
distutils.errors.CompileError: command '/usr/bin/x86_64-pc-linux-gnu-gcc' failed with exit code 1
make[2]: *** [/usr/share/gobject-introspection-1.0/Makefile.introspection:156: MyPaintGegl-1.6.gir] Error 1
make[2]: Leaving directory '/var/tmp/portage/media-libs/libmypaint-1.6.1-r2/work/libmypaint-1.6.1/gegl'
make[1]: *** [Makefile:840: all-recursive] Error 1
make[1]: Leaving directory '/var/tmp/portage/media-libs/libmypaint-1.6.1-r2/work/libmypaint-1.6.1'
make: *** [Makefile:597: all] Error 2


Reproducible: Always
Comment 1 Kobboi 2022-09-19 10:26:14 UTC
Created attachment 812728 [details]
build.log.gz
Comment 2 Kobboi 2022-09-19 10:26:16 UTC
Created attachment 812731 [details]
emerge-info.txt
Comment 3 Harris Landgarten 2022-09-19 11:56:46 UTC
same here
Comment 4 Gabriel Linder 2022-09-19 12:24:17 UTC
Same, building with -introspection works fine though.
Comment 5 jospezial 2022-09-19 21:29:00 UTC
Is this a duplicate of Bug 868774 ?
Comment 6 Kobboi 2022-09-19 23:32:52 UTC
(In reply to jospezial from comment #5)
> Is this a duplicate of Bug 868774 ?

Not sure, it does compile with "old" babl/gegl (0.1.92-r1/0.4.36-r1)
Comment 7 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2022-09-19 23:57:30 UTC
*** Bug 868774 has been marked as a duplicate of this bug. ***
Comment 8 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2022-09-19 23:58:18 UTC
It's a bug in babl, it's missing its .pc file: https://gitlab.gnome.org/GNOME/babl/-/issues/80.
Comment 9 jospezial 2022-09-20 14:26:35 UTC
emerge media-libs/libmypaint-1.6.1-r2 succeeds, if I create a symlink:

ln -vrs /usr/lib64/pkgconfig/babl.pc /usr/lib64/pkgconfig/babl-0.1.pc
Comment 10 Sergey Torokhov 2022-09-20 15:16:41 UTC
Please, clarify what media-libs/babl version was installed before media-libs/libmypaint-1.6.1-r2 build attempt. Is it babl-9999.ebuild?
Comment 11 jospezial 2022-09-20 16:14:49 UTC
(In reply to Sergey Torokhov from comment #10)
> Please, clarify what media-libs/babl version was installed before
> media-libs/libmypaint-1.6.1-r2 build attempt. Is it babl-9999.ebuild?

A grep babl /var/log/emerge.log begins with 1619705169 and media-libs/babl-9999
So I am using media-libs/babl-9999 and no other version at least since Apr 29 2021.
Comment 12 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2022-09-20 16:15:45 UTC
(In reply to Sergey Torokhov from comment #10)
> Please, clarify what media-libs/babl version was installed before
> media-libs/libmypaint-1.6.1-r2 build attempt. Is it babl-9999.ebuild?

See https://bugs.gentoo.org/868774#c9
Comment 13 Sergey Torokhov 2022-10-04 18:19:31 UTC
The issue is reproduced for me if media-libs/libmypaint-1.6.1-r2 is tried to build with USE="gegl introspection" enabled simultaneously.

I'm not sure if babl.pc instead of babl-0.1.pc is required anywhere but the babl 0.1.96-r1 will add symlink to it instead of renaming.
Comment 14 Larry the Git Cow gentoo-dev 2022-10-04 18:27:16 UTC
The bug has been closed via the following commit(s):

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

commit e0fc2f40702ebf41c1a3032733495ece334c768d
Author:     Sergey Torokhov <torokhov-s-a@yandex.ru>
AuthorDate: 2022-10-04 18:15:59 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2022-10-04 18:25:29 +0000

    media-libs/babl: 0.1.96-r1 revbump. Fix absence of babl-0.1.pc
    
    The absence of babl-0.1.pc (instead of presented babl.pc)
    results in USE="gegl introspection" media-libs/libmypaint
    build error.
    
    This revbump adds babl-0.1.pc symlink to babl.pc file.
    
    Closes: https://bugs.gentoo.org/871690
    
    Signed-off-by: Sergey Torokhov <torokhov-s-a@yandex.ru>
    Closes: https://github.com/gentoo/gentoo/pull/27623
    Signed-off-by: Sam James <sam@gentoo.org>

 media-libs/babl/babl-0.1.96-r1.ebuild | 69 +++++++++++++++++++++++++++++++++++
 1 file changed, 69 insertions(+)