Skip to contentSkip to conversation

rp-pppoe:3.8->3.11

PATCH New Lei Maohui 1 participant 1 message Aug 19, 2015

lore
Share & tools
lore

Lei Maohui

author
#0 lore raw

PATCH 1/1 rp-pppoe:3.8->3.11

-deleted use-ldflags.patch that not needed.
-modified patches for 3.11

---
 .../configure.in-Error-fix.patch                   | 18 +++++----
 .../configure.patch                                |  0
 .../configure_in_cross.patch                       | 46 ++++++++++++++--------
 .../discard-use-of-dnl-in-Makefile.am.patch        |  0
 .../rp-pppoe-3.11/dont-swallow-errors.patch        | 28 +++++++++++++
 .../pppoe-server.default                           |  0
 .../pppoe-server.init                              |  0
 .../pppoe-server.service                           |  0
 .../pppoe-src-restrictions.patch                   |  0
 .../top-autoconf.patch                             |  0
 .../update-config.patch                            |  0
 .../rp-pppoe-3.8/dont-swallow-errors.patch         | 15 -------
 .../rp-pppoe/rp-pppoe-3.8/use-ldflags.patch        | 27 -------------
 .../rp-pppoe/{rp-pppoe_3.8.bb => rp-pppoe_3.11.bb} |  7 ++--
 14 files changed, 71 insertions(+), 70 deletions(-)
 rename meta-networking/recipes-protocols/rp-pppoe/{rp-pppoe-3.8 => rp-pppoe-3.11}/configure.in-Error-fix.patch (70%)
 rename meta-networking/recipes-protocols/rp-pppoe/{rp-pppoe-3.8 => rp-pppoe-3.11}/configure.patch (100%)
 rename meta-networking/recipes-protocols/rp-pppoe/{rp-pppoe-3.8 => rp-pppoe-3.11}/configure_in_cross.patch (79%)
 rename meta-networking/recipes-protocols/rp-pppoe/{rp-pppoe-3.8 => rp-pppoe-3.11}/discard-use-of-dnl-in-Makefile.am.patch (100%)
 create mode 100644 meta-networking/recipes-protocols/rp-pppoe/rp-pppoe-3.11/dont-swallow-errors.patch
 rename meta-networking/recipes-protocols/rp-pppoe/{rp-pppoe-3.8 => rp-pppoe-3.11}/pppoe-server.default (100%)
 rename meta-networking/recipes-protocols/rp-pppoe/{rp-pppoe-3.8 => rp-pppoe-3.11}/pppoe-server.init (100%)
 rename meta-networking/recipes-protocols/rp-pppoe/{rp-pppoe-3.8 => rp-pppoe-3.11}/pppoe-server.service (100%)
 rename meta-networking/recipes-protocols/rp-pppoe/{rp-pppoe-3.8 => rp-pppoe-3.11}/pppoe-src-restrictions.patch (100%)
 rename meta-networking/recipes-protocols/rp-pppoe/{rp-pppoe-3.8 => rp-pppoe-3.11}/top-autoconf.patch (100%)
 rename meta-networking/recipes-protocols/rp-pppoe/{rp-pppoe-3.8 => rp-pppoe-3.11}/update-config.patch (100%)
 delete mode 100644 meta-networking/recipes-protocols/rp-pppoe/rp-pppoe-3.8/dont-swallow-errors.patch
 delete mode 100644 meta-networking/recipes-protocols/rp-pppoe/rp-pppoe-3.8/use-ldflags.patch
 rename meta-networking/recipes-protocols/rp-pppoe/{rp-pppoe_3.8.bb => rp-pppoe_3.11.bb} (91%)
meta-networking/recipes-protocols/rp-pppoe/rp-pppoe-3.11/configure.in-Error-fix.patch renamed from meta-networking/recipes-protocols/rp-pppoe/rp-pppoe-3.8/configure.in-Error-fix.patch +10 -8
similarity index 70%
rename from meta-networking/recipes-protocols/rp-pppoe/rp-pppoe-3.8/configure.in-Error-fix.patch
rename to meta-networking/recipes-protocols/rp-pppoe/rp-pppoe-3.11/configure.in-Error-fix.patch
index 1e815f3..2661fd3 100644
@@ -1,6 +1,6 @@
-From a546942a784a177080d9722dda873bfd7416ad41 Mon Sep 17 00:00:00 2001
-From: Li xin <[email protected]>
-Date: Fri, 10 Apr 2015 13:13:06 +0900
+From 71956de46feef962dc0645af4c81ae074ca3b818 Mon Sep 17 00:00:00 2001
+From: Lei Maohui <[email protected]>
+Date: Wed, 19 Aug 2015 13:52:57 +0900
 Subject: [PATCH] configure.in: Error fix.
 
 the error is: conftest.c:9:28: fatal error: ac_nonexistent.h:
@@ -10,19 +10,20 @@ Upstream-Status: pending
 
 Signed-off-by: Li Xin <[email protected]>
 ---
- src/configure.in | 28 ----------------------------
- 1 file changed, 28 deletions(-)
+ src/configure.in | 30 ------------------------------
+ 1 file changed, 30 deletions(-)
 
 diff --git a/src/configure.in b/src/configure.in
-index c4f1a8c..74956cc 100644
+index 0b23df5..31c7fbc 100644
 --- a/src/configure.in
 +++ b/src/configure.in
-@@ -183,34 +183,6 @@ if test "$GCC" = yes; then
- 	CFLAGS="$CFLAGS -Wall -Wstrict-prototypes -ansi"
+@@ -193,36 +193,6 @@ if test "$GCC" = yes; then
+ 	CFLAGS="$CFLAGS -fno-strict-aliasing -Wall -Wstrict-prototypes"
  fi
  
 -dnl Figure out packing order of structures
 -AC_CACHE_CHECK([packing order of bit fields],rpppoe_cv_pack_bitfields,[
+-if test "${rpppoe_cv_pack_bitfields+set}" != set ; then
 -AC_TRY_RUN([
 -union foo {
 -    struct bar {
@@ -47,6 +48,7 @@ index c4f1a8c..74956cc 100644
 -    }
 -}], rpppoe_cv_pack_bitfields=normal, rpppoe_cv_pack_bitfields=rev,
 -$ECHO "no defaults for cross-compiling"; exit 1)
+-fi
 -])
 -
  if test "$rpppoe_cv_pack_bitfields" = "rev" ; then
meta-networking/recipes-protocols/rp-pppoe/rp-pppoe-3.11/configure.patch renamed from meta-networking/recipes-protocols/rp-pppoe/rp-pppoe-3.8/configure.patch +0 -0
similarity index 100%
rename from meta-networking/recipes-protocols/rp-pppoe/rp-pppoe-3.8/configure.patch
rename to meta-networking/recipes-protocols/rp-pppoe/rp-pppoe-3.11/configure.patch
meta-networking/recipes-protocols/rp-pppoe/rp-pppoe-3.11/configure_in_cross.patch renamed from meta-networking/recipes-protocols/rp-pppoe/rp-pppoe-3.8/configure_in_cross.patch +30 -16

110 lines not on this page · raw message

meta-networking/recipes-protocols/rp-pppoe/rp-pppoe-3.11/discard-use-of-dnl-in-Makefile.am.patch renamed from meta-networking/recipes-protocols/rp-pppoe/rp-pppoe-3.8/discard-use-of-dnl-in-Makefile.am.patch +0 -0
similarity index 100%
rename from meta-networking/recipes-protocols/rp-pppoe/rp-pppoe-3.8/discard-use-of-dnl-in-Makefile.am.patch
rename to meta-networking/recipes-protocols/rp-pppoe/rp-pppoe-3.11/discard-use-of-dnl-in-Makefile.am.patch
meta-networking/recipes-protocols/rp-pppoe/rp-pppoe-3.11/dont-swallow-errors.patch new file +28 -0
new file mode 100644
index 0000000..f61337f
@@ -0,0 +1,28 @@
+From bbdadb803b19f002e76e7bb5ce3faf770dd7c413 Mon Sep 17 00:00:00 2001
+From: Lei Maohui <[email protected]>
+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
+
meta-networking/recipes-protocols/rp-pppoe/rp-pppoe-3.11/pppoe-server.default renamed from meta-networking/recipes-protocols/rp-pppoe/rp-pppoe-3.8/pppoe-server.default +0 -0
similarity index 100%
rename from meta-networking/recipes-protocols/rp-pppoe/rp-pppoe-3.8/pppoe-server.default
rename to meta-networking/recipes-protocols/rp-pppoe/rp-pppoe-3.11/pppoe-server.default
meta-networking/recipes-protocols/rp-pppoe/rp-pppoe-3.11/pppoe-server.init renamed from meta-networking/recipes-protocols/rp-pppoe/rp-pppoe-3.8/pppoe-server.init +0 -0
similarity index 100%
rename from meta-networking/recipes-protocols/rp-pppoe/rp-pppoe-3.8/pppoe-server.init
rename to meta-networking/recipes-protocols/rp-pppoe/rp-pppoe-3.11/pppoe-server.init
meta-networking/recipes-protocols/rp-pppoe/rp-pppoe-3.11/pppoe-server.service renamed from meta-networking/recipes-protocols/rp-pppoe/rp-pppoe-3.8/pppoe-server.service +0 -0
similarity index 100%
rename from meta-networking/recipes-protocols/rp-pppoe/rp-pppoe-3.8/pppoe-server.service
rename to meta-networking/recipes-protocols/rp-pppoe/rp-pppoe-3.11/pppoe-server.service
meta-networking/recipes-protocols/rp-pppoe/rp-pppoe-3.11/pppoe-src-restrictions.patch renamed from meta-networking/recipes-protocols/rp-pppoe/rp-pppoe-3.8/pppoe-src-restrictions.patch +0 -0
similarity index 100%
rename from meta-networking/recipes-protocols/rp-pppoe/rp-pppoe-3.8/pppoe-src-restrictions.patch
rename to meta-networking/recipes-protocols/rp-pppoe/rp-pppoe-3.11/pppoe-src-restrictions.patch
meta-networking/recipes-protocols/rp-pppoe/rp-pppoe-3.11/top-autoconf.patch renamed from meta-networking/recipes-protocols/rp-pppoe/rp-pppoe-3.8/top-autoconf.patch +0 -0
similarity index 100%
rename from meta-networking/recipes-protocols/rp-pppoe/rp-pppoe-3.8/top-autoconf.patch
rename to meta-networking/recipes-protocols/rp-pppoe/rp-pppoe-3.11/top-autoconf.patch
meta-networking/recipes-protocols/rp-pppoe/rp-pppoe-3.11/update-config.patch renamed from meta-networking/recipes-protocols/rp-pppoe/rp-pppoe-3.8/update-config.patch +0 -0
similarity index 100%
rename from meta-networking/recipes-protocols/rp-pppoe/rp-pppoe-3.8/update-config.patch
rename to meta-networking/recipes-protocols/rp-pppoe/rp-pppoe-3.11/update-config.patch
meta-networking/recipes-protocols/rp-pppoe/rp-pppoe-3.8/dont-swallow-errors.patch deleted +0 -15
deleted file mode 100644
index c7fc9cf..0000000
@@ -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
meta-networking/recipes-protocols/rp-pppoe/rp-pppoe-3.8/use-ldflags.patch deleted +0 -27
deleted file mode 100644
index 95f6292..0000000
@@ -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
meta-networking/recipes-protocols/rp-pppoe/rp-pppoe_3.11.bb renamed from meta-networking/recipes-protocols/rp-pppoe/rp-pppoe_3.8.bb +3 -4
similarity index 91%
rename from meta-networking/recipes-protocols/rp-pppoe/rp-pppoe_3.8.bb
rename to meta-networking/recipes-protocols/rp-pppoe/rp-pppoe_3.11.bb
index 4418db8..4415c4b 100644
@@ -13,15 +13,14 @@ SRC_URI = "http://www.roaringpenguin.com/files/download/${BP}.tar.gz \
            file://update-config.patch \
            file://dont-swallow-errors.patch \
            file://discard-use-of-dnl-in-Makefile.am.patch \
-           file://use-ldflags.patch \
            file://configure.patch \
            file://pppoe-server.default \
            file://pppoe-server.init \
            file://configure.in-Error-fix.patch \
            file://pppoe-server.service"
 
-SRC_URI[md5sum] = "0e32760f498f9cde44081ee6aafc823b"
-SRC_URI[sha256sum] = "d916e9cfe1e62395f63a5361936fa855f6d0f0a37dc7227b394cdb725f553479"
+SRC_URI[md5sum] = "13b5900c56bd602df6cc526e5e520722"
+SRC_URI[sha256sum] = "86a1a4d92fcea74fa6dd45516c5975933fa978b36fafe71f76ea70b4b4747720"
 
 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 0755 ${WORKDIR}/pppoe-server.init ${D}${sysconfdir}/init.d/pppoe-server
     # 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
 }
 
Signature · 1 line
1.8.4.2