Skip to contentSkip to conversation

package/pppd: bump version to 2.5.3

PATCH New Bernd Kuhls 1 participant 1 message Jun 17

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 package/pppd: bump version to 2.5.3

https://github.com/ppp-project/ppp/releases/tag/v2.5.3

Removed patch 0001 which is not needed anymore due to fixes committed to all relevant kernel versions:
https://github.com/ppp-project/ppp/pull/504#issuecomment-2337005682

Removed patches 0002 & 0003 which are included in this release.

Added new patch to fix build errors seen with older gcc versions detected by the Gitlab pipelines. These build errors are introduced in the new dhcpv6relay plugin which was added to pppd 2.5.3, no backport to buildroot LTS branches necessary.

Switched back to upstream tarball which now contains the previously missing license files added by upstream commit
https://github.com/ppp-project/ppp/commit/9f612dc02c34509f062ed63b60bcc7e937e25178
and drop autoreconf as well.

---
Gitlab pipelines passed:
https://gitlab.com/bkuhls/buildroot/-/commits/06573567a274dd177053d4db1b6f8d087badc3b6

 ...1-dhcpv6relay-fix-build-with-gcc-9.x.patch | 184 ++++++++++
 ...orkaround-sparc-asm-termbits.h-issue.patch | 316 ------------------
 ...d-Fix-building-session.c-with-GCC-15.patch |  36 --
 ...3-pppdump-Fixed-building-with-GCC-15.patch |  76 -----
 package/pppd/pppd.hash                        |   2 +-
 package/pppd/pppd.mk                          |   8 +-
 6 files changed, 188 insertions(+), 434 deletions(-)
 create mode 100644 package/pppd/0001-dhcpv6relay-fix-build-with-gcc-9.x.patch
 delete mode 100644 package/pppd/0001-pppd-workaround-sparc-asm-termbits.h-issue.patch
 delete mode 100644 package/pppd/0002-pppd-Fix-building-session.c-with-GCC-15.patch
 delete mode 100644 package/pppd/0003-pppdump-Fixed-building-with-GCC-15.patch
package/pppd/0001-dhcpv6relay-fix-build-with-gcc-9.x.patch new file +184 -0
new file mode 100644
index 0000000000..88e10a769e
@@ -0,0 +1,184 @@
+From 3d34903a41f1084e01594e676e858abd91963294 Mon Sep 17 00:00:00 2001
+From: Bernd Kuhls <[email protected]>
+Date: Wed, 17 Jun 2026 20:45:19 +0200
+Subject: [PATCH] dhcpv6relay: fix build with gcc 9.x
+
+Fixes various build errors seen with gcc 9.x:
+
+Making all in dhcpv6relay
+  CC       dhcpv6relay_la-dhcpv6relay.lo
+dhcpv6relay.c: In function 'dhcpv6relay_down':
+dhcpv6relay.c:193:1: error: parameter name omitted
+ void dhcpv6relay_down(void*, int)
+ ^~~~
+dhcpv6relay.c:193:1: error: parameter name omitted
+dhcpv6relay.c: In function 'dhcpv6relay_release_route':
+dhcpv6relay.c:265:45: error: parameter name omitted
+ void dhcpv6relay_release_route(const struct in6_addr* addr, uint8_t prefixlen, uint32_t /* lifetime */)
+                                             ^~~~~~~~
+dhcpv6relay.c: In function 'dhcpv6relay_process_ia_pd':
+dhcpv6relay.c:343:2: error: label at end of compound statement
+  default:
+  ^~~~~~~
+dhcpv6relay.c: In function 'dhcpv6relay_process_ia_na':
+dhcpv6relay.c:380:2: error: label at end of compound statement
+  default:
+  ^~~~~~~
+dhcpv6relay.c: In function 'dhcpv6relay_process_packet_for_routes':
+dhcpv6relay.c:422:2: error: a label can only be part of a statement and a declaration is not a statement
+  dhcpv6relay_route_func func;
+  ^~~~~~~~~~~~~~~~~~~~~~
+dhcpv6relay.c:449:6: error: label at end of compound statement
+      default:
+      ^~~~~~~
+dhcpv6relay.c: In function 'dhcpv6relay_server_event':
+dhcpv6relay.c:463:1: error: parameter name omitted
+ void dhcpv6relay_server_event(int fd, void*)
+ ^~~~
+dhcpv6relay.c:558:2: error: label at end of compound statement
+  default:
+  ^~~~~~~
+dhcpv6relay.c: In function 'dhcpv6relay_client_event':
+dhcpv6relay.c:619:1: error: parameter name omitted
+ void dhcpv6relay_client_event(int fd, void*)
+ ^~~~
+dhcpv6relay.c: In function 'dhcpv6relay_send_router_advertisement_timed':
+dhcpv6relay.c:795:1: error: parameter name omitted
+ void dhcpv6relay_send_router_advertisement_timed(void*)
+ ^~~~
+dhcpv6relay.c: In function 'dhcpv6relay_router_solicitation':
+dhcpv6relay.c:802:1: error: parameter name omitted
+ void dhcpv6relay_router_solicitation(int fd, void*)
+ ^~~~
+dhcpv6relay.c: In function 'dhcpv6relay_up':
+dhcpv6relay.c:855:1: error: parameter name omitted
+ void dhcpv6relay_up(void*, int)
+ ^~~~
+dhcpv6relay.c:855:1: error: parameter name omitted
+
+Upstream: https://github.com/ppp-project/ppp/pull/598
+
+Signed-off-by: Bernd Kuhls <[email protected]>
+---
+ pppd/plugins/dhcpv6relay/dhcpv6relay.c | 22 ++++++++++++----------
+ 1 file changed, 12 insertions(+), 10 deletions(-)
+
+diff --git a/pppd/plugins/dhcpv6relay/dhcpv6relay.c b/pppd/plugins/dhcpv6relay/dhcpv6relay.c
+index e9ebba1..0a39421 100644
+--- a/pppd/plugins/dhcpv6relay/dhcpv6relay.c
++++ b/pppd/plugins/dhcpv6relay/dhcpv6relay.c
+@@ -190,7 +190,7 @@ void routes_remove_all()
+ }
+ 
+ static
+-void dhcpv6relay_down(void*, int)
++void dhcpv6relay_down(void* unused, int unusedint)
+ {
+     routes_remove_all();
+     if (dhcpv6relay_sock_ll >= 0) {
+@@ -262,7 +262,7 @@ void dhcpv6relay_route_timeout(void* _r)
+ }
+ 
+ static
+-void dhcpv6relay_release_route(const struct in6_addr* addr, uint8_t prefixlen, uint32_t /* lifetime */)
++void dhcpv6relay_release_route(const struct in6_addr* addr, uint8_t prefixlen, uint32_t unused /* lifetime */)
+ {
+     char in6addr[INET6_ADDRSTRLEN];
+ 
+@@ -341,7 +341,7 @@ void dhcpv6relay_process_ia_pd(const unsigned char *bfr, uint16_t len, dhcpv6rel
+ 	    routefunc((const struct in6_addr*)(bfr + 9), bfr[8], ntohl(*(const uint32_t*)(bfr+4)));
+ 	    break;
+ 	default:
+-	    /* nothing */
++	    break; /* nothing */
+ 	}
+ 
+ 	bfr += optlen;
+@@ -378,7 +378,7 @@ void dhcpv6relay_process_ia_na(const unsigned char *bfr, uint16_t len, dhcpv6rel
+ 	    routefunc((const struct in6_addr*)bfr, 128, ntohl(*(const uint32_t*)(bfr+20)));
+ 	    break;
+ 	default:
+-	    /* nothing */
++	    break; /* nothing */
+ 	}
+ 
+ 	bfr += optlen;
+@@ -392,6 +392,7 @@ void dhcpv6relay_process_packet_for_routes(const unsigned char *bfr, uint16_t le
+     if (len < 1)
+ 	return;
+     uint8_t pkttype = *bfr;
++    dhcpv6relay_route_func func;
+ 
+     switch (pkttype) {
+     case DHCPv6_MSGTYPE_RELAY_FORW:
+@@ -419,7 +420,6 @@ void dhcpv6relay_process_packet_for_routes(const unsigned char *bfr, uint16_t le
+ 	break;
+     case DHCPv6_MSGTYPE_REPLY:
+     case DHCPv6_MSGTYPE_RELEASE:
+-	dhcpv6relay_route_func func;
+ 	if (pkttype == DHCPv6_MSGTYPE_RELEASE)
+ 	    func = dhcpv6relay_release_route;
+ 	else
+@@ -447,6 +447,7 @@ void dhcpv6relay_process_packet_for_routes(const unsigned char *bfr, uint16_t le
+ 		dhcpv6relay_process_ia_na(bfr, optlen, func);
+ 		break;
+ 	    default:
++		break;
+ 	    }
+ 	    bfr += optlen;
+ 
+@@ -460,7 +461,7 @@ void dhcpv6relay_process_packet_for_routes(const unsigned char *bfr, uint16_t le
+ }
+ 
+ static
+-void dhcpv6relay_server_event(int fd, void*)
++void dhcpv6relay_server_event(int fd, void* unused)
+ {
+     unsigned char buffer[1024];
+     unsigned char *options = buffer + 34; /* skip fixed header */
+@@ -556,6 +557,7 @@ void dhcpv6relay_server_event(int fd, void*)
+ 	    notice("Got relay-port: %u", ntohs(*(uint16_t*)options));
+ 	    break; */
+ 	default:
++	    break;
+ 	    /* notice("DHCPv6 relay: Skipping processing of option %u of length %u.",
+ 		    type, len); */
+ 	}
+@@ -616,7 +618,7 @@ int dhcpv6relay_init_upstream()
+ }
+ 
+ static
+-void dhcpv6relay_client_event(int fd, void*)
++void dhcpv6relay_client_event(int fd, void* unused)
+ {
+     unsigned char buffer[1024];
+     unsigned char fwd_head[256];
+@@ -792,14 +794,14 @@ void dhcpv6relay_send_router_advertisement(const struct sockaddr* da)
+ }
+ 
+ static
+-void dhcpv6relay_send_router_advertisement_timed(void*)
++void dhcpv6relay_send_router_advertisement_timed(void* unused)
+ {
+     dhcpv6relay_send_router_advertisement(NULL);
+     ppp_timeout(dhcpv6relay_send_router_advertisement_timed, NULL, dhcpv6relay_ra_interval, 0);
+ }
+ 
+ static
+-void dhcpv6relay_router_solicitation(int fd, void*)
++void dhcpv6relay_router_solicitation(int fd, void* unused)
+ {
+     unsigned char bfr[1]; /* kernel will truncate packets in case of overflow,
+ 			     and we don't care about the content.  Will
+@@ -852,7 +854,7 @@ int dhcpv6relay_populate_ll(struct sockaddr_in6* res)
+ }
+ 
+ static
+-void dhcpv6relay_up(void*, int)
++void dhcpv6relay_up(void *unused, int unusedint)
+ {
+     struct sockaddr_in6 sa;
+     struct ipv6_mreq mreq;
+-- 
+2.47.3
+
package/pppd/0001-pppd-workaround-sparc-asm-termbits.h-issue.patch deleted +0 -316

316 lines not on this page · raw message

package/pppd/0002-pppd-Fix-building-session.c-with-GCC-15.patch deleted +0 -36
deleted file mode 100644
index 4fcd492562..0000000000
@@ -1,36 +0,0 @@
-From fb769c380eeacf23b64cb3bf7860ba49a0e0eed5 Mon Sep 17 00:00:00 2001
-From: Khem Raj <[email protected]>
-Date: Tue, 8 Apr 2025 00:15:57 -0700
-Subject: [PATCH] pppd: Fix building session.c with GCC 15 (#553)
-
-Fixed building with GCC 15 which defaults to C23
-and find conflicting declration of getspnam() here
-with the one provided by shadow.h (extern struct spwd *getspnam (const char *__name);)
-
-Fixes
-../../ppp-2.5.2/pppd/session.c: In function 'session_start':
-../../ppp-2.5.2/pppd/session.c:185:18: error: conflicting types for 'getspnam'; have 'struct spwd *(void)'
-  185 |     struct spwd *getspnam();
-      |                  ^~~~~~~~
-
-Signed-off-by: Khem Raj <[email protected]>
-
-Upstream: https://github.com/ppp-project/ppp/commit/fb769c380eeacf23b64cb3bf7860ba49a0e0eed5
-
-Signed-off-by: Bernd Kuhls <[email protected]>
----
- pppd/session.c | 1 -
- 1 file changed, 1 deletion(-)
-
-diff --git a/pppd/session.c b/pppd/session.c
-index f08d8e19..9cc75389 100644
---- a/pppd/session.c
-+++ b/pppd/session.c
-@@ -182,7 +182,6 @@ session_start(const int flags, const char *user, const char *passwd, const char
-     char *cbuf;
- #ifdef HAVE_SHADOW_H
-     struct spwd *spwd;
--    struct spwd *getspnam();
-     long now = 0;
- #endif /* #ifdef HAVE_SHADOW_H */
- #endif /* #ifdef PPP_WITH_PAM */
package/pppd/0003-pppdump-Fixed-building-with-GCC-15.patch deleted +0 -76

76 lines not on this page · raw message

package/pppd/pppd.hash +1 -1
index 1aec3f037c..a79f73fe93 100644
@@ -1,4 +1,4 @@
 # Locally calculated
-sha256  d7457f0ff409cb2d7a0d8382ef6302520d664895ac5568cb3dce727d71a2a1f5  pppd-2.5.2.tar.gz
+sha256  ddda28dec8aca99a403ab6070d94ffd2b17d63e9a4c5509158e99e148f572d4f  ppp-2.5.3.tar.gz
 sha256  5d588eb3b157d52112afea935c88a7ff9efddc1e2d95a42c25d3b96ad9055008  LICENSE.BSD
 sha256  8177f97513213526df2cf6184d8ff986c675afb514d4e68a404010521b880643  LICENSE.GPL-2
package/pppd/pppd.mk +3 -5
index 24dcb85387..f8b68f39b7 100644
@@ -4,16 +4,14 @@
 #
 ################################################################################
 
-# The tarball provided at https://download.samba.org/pub/ppp/ does not
-# include the license files yet so we use the github tarball.
-PPPD_VERSION = 2.5.2
-PPPD_SITE = $(call github,ppp-project,ppp,v$(PPPD_VERSION))
+PPPD_VERSION = 2.5.3
+PPPD_SITE = https://download.samba.org/pub/ppp
+PPPD_SOURCE = ppp-$(PPPD_VERSION).tar.gz
 PPPD_LICENSE = LGPL-2.0+, LGPL, BSD-4-Clause, BSD-3-Clause, GPL-2.0+
 PPPD_LICENSE_FILES = LICENSE.BSD LICENSE.GPL-2
 PPPD_CPE_ID_VENDOR = point-to-point_protocol_project
 PPPD_CPE_ID_PRODUCT = point-to-point_protocol
 PPPD_SELINUX_MODULES = ppp
-PPPD_AUTORECONF = YES
 PPPD_INSTALL_STAGING = YES
 PPPD_CONF_OPTS = --enable-multilink
 
Signature · 6 lines
2.47.3

_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot