OpenPKG CVS Repository
http://cvs.openpkg.org/
____________________________________________________________________________
Server: cvs.openpkg.org Name: Ralf S. Engelschall
Root: /v/openpkg/cvs Email: [EMAIL PROTECTED]
Module: openpkg-src Date: 08-Mar-2005 10:14:17
Branch: HEAD Handle: 2005030809141700
Added files:
openpkg-src/l2 l2.patch
Modified files:
openpkg-src/l2 l2.spec
Log:
fix building on non-IPv6 platforms (where getaddrinfo() does not exist
and hence gethostbyname() is used)
Summary:
Revision Changes Path
1.1 +12 -0 openpkg-src/l2/l2.patch
1.28 +3 -1 openpkg-src/l2/l2.spec
____________________________________________________________________________
patch -p0 <<'@@ .'
Index: openpkg-src/l2/l2.patch
============================================================================
$ cvs diff -u -r0 -r1.1 l2.patch
--- /dev/null 2005-03-08 10:11:00 +0100
+++ l2.patch 2005-03-08 10:14:17 +0100
@@ -0,0 +1,12 @@
+Index: l2_ut_sa.c
+--- l2_ut_sa.c.orig 2005-02-02 11:40:33 +0100
++++ l2_ut_sa.c 2005-03-08 10:13:30 +0100
+@@ -653,7 +653,7 @@
+ sf = AF_INET6;
+ }
+ #endif
+- else if ((he = SA_SC_CALL_1(sa, gethostbyname, cpHost)) != NULL) {
++ else if ((he = gethostbyname(cpHost)) != NULL) {
+ if (he->h_addrtype == AF_INET) {
+ sa4.sin_family = AF_INET;
+ sa4.sin_port = htons(nPort);
@@ .
patch -p0 <<'@@ .'
Index: openpkg-src/l2/l2.spec
============================================================================
$ cvs diff -u -r1.27 -r1.28 l2.spec
--- openpkg-src/l2/l2.spec 18 Feb 2005 09:39:17 -0000 1.27
+++ openpkg-src/l2/l2.spec 8 Mar 2005 09:14:17 -0000 1.28
@@ -34,10 +34,11 @@
Group: System
License: MIT-style
Version: 0.9.10
-Release: 20050218
+Release: 20050308
# list of sources
Source0: ftp://ftp.ossp.org/pkg/lib/l2/l2-%{version}.tar.gz
+Patch0: l2.patch
# build information
Prefix: %{l_prefix}
@@ -78,6 +79,7 @@
%prep
%setup -q
+ %patch -p0
%{l_shtool} subst \
-e '/LINENO: error: C[+]* preprocessor/{N;N;N;N;s/.*/:/;}' \
configure
@@ .
______________________________________________________________________
The OpenPKG Project www.openpkg.org
CVS Repository Commit List [email protected]