From: Tobias Geerinckx-Rice <me@tobias.gr>
Date: Sat, 14 Nov 2020 15:40:38 +0100
Subject: [PATCH] gnu: perl-www-curl: Remove undeclared symbols.

Copied verbatim from the FreeBSD port[0].

[0]: https://www.freshports.org/www/p5-WWW-Curl

--- a/Makefile.PL	2014-02-21 08:08:09.000000000 -0800
+++ b/Makefile.PL	2020-04-20 15:36:35.008798000 -0700
@@ -100,6 +100,13 @@
      print "Found curl.h in $curl_h\n";
      my @syms;
      my $has_cpp = 0;
+     my @skiplist = qw/
+        CURL_DID_MEMORY_FUNC_TYPEDEFS
+        CURL_STRICTER
+        CURLINC_CURL_H
+        CURL_WIN32
+        CURLOPT
+     /;
      open(H_IN, "-|", "cpp", $curl_h) and $has_cpp++;
      unless ($has_cpp) {
          warn "No working cpp ($!).  Parsing curl.h in Perl";
@@ -121,6 +128,7 @@
     open (H, "<", $curl_h) or die ("Cannot open $curl_h: ".$!);
     while(<H>) {
         if (/^#define (CURL[A-Za-z0-9_]*)/) {
+            next if $1 ~~ @skiplist;
             push @syms, $1;
         }
     }
></table>
<table class='tabs'><tr><td>
<a href='/guix/about/'>about</a><a href='/guix/'>summary</a><a href='/guix/refs/?id=e60c67b1b44b3a80624ba3699c07b65b88c42af0'>refs</a><a href='/guix/log/gnu'>log</a><a href='/guix/tree/gnu?id=e60c67b1b44b3a80624ba3699c07b65b88c42af0'>tree</a><a class='active' href='/guix/commit/gnu?id=e60c67b1b44b3a80624ba3699c07b65b88c42af0'>commit</a><a href='/guix/diff/gnu?id=e60c67b1b44b3a80624ba3699c07b65b88c42af0'>diff</a></td><td class='form'><form class='right' method='get' action='/guix/log/gnu'>
<input type='hidden' name='id' value='e60c67b1b44b3a80624ba3699c07b65b88c42af0'/><select name='qt'>
<option value='grep'>log msg</option>
<option value='author'>author</option>
<option value='committer'>committer</option>
<option value='range'>range</option>
</select>
<input class='txt' type='search' size='10' name='q' value=''/>
<input type='submit' value='search'/>
</form>
</td></tr></table>
<div class='path'>path: <a href='/guix/commit/?id=e60c67b1b44b3a80624ba3699c07b65b88c42af0'>root</a>/<a href='/guix/commit/gnu?id=e60c67b1b44b3a80624ba3699c07b65b88c42af0'>gnu</a></div><div class='content'><div class='cgit-panel'><b>diff options</b><form method='get'><input type='hidden' name='id' value='e60c67b1b44b3a80624ba3699c07b65b88c42af0'/><table><tr><td colspan='2'/></tr><tr><td class='label'>context:</td><td class='ctrl'><select name='context' onchange='this.form.submit();'><option value='1'>1</option><option value='2'>2</option><option value='3' selected='selected'>3</option><option value='4'>4</option><option value='5'>5</option><option value='6'>6</option><option value='7'>7</option><option value='8'>8</option><option value='9'>9</option><option value='10'>10</option><option value='15'>15</option><option value='20'>20</option><option value='25'>25</option><option value='30'>30</option><option value='35'>35</option><option value='40'>40</option></select></td></tr><tr><td class='label'>space:</td><td class='ctrl'><select name='ignorews' onchange='this.form.submit();'><option value='0' selected='selected'>include</option><option value='1'>ignore</option></select></td></tr><tr><td class='label'>mode:</td><td class='ctrl'><select name='dt' onchange='this.form.submit();'><option value='0' selected='selected'>unified</option><option value='1'>ssdiff</option><option value='2'>stat only</option></select></td></tr><tr><td/><td class='ctrl'><noscript><input type='submit' value='reload'/></noscript></td></tr></table></form></div><table summary='commit info' class='commit-info'>
<tr><th>author</th><td>Herman Rimm &lt;herman@rimm.ee&gt;</td><td class='right'>2024-01-30 16:25:20 +0100</td></tr>
<tr><th>committer</th><td>Efraim Flashner &lt;efraim@flashner.co.il&gt;</td><td class='right'>2024-02-20 13:58:52 +0200</td></tr>
<tr><th>commit</th><td colspan='2' class='oid'><a href='/guix/commit/gnu?id=e60c67b1b44b3a80624ba3699c07b65b88c42af0'>e60c67b1b44b3a80624ba3699c07b65b88c42af0</a> (<a href='/guix/patch/gnu?id=e60c67b1b44b3a80624ba3699c07b65b88c42af0'>patch</a>)</td></tr>
<tr><th>tree</th><td colspan='2' class='oid'><a href='/guix/tree/?id=e60c67b1b44b3a80624ba3699c07b65b88c42af0'>88177bbc3f21335aabc7cc5fd18529ab41efb4fd</a> /<a href='/guix/tree/gnu?id=e60c67b1b44b3a80624ba3699c07b65b88c42af0'>gnu</a></td></tr>
<tr><th>parent</th><td colspan='2' class='oid'><a href='/guix/commit/gnu?id=6c12ef09a4d7b6f16199f2ded1aa625820e015af'>6c12ef09a4d7b6f16199f2ded1aa625820e015af</a> (<a href='/guix/diff/gnu?id=e60c67b1b44b3a80624ba3699c07b65b88c42af0&amp;id2=6c12ef09a4d7b6f16199f2ded1aa625820e015af'>diff</a>)</td></tr><tr><th>download</th><td colspan='2' class='oid'><a href='/guix/snapshot/guix-e60c67b1b44b3a80624ba3699c07b65b88c42af0.tar.gz'>guix-e60c67b1b44b3a80624ba3699c07b65b88c42af0.tar.gz</a><br/><a href='/guix/snapshot/guix-e60c67b1b44b3a80624ba3699c07b65b88c42af0.zip'>guix-e60c67b1b44b3a80624ba3699c07b65b88c42af0.zip</a><br/></td></tr></table>
<div class='commit-subject'>gnu: rust-async-fs-1: Update to 1.6.0.</div><div class='commit-msg'>* gnu/packages/crates-io.scm (rust-async-fs-1): Update to 1.6.0.
[arguments]: Don't skip the build.
[cargo-inputs]: Add rust-autocfg-1.
[cargo-development-inputs]: Add rust-libc-0.2, rust-winapi-0.3.
[home-page]: Update to new home-page.

Change-Id: I5e399f890b802b284eac2950219be692aa81b607
Signed-off-by: Efraim Flashner &lt;efraim@flashner.co.il&gt;
</div><div class='diffstat-header'><a href='/guix/diff/?id=e60c67b1b44b3a80624ba3699c07b65b88c42af0'>Diffstat</a> (limited to 'gnu')</div><table summary='diffstat' class='diffstat'><tr><td class='mode'>-rw-r--r--</td><td class='upd'><a href='/guix/diff/gnu/packages/crates-io.scm?id=e60c67b1b44b3a80624ba3699c07b65b88c42af0'>gnu/packages/crates-io.scm</a></td><td class='right'>19</td><td class='graph'><table summary='file diffstat' width='19%'><tr><td class='add' style='width: 52.6%;'/><td class='rem' style='width: 47.4%;'/><td class='none' style='width: 0.0%;'/></tr></table></td></tr>
</table><div class='diffstat-summary'>1 files changed, 10 insertions, 9 deletions</div><table summary='diff' class='diff'><tr><td><div class='head'>diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm<br/>index 8bb7da1cac..57d3e95373 100644<br/>--- a/<a href='/guix/tree/gnu/packages/crates-io.scm?id=6c12ef09a4d7b6f16199f2ded1aa625820e015af'>gnu/packages/crates-io.scm</a><br/>+++ b/<a href='/guix/tree/gnu/packages/crates-io.scm?id=e60c67b1b44b3a80624ba3699c07b65b88c42af0'>gnu/packages/crates-io.scm</a></div>