Borrowed from Debian https://sources.debian.org/src/gnupg1/1.4.23-1.1/debian/patches/0006-fix-for-gcc10.patch/ Subject: Fix build with gcc-10 Author: Christoph Biedl Date: 2021-01-04 Bug: https://dev.gnupg.org/T5215 Bug-Debian: https://bugs.debian.org/957293 --- a/g10/options.h +++ b/g10/options.h @@ -29,6 +29,8 @@ /* Norcraft can't cope with common symbols */ #if defined (__riscos__) && !defined (INCLUDED_BY_MAIN_MODULE) #define EXTERN_UNLESS_MAIN_MODULE extern +#elif defined (__GNUC__) && __GNUC__ >= 10 +#define EXTERN_UNLESS_MAIN_MODULE __attribute__((__common__)) #else #define EXTERN_UNLESS_MAIN_MODULE #endif --- a/include/cipher.h +++ b/include/cipher.h @@ -117,6 +117,8 @@ #ifndef EXTERN_UNLESS_MAIN_MODULE #if defined (__riscos__) && !defined (INCLUDED_BY_MAIN_MODULE) #define EXTERN_UNLESS_MAIN_MODULE extern +#elif defined (__GNUC__) && __GNUC__ >= 10 +#define EXTERN_UNLESS_MAIN_MODULE __attribute__((__common__)) #else #define EXTERN_UNLESS_MAIN_MODULE #endif --- a/include/iobuf.h +++ b/include/iobuf.h @@ -72,6 +72,8 @@ #ifndef EXTERN_UNLESS_MAIN_MODULE #if defined (__riscos__) && !defined (INCLUDED_BY_MAIN_MODULE) #define EXTERN_UNLESS_MAIN_MODULE extern +#elif defined (__GNUC__) && __GNUC__ >= 10 +#define EXTERN_UNLESS_MAIN_MODULE __attribute__((__common__)) #else #define EXTERN_UNLESS_MAIN_MODULE #endif --- a/include/memory.h +++ b/include/memory.h @@ -93,6 +93,8 @@ #ifndef EXTERN_UNLESS_MAIN_MODULE #if defined (__riscos__) && !defined (INCLUDED_BY_MAIN_MODULE) #define EXTERN_UNLESS_MAIN_MODULE extern +#elif defined (__GNUC__) && __GNUC__ >= 10 +#define EXTERN_UNLESS_MAIN_MODULE __attribute__((__common__)) #else #define EXTERN_UNLESS_MAIN_MODULE #endif --- a/include/mpi.h +++ b/include/mpi.h @@ -38,6 +38,8 @@ #ifndef EXTERN_UNLESS_MAIN_MODULE #if defined (__riscos__) && !defined (INCLUDED_BY_MAIN_MODULE) #define EXTERN_UNLESS_MAIN_MODULE extern +#elif defined (__GNUC__) && __GNUC__ >= 10 +#define EXTERN_UNLESS_MAIN_MODULE __attribute__((__common__)) #else #define EXTERN_UNLESS_MAIN_MODULE #endif f017d5ff5b045d8e4e18ccf4ede3a10da01906'>tests/packages.scm
AgeCommit message (Expand)Author
2022-10-22Remove now unnecessary uses of (guix grafts)....These modules would use (guix grafts) just to access '%graft?' and related bindings, which are now in (guix store). * gnu/ci.scm, guix/gexp.scm, guix/lint.scm, guix/scripts.scm, guix/scripts/archive.scm, guix/scripts/build.scm, guix/scripts/challenge.scm, guix/scripts/deploy.scm, guix/scripts/environment.scm, guix/scripts/home.scm, guix/scripts/pack.scm, guix/scripts/package.scm, guix/scripts/pull.scm, guix/scripts/size.scm, guix/scripts/system.scm, guix/scripts/weather.scm, tests/builders.scm, tests/channels.scm, tests/cpan.scm, tests/derivations.scm, tests/gexp.scm, tests/graph.scm, tests/guix-daemon.sh, tests/monads.scm, tests/pack.scm, tests/packages.scm, tests/profiles.scm, tests/system.scm: Remove #:use-module (guix grafts). Ludovic Courtès
2022-10-10packages: Raise an exception for invalid 'license' values....This is written in such a way that the type check turns into a no-op at macro-expansion time for trivial cases: > ,optimize (validate-license gpl3+) $18 = gpl3+ > ,optimize (validate-license (list gpl3+ gpl2+)) $19 = (list gpl3+ gpl2+) * guix/packages.scm (valid-license-value?, validate-license): New macros. (<package>)[license]: Add 'sanitize' option. (&package-license-error): New error condition type. * tests/packages.scm ("license type checking"): New test. Ludovic Courtès