unofficial mirror of guix-patches@gnu.org 
 help / color / mirror / code / Atom feed
* [bug#31047] [PATCH] gnu: 4store: Remove preprocessor directive.
@ 2018-04-03 15:59 Roel Janssen
  2018-04-04 11:57 ` Ludovic Courtès
  0 siblings, 1 reply; 4+ messages in thread
From: Roel Janssen @ 2018-04-03 15:59 UTC (permalink / raw)
  To: 31047

[-- Attachment #1: Type: text/plain, Size: 83 bytes --]

Dear Guix,

The following patch fixes 4store's build.

Kind regards,
Roel Janssen


[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: 0001-gnu-4store-Remove-preprocessor-directive.patch --]
[-- Type: text/x-patch, Size: 2788 bytes --]

From c199e8bc2ae4db3ecd8dcc4267619d9fdc2e9a1b Mon Sep 17 00:00:00 2001
From: Roel Janssen <roel@gnu.org>
Date: Tue, 3 Apr 2018 17:47:05 +0200
Subject: [PATCH] gnu: 4store: Remove preprocessor directive.

* gnu/packages/databases.scm (4store): Add patch to remove preprocessor
  directive.
* gnu/packages/patches/4store-unset-preprocessor-directive.patch: New file.
* gnu/local.mk: Register patch.
---
 gnu/local.mk                                             |  1 +
 gnu/packages/databases.scm                               |  3 ++-
 .../patches/4store-unset-preprocessor-directive.patch    | 16 ++++++++++++++++
 3 files changed, 19 insertions(+), 1 deletion(-)
 create mode 100644 gnu/packages/patches/4store-unset-preprocessor-directive.patch

diff --git a/gnu/local.mk b/gnu/local.mk
index 2705fb37a..1481d0706 100644
--- a/gnu/local.mk
+++ b/gnu/local.mk
@@ -544,6 +544,7 @@ MODULES_NOT_COMPILED +=				\
 patchdir = $(guilemoduledir)/%D%/packages/patches
 dist_patch_DATA =						\
   %D%/packages/patches/4store-fix-buildsystem.patch		\
+  %D%/packages/patches/4store-unset-preprocessor-directive.patch	\
   %D%/packages/patches/a2ps-CVE-2001-1593.patch	\
   %D%/packages/patches/a2ps-CVE-2014-0466.patch	\
   %D%/packages/patches/abiword-explictly-cast-bools.patch	\
diff --git a/gnu/packages/databases.scm b/gnu/packages/databases.scm
index b08ac60f8..d9f750b33 100644
--- a/gnu/packages/databases.scm
+++ b/gnu/packages/databases.scm
@@ -125,7 +125,8 @@
       (file-name (string-append name "-" version ".tar.gz"))
       (sha256
        (base32 "004fmcf1w75zhc1x3zc6kc97j4jqn2v5nhk6yb3z3cpfrhzi9j50"))
-      (patches (list (search-patch "4store-fix-buildsystem.patch")))))
+      (patches (list (search-patch "4store-unset-preprocessor-directive.patch")
+                     (search-patch "4store-fix-buildsystem.patch")))))
     (build-system gnu-build-system)
     (native-inputs
      `(("perl" ,perl)
diff --git a/gnu/packages/patches/4store-unset-preprocessor-directive.patch b/gnu/packages/patches/4store-unset-preprocessor-directive.patch
new file mode 100644
index 000000000..c4b1d6eda
--- /dev/null
+++ b/gnu/packages/patches/4store-unset-preprocessor-directive.patch
@@ -0,0 +1,16 @@
+This patch removes the _XOPEN_SOURCE preprocessor directive as it does not seem to be needed.
+Setting it removes the definition of strdup, which is used in filter-datatypes.c.
+
+Patch by Roel Janssen <roel@gnu.org>
+*** a/src/frontend/filter-datatypes.c	1970-01-01 01:00:00.000000000 +0100
+--- b/src/frontend/filter-datatypes.c	2018-04-03 17:39:23.177905592 +0200
+***************
+*** 18,24 ****
+   *  Copyright (C) 2006 Steve Harris for Garlik
+   */
+  
+- #define _XOPEN_SOURCE
+  #include <stdlib.h>
+  #include <string.h>
+  #include <math.h>
+--- 18,23 ----
-- 
2.16.1


^ permalink raw reply related	[flat|nested] 4+ messages in thread

* [bug#31047] [PATCH] gnu: 4store: Remove preprocessor directive.
  2018-04-03 15:59 [bug#31047] [PATCH] gnu: 4store: Remove preprocessor directive Roel Janssen
@ 2018-04-04 11:57 ` Ludovic Courtès
  2018-04-04 12:57   ` Roel Janssen
  0 siblings, 1 reply; 4+ messages in thread
From: Ludovic Courtès @ 2018-04-04 11:57 UTC (permalink / raw)
  To: Roel Janssen; +Cc: 31047

Roel Janssen <roel@gnu.org> skribis:

> From c199e8bc2ae4db3ecd8dcc4267619d9fdc2e9a1b Mon Sep 17 00:00:00 2001
> From: Roel Janssen <roel@gnu.org>
> Date: Tue, 3 Apr 2018 17:47:05 +0200
> Subject: [PATCH] gnu: 4store: Remove preprocessor directive.
>
> * gnu/packages/databases.scm (4store): Add patch to remove preprocessor
>   directive.
> * gnu/packages/patches/4store-unset-preprocessor-directive.patch: New file.
> * gnu/local.mk: Register patch.

[...]

> +      (patches (list (search-patch "4store-unset-preprocessor-directive.patch")
> +                     (search-patch "4store-fix-buildsystem.patch")))))

You can even use ‘search-patches’ here.

Otherwise LGTM, thanks!

Ludo’.

^ permalink raw reply	[flat|nested] 4+ messages in thread

* [bug#31047] [PATCH] gnu: 4store: Remove preprocessor directive.
  2018-04-04 11:57 ` Ludovic Courtès
@ 2018-04-04 12:57   ` Roel Janssen
  2018-04-04 12:58     ` bug#31047: " Roel Janssen
  0 siblings, 1 reply; 4+ messages in thread
From: Roel Janssen @ 2018-04-04 12:57 UTC (permalink / raw)
  To: Ludovic Courtès; +Cc: 31047


Ludovic Courtès <ludo@gnu.org> writes:

> Roel Janssen <roel@gnu.org> skribis:
>
>> From c199e8bc2ae4db3ecd8dcc4267619d9fdc2e9a1b Mon Sep 17 00:00:00 2001
>> From: Roel Janssen <roel@gnu.org>
>> Date: Tue, 3 Apr 2018 17:47:05 +0200
>> Subject: [PATCH] gnu: 4store: Remove preprocessor directive.
>>
>> * gnu/packages/databases.scm (4store): Add patch to remove preprocessor
>>   directive.
>> * gnu/packages/patches/4store-unset-preprocessor-directive.patch: New file.
>> * gnu/local.mk: Register patch.
>
> [...]
>
>> +      (patches (list (search-patch "4store-unset-preprocessor-directive.patch")
>> +                     (search-patch "4store-fix-buildsystem.patch")))))
>
> You can even use ‘search-patches’ here.

Of course.  Old habits die hard I suppose..
I used ‘search-patches’ and pushed in ea09f99f7.

Thanks!

Kind regards,
Roel Janssen

^ permalink raw reply	[flat|nested] 4+ messages in thread

* bug#31047: [PATCH] gnu: 4store: Remove preprocessor directive.
  2018-04-04 12:57   ` Roel Janssen
@ 2018-04-04 12:58     ` Roel Janssen
  0 siblings, 0 replies; 4+ messages in thread
From: Roel Janssen @ 2018-04-04 12:58 UTC (permalink / raw)
  To: Ludovic Courtès; +Cc: 31047-done


Roel Janssen <roel@gnu.org> writes:

> Ludovic Courtès <ludo@gnu.org> writes:
>
>> Roel Janssen <roel@gnu.org> skribis:
>>
>>> From c199e8bc2ae4db3ecd8dcc4267619d9fdc2e9a1b Mon Sep 17 00:00:00 2001
>>> From: Roel Janssen <roel@gnu.org>
>>> Date: Tue, 3 Apr 2018 17:47:05 +0200
>>> Subject: [PATCH] gnu: 4store: Remove preprocessor directive.
>>>
>>> * gnu/packages/databases.scm (4store): Add patch to remove preprocessor
>>>   directive.
>>> * gnu/packages/patches/4store-unset-preprocessor-directive.patch: New file.
>>> * gnu/local.mk: Register patch.
>>
>> [...]
>>
>>> +      (patches (list (search-patch "4store-unset-preprocessor-directive.patch")
>>> +                     (search-patch "4store-fix-buildsystem.patch")))))
>>
>> You can even use ‘search-patches’ here.
>
> Of course.  Old habits die hard I suppose..
> I used ‘search-patches’ and pushed in ea09f99f7.
>
> Thanks!
>
> Kind regards,
> Roel Janssen

I forgot to mark is as done.  So here goes.

Kind regards,
Roel Janssen

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2018-04-04 13:00 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-04-03 15:59 [bug#31047] [PATCH] gnu: 4store: Remove preprocessor directive Roel Janssen
2018-04-04 11:57 ` Ludovic Courtès
2018-04-04 12:57   ` Roel Janssen
2018-04-04 12:58     ` bug#31047: " Roel Janssen

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).