summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Enge <andreas@enge.fr>2026-08-03 18:16:04 +0200
committerAndreas Enge <andreas@enge.fr>2026-08-24 11:55:46 +0200
commit938b635d2a2c23998d8a84e900e49e283262c83c (patch)
treee78933e3e861232393ebfbda731e833d61eb9c67
parente8bfe203efaeac80ef4f45cc5f4221a5e1c7337f (diff)
gnu: Remove gnupg-1.
* gnu/packages/gnupg.scm (gnupg-1): Delete variable. * gnu/packages/patches/gnupg-1-build-with-gcc10.patch: Remove file. * gnu/packages/gnupg.scm (dist_patch_DATA): Unregister file.
-rw-r--r--gnu/local.mk1
-rw-r--r--gnu/packages/gnupg.scm22
-rw-r--r--gnu/packages/patches/gnupg-1-build-with-gcc10.patch64
3 files changed, 0 insertions, 87 deletions
diff --git a/gnu/local.mk b/gnu/local.mk
index f90c12810fd..ed9d244e7a2 100644
--- a/gnu/local.mk
+++ b/gnu/local.mk
@@ -1533,7 +1533,6 @@ dist_patch_DATA = \
1533 %D%/packages/patches/gnulib-bootstrap.patch \ 1533 %D%/packages/patches/gnulib-bootstrap.patch \
1534 %D%/packages/patches/gnumach-version.patch \ 1534 %D%/packages/patches/gnumach-version.patch \
1535 %D%/packages/patches/gnupg-default-pinentry.patch \ 1535 %D%/packages/patches/gnupg-default-pinentry.patch \
1536 %D%/packages/patches/gnupg-1-build-with-gcc10.patch \
1537 %D%/packages/patches/gobject-introspection-absolute-shlib-path.patch \ 1536 %D%/packages/patches/gobject-introspection-absolute-shlib-path.patch \
1538 %D%/packages/patches/gobject-introspection-cc.patch \ 1537 %D%/packages/patches/gobject-introspection-cc.patch \
1539 %D%/packages/patches/gobject-introspection-girepository.patch \ 1538 %D%/packages/patches/gobject-introspection-girepository.patch \
diff --git a/gnu/packages/gnupg.scm b/gnu/packages/gnupg.scm
index a94182e987f..70e0a562b28 100644
--- a/gnu/packages/gnupg.scm
+++ b/gnu/packages/gnupg.scm
@@ -435,28 +435,6 @@ components), libgpg-error (centralized GnuPG error values), and
435libskba (working with X.509 certificates and CMS data).") 435libskba (working with X.509 certificates and CMS data).")
436 (license license:gpl3+))) 436 (license license:gpl3+)))
437 437
438(define-public gnupg-1
439 (package (inherit gnupg)
440 (version "1.4.23")
441 (source (origin
442 (method url-fetch)
443 (uri (string-append "mirror://gnupg/gnupg/gnupg-" version
444 ".tar.bz2"))
445 (sha256
446 (base32
447 "1fkq4sqldvf6a25mm2qz95swv1qjg464736091w51djiwqbjyin9"))
448 (patches (search-patches "gnupg-1-build-with-gcc10.patch"))))
449 (native-inputs '())
450 (inputs
451 (list zlib bzip2 curl readline libgpg-error))
452 (arguments
453 (list #:phases
454 #~(modify-phases %standard-phases
455 (add-after 'unpack 'patch-check-sh
456 (lambda _
457 (substitute* "checks/Makefile.in"
458 (("/bin/sh") (which "sh"))))))))))
459
460(define-public gpgme-2 438(define-public gpgme-2
461 (package 439 (package
462 (name "gpgme") 440 (name "gpgme")
diff --git a/gnu/packages/patches/gnupg-1-build-with-gcc10.patch b/gnu/packages/patches/gnupg-1-build-with-gcc10.patch
deleted file mode 100644
index 40b2aff98e2..00000000000
--- a/gnu/packages/patches/gnupg-1-build-with-gcc10.patch
+++ /dev/null
@@ -1,64 +0,0 @@
1Borrowed from Debian
2https://sources.debian.org/src/gnupg1/1.4.23-1.1/debian/patches/0006-fix-for-gcc10.patch/
3
4Subject: Fix build with gcc-10
5Author: Christoph Biedl <debian.axhn@manchmal.in-ulm.de>
6Date: 2021-01-04
7Bug: https://dev.gnupg.org/T5215
8Bug-Debian: https://bugs.debian.org/957293
9
10--- a/g10/options.h
11+++ b/g10/options.h
12@@ -29,6 +29,8 @@
13 /* Norcraft can't cope with common symbols */
14 #if defined (__riscos__) && !defined (INCLUDED_BY_MAIN_MODULE)
15 #define EXTERN_UNLESS_MAIN_MODULE extern
16+#elif defined (__GNUC__) && __GNUC__ >= 10
17+#define EXTERN_UNLESS_MAIN_MODULE __attribute__((__common__))
18 #else
19 #define EXTERN_UNLESS_MAIN_MODULE
20 #endif
21--- a/include/cipher.h
22+++ b/include/cipher.h
23@@ -117,6 +117,8 @@
24 #ifndef EXTERN_UNLESS_MAIN_MODULE
25 #if defined (__riscos__) && !defined (INCLUDED_BY_MAIN_MODULE)
26 #define EXTERN_UNLESS_MAIN_MODULE extern
27+#elif defined (__GNUC__) && __GNUC__ >= 10
28+#define EXTERN_UNLESS_MAIN_MODULE __attribute__((__common__))
29 #else
30 #define EXTERN_UNLESS_MAIN_MODULE
31 #endif
32--- a/include/iobuf.h
33+++ b/include/iobuf.h
34@@ -72,6 +72,8 @@
35 #ifndef EXTERN_UNLESS_MAIN_MODULE
36 #if defined (__riscos__) && !defined (INCLUDED_BY_MAIN_MODULE)
37 #define EXTERN_UNLESS_MAIN_MODULE extern
38+#elif defined (__GNUC__) && __GNUC__ >= 10
39+#define EXTERN_UNLESS_MAIN_MODULE __attribute__((__common__))
40 #else
41 #define EXTERN_UNLESS_MAIN_MODULE
42 #endif
43--- a/include/memory.h
44+++ b/include/memory.h
45@@ -93,6 +93,8 @@
46 #ifndef EXTERN_UNLESS_MAIN_MODULE
47 #if defined (__riscos__) && !defined (INCLUDED_BY_MAIN_MODULE)
48 #define EXTERN_UNLESS_MAIN_MODULE extern
49+#elif defined (__GNUC__) && __GNUC__ >= 10
50+#define EXTERN_UNLESS_MAIN_MODULE __attribute__((__common__))
51 #else
52 #define EXTERN_UNLESS_MAIN_MODULE
53 #endif
54--- a/include/mpi.h
55+++ b/include/mpi.h
56@@ -38,6 +38,8 @@
57 #ifndef EXTERN_UNLESS_MAIN_MODULE
58 #if defined (__riscos__) && !defined (INCLUDED_BY_MAIN_MODULE)
59 #define EXTERN_UNLESS_MAIN_MODULE extern
60+#elif defined (__GNUC__) && __GNUC__ >= 10
61+#define EXTERN_UNLESS_MAIN_MODULE __attribute__((__common__))
62 #else
63 #define EXTERN_UNLESS_MAIN_MODULE
64 #endif