From: Manolis Ragkousis <manolis837@gmail.com>
To: "Ludovic Courtès" <ludo@gnu.org>
Cc: Guix-devel <Guix-devel@gnu.org>
Subject: [PATCH] gnu: gnupg: Add missing triplet file for i586-gnu systems.
Date: Fri, 3 Jul 2015 22:44:30 +0300 [thread overview]
Message-ID: <CAFtzXzOxGbCF2zkKj5dyuDBQDqQrwrC+9bGDcae0jeHUvTr-WQ@mail.gmail.com> (raw)
[-- Attachment #1: Type: text/plain, Size: 301 bytes --]
Hello
While trying to build libgpg-error for target i586-pc-gnu it failed,
because lock-obj-pub.i586-pc-gnu.h was missing. It seems that
just copying lock-obj-pub.i486-pc-gnu.h to i586 does the trick. WDYT?
Found a similar case here.
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=764881
Manolis
[-- Attachment #2: 0001-gnu-gnupg-Add-missing-triplet-file-for-i586-gnu-syst.patch --]
[-- Type: text/x-patch, Size: 3240 bytes --]
From dfc1abe834f1d7f17fb6068dd5d1f20318097c1d Mon Sep 17 00:00:00 2001
From: Manolis Ragkousis <manolis837@gmail.com>
Date: Fri, 3 Jul 2015 21:55:31 +0300
Subject: [PATCH] gnu: gnupg: Add missing triplet file for i586-gnu systems.
* gnu/packages/gnupg.scm (libgpg-error): Apply patch.
* gnu/packages/patches/libgpg-hurd-add-triplet.patch: New file.
* gnu-system.am (dist_patch_DATA): Add it.
---
gnu-system.am | 1 +
gnu/packages/gnupg.scm | 4 ++-
gnu/packages/patches/libgpg-hurd-add-triplet.patch | 33 ++++++++++++++++++++++
3 files changed, 37 insertions(+), 1 deletion(-)
create mode 100644 gnu/packages/patches/libgpg-hurd-add-triplet.patch
diff --git a/gnu-system.am b/gnu-system.am
index 630845d..8d6cac4 100644
--- a/gnu-system.am
+++ b/gnu-system.am
@@ -464,6 +464,7 @@ dist_patch_DATA = \
gnu/packages/patches/libbonobo-activation-test-race.patch \
gnu/packages/patches/libcanberra-sound-theme-freedesktop.patch \
gnu/packages/patches/libevent-dns-tests.patch \
+ gnu/packages/patches/libgpg-hurd-add-triplet.patch \
gnu/packages/patches/liboop-mips64-deplibs-fix.patch \
gnu/packages/patches/libmad-mips-newgcc.patch \
gnu/packages/patches/libpthread-remove-duplicate.patch \
diff --git a/gnu/packages/gnupg.scm b/gnu/packages/gnupg.scm
index a9f1f12..46a4d88 100644
--- a/gnu/packages/gnupg.scm
+++ b/gnu/packages/gnupg.scm
@@ -32,6 +32,7 @@
#:use-module (gnu packages glib)
#:use-module (gnu packages pkg-config)
#:use-module (gnu packages ncurses)
+ #:use-module (gnu packages)
#:use-module (guix packages)
#:use-module (guix download)
#:use-module (guix build-system gnu))
@@ -47,7 +48,8 @@
version ".tar.bz2"))
(sha256
(base32
- "0408v19h3h0q6w61g51hgbdg6cyw81nyzkh70qfprvsc3pkddwcz"))))
+ "0408v19h3h0q6w61g51hgbdg6cyw81nyzkh70qfprvsc3pkddwcz"))
+ (patches (list (search-patch "libgpg-hurd-add-triplet.patch")))))
(build-system gnu-build-system)
(home-page "http://gnupg.org")
(synopsis "Library of error values for GnuPG components")
diff --git a/gnu/packages/patches/libgpg-hurd-add-triplet.patch b/gnu/packages/patches/libgpg-hurd-add-triplet.patch
new file mode 100644
index 0000000..c9d8acd
--- /dev/null
+++ b/gnu/packages/patches/libgpg-hurd-add-triplet.patch
@@ -0,0 +1,33 @@
+diff --git a/src/syscfg/lock-obj-pub.i586-pc-gnu.h b/src/syscfg/lock-obj-pub.i586-pc-gnu.h
+new file mode 100644
+index 0000000..59b61e1
+--- /dev/null
++++ b/src/syscfg/lock-obj-pub.i586-pc-gnu.h
+@@ -0,0 +1,24 @@
++## lock-obj-pub.i586-pc-gnu.h
++## File created by gen-posix-lock-obj - DO NOT EDIT
++## To be included by mkheader into gpg-error.h
++
++typedef struct
++{
++ long _vers;
++ union {
++ volatile char _priv[32];
++ long _x_align;
++ long *_xp_align;
++ } u;
++} gpgrt_lock_t;
++
++#define GPGRT_LOCK_INITIALIZER {1,{{0,0,0,0,0,0,0,0, \
++ 0,0,0,0,0,0,0,0, \
++ 0,0,0,0,0,0,0,0, \
++ 0,0,0,0,0,0,0,0}}}
++##
++## Local Variables:
++## mode: c
++## buffer-read-only: t
++## End:
++##
+--
+2.4.5
+
--
2.4.5
next reply other threads:[~2015-07-03 19:44 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-07-03 19:44 Manolis Ragkousis [this message]
2015-07-03 20:20 ` [PATCH] gnu: gnupg: Add missing triplet file for i586-gnu systems Andreas Enge
2015-07-04 14:36 ` Ludovic Courtès
2015-07-04 14:38 ` Ludovic Courtès
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=CAFtzXzOxGbCF2zkKj5dyuDBQDqQrwrC+9bGDcae0jeHUvTr-WQ@mail.gmail.com \
--to=manolis837@gmail.com \
--cc=Guix-devel@gnu.org \
--cc=ludo@gnu.org \
/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 external index
https://git.savannah.gnu.org/cgit/guix.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.