GNU bug report logs - #49122
gobject-introspection and not finding cairo

Previous Next

Package: guix;

Reported by: John Kehayias <john.kehayias <at> protonmail.com>

Date: Sun, 20 Jun 2021 00:25:02 UTC

Severity: normal

Full log


Message #17 received at 49122 <at> debbugs.gnu.org (full text, mbox):

From: Raghav Gururajan <rg <at> raghavgururajan.name>
To: 49122 <at> debbugs.gnu.org
Subject: Re: gobject-introspection and not finding cairo
Date: Tue, 7 Sep 2021 20:07:31 -0400
[Message part 1 (text/plain, inline)]
Hi John!

> Something like this:
> 
> ```
> (define-public gobject-introspection+cairo
>    (hidden-package
>     (package
>       (inherit gobject-introspection)
>       (arguments
>        (substitute-keyword-arguments (package-arguments 
> gobject-introspection)
>          ((#:configure-flags flags ''())
>           `(cons* "-Dcairo=true" ,flags))))
>       (inputs
>        `(("cairo" ,cairo)
>          ,@(package-inputs gobject-introspection))))))
> ```

Or, something like this:

```
(define-public gobject-introspection+cairo
  (hidden-package
   (package
     (inherit gobject-introspection)
     (arguments
      (substitute-keyword-arguments (package-arguments 
gobject-introspection)
        ((#:configure-flags flags ''())
         `(append
           (list
            "-Dcairo=true"
            (string-append "-Dcairo_libname="
                           (assoc-ref %build-inputs "cairo")
                           "/lib/libcairo-gobject.so"))
           ,flags))))
     (inputs
      `(("cairo" ,cairo)
        ,@(package-inputs gobject-introspection))))))
```

Regards,
RG.
[OpenPGP_0x5F5816647F8BE551.asc (application/pgp-keys, attachment)]
[OpenPGP_signature (application/pgp-signature, attachment)]

This bug report was last modified 1 year and 201 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.