Bump buildroot to version 2018.02.8
This commit is contained in:
29
bsp/buildroot/package/ntp/0003-fix-nommu.patch
Normal file
29
bsp/buildroot/package/ntp/0003-fix-nommu.patch
Normal file
@@ -0,0 +1,29 @@
|
||||
Fix no-MMU build
|
||||
|
||||
The detach_from_terminal() is unused for no-MMU, but it depends on symbols
|
||||
that are not defined for no-MMU. Don't define detach_from_terminal() when
|
||||
HAVE_WORKING_FORK is not defined.
|
||||
|
||||
Signed-off-by: Baruch Siach <baruch@tkos.co.il>
|
||||
---
|
||||
Upstream status: http://bugs.ntp.org/show_bug.cgi?id=3538
|
||||
|
||||
diff -Nuar ntp-4.2.8p12.orig/ntpd/ntpd.c ntp-4.2.8p12/ntpd/ntpd.c
|
||||
--- ntp-4.2.8p12.orig/ntpd/ntpd.c 2018-08-14 14:51:30.000000000 +0300
|
||||
+++ ntp-4.2.8p12/ntpd/ntpd.c 2018-10-13 21:25:25.858261249 +0300
|
||||
@@ -534,6 +534,7 @@
|
||||
* Detach from terminal (much like daemon())
|
||||
* Nothe that this function calls exit()
|
||||
*/
|
||||
+# ifdef HAVE_WORKING_FORK
|
||||
static void
|
||||
detach_from_terminal(
|
||||
int pipe_fds[2],
|
||||
@@ -617,6 +618,7 @@
|
||||
|
||||
return;
|
||||
}
|
||||
+# endif /* HAVE_WORKING_FORK */
|
||||
|
||||
#ifdef HAVE_DROPROOT
|
||||
/*
|
||||
@@ -0,0 +1,26 @@
|
||||
Fix work_fork build when droproot is disabled
|
||||
|
||||
The set_user_group_ids() depends on HAVE_DROPROOT. When HAVE_DROPROOT is not
|
||||
enabled, work_fork.c code causes a link failure:
|
||||
|
||||
../libntp/libntp.a(work_fork.o): In function `send_blocking_req_internal':
|
||||
work_fork.c:(.text+0x498): undefined reference to `set_user_group_ids'
|
||||
|
||||
Make the set_user_group_ids() call depend on HAVE_DROPROOT.
|
||||
|
||||
Signed-off-by: Baruch Siach <baruch@tkos.co.il>
|
||||
---
|
||||
Upstream status: http://bugs.ntp.org/show_bug.cgi?id=3539
|
||||
|
||||
--- ntp-4.2.8p12.orig/libntp/work_fork.c 2018-08-14 14:51:06.000000000 +0300
|
||||
+++ ntp-4.2.8p12/libntp/work_fork.c 2018-10-15 21:10:54.580917962 +0300
|
||||
@@ -594,7 +594,9 @@
|
||||
init_logging("ntp_intres", 0, FALSE);
|
||||
setup_logfile(NULL);
|
||||
|
||||
+#if defined(HAVE_DROPROOT)
|
||||
(void) set_user_group_ids();
|
||||
+#endif
|
||||
|
||||
/*
|
||||
* And now back to the portable code
|
||||
@@ -1,5 +1,5 @@
|
||||
# From https://www.eecis.udel.edu/~ntp/ntp_spool/ntp4/ntp-4.2/ntp-4.2.8p11.tar.gz.md5
|
||||
md5 00950ca2855579541896513e78295361 ntp-4.2.8p11.tar.gz
|
||||
# From https://www.eecis.udel.edu/~ntp/ntp_spool/ntp4/ntp-4.2/ntp-4.2.8p12.tar.gz.md5
|
||||
md5 1522d66574bae14abb2622746dad2bdc ntp-4.2.8p12.tar.gz
|
||||
# Calculated based on the hash above
|
||||
sha256 f14a39f753688252d683ff907035ffff106ba8d3db21309b742e09b5c3cd278e ntp-4.2.8p11.tar.gz
|
||||
sha256 709b222b5013d77d26bfff532b5ea470a8039497ef29d09363931c036cb30454 ntp-4.2.8p12.tar.gz
|
||||
sha256 62c87b269365b38b55359b16dfde7ec28c683c722ef489db90afd0f2e478e4a1 COPYRIGHT
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
################################################################################
|
||||
|
||||
NTP_VERSION_MAJOR = 4.2
|
||||
NTP_VERSION = $(NTP_VERSION_MAJOR).8p11
|
||||
NTP_VERSION = $(NTP_VERSION_MAJOR).8p12
|
||||
NTP_SITE = https://www.eecis.udel.edu/~ntp/ntp_spool/ntp4/ntp-$(NTP_VERSION_MAJOR)
|
||||
NTP_DEPENDENCIES = host-pkgconf libevent $(if $(BR2_PACKAGE_BUSYBOX),busybox)
|
||||
NTP_LICENSE = NTP
|
||||
|
||||
Reference in New Issue
Block a user