Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Broken build due to not finding cairomm, pangomm even though installed #1

Open
ctrlcctrlv opened this issue Mar 28, 2024 · 2 comments

Comments

@ctrlcctrlv
Copy link

==> Starting build()...
------------------------------
Building Makefile for Inkscape
------------------------------
Source Dir: /Z/A/fred@oo.tanuki.agency.bak/.cache/yay/inkscape-git/src/inkscape.git
Binary Dir: /Z/A/fred@oo.tanuki.agency.bak/.cache/yay/inkscape-git/src/build
-- Creating build files in: /Z/A/fred@oo.tanuki.agency.bak/.cache/yay/inkscape-git/src/build
-- Found poppler: /usr/lib/libpoppler.so
-- Found poppler-glib: /usr/lib/libpoppler-glib.so
-- Found cairo-svg: /usr/lib/libcairo.so
-- Checking for module 'poppler-cairo'
--   Package 'poppler-cairo', required by 'virtual:world', not found
-- Found poppler-cairo: /usr/lib/libcairo.so
-- Found Potrace: /usr/lib/libpotrace.so
-- Checking for modules 'cairomm-1.16;pangomm-2.48;gdk-pixbuf-2.0;graphene-1.0'
--   Package 'cairomm-1.16', required by 'virtual:world', not found
--   Package 'pangomm-2.48', required by 'virtual:world', not found
CMake Error at /usr/share/cmake/Modules/FindPkgConfig.cmake:619 (message):
  The following required packages were not found:

   - cairomm-1.16
   - pangomm-2.48

Call Stack (most recent call first):
  /usr/share/cmake/Modules/FindPkgConfig.cmake:841 (_pkg_check_modules_internal)
  CMakeScripts/DefineDependsandFlags.cmake:265 (pkg_check_modules)
  CMakeLists.txt:141 (include)


-- Configuring incomplete, errors occurred!
==> ERROR: A failure occurred in build().
    Aborting...
[fred@大.狸.agency ~/.cache/yay/inkscape-git]$
[fred@大.狸.agency ~/.cache/yay/inkscape-git]$ pacman -Qk {cairo,pango}mm
cairomm: 42 total files, 0 missing files
pangomm: 73 total files, 0 missing files
@ctrlcctrlv
Copy link
Author

ctrlcctrlv commented Mar 28, 2024

OK I know what's wrong.

Dependencies need to be changed to the explicit packages pangomm-2.48 and cairomm-1.16.

I also needed /usr/share/pkgconfig as well as /usr/lib/pkgconfig in the envvar for it.

Here is a patch:

diff --git a/PKGBUILD b/PKGBUILD
index 741ec5c..68e135e 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -14,7 +14,7 @@ _fragment="${FRAGMENT:-#branch=master}"
 : ${BITMAP_BACKEND:=imagemagick} # select imagemagick implementation {imagemagick,graphicsmagick}
 
 pkgname=inkscape-git
-pkgver=1.3.alpha.r987.g07fdc5641e
+pkgver=1.3.alpha.r1228.g3501a56d3f
 pkgrel=1
 epoch=5
 pkgdesc="An Open Source vector graphics editor, using SVG file format, from git master"
@@ -23,6 +23,7 @@ license=('GPL' 'LGPL')
 arch=('i686' 'x86_64')
 makedepends=('cmake' 'boost' 'git' 'ninja')
 depends=(
+	'cairomm-1.16'
 	'dbus-glib'
 	'double-conversion'
 	'gc'
@@ -37,6 +38,7 @@ depends=(
 	'libsoup'
 	'libvisio'
 	'libxslt'
+	'pangomm-2.48'
 	'poppler-glib'
 	'potrace'
 	'python'
@@ -90,7 +92,10 @@ pkgver() {
 }
 
 build() {
-case $BITMAP_BACKEND in imagemagick) export PKG_CONFIG_PATH="/usr/lib/pkgconfig:/usr/lib/imagemagick6/pkgconfig";; esac
+case "$BITMAP_BACKEND" in
+    imagemagick)
+        export PKG_CONFIG_LIBDIR="/usr/lib/pkgconfig:/usr/share/pkgconfig:/usr/lib/imagemagick6/pkgconfig";;
+esac
 # export CXXFLAGS="${CXXFLAGS} -fpermissive"
   cmake -S "${_gitname}" -B build -G Ninja \
         -DCMAKE_INSTALL_PREFIX=/usr \

@bartoszek
Copy link
Owner

bartoszek commented Apr 10, 2024

I'll have to package upstream version of {pango,cairo}mm} and graphenPlease wait till I have some time. In the meantime, useextra/inkscape` instead 😢

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants