unofficial mirror of bug-guix@gnu.org 
 help / color / mirror / code / Atom feed
From: John Kehayias via Bug reports for GNU Guix <bug-guix@gnu.org>
To: "49122@debbugs.gnu.org" <49122@debbugs.gnu.org>
Subject: bug#49122: (No Subject)
Date: Mon, 21 Jun 2021 02:04:06 +0000	[thread overview]
Message-ID: <S5U-gizfg9KaYJJXAKf2O9DmT33cBTLXMiX6SITY2FPDk6nGwERrd-TmPwsfkduxC-jbwIzhys9-oq1gAW6Bt55wpT5jRovDh2_KIMMUF5o=@protonmail.com> (raw)
In-Reply-To: <NU1oXuYXmLmLVwBBnwvv_21WrRNCjHFfDC16NAPAg8uzXlw9N0FhL69CwdG2KdPRBpb5YoOEjDr8ZiDagZpJfLTOFXxOJLecW-HlRjZONMo=@protonmail.com>

[-- Attachment #1: Type: text/plain, Size: 268 bytes --]

Of course, saw right after my last message that the dependency cycle here is through poppler, and cairo-sans-poppler exists. So I think I've solved this problem and will submit a patch.

I've attached the current changes I've been working on and testing for now.


[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: go-cairo.patch --]
[-- Type: text/x-patch; name=go-cairo.patch, Size: 1147 bytes --]

diff --git a/gnu/packages/glib.scm b/gnu/packages/glib.scm
index 206222b578..fb3dbdecb5 100644
--- a/gnu/packages/glib.scm
+++ b/gnu/packages/glib.scm
@@ -496,6 +496,13 @@ dynamic loading, and an object system.")
     (arguments
      `(#:phases
        (modify-phases %standard-phases
+         (add-after 'unpack 'patch
+           ;; Patch for cairo library location
+           (lambda* (#:key inputs #:allow-other-keys)
+              (substitute* "gir/cairo-1.0.gir.in"
+                           (("shared-library=\"@CAIRO_SHARED_LIBRARY@\"")
+                            (string-append "shared-library=\""
+                                           (assoc-ref inputs "cairo") "/lib/@CAIRO_SHARED_LIBRARY@\"")))))
          (add-after 'unpack 'do-not-use-/usr/bin/env
            (lambda _
              (substitute* "tools/g-ir-tool-template.in"
@@ -507,6 +514,7 @@ dynamic loading, and an object system.")
        ("pkg-config" ,pkg-config)))
     (inputs
      `(("bison" ,bison)
+       ("cairo" ,cairo-sans-poppler) ; break dependency loop via poppler
        ("flex" ,flex)
        ("glib" ,glib)
        ("python" ,python-wrapper)

  parent reply	other threads:[~2021-06-21  2:05 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-06-19 18:29 bug#49122: gobject-introspection and not finding cairo John Kehayias via Bug reports for GNU Guix
2021-06-20 23:59 ` bug#49122: (No Subject) John Kehayias via Bug reports for GNU Guix
2024-01-20 22:18   ` bug#49122: gobject-introspection and not finding cairo Maxim Cournoyer
2021-06-21  2:04 ` John Kehayias via Bug reports for GNU Guix [this message]
2021-09-07 23:06 ` Raghav Gururajan via Bug reports for GNU Guix
2021-09-08  0:07   ` Raghav Gururajan via Bug reports for GNU Guix

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://guix.gnu.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='S5U-gizfg9KaYJJXAKf2O9DmT33cBTLXMiX6SITY2FPDk6nGwERrd-TmPwsfkduxC-jbwIzhys9-oq1gAW6Bt55wpT5jRovDh2_KIMMUF5o=@protonmail.com' \
    --to=bug-guix@gnu.org \
    --cc=49122@debbugs.gnu.org \
    --cc=john.kehayias@protonmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).