[packages/cec] Rel 3
arekm
arekm at pld-linux.org
Wed May 20 18:43:15 CEST 2026
commit cd17fc45b84ec9b91aa7aea9e9444a71246c82d3
Author: Arkadiusz Miśkiewicz <arekm at maven.pl>
Date: Wed May 20 18:43:00 2026 +0200
Rel 3
cec-fno-common.patch | 39 +++++++++++++++++++++++++++++++++++++++
cec.spec | 6 ++++--
2 files changed, 43 insertions(+), 2 deletions(-)
---
diff --git a/cec.spec b/cec.spec
index 4a7e42f..e783ae6 100644
--- a/cec.spec
+++ b/cec.spec
@@ -2,11 +2,12 @@ Summary: Coraid Ethernet Console client
Summary(pl.UTF-8): Klient Coraid Ethernet Console (konsoli ethernetowej Coraid)
Name: cec
Version: 14
-Release: 2
+Release: 3
License: GPL v2
Group: Networking
Source0: http://downloads.sourceforge.net/aoetools/%{name}-%{version}.tgz
# Source0-md5: d7a467eb70f2a1dcc27ec77085e00527
+Patch0: %{name}-fno-common.patch
URL: http://aoetools.sourceforge.net/
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
@@ -28,11 +29,12 @@ Działa pod Linuksem i odmianami BSD z obsługą BPF.
%prep
%setup -q
+%patch -P0 -p1
%build
%{__make} \
CC="%{__cc}" \
- CFLAGS="%{rpmcflags} -Wall" \
+ CFLAGS="%{rpmcflags} %{rpmcppflags} -Wall" \
LDFLAGS="%{rpmldflags}"
%install
diff --git a/cec-fno-common.patch b/cec-fno-common.patch
new file mode 100644
index 0000000..8bd80e1
--- /dev/null
+++ b/cec-fno-common.patch
@@ -0,0 +1,39 @@
+diff -urN cec-14/cec.c cec-14.new/cec.c
+--- cec-14/cec.c 2013-07-17 20:21:58.000000000 +0200
++++ cec-14.new/cec.c 2026-05-20 18:24:19.497662035 +0200
+@@ -13,6 +13,9 @@
+ #include <ctype.h>
+ #include "cec.h"
+
++int debug;
++char *progname;
++
+ #define nelem(x) (sizeof(x)/sizeof((x)[0]))
+ #define nil ((void *)0)
+ #define vprintf(...) if (qflag) ; else fprintf(stderr, __VA_ARGS__)
+diff -urN cec-14/cec.h cec-14.new/cec.h
+--- cec-14/cec.h 2013-07-17 21:55:53.000000000 +0200
++++ cec-14.new/cec.h 2026-05-20 18:24:19.497742101 +0200
+@@ -6,8 +6,8 @@
+ typedef unsigned int uint;
+ #endif
+
+-int debug;
+-char *progname;
++extern int debug;
++extern char *progname;
+ extern char hbacecfile[];
+
+ int netopen(char *name);
+diff -urN cec-14/hba.c cec-14.new/hba.c
+--- cec-14/hba.c 2013-07-17 20:21:58.000000000 +0200
++++ cec-14.new/hba.c 2026-05-20 18:24:19.497803552 +0200
+@@ -9,7 +9,7 @@
+
+ #include "cec.h"
+
+-int fd;
++static int fd;
+ static char hba_bytes[1<<14];
+ static int hba_len;
+
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/cec.git/commitdiff/cd17fc45b84ec9b91aa7aea9e9444a71246c82d3
More information about the pld-cvs-commit
mailing list