diff options
-rw-r--r-- | meta-networking/recipes-protocols/rp-pppoe/rp-pppoe/configure.in-Error-fix.patch | 57 | ||||
-rw-r--r-- | meta-networking/recipes-protocols/rp-pppoe/rp-pppoe/configure_in_cross.patch | 48 | ||||
-rw-r--r-- | meta-networking/recipes-protocols/rp-pppoe/rp-pppoe/dont-swallow-errors.patch | 26 | ||||
-rw-r--r-- | meta-networking/recipes-protocols/rp-pppoe/rp-pppoe_3.15.bb (renamed from meta-networking/recipes-protocols/rp-pppoe/rp-pppoe_3.13.bb) | 7 |
4 files changed, 16 insertions, 122 deletions
diff --git a/meta-networking/recipes-protocols/rp-pppoe/rp-pppoe/configure.in-Error-fix.patch b/meta-networking/recipes-protocols/rp-pppoe/rp-pppoe/configure.in-Error-fix.patch deleted file mode 100644 index 9e60b98fd3..0000000000 --- a/meta-networking/recipes-protocols/rp-pppoe/rp-pppoe/configure.in-Error-fix.patch +++ /dev/null | |||
@@ -1,57 +0,0 @@ | |||
1 | From bdd20b7a584a20504dfabb409a41ee2b9ae41657 Mon Sep 17 00:00:00 2001 | ||
2 | From: Lei Maohui <leimaohui@cn.fujitsu.com> | ||
3 | Date: Wed, 19 Aug 2015 13:52:57 +0900 | ||
4 | Subject: [PATCH] configure.in: Error fix. | ||
5 | |||
6 | the error is: conftest.c:9:28: fatal error: ac_nonexistent.h: | ||
7 | No such file or directory #include <ac_nonexistent.h> | ||
8 | |||
9 | Upstream-Status: Pending | ||
10 | |||
11 | Signed-off-by: Li Xin <lixin.fnst@cn.fujitsu.com> | ||
12 | |||
13 | --- | ||
14 | src/configure.in | 30 ------------------------------ | ||
15 | 1 file changed, 30 deletions(-) | ||
16 | |||
17 | diff --git a/src/configure.in b/src/configure.in | ||
18 | index 1714e69..cae0976 100644 | ||
19 | --- a/src/configure.in | ||
20 | +++ b/src/configure.in | ||
21 | @@ -195,36 +195,6 @@ if test "$GCC" = yes; then | ||
22 | CFLAGS="$CFLAGS -fno-strict-aliasing -Wall -Wstrict-prototypes" | ||
23 | fi | ||
24 | |||
25 | -dnl Figure out packing order of structures | ||
26 | -AC_CACHE_CHECK([packing order of bit fields],rpppoe_cv_pack_bitfields,[ | ||
27 | -if test "${rpppoe_cv_pack_bitfields+set}" != set ; then | ||
28 | -AC_TRY_RUN([ | ||
29 | -union foo { | ||
30 | - struct bar { | ||
31 | - unsigned int ver:4; | ||
32 | - unsigned int type:4; | ||
33 | - } bb; | ||
34 | - unsigned char baz; | ||
35 | -}; | ||
36 | - | ||
37 | -int | ||
38 | -main(void) | ||
39 | -{ | ||
40 | - union foo x; | ||
41 | - x.bb.ver = 1; | ||
42 | - x.bb.type = 2; | ||
43 | - if (x.baz == 0x21) { | ||
44 | - return 1; | ||
45 | - } else if (x.baz == 0x12) { | ||
46 | - return 0; | ||
47 | - } else { | ||
48 | - return 2; | ||
49 | - } | ||
50 | -}], rpppoe_cv_pack_bitfields=normal, rpppoe_cv_pack_bitfields=rev, | ||
51 | -$ECHO "no defaults for cross-compiling"; exit 1) | ||
52 | -fi | ||
53 | -]) | ||
54 | - | ||
55 | if test "$rpppoe_cv_pack_bitfields" = "rev" ; then | ||
56 | AC_MSG_RESULT(reversed) | ||
57 | AC_DEFINE([PACK_BITFIELDS_REVERSED], [], [Reversed bitfields]) | ||
diff --git a/meta-networking/recipes-protocols/rp-pppoe/rp-pppoe/configure_in_cross.patch b/meta-networking/recipes-protocols/rp-pppoe/rp-pppoe/configure_in_cross.patch index 3b945934f6..6e859a354c 100644 --- a/meta-networking/recipes-protocols/rp-pppoe/rp-pppoe/configure_in_cross.patch +++ b/meta-networking/recipes-protocols/rp-pppoe/rp-pppoe/configure_in_cross.patch | |||
@@ -8,13 +8,12 @@ a few target paths, reworks a few tests to be more friendly for cross | |||
8 | and drops other tests. | 8 | and drops other tests. |
9 | 9 | ||
10 | Upstream-Status: Inappropriate [build system specific changes] | 10 | Upstream-Status: Inappropriate [build system specific changes] |
11 | |||
12 | --- | 11 | --- |
13 | src/configure.in | 66 ++++++++++++++------------------------------------------ | 12 | src/configure.in | 62 ++++++++++-------------------------------------- |
14 | 1 file changed, 16 insertions(+), 50 deletions(-) | 13 | 1 file changed, 12 insertions(+), 50 deletions(-) |
15 | 14 | ||
16 | diff --git a/src/configure.in b/src/configure.in | 15 | diff --git a/src/configure.in b/src/configure.in |
17 | index 90a07df..1d30243 100644 | 16 | index 4add50c..9dff457 100644 |
18 | --- a/src/configure.in | 17 | --- a/src/configure.in |
19 | +++ b/src/configure.in | 18 | +++ b/src/configure.in |
20 | @@ -5,6 +5,13 @@ AC_INIT(pppoe.c) | 19 | @@ -5,6 +5,13 @@ AC_INIT(pppoe.c) |
@@ -67,13 +66,15 @@ index 90a07df..1d30243 100644 | |||
67 | fi | 66 | fi |
68 | 67 | ||
69 | AC_SUBST(LINUX_KERNELMODE_PLUGIN) | 68 | AC_SUBST(LINUX_KERNELMODE_PLUGIN) |
70 | @@ -142,15 +149,8 @@ AC_CHECK_SIZEOF(unsigned short) | 69 | @@ -142,17 +149,8 @@ AC_CHECK_SIZEOF(unsigned short) |
71 | AC_CHECK_SIZEOF(unsigned int) | 70 | AC_CHECK_SIZEOF(unsigned int) |
72 | AC_CHECK_SIZEOF(unsigned long) | 71 | AC_CHECK_SIZEOF(unsigned long) |
73 | 72 | ||
73 | -dnl Check for location of ip | ||
74 | -AC_PATH_PROG(IP, ip, NOTFOUND, $PATH:/bin:/sbin:/usr/bin:/usr/sbin) | ||
75 | - | ||
74 | -dnl Check for location of pppd | 76 | -dnl Check for location of pppd |
75 | -AC_PATH_PROG(PPPD, pppd, NOTFOUND, $PATH:/sbin:/usr/sbin:/usr/local/sbin) | 77 | -AC_PATH_PROG(PPPD, pppd, NOTFOUND, $PATH:/sbin:/usr/sbin:/usr/local/sbin) |
76 | -AC_PATH_PROG(ECHO, echo, echo) | ||
77 | - | 78 | - |
78 | -dnl Check for setsid (probably Linux-specific) | 79 | -dnl Check for setsid (probably Linux-specific) |
79 | -AC_PATH_PROG(SETSID, setsid, "", $PATH:/sbin:/usr/sbin:/usr/local/sbin) | 80 | -AC_PATH_PROG(SETSID, setsid, "", $PATH:/sbin:/usr/sbin:/usr/local/sbin) |
@@ -84,7 +85,7 @@ index 90a07df..1d30243 100644 | |||
84 | 85 | ||
85 | dnl Check for Linux-specific kernel support for PPPoE | 86 | dnl Check for Linux-specific kernel support for PPPoE |
86 | AC_MSG_CHECKING(for Linux 2.4.X kernel-mode PPPoE support) | 87 | AC_MSG_CHECKING(for Linux 2.4.X kernel-mode PPPoE support) |
87 | @@ -195,44 +195,8 @@ if test "$GCC" = yes; then | 88 | @@ -195,42 +193,6 @@ if test "$GCC" = yes; then |
88 | CFLAGS="$CFLAGS -fno-strict-aliasing -Wall -Wstrict-prototypes" | 89 | CFLAGS="$CFLAGS -fno-strict-aliasing -Wall -Wstrict-prototypes" |
89 | fi | 90 | fi |
90 | 91 | ||
@@ -124,30 +125,9 @@ index 90a07df..1d30243 100644 | |||
124 | - ;; | 125 | - ;; |
125 | -esac | 126 | -esac |
126 | - | 127 | - |
127 | dnl Figure out packing order of structures | 128 | # Sigh... got to fix this up for tcl |
128 | -AC_MSG_CHECKING([packing order of bit fields]) | 129 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
129 | +AC_CACHE_CHECK([packing order of bit fields],rpppoe_cv_pack_bitfields,[ | 130 | # Let make expand exec_prefix. |
130 | if test "${rpppoe_cv_pack_bitfields+set}" != set ; then | 131 | -- |
131 | AC_TRY_RUN([ | 132 | 2.34.1 |
132 | union foo { | 133 | |
133 | @@ -259,10 +223,11 @@ main(void) | ||
134 | }], rpppoe_cv_pack_bitfields=normal, rpppoe_cv_pack_bitfields=rev, | ||
135 | $ECHO "no defaults for cross-compiling"; exit 0) | ||
136 | fi | ||
137 | +]) | ||
138 | |||
139 | if test "$rpppoe_cv_pack_bitfields" = "rev" ; then | ||
140 | AC_MSG_RESULT(reversed) | ||
141 | - AC_DEFINE(PACK_BITFIELDS_REVERSED) | ||
142 | + AC_DEFINE([PACK_BITFIELDS_REVERSED], [], [Reversed bitfields]) | ||
143 | else | ||
144 | AC_MSG_RESULT(normal) | ||
145 | fi | ||
146 | @@ -326,6 +291,7 @@ AC_SUBST(PPPOE_SERVER_DEPS) | ||
147 | AC_SUBST(RDYNAMIC) | ||
148 | AC_SUBST(LIBEVENT) | ||
149 | AC_SUBST(ECHO) | ||
150 | +AC_SUBST(HAVE_STRUCT_SOCKADDR_LL) | ||
151 | AC_SUBST(LDFLAGS) | ||
152 | |||
153 | datadir_evaluated=`eval echo $datadir` | ||
diff --git a/meta-networking/recipes-protocols/rp-pppoe/rp-pppoe/dont-swallow-errors.patch b/meta-networking/recipes-protocols/rp-pppoe/rp-pppoe/dont-swallow-errors.patch deleted file mode 100644 index 8a857888b3..0000000000 --- a/meta-networking/recipes-protocols/rp-pppoe/rp-pppoe/dont-swallow-errors.patch +++ /dev/null | |||
@@ -1,26 +0,0 @@ | |||
1 | From a9a7322273c51882af58c35ba288a0fae00ba841 Mon Sep 17 00:00:00 2001 | ||
2 | From: Lei Maohui <leimaohui@cn.fujitsu.com> | ||
3 | Date: Wed, 19 Aug 2015 12:33:41 +0900 | ||
4 | Subject: [PATCH] don't swallow errors | ||
5 | |||
6 | Further fixup to the configure scripts to not swallow errors | ||
7 | |||
8 | Upstream-Status: Pending | ||
9 | |||
10 | --- | ||
11 | src/configure.in | 2 +- | ||
12 | 1 file changed, 1 insertion(+), 1 deletion(-) | ||
13 | |||
14 | diff --git a/src/configure.in b/src/configure.in | ||
15 | index 1d30243..1714e69 100644 | ||
16 | --- a/src/configure.in | ||
17 | +++ b/src/configure.in | ||
18 | @@ -221,7 +221,7 @@ main(void) | ||
19 | return 2; | ||
20 | } | ||
21 | }], rpppoe_cv_pack_bitfields=normal, rpppoe_cv_pack_bitfields=rev, | ||
22 | -$ECHO "no defaults for cross-compiling"; exit 0) | ||
23 | +$ECHO "no defaults for cross-compiling"; exit 1) | ||
24 | fi | ||
25 | ]) | ||
26 | |||
diff --git a/meta-networking/recipes-protocols/rp-pppoe/rp-pppoe_3.13.bb b/meta-networking/recipes-protocols/rp-pppoe/rp-pppoe_3.15.bb index 846abca032..4e5def297c 100644 --- a/meta-networking/recipes-protocols/rp-pppoe/rp-pppoe_3.13.bb +++ b/meta-networking/recipes-protocols/rp-pppoe/rp-pppoe_3.15.bb | |||
@@ -4,25 +4,22 @@ SECTION = "net" | |||
4 | LICENSE = "GPL-2.0-only" | 4 | LICENSE = "GPL-2.0-only" |
5 | LIC_FILES_CHKSUM = "file://doc/LICENSE;md5=a194eaefae2be54ee3221339b10d0581" | 5 | LIC_FILES_CHKSUM = "file://doc/LICENSE;md5=a194eaefae2be54ee3221339b10d0581" |
6 | 6 | ||
7 | PR = "r10" | 7 | PR = "r11" |
8 | 8 | ||
9 | SRC_URI = "https://dianne.skoll.ca/projects/rp-pppoe/download/rp-pppoe-${PV}.tar.gz \ | 9 | SRC_URI = "https://dianne.skoll.ca/projects/rp-pppoe/download/rp-pppoe-${PV}.tar.gz \ |
10 | file://top-autoconf.patch \ | 10 | file://top-autoconf.patch \ |
11 | file://configure_in_cross.patch \ | 11 | file://configure_in_cross.patch \ |
12 | file://update-config.patch \ | 12 | file://update-config.patch \ |
13 | file://dont-swallow-errors.patch \ | ||
14 | file://discard-use-of-dnl-in-Makefile.am.patch \ | 13 | file://discard-use-of-dnl-in-Makefile.am.patch \ |
15 | file://configure.patch \ | 14 | file://configure.patch \ |
16 | file://pppoe-server.default \ | 15 | file://pppoe-server.default \ |
17 | file://pppoe-server.init \ | 16 | file://pppoe-server.init \ |
18 | file://configure.in-Error-fix.patch \ | ||
19 | file://pppoe-server.service \ | 17 | file://pppoe-server.service \ |
20 | file://0001-ppoe-Dont-include-linux-if_ether.h.patch \ | 18 | file://0001-ppoe-Dont-include-linux-if_ether.h.patch \ |
21 | file://0002-Enable-support-for-the-kernel-module.patch \ | 19 | file://0002-Enable-support-for-the-kernel-module.patch \ |
22 | " | 20 | " |
23 | 21 | ||
24 | SRC_URI[md5sum] = "ec9dccd9a367a1f71f2dc81069796dd8" | 22 | SRC_URI[sha256sum] = "b1f318bc7e4e5b0fd8a8e23e8803f5e6e43165245a5a10a7162a92a6cf17829a" |
25 | SRC_URI[sha256sum] = "8cd6bc71ba46bd5f6eb4daf60220ccdcd991a8525111dee466501b1b9717e676" | ||
26 | 23 | ||
27 | inherit autotools-brokensep update-rc.d systemd | 24 | inherit autotools-brokensep update-rc.d systemd |
28 | 25 | ||