Skip to contentSkip to conversation

netkit-base: fix building with gcc4

PATCH In review pieterg 2 participants 2 messages Oct 29, 2009 – Feb 15, 2010

lore
Share & tools
lore

pieterg

author
#0 lore raw

PATCH 1/1 netkit-base: fix building with gcc4

---

I guess nobody has been using netkit-base for a while, it needs the following patch to allow it to be built with gcc 4.x.x.

 recipes/netkit-base/netkit-base-0.17/gcc4.patch |   12 ++++++++++++
 recipes/netkit-base/netkit-base_0.17.bb         |    3 ++-
 2 files changed, 14 insertions(+), 1 deletions(-)
 create mode 100644 recipes/netkit-base/netkit-base-0.17/gcc4.patch
(quoted diff) +0 -0

b/recipes/netkit-base/netkit-base-0.17/gcc4.patch
new file mode 100644
index 0000000..0a332a8

recipes/netkit-base/netkit-base-0.17/gcc4.patch new file +1 -0
@@ -0,0 +1,12 @@
+diff -dur netkit-base-0.17-p/inetd/servtab.c 

netkit-base-0.17/inetd/servtab.c
+--- netkit-base-0.17-p/inetd/servtab.c 2000-07-22 22:20:50.000000000 +0200
++++ netkit-base-0.17/inetd/servtab.c 2005-10-19 04:04:33.000000000 +0200
+@@ -771,7 +771,7 @@
+ return;
+ }
+
+-#define SWAP(type, a, b) {type c=(type)a; (type)a=(type)b; (type)b=(type)c;}
++#define SWAP(type, a, b) {type c=(type)a; a=(type)b; b=(type)c;} +
+ /*
+ * sep->se_wait may be holding the pid of a daemon

(quoted diff) +0 -0

b/recipes/netkit-base/netkit-base_0.17.bb
index 88016ea..c910b29 100644

recipes/netkit-base/netkit-base_0.17.bb +1 -1
@@ -1,11 +1,12 @@
 SECTION = "base"
 DESCRIPTION = "netkit-base includes the inetd daemon."
 LICENSE = "BSD"
-PR = "r1"
+PR = "r2"
 
 SRC_URI 

= "ftp://ftp.uk.linux.org/pub/linux/Networking/netkit/netkit-base-${PV}.tar.gz

\
            file://configure.patch;patch=1 \
            file://mconfig.patch;patch=1 \
+           file://gcc4.patch;patch=1 \
            file://init \
            file://inetd.conf"
Signature · 1 line
1.6.5.rc1.44.ga1675
#1 lore raw

Hello.

Sorry for the late reply. I was going to test and apply your patch, but it is line wrapped and I failed fixing it up by hand.

Quoted 18 lines · pieterg

---

I guess nobody has been using netkit-base for a while, it needs the following patch to allow it to be built with gcc 4.x.x.

 recipes/netkit-base/netkit-base-0.17/gcc4.patch |   12 ++++++++++++
 recipes/netkit-base/netkit-base_0.17.bb         |    3 ++-
 2 files changed, 14 insertions(+), 1 deletions(-)
 create mode 100644 recipes/netkit-base/netkit-base-0.17/gcc4.patch
recipes/netkit-base/netkit-base-0.17/gcc4.patch new file +1 -0
new file mode 100644
index 0000000..0a332a8
@@ -0,0 +1,12 @@
+diff -dur netkit-base-0.17-p/inetd/servtab.c 
Quoted 1 line

netkit-base-0.17/inetd/servtab.c

Here

Quoted 8 lines

+--- netkit-base-0.17-p/inetd/servtab.c 2000-07-22 22:20:50.000000000 +0200
++++ netkit-base-0.17/inetd/servtab.c 2005-10-19 04:04:33.000000000 +0200
+@@ -771,7 +771,7 @@

recipes/netkit-base/netkit-base-0.17/gcc4.patch new file +4 -0
+ 			return;
+ 		}
+ 		
+-#define SWAP(type, a, b) {type c=(type)a; (type)a=(type)b; 

(type)b=(type)c;}

Here, and more to come.

regards
Stefan Schmidt