# HG changeset patch # User Pascal Bellard # Date 1604156853 0 # Node ID 852f0fbcce4d946683914e40907c8317f7f07c0c # Parent e2073ef01171d43f8a790dcb6f549b970d884e62 net-snmp: do not install darwin?.h diff -r e2073ef01171 -r 852f0fbcce4d busybox/stuff/busybox-1.31-cpio.u --- a/busybox/stuff/busybox-1.31-cpio.u Wed Oct 28 17:24:13 2020 +0000 +++ b/busybox/stuff/busybox-1.31-cpio.u Sat Oct 31 15:07:33 2020 +0000 @@ -10,3 +10,14 @@ /* Store hardlinks for later processing, dont output them */ if (!S_ISDIR(st.st_mode) && st.st_nlink > 1) { struct name_s *n; +--- busybox-1.31/archival/libarchive/get_header_cpio.c ++++ busybox-1.31/archival/libarchive/get_header_cpio.c +@@ -80,7 +80,7 @@ + /* Update offset amount and skip padding before file contents */ + data_align(archive_handle, 4); + +- if (strcmp(file_header->name, cpio_TRAILER) == 0) { ++ if ((strcmp(file_header->name, cpio_TRAILER) | file_header->mode) == 0) { + /* Always round up. ">> 9" divides by 512 */ + archive_handle->cpio__blocks = (uoff_t)(archive_handle->offset + 511) >> 9; + goto create_hardlinks; diff -r e2073ef01171 -r 852f0fbcce4d busybox/stuff/busybox-1.32-cpio.u --- a/busybox/stuff/busybox-1.32-cpio.u Wed Oct 28 17:24:13 2020 +0000 +++ b/busybox/stuff/busybox-1.32-cpio.u Sat Oct 31 15:07:33 2020 +0000 @@ -10,3 +10,14 @@ /* Store hardlinks for later processing, dont output them */ if (!S_ISDIR(st.st_mode) && st.st_nlink > 1) { struct name_s *n; +--- busybox-1.32/archival/libarchive/get_header_cpio.c ++++ busybox-1.32/archival/libarchive/get_header_cpio.c +@@ -80,7 +80,7 @@ + /* Update offset amount and skip padding before file contents */ + data_align(archive_handle, 4); + +- if (strcmp(file_header->name, cpio_TRAILER) == 0) { ++ if ((strcmp(file_header->name, cpio_TRAILER) | file_header->mode) == 0) { + /* Always round up. ">> 9" divides by 512 */ + archive_handle->cpio__blocks = (uoff_t)(archive_handle->offset + 511) >> 9; + goto create_hardlinks; diff -r e2073ef01171 -r 852f0fbcce4d net-snmp/receipt --- a/net-snmp/receipt Wed Oct 28 17:24:13 2020 +0000 +++ b/net-snmp/receipt Sat Oct 31 15:07:33 2020 +0000 @@ -18,6 +18,8 @@ # Rules to configure and make the package. compile_rules() { + export LDFLAGS="$LDFLAGS -ltinfo" + sed 's|darwin.\{1,2\}\.h||g' -i Makefile* ./configure \ --prefix=/usr \ --with-default-snmp-version="1" \