mirror of
https://github.com/openembedded/meta-openembedded.git
synced 2026-05-30 00:50:00 +00:00
rp-pppoe:3.8->3.11
-deleted use-ldflags.patch that not needed. -modified patches for 3.11 Signed-off-by: Lei Maohui <leimaohui@cn.fujitsu.com> Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com> Signed-off-by: Joe MacDonald <joe_macdonald@mentor.com>
This commit is contained in:
+10
-8
@@ -1,6 +1,6 @@
|
|||||||
From a546942a784a177080d9722dda873bfd7416ad41 Mon Sep 17 00:00:00 2001
|
From 71956de46feef962dc0645af4c81ae074ca3b818 Mon Sep 17 00:00:00 2001
|
||||||
From: Li xin <lixin.fnst@cn.fujitsu.com>
|
From: Lei Maohui <leimaohui@cn.fujitsu.com>
|
||||||
Date: Fri, 10 Apr 2015 13:13:06 +0900
|
Date: Wed, 19 Aug 2015 13:52:57 +0900
|
||||||
Subject: [PATCH] configure.in: Error fix.
|
Subject: [PATCH] configure.in: Error fix.
|
||||||
|
|
||||||
the error is: conftest.c:9:28: fatal error: ac_nonexistent.h:
|
the error is: conftest.c:9:28: fatal error: ac_nonexistent.h:
|
||||||
@@ -10,19 +10,20 @@ Upstream-Status: pending
|
|||||||
|
|
||||||
Signed-off-by: Li Xin <lixin.fnst@cn.fujitsu.com>
|
Signed-off-by: Li Xin <lixin.fnst@cn.fujitsu.com>
|
||||||
---
|
---
|
||||||
src/configure.in | 28 ----------------------------
|
src/configure.in | 30 ------------------------------
|
||||||
1 file changed, 28 deletions(-)
|
1 file changed, 30 deletions(-)
|
||||||
|
|
||||||
diff --git a/src/configure.in b/src/configure.in
|
diff --git a/src/configure.in b/src/configure.in
|
||||||
index c4f1a8c..74956cc 100644
|
index 0b23df5..31c7fbc 100644
|
||||||
--- a/src/configure.in
|
--- a/src/configure.in
|
||||||
+++ b/src/configure.in
|
+++ b/src/configure.in
|
||||||
@@ -183,34 +183,6 @@ if test "$GCC" = yes; then
|
@@ -193,36 +193,6 @@ if test "$GCC" = yes; then
|
||||||
CFLAGS="$CFLAGS -Wall -Wstrict-prototypes -ansi"
|
CFLAGS="$CFLAGS -fno-strict-aliasing -Wall -Wstrict-prototypes"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
-dnl Figure out packing order of structures
|
-dnl Figure out packing order of structures
|
||||||
-AC_CACHE_CHECK([packing order of bit fields],rpppoe_cv_pack_bitfields,[
|
-AC_CACHE_CHECK([packing order of bit fields],rpppoe_cv_pack_bitfields,[
|
||||||
|
-if test "${rpppoe_cv_pack_bitfields+set}" != set ; then
|
||||||
-AC_TRY_RUN([
|
-AC_TRY_RUN([
|
||||||
-union foo {
|
-union foo {
|
||||||
- struct bar {
|
- struct bar {
|
||||||
@@ -47,6 +48,7 @@ index c4f1a8c..74956cc 100644
|
|||||||
- }
|
- }
|
||||||
-}], rpppoe_cv_pack_bitfields=normal, rpppoe_cv_pack_bitfields=rev,
|
-}], rpppoe_cv_pack_bitfields=normal, rpppoe_cv_pack_bitfields=rev,
|
||||||
-$ECHO "no defaults for cross-compiling"; exit 1)
|
-$ECHO "no defaults for cross-compiling"; exit 1)
|
||||||
|
-fi
|
||||||
-])
|
-])
|
||||||
-
|
-
|
||||||
if test "$rpppoe_cv_pack_bitfields" = "rev" ; then
|
if test "$rpppoe_cv_pack_bitfields" = "rev" ; then
|
||||||
+30
-16
@@ -1,14 +1,23 @@
|
|||||||
|
From cab02076afb808a43c6ff3d7b1c64e71f5a1b397 Mon Sep 17 00:00:00 2001
|
||||||
|
From: Lei Maohui <leimaohui@cn.fujitsu.com>
|
||||||
|
Date: Wed, 19 Aug 2015 12:17:03 +0900
|
||||||
|
Subject: [PATCH] configure in cross
|
||||||
|
|
||||||
Update the configure script to cross-compiling with OE. This hard-codes
|
Update the configure script to cross-compiling with OE. This hard-codes
|
||||||
a few target paths, reworks a few tests to be more friendly for cross
|
a few target paths, reworks a few tests to be more friendly for cross
|
||||||
and drops other tests.
|
and drops other tests.
|
||||||
|
|
||||||
Upstream-Status: Inappropriate [build system specific changes]
|
Upstream-Status: Inappropriate [build system specific changes]
|
||||||
|
|
||||||
Index: src/configure.in
|
---
|
||||||
===================================================================
|
src/configure.in | 66 ++++++++++++++------------------------------------------
|
||||||
--- rp-pppoe-3.8.orig/src/configure.in 2006-04-03 00:29:42.000000000 +1000
|
1 file changed, 16 insertions(+), 50 deletions(-)
|
||||||
+++ rp-pppoe-3.8/src/configure.in 2007-06-07 22:19:36.000000000 +1000
|
|
||||||
@@ -5,6 +5,13 @@
|
diff --git a/src/configure.in b/src/configure.in
|
||||||
|
index e194295..82d64d6 100644
|
||||||
|
--- a/src/configure.in
|
||||||
|
+++ b/src/configure.in
|
||||||
|
@@ -5,6 +5,13 @@ AC_INIT(pppoe.c)
|
||||||
dnl pppd directory for kernel-mode PPPoE
|
dnl pppd directory for kernel-mode PPPoE
|
||||||
PPPD_DIR=ppp-2.4.1.pppoe2
|
PPPD_DIR=ppp-2.4.1.pppoe2
|
||||||
|
|
||||||
@@ -22,7 +31,7 @@ Index: src/configure.in
|
|||||||
AC_CONFIG_HEADER(config.h)
|
AC_CONFIG_HEADER(config.h)
|
||||||
|
|
||||||
AC_PREFIX_DEFAULT(/usr)
|
AC_PREFIX_DEFAULT(/usr)
|
||||||
@@ -44,7 +51,7 @@
|
@@ -45,7 +52,7 @@ ac_cv_struct_sockaddr_ll=no)
|
||||||
AC_MSG_RESULT($ac_cv_struct_sockaddr_ll)
|
AC_MSG_RESULT($ac_cv_struct_sockaddr_ll)
|
||||||
|
|
||||||
if test "$ac_cv_struct_sockaddr_ll" = yes ; then
|
if test "$ac_cv_struct_sockaddr_ll" = yes ; then
|
||||||
@@ -31,7 +40,7 @@ Index: src/configure.in
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
dnl Check for N_HDLC line discipline
|
dnl Check for N_HDLC line discipline
|
||||||
@@ -55,7 +62,7 @@
|
@@ -56,7 +63,7 @@ AC_TRY_COMPILE([#include <linux/termios.h>],
|
||||||
ac_cv_n_hdlc=no)
|
ac_cv_n_hdlc=no)
|
||||||
AC_MSG_RESULT($ac_cv_n_hdlc)
|
AC_MSG_RESULT($ac_cv_n_hdlc)
|
||||||
if test "$ac_cv_n_hdlc" = yes ; then
|
if test "$ac_cv_n_hdlc" = yes ; then
|
||||||
@@ -40,7 +49,7 @@ Index: src/configure.in
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
AC_ARG_ENABLE(plugin, [ --enable-plugin=pppd_src_path build pppd plugin], ac_cv_pluginpath=$enableval, ac_cv_pluginpath=no)
|
AC_ARG_ENABLE(plugin, [ --enable-plugin=pppd_src_path build pppd plugin], ac_cv_pluginpath=$enableval, ac_cv_pluginpath=no)
|
||||||
@@ -100,13 +107,13 @@
|
@@ -104,7 +111,7 @@ PPPD_INCDIR=""
|
||||||
if test "$ac_cv_header_linux_if_pppox_h" = yes ; then
|
if test "$ac_cv_header_linux_if_pppox_h" = yes ; then
|
||||||
if test "$ac_cv_pluginpath" != no ; then
|
if test "$ac_cv_pluginpath" != no ; then
|
||||||
LINUX_KERNELMODE_PLUGIN=rp-pppoe.so
|
LINUX_KERNELMODE_PLUGIN=rp-pppoe.so
|
||||||
@@ -49,6 +58,8 @@ Index: src/configure.in
|
|||||||
PPPD_INCDIR=$ac_cv_pluginpath
|
PPPD_INCDIR=$ac_cv_pluginpath
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
@@ -114,7 +121,7 @@ if test "$PPPD_INCDIR" = "" ; then
|
||||||
|
fi
|
||||||
|
|
||||||
if test "$ac_cv_debugging" = "yes" ; then
|
if test "$ac_cv_debugging" = "yes" ; then
|
||||||
- AC_DEFINE(DEBUGGING_ENABLED)
|
- AC_DEFINE(DEBUGGING_ENABLED)
|
||||||
@@ -56,7 +67,7 @@ Index: src/configure.in
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
AC_SUBST(LINUX_KERNELMODE_PLUGIN)
|
AC_SUBST(LINUX_KERNELMODE_PLUGIN)
|
||||||
@@ -131,15 +138,8 @@
|
@@ -140,15 +147,8 @@ AC_CHECK_SIZEOF(unsigned short)
|
||||||
AC_CHECK_SIZEOF(unsigned int)
|
AC_CHECK_SIZEOF(unsigned int)
|
||||||
AC_CHECK_SIZEOF(unsigned long)
|
AC_CHECK_SIZEOF(unsigned long)
|
||||||
|
|
||||||
@@ -73,8 +84,8 @@ Index: src/configure.in
|
|||||||
|
|
||||||
dnl Check for Linux-specific kernel support for PPPoE
|
dnl Check for Linux-specific kernel support for PPPoE
|
||||||
AC_MSG_CHECKING(for Linux 2.4.X kernel-mode PPPoE support)
|
AC_MSG_CHECKING(for Linux 2.4.X kernel-mode PPPoE support)
|
||||||
@@ -183,44 +183,8 @@
|
@@ -193,44 +193,8 @@ if test "$GCC" = yes; then
|
||||||
CFLAGS="$CFLAGS -Wall -Wstrict-prototypes -ansi"
|
CFLAGS="$CFLAGS -fno-strict-aliasing -Wall -Wstrict-prototypes"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
-dnl If we couldn't find pppd, die
|
-dnl If we couldn't find pppd, die
|
||||||
@@ -116,13 +127,13 @@ Index: src/configure.in
|
|||||||
dnl Figure out packing order of structures
|
dnl Figure out packing order of structures
|
||||||
-AC_MSG_CHECKING([packing order of bit fields])
|
-AC_MSG_CHECKING([packing order of bit fields])
|
||||||
+AC_CACHE_CHECK([packing order of bit fields],rpppoe_cv_pack_bitfields,[
|
+AC_CACHE_CHECK([packing order of bit fields],rpppoe_cv_pack_bitfields,[
|
||||||
|
if test "${rpppoe_cv_pack_bitfields+set}" != set ; then
|
||||||
AC_TRY_RUN([
|
AC_TRY_RUN([
|
||||||
union foo {
|
union foo {
|
||||||
struct bar {
|
@@ -257,10 +221,11 @@ main(void)
|
||||||
@@ -245,10 +209,11 @@
|
|
||||||
}
|
|
||||||
}], rpppoe_cv_pack_bitfields=normal, rpppoe_cv_pack_bitfields=rev,
|
}], rpppoe_cv_pack_bitfields=normal, rpppoe_cv_pack_bitfields=rev,
|
||||||
$ECHO "no defaults for cross-compiling"; exit 0)
|
$ECHO "no defaults for cross-compiling"; exit 0)
|
||||||
|
fi
|
||||||
+])
|
+])
|
||||||
|
|
||||||
if test "$rpppoe_cv_pack_bitfields" = "rev" ; then
|
if test "$rpppoe_cv_pack_bitfields" = "rev" ; then
|
||||||
@@ -132,11 +143,14 @@ Index: src/configure.in
|
|||||||
else
|
else
|
||||||
AC_MSG_RESULT(normal)
|
AC_MSG_RESULT(normal)
|
||||||
fi
|
fi
|
||||||
@@ -312,6 +277,7 @@
|
@@ -324,6 +289,7 @@ AC_SUBST(PPPOE_SERVER_DEPS)
|
||||||
AC_SUBST(RDYNAMIC)
|
AC_SUBST(RDYNAMIC)
|
||||||
AC_SUBST(LIBEVENT)
|
AC_SUBST(LIBEVENT)
|
||||||
AC_SUBST(ECHO)
|
AC_SUBST(ECHO)
|
||||||
+AC_SUBST(HAVE_STRUCT_SOCKADDR_LL)
|
+AC_SUBST(HAVE_STRUCT_SOCKADDR_LL)
|
||||||
|
AC_SUBST(LDFLAGS)
|
||||||
|
|
||||||
datadir_evaluated=`eval echo $datadir`
|
datadir_evaluated=`eval echo $datadir`
|
||||||
AC_SUBST(datadir_evaluated)
|
--
|
||||||
|
1.8.4.2
|
||||||
|
|
||||||
@@ -0,0 +1,28 @@
|
|||||||
|
From bbdadb803b19f002e76e7bb5ce3faf770dd7c413 Mon Sep 17 00:00:00 2001
|
||||||
|
From: Lei Maohui <leimaohui@cn.fujitsu.com>
|
||||||
|
Date: Wed, 19 Aug 2015 12:33:41 +0900
|
||||||
|
Subject: [PATCH] don't swallow errors
|
||||||
|
|
||||||
|
Further fixup to the configure scripts to not swallow errors
|
||||||
|
|
||||||
|
Upstream-Status: Pending
|
||||||
|
---
|
||||||
|
src/configure.in | 2 +-
|
||||||
|
1 file changed, 1 insertion(+), 1 deletion(-)
|
||||||
|
|
||||||
|
diff --git a/src/configure.in b/src/configure.in
|
||||||
|
index 82d64d6..0b23df5 100644
|
||||||
|
--- a/src/configure.in
|
||||||
|
+++ b/src/configure.in
|
||||||
|
@@ -219,7 +219,7 @@ main(void)
|
||||||
|
return 2;
|
||||||
|
}
|
||||||
|
}], rpppoe_cv_pack_bitfields=normal, rpppoe_cv_pack_bitfields=rev,
|
||||||
|
-$ECHO "no defaults for cross-compiling"; exit 0)
|
||||||
|
+$ECHO "no defaults for cross-compiling"; exit 1)
|
||||||
|
fi
|
||||||
|
])
|
||||||
|
|
||||||
|
--
|
||||||
|
1.8.4.2
|
||||||
|
|
||||||
@@ -1,15 +0,0 @@
|
|||||||
Further fixup to the configure scripts to not swallow errors
|
|
||||||
|
|
||||||
Upstream-Status: Pending
|
|
||||||
|
|
||||||
--- a/src/configure.in.org 2008-01-14 21:08:38.000000000 +0200
|
|
||||||
+++ a/src/configure.in 2008-01-14 21:20:09.000000000 +0200
|
|
||||||
@@ -208,7 +208,7 @@
|
|
||||||
return 2;
|
|
||||||
}
|
|
||||||
}], rpppoe_cv_pack_bitfields=normal, rpppoe_cv_pack_bitfields=rev,
|
|
||||||
-$ECHO "no defaults for cross-compiling"; exit 0)
|
|
||||||
+$ECHO "no defaults for cross-compiling"; exit 1)
|
|
||||||
])
|
|
||||||
|
|
||||||
if test "$rpppoe_cv_pack_bitfields" = "rev" ; then
|
|
||||||
@@ -1,27 +0,0 @@
|
|||||||
Make the Makefile obey LDFLAGS.
|
|
||||||
|
|
||||||
Upstream-Status: Pending
|
|
||||||
|
|
||||||
--- a/src/Makefile.in 2006-04-02 18:29:42.000000000 +0400
|
|
||||||
+++ b/src/Makefile.in 2010-04-16 17:51:31.000000000 +0400
|
|
||||||
@@ -67,16 +67,16 @@ all: $(TARGETS)
|
|
||||||
@echo "Type 'make install' as root to install the software."
|
|
||||||
|
|
||||||
pppoe-sniff: pppoe-sniff.o if.o common.o debug.o
|
|
||||||
- @CC@ -o pppoe-sniff pppoe-sniff.o if.o common.o debug.o
|
|
||||||
+ @CC@ -o pppoe-sniff pppoe-sniff.o if.o common.o debug.o $(LDFLAGS)
|
|
||||||
|
|
||||||
pppoe-server: pppoe-server.o if.o debug.o common.o md5.o libevent/libevent.a @PPPOE_SERVER_DEPS@
|
|
||||||
- @CC@ -o pppoe-server @RDYNAMIC@ pppoe-server.o if.o debug.o common.o md5.o $(PPPOE_SERVER_LIBS) -Llibevent -levent
|
|
||||||
+ @CC@ -o pppoe-server @RDYNAMIC@ pppoe-server.o if.o debug.o common.o md5.o $(PPPOE_SERVER_LIBS) -Llibevent -levent $(LDFLAGS)
|
|
||||||
|
|
||||||
pppoe: pppoe.o if.o debug.o common.o ppp.o discovery.o
|
|
||||||
- @CC@ -o pppoe pppoe.o if.o debug.o common.o ppp.o discovery.o
|
|
||||||
+ @CC@ -o pppoe pppoe.o if.o debug.o common.o ppp.o discovery.o $(LDFLAGS)
|
|
||||||
|
|
||||||
pppoe-relay: relay.o if.o debug.o common.o
|
|
||||||
- @CC@ -o pppoe-relay relay.o if.o debug.o common.o
|
|
||||||
+ @CC@ -o pppoe-relay relay.o if.o debug.o common.o $(LDFLAGS)
|
|
||||||
|
|
||||||
pppoe.o: pppoe.c pppoe.h
|
|
||||||
@CC@ $(CFLAGS) '-DVERSION="$(VERSION)"' -c -o pppoe.o pppoe.c
|
|
||||||
+3
-4
@@ -13,15 +13,14 @@ SRC_URI = "http://www.roaringpenguin.com/files/download/${BP}.tar.gz \
|
|||||||
file://update-config.patch \
|
file://update-config.patch \
|
||||||
file://dont-swallow-errors.patch \
|
file://dont-swallow-errors.patch \
|
||||||
file://discard-use-of-dnl-in-Makefile.am.patch \
|
file://discard-use-of-dnl-in-Makefile.am.patch \
|
||||||
file://use-ldflags.patch \
|
|
||||||
file://configure.patch \
|
file://configure.patch \
|
||||||
file://pppoe-server.default \
|
file://pppoe-server.default \
|
||||||
file://pppoe-server.init \
|
file://pppoe-server.init \
|
||||||
file://configure.in-Error-fix.patch \
|
file://configure.in-Error-fix.patch \
|
||||||
file://pppoe-server.service"
|
file://pppoe-server.service"
|
||||||
|
|
||||||
SRC_URI[md5sum] = "0e32760f498f9cde44081ee6aafc823b"
|
SRC_URI[md5sum] = "13b5900c56bd602df6cc526e5e520722"
|
||||||
SRC_URI[sha256sum] = "d916e9cfe1e62395f63a5361936fa855f6d0f0a37dc7227b394cdb725f553479"
|
SRC_URI[sha256sum] = "86a1a4d92fcea74fa6dd45516c5975933fa978b36fafe71f76ea70b4b4747720"
|
||||||
|
|
||||||
inherit autotools-brokensep update-rc.d systemd
|
inherit autotools-brokensep update-rc.d systemd
|
||||||
|
|
||||||
@@ -38,7 +37,7 @@ do_install() {
|
|||||||
install -m 0644 ${WORKDIR}/pppoe-server.default ${D}${sysconfdir}/default/pppoe-server
|
install -m 0644 ${WORKDIR}/pppoe-server.default ${D}${sysconfdir}/default/pppoe-server
|
||||||
install -m 0755 ${WORKDIR}/pppoe-server.init ${D}${sysconfdir}/init.d/pppoe-server
|
install -m 0755 ${WORKDIR}/pppoe-server.init ${D}${sysconfdir}/init.d/pppoe-server
|
||||||
# Install
|
# Install
|
||||||
oe_runmake -C ${S} RPM_INSTALL_ROOT=${D} docdir=${docdir} install
|
oe_runmake -C ${S} DESTDIR=${D} docdir=${docdir} install
|
||||||
chmod 4755 ${D}${sbindir}/pppoe
|
chmod 4755 ${D}${sbindir}/pppoe
|
||||||
}
|
}
|
||||||
|
|
||||||
Reference in New Issue
Block a user