public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/canl-c] epel10: Patch to build with gcc 4.9.0.
@ 2026-11-19 8:55
0 siblings, 0 replies; only message in thread
From: @ 2026-11-19 8:55 UTC (permalink / raw)
To: git-commits
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
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2026-11-19 8:55 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-11-19 8:55 [rpms/canl-c] epel10: Patch to build with gcc 4.9.0
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox