unofficial mirror of guix-devel@gnu.org 
 help / color / mirror / code / Atom feed
* [PATCH 0/1] Perl-www-curl: Fix build failure
@ 2016-10-24 22:44 Leo Famulari
  2016-10-24 22:44 ` [PATCH 1/1] gnu: perl-www-curl: " Leo Famulari
  2016-10-25 19:01 ` [PATCH 0/1] Perl-www-curl: " Marius Bakke
  0 siblings, 2 replies; 4+ messages in thread
From: Leo Famulari @ 2016-10-24 22:44 UTC (permalink / raw)
  To: guix-devel

This fixes the build failure of perl-www-curl build on core-updates:
https://hydra.gnu.org/build/1553325/nixlog/2

The patch is copied from the upstream bug tracker, but the maintainers
don't seem to have done anything with the patch yet.

What do you think?

Leo Famulari (1):
  gnu: perl-www-curl: Fix build failure.

 gnu/local.mk                                       |  1 +
 .../patches/perl-www-curl-remove-symbol.patch      | 39 ++++++++++++++++++++++
 gnu/packages/web.scm                               |  1 +
 3 files changed, 41 insertions(+)
 create mode 100644 gnu/packages/patches/perl-www-curl-remove-symbol.patch

-- 
2.10.1

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

* [PATCH 1/1] gnu: perl-www-curl: Fix build failure.
  2016-10-24 22:44 [PATCH 0/1] Perl-www-curl: Fix build failure Leo Famulari
@ 2016-10-24 22:44 ` Leo Famulari
  2016-10-25 19:01 ` [PATCH 0/1] Perl-www-curl: " Marius Bakke
  1 sibling, 0 replies; 4+ messages in thread
From: Leo Famulari @ 2016-10-24 22:44 UTC (permalink / raw)
  To: guix-devel

* gnu/packages/patches/perl-www-curl-remove-symbol.patch: New file.
* gnu/local.mk (dist_patch_DATA): Add it.
* gnu/packages/web.scm (perl-www-curl)[source]: Use it.
---
 gnu/local.mk                                       |  1 +
 .../patches/perl-www-curl-remove-symbol.patch      | 39 ++++++++++++++++++++++
 gnu/packages/web.scm                               |  1 +
 3 files changed, 41 insertions(+)
 create mode 100644 gnu/packages/patches/perl-www-curl-remove-symbol.patch

diff --git a/gnu/local.mk b/gnu/local.mk
index adccab3..49d2909 100644
--- a/gnu/local.mk
+++ b/gnu/local.mk
@@ -750,6 +750,7 @@ dist_patch_DATA =						\
   %D%/packages/patches/perl-no-sys-dirs.patch			\
   %D%/packages/patches/perl-module-pluggable-search.patch	\
   %D%/packages/patches/perl-reproducible-build-date.patch	\
+  %D%/packages/patches/perl-www-curl-remove-symbol.patch	\
   %D%/packages/patches/pidgin-add-search-path.patch		\
   %D%/packages/patches/pinball-const-fix.patch			\
   %D%/packages/patches/pinball-cstddef.patch			\
diff --git a/gnu/packages/patches/perl-www-curl-remove-symbol.patch b/gnu/packages/patches/perl-www-curl-remove-symbol.patch
new file mode 100644
index 0000000..3fa0f56
--- /dev/null
+++ b/gnu/packages/patches/perl-www-curl-remove-symbol.patch
@@ -0,0 +1,39 @@
+Fix build failure caused by extraneous preprocessor symbol.
+
+Patch copied from upstream bug report:
+https://rt.cpan.org/Public/Bug/Display.html?id=117793
+
+From 0be0223422e6e5f4091c6e4e058d213623eed105 Mon Sep 17 00:00:00 2001
+From: =?UTF-8?q?Petr=20P=C3=ADsa=C5=99?= <ppisar@redhat.com>
+Date: Mon, 12 Sep 2016 14:40:44 +0200
+Subject: [PATCH] Skip preprocessor symbol only CURL_STRICTER
+MIME-Version: 1.0
+Content-Type: text/plain; charset=UTF-8
+Content-Transfer-Encoding: 8bit
+
+CURL_STRICTER leaked into curl-constants.c when building against
+curl-7.50.2. This is a preprocessor only macro without a value.
+
+CPAN RT#117793
+
+Signed-off-by: Petr Písař <ppisar@redhat.com>
+---
+ Makefile.PL | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/Makefile.PL b/Makefile.PL
+index f9170bb..ad2bd3d 100644
+--- a/Makefile.PL
++++ b/Makefile.PL
+@@ -127,7 +127,7 @@ if (!defined($curl_h)) {
+     close H;
+ 
+     for my $e (sort @syms) {
+-       if($e =~ /(OBSOLETE|^CURL_EXTERN|_LAST\z|_LASTENTRY\z)/) {
++       if($e =~ /(OBSOLETE|^CURL_EXTERN|^CURL_STRICTER\z|_LAST\z|_LASTENTRY\z)/) {
+           next;
+        }
+        my ($group) = $e =~ m/^([^_]+_)/;
+-- 
+2.7.4
+
diff --git a/gnu/packages/web.scm b/gnu/packages/web.scm
index cabf1e6..60f1f73 100644
--- a/gnu/packages/web.scm
+++ b/gnu/packages/web.scm
@@ -3053,6 +3053,7 @@ RFC 6570.")
               (uri (string-append
                     "mirror://cpan/authors/id/S/SZ/SZBALINT/WWW-Curl-"
                     version".tar.gz"))
+              (patches (search-patches "perl-www-curl-remove-symbol.patch"))
               (sha256
                (base32
                 "1fmp9aib1kaps9vhs4dwxn7b15kgnlz9f714bxvqsd1j1q8spzsj"))))
-- 
2.10.1

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

* Re: [PATCH 0/1] Perl-www-curl: Fix build failure
  2016-10-24 22:44 [PATCH 0/1] Perl-www-curl: Fix build failure Leo Famulari
  2016-10-24 22:44 ` [PATCH 1/1] gnu: perl-www-curl: " Leo Famulari
@ 2016-10-25 19:01 ` Marius Bakke
  2016-10-26 22:44   ` Leo Famulari
  1 sibling, 1 reply; 4+ messages in thread
From: Marius Bakke @ 2016-10-25 19:01 UTC (permalink / raw)
  To: Leo Famulari, guix-devel

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

Leo Famulari <leo@famulari.name> writes:

> This fixes the build failure of perl-www-curl build on core-updates:
> https://hydra.gnu.org/build/1553325/nixlog/2
>
> The patch is copied from the upstream bug tracker, but the maintainers
> don't seem to have done anything with the patch yet.
>
> What do you think?
>
> Leo Famulari (1):
>   gnu: perl-www-curl: Fix build failure.
>
>  gnu/local.mk                                       |  1 +
>  .../patches/perl-www-curl-remove-symbol.patch      | 39 ++++++++++++++++++++++
>  gnu/packages/web.scm                               |  1 +
>  3 files changed, 41 insertions(+)
>  create mode 100644 gnu/packages/patches/perl-www-curl-remove-symbol.patch

I dug into the curl history and managed to find the commits[0][1] that
lead to this. Combined with the bug report[2] linked in the patch, this
seems sensible.

Last maintainer activity on the upstream tracker was two years ago, so
we may have to carry this a while.

0: https://github.com/curl/curl/commit/d6604524ad24daf4581efbe0020da058d2b3af84
1: https://github.com/curl/curl/commit/5fce88aa8c1256486377471186fc353c50d610b1
2: https://rt.cpan.org/Public/Bug/Display.html?id=117793

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 454 bytes --]

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

* Re: [PATCH 0/1] Perl-www-curl: Fix build failure
  2016-10-25 19:01 ` [PATCH 0/1] Perl-www-curl: " Marius Bakke
@ 2016-10-26 22:44   ` Leo Famulari
  0 siblings, 0 replies; 4+ messages in thread
From: Leo Famulari @ 2016-10-26 22:44 UTC (permalink / raw)
  To: Marius Bakke; +Cc: guix-devel

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

On Tue, Oct 25, 2016 at 08:01:30PM +0100, Marius Bakke wrote:
> Leo Famulari <leo@famulari.name> writes:
> 
> > This fixes the build failure of perl-www-curl build on core-updates:
> > https://hydra.gnu.org/build/1553325/nixlog/2
> >
> > The patch is copied from the upstream bug tracker, but the maintainers
> > don't seem to have done anything with the patch yet.
> >
> > What do you think?
> >
> > Leo Famulari (1):
> >   gnu: perl-www-curl: Fix build failure.
> >
> >  gnu/local.mk                                       |  1 +
> >  .../patches/perl-www-curl-remove-symbol.patch      | 39 ++++++++++++++++++++++
> >  gnu/packages/web.scm                               |  1 +
> >  3 files changed, 41 insertions(+)
> >  create mode 100644 gnu/packages/patches/perl-www-curl-remove-symbol.patch
> 
> I dug into the curl history and managed to find the commits[0][1] that
> lead to this. Combined with the bug report[2] linked in the patch, this
> seems sensible.
> 
> Last maintainer activity on the upstream tracker was two years ago, so
> we may have to carry this a while.

Okay, I pushed it to core-updates. Thanks for the review!

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 801 bytes --]

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

end of thread, other threads:[~2016-10-26 22:44 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-10-24 22:44 [PATCH 0/1] Perl-www-curl: Fix build failure Leo Famulari
2016-10-24 22:44 ` [PATCH 1/1] gnu: perl-www-curl: " Leo Famulari
2016-10-25 19:01 ` [PATCH 0/1] Perl-www-curl: " Marius Bakke
2016-10-26 22:44   ` Leo Famulari

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).