0.6.0: missing pkgconfig dependency or wrong #include
Just found that tumbler-0.3.1 build fauils with:
Making all in gepub-thumbnailer
make[3]: Entering directory '/home/tkloczko/rpmbuild/BUILD/tumbler-0.3.1/plugins/gepub-thumbnailer'
/bin/sh ../../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I../.. -DNDEBUG -DG_DISABLE_CAST_CHECKS -DG_DISABLE_ASSERT -I../.. -I../../plugins -I../.. -I../../plugins -DG_LOG_DOMAIN=\"tumbler-gepub-thumbnailer\" -DPACKAGE_LOCALE_DIR=\"/usr/share/locale\" -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/libgepub-0.6 -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -flto=auto -flto-partition=none -c -o tumbler_gepub_thumbnailer_la-gepub-thumbnailer.lo `test -f 'gepub-thumbnailer.c' || echo './'`gepub-thumbnailer.c
libtool: compile: gcc -DHAVE_CONFIG_H -I. -I../.. -DNDEBUG -DG_DISABLE_CAST_CHECKS -DG_DISABLE_ASSERT -I../.. -I../../plugins -I../.. -I../../plugins -DG_LOG_DOMAIN=\"tumbler-gepub-thumbnailer\" -DPACKAGE_LOCALE_DIR=\"/usr/share/locale\" -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/libgepub-0.6 -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -flto=auto -flto-partition=none -c gepub-thumbnailer.c -fPIC -DPIC -o .libs/tumbler_gepub_thumbnailer_la-gepub-thumbnailer.o
In file included from /usr/include/libgepub-0.6/gepub.h:7,
from gepub-thumbnailer.c:35:
/usr/include/libgepub-0.6/gepub-widget.h:23:10: fatal error: webkit2/webkit2.h: No such file or directory
23 | #include <webkit2/webkit2.h>
| ^~~~~~~~~~~~~~~~~~~
compilation terminated.
So I've checked libgepub:
$ grep Requires /usr/lib64/pkgconfig/libgepub-0.6.pc
Requires: gio-2.0
However ..
$ for i in $(grep ^\#include /usr/include/libgepub-0.6/* | awk '{print $2}' | sed 's,<,,; s,>,,' |sort | uniq); do echo $i; done
"gepub-archive.h"
"gepub-doc.h"
"gepub-text-chunk.h"
"gepub-widget.h"
gio/gio.h
glib.h
glib-object.h
webkit2/webkit2.h
Looks like #include <webkit2/webkit2.h>
is wrong or generated libgepub-0.6.pc should have added in Requires webkit2gtk-4.0
Edited by Tomasz Kłoczko