diff options
author | Sarah Morgensen <iskarian@mgsn.dev> | 2021-09-04 21:36:53 -0700 |
---|---|---|
committer | Guillaume Le Vaillant <glv@posteo.net> | 2021-09-05 10:56:41 +0200 |
commit | cdb63b192c0756e2cfbe2cf4336ea3670409df57 (patch) | |
tree | 602af24fe884bcb75c8ff107990526ee24986e3e | |
parent | 2302adc0eca384fa5d2a78bbfc13dd596a1e2175 (diff) | |
download | guix-cdb63b192c0756e2cfbe2cf4336ea3670409df57.tar.gz |
gnu: libappindicator: Fix build for GCC 10.
* gnu/packages/freedesktop.scm (libappindicator)[source]: Add snippet to prevent declaring _PyGObject_API twice. Signed-off-by: Guillaume Le Vaillant <glv@posteo.net>
-rw-r--r-- | gnu/packages/freedesktop.scm | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/gnu/packages/freedesktop.scm b/gnu/packages/freedesktop.scm index a7766edf04..f7972695e5 100644 --- a/gnu/packages/freedesktop.scm +++ b/gnu/packages/freedesktop.scm @@ -24,6 +24,7 @@ ;;; Copyright © 2020 Raghav Gururajan <raghavgururajan@disroot.org> ;;; Copyright © 2021 Brendan Tildesley <mail@brendan.scot> ;;; Copyright © 2021 pineapples <guixuser6392@protonmail.com> +;;; Copyright © 2021 Sarah Morgensen <iskarian@mgsn.dev> ;;; ;;; This file is part of GNU Guix. ;;; @@ -2210,6 +2211,13 @@ useful with system integration.") "https://launchpad.net/libappindicator/" (version-major+minor version) "/" version "/+download/libappindicator-" version ".tar.gz")) + (modules '((guix build utils))) + (snippet + '(begin + ;; Fix 'multiple definitions' error from GCC 10 + (substitute* "bindings/python/appindicatormodule.c" + (("^#include <pygobject.h>" all) + (string-append "#define NO_IMPORT_PYGOBJECT\n" all))))) (sha256 (base32 "17xlqd60v0zllrxp8bgq3k5a1jkj0svkqn8rzllcyjh8k0gpr46m")))) |