public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
To: git-commits@fedoraproject.org
Subject: [rpms/canl-c] epel10: Patch to build with gcc 4.9.0.
Date: Thu, 19 Nov 2026 08:55:35 GMT	[thread overview]
Message-ID: <179507853563.1.3034629820597325738.rpms-canl-c-2920476239bd@fedoraproject.org> (raw)

A new commit has been pushed.

Repo   : rpms/canl-c
Branch : epel10
Commit : 2920476239bd440c774cacf8a685c58a84e1b6df
Author : František Dvořák <valtri@civ.zcu.cz>
Date   : 2014-06-28T01:29:48+02:00
Stats  : +59/-1 in 2 file(s)
URL    : https://src.fedoraproject.org/rpms/canl-c/c/2920476239bd440c774cacf8a685c58a84e1b6df?branch=epel10

Log:
Patch to build with gcc 4.9.0.

---
diff --git a/canl-c.spec b/canl-c.spec
index 59727af..6fc6811 100644
--- a/canl-c.spec
+++ b/canl-c.spec
@@ -6,6 +6,8 @@ Summary:        EMI Common Authentication library - bindings for C
 License:        ASL 2.0
 URL:            http://www.eu-emi.eu
 Source:         http://scientific.zcu.cz/emi/emi.canl.c/%{name}-%{version}.tar.gz
+# https://github.com/CESNET/canl-c/commit/c10dd9f46b8ee46db9b1a2e4bb3db8f0aae951e8
+Patch0:         no-decl.patch
 
 BuildRequires:  bison
 BuildRequires:  c-ares-devel
@@ -65,6 +67,7 @@ This package contains client and server examples of EMI caNl.
 
 %prep
 %setup -q
+%patch0 -p1
 
 
 %build
@@ -104,9 +107,10 @@ rm -f %{buildroot}%{_libdir}/*.la
 
 
 %changelog
-* Thu Jun 26 2014 František Dvořák <valtri@civ.zcu.cz> - 2.1.5-1
+* Fri Jun 27 2014 František Dvořák <valtri@civ.zcu.cz> - 2.1.5-1
 - New upstream version
 - Consistent style with buildroot macro
+- Patch to build with gcc 4.9.0
 
 * Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.1.4-2
 - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild

diff --git a/no-decl.patch b/no-decl.patch
new file mode 100644
index 0000000..b0e3978
--- /dev/null
+++ b/no-decl.patch
@@ -0,0 +1,54 @@
+commit c10dd9f46b8ee46db9b1a2e4bb3db8f0aae951e8
+Author: František Dvořák <valtri@civ.zcu.cz>
+Date:   Fri Jun 27 00:52:18 2014 +0200
+
+    Fix build error with the newest compilers (gcc 4.9.0) and -O2 optimizations.
+
+diff --git a/src/proxy/namespaces_lex.c.in b/src/proxy/namespaces_lex.c.in
+index f43764c..8c176fc 100644
+--- a/src/proxy/namespaces_lex.c.in
++++ b/src/proxy/namespaces_lex.c.in
+@@ -508,7 +508,6 @@ static yyconst flex_int16_t yy_chk[148] =
+ 
+ #include "parsertypes.h"
+ #include "namespaces_parse.h"
+-extern char *strndup(const char*, size_t);
+ 
+ 
+ #line 515 "<stdout>"
+diff --git a/src/proxy/namespaces_lex.l b/src/proxy/namespaces_lex.l
+index fe8e155..1be3620 100644
+--- a/src/proxy/namespaces_lex.l
++++ b/src/proxy/namespaces_lex.l
+@@ -31,7 +31,6 @@
+ 
+ #include "parsertypes.h"
+ #include "namespaces_parse.h"
+-extern char *strndup(const char*, size_t);
+ %}
+ 
+ %x SINGLE_QUOTED
+diff --git a/src/proxy/signing_policy_lex.c.in b/src/proxy/signing_policy_lex.c.in
+index e3e229b..d98ddcc 100644
+--- a/src/proxy/signing_policy_lex.c.in
++++ b/src/proxy/signing_policy_lex.c.in
+@@ -532,7 +532,6 @@ static yyconst flex_int16_t yy_chk[172] =
+ 
+ #include "parsertypes.h"
+ #include "signing_policy_parse.h"
+-extern char *strndup(const char*, size_t);
+ 
+ 
+ #line 539 "<stdout>"
+diff --git a/src/proxy/signing_policy_lex.l b/src/proxy/signing_policy_lex.l
+index 75d121d..0d94530 100644
+--- a/src/proxy/signing_policy_lex.l
++++ b/src/proxy/signing_policy_lex.l
+@@ -31,7 +31,6 @@
+ 
+ #include "parsertypes.h"
+ #include "signing_policy_parse.h"
+-extern char *strndup(const char*, size_t);
+ %}
+ 
+ %x SINGLE_QUOTED

                 reply	other threads:[~2026-11-19  8:55 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=179507853563.1.3034629820597325738.rpms-canl-c-2920476239bd@fedoraproject.org \
    --to=git-commits@fedoraproject.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.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox