This updates: * m4 * bison * e2fsprogs * make_ext4fs * mtd-utils * findutils * squashfs * squashfs4 * grub2 to their version used in LEDE v17.01.6. This fixes various compile errors appearing on Debian Sid. A list of the patches picked from upstream: m4: $ git log --oneline f7e56763e1..HEAD tools/m4 6e78c5502c tools: m4: fix compilation with glibc 2.28 a91d8dd162 tools/m4: update 1.4.18 f19d47f848 tools: patch various gnu tools for macOS 10.13 720b99215d treewide: clean up download hashes bison: $ git log --oneline 877f2972d4..HEAD tools/bison 1e09cbf118 tools/bison: Update to 3.0.5 f19d47f848 tools: patch various gnu tools for macOS 10.13 720b99215d treewide: clean up download hashes 5062cff673 tools/bison: update to 3.0.4 e2fsprogs: $ git log --oneline f7e56763e1..HEAD tools/e2fsprogs/ 8f5c55f63e tools/e2fsprogs: update to 1.44.1 d35a7bf4b4 e2fsprogs: bump to 1.44.0 79ac69d9c9 tools/e2fsprogs: Update to 1.43.7 5d9114c9cb tools/e2fsprogs: Update to 1.43.6 7955fab22a tools/e2fsprogs: Update to 1.43.5 866e5b4956 tools/e2fsprogs: Update to 1.43.4 a964738a5c Revert "tools/e2fsprogs: fix building on a glibc 2.27 host" 58a95f0f8f tools/e2fsprogs: fix building on a glibc 2.27 host 720b99215d treewide: clean up download hashes b8b807b1a9 tools/e2fsprogs: Update to 1.43.3 d635ef50c5 e2fsprogs: fix build problem with very old libmagic 819cf75c40 tools: e2fsprogs: bump to 1.43.1 2baf90a84e tools/e2fsprogs: remove outdated configure args b7e946f33e tools/e2fsprogs: update to 1.42.13 52ea491bdf tools/e2fsprogs: add a darwin-compat patch make-ext4fs: $ git log --oneline 1170a3de76..HEAD tools/make-ext4fs/ c7c1cf5618 treewide: clean up and unify PKG_VERSION for git based downloads 720b99215d treewide: clean up download hashes 9edfe7dd13 source: Switch to xz for packages and tools where possible 95bad62f2a tools: make_ext4fs: switch to LEDE git mirror 98b960c218 tools: make_ext4fs: support creating empty filesystem images 9ec4ca525c tools: make-ext4fs: fix build regression on mac os x 49ad0c565a tools: fix make_ext4fs build with recent glibc 8af9119ff4 tools: make-ext4fs: explicitely request C collation for sorting 01fb448d56 tools/make-ext4fs: prefer static linking $ git log --oneline 17ae95bb20..HEAD tools/mtd-utils 96dbf59e5a tools/mtd-utils: include sysmacros.h explicitly 018d80007e kernel: remove ubifs xz decompression support c7c1cf5618 treewide: clean up and unify PKG_VERSION for git based downloads 720b99215d treewide: clean up download hashes 9edfe7dd13 source: Switch to xz for packages and tools where possible e27c8bb156 update mtd-utils to 1.5.2 $ git log --oneline dd86bc73fb..HEAD tools/findutils 6449ed1553 tools: findutils: fix compilation with glibc 2.28 d2fd6412a6 tools/findutils: include sysmacros.h explicitly 720b99215d treewide: clean up download hashes 70a5c062f1 tools/findutils: Update to 4.6.0 $ git log --oneline f7e56763e1..HEAD tools/squashfs tools/squashfs4 1aedf2f149 tools/squashfs: use host cflags 8a48a53dcb tools/squashfs4: include sysmacros.h explicitly 8406e50df5 tools/squashfs: include sysmacros.h explicitly 720b99215d treewide: clean up download hashes f97ad870e1 squashfs4: use upstream xz compression header format d437c72c21 tools/squashfs4: refresh patches 34124de139 tools/squashfs: refresh patches fd1c1b4918 tools/squashfs: add argument -fixed-time to set all timestamps $ git log --oneline fcc6f801ca..HEAD package/boot/grub2/ 2252731af4 grub2: rebase patches 6aae528cc3 grub2: Fix CVE-2015-8370 6e1e2e7b96 package/grub2: update to 2.02 10182cb2c6 grub2: update to 2.02~rc2 f0e8470aa9 grub2: update to 2.02~rc1 806d3cc2c3 packages: mark packages depending on a target as nonshared 65c8f2890c grub2: upgrade to 2.02-beta3 (3 years newer than previous) 77812cdfec grub2: disable 'check-macro-version' build rule in 'po' build 2b54fa4dff grub2: do not generate mkfonts at build time b33845b2da grub2: add PKG_FIXUP:=autoreconf 720b99215d treewide: clean up download hashes 3c52cbfa53 Revert "grub2: add PKG_FIXUP:=autoreconf" a0ea22ac43 grub2: add PKG_FIXUP:=autoreconf f2752f4735 grub2: add missing SECTION variable and remove non breaking space d140648622 grub2: move to Boot Loaders category 59e3a4714a grub2: switch back to installing to STAGING_DIR_HOST 9b01282515 grub2: disable stack-protector 25eddec9cb grub2: fix build against musl $ git log --oneline 81a2f9d6f86 81a2f9d6f8 target/linux/x86/image: add explicit prefix to grub-mkimage command Signed-off-by: Linus Lüssing <linus.luessing@c0d3.blue>
201 lines
7.2 KiB
Diff
201 lines
7.2 KiB
Diff
From: Hauke Mehrtens <hauke@hauke-m.de>
|
|
Date: Sat, 5 Dec 2015 15:44:58 +0000
|
|
Subject: update mtd-utils to 1.5.2
|
|
|
|
- update mtd-utils to 1.5.2 (git a494d30ab1ae40cb7665680cadf5af3ca3830a73)
|
|
- remove patches that went upstream
|
|
- fixes build from scratch as of broken patches
|
|
|
|
Signed-off-by: Sven Roederer <devel-sven@geroedel.de>
|
|
[use the final version of 1.5.2 instead, fix header of jffs2_lzma_(de,)compress()]
|
|
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
|
|
|
|
SVN-Revision: 47790
|
|
|
|
diff --git a/tools/mtd-utils/Makefile b/tools/mtd-utils/Makefile
|
|
index b4c9c662b25f3d87cef26ff6c59e137ccb3104b7..2db629419b98adbee8e78c2527b44386aa526056 100644
|
|
--- a/tools/mtd-utils/Makefile
|
|
+++ b/tools/mtd-utils/Makefile
|
|
@@ -7,14 +7,14 @@
|
|
include $(TOPDIR)/rules.mk
|
|
|
|
PKG_NAME:=mtd-utils
|
|
-PKG_VERSION:=1.5.1
|
|
+PKG_VERSION:=1.5.2
|
|
|
|
-PKG_SOURCE_VERSION:=92686f212c9a4e16891c6a3c57629cbf4f0f8360
|
|
+PKG_SOURCE_VERSION:=aea36417067dade75192bafa03af70b6eb2677b1
|
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION)-$(PKG_SOURCE_VERSION).tar.gz
|
|
PKG_SOURCE_URL:=git://git.infradead.org/mtd-utils.git
|
|
PKG_SOURCE_PROTO:=git
|
|
PKG_SOURCE_SUBDIR:=$(PKG_NAME)-$(PKG_VERSION)
|
|
-PKG_MIRROR_MD5SUM:=9fe0518213feddacd1842935dddeb6c8
|
|
+PKG_MIRROR_MD5SUM:=
|
|
PKG_CAT:=zcat
|
|
|
|
HOST_BUILD_DIR:=$(BUILD_DIR_HOST)/$(PKG_NAME)-$(PKG_VERSION)
|
|
diff --git a/tools/mtd-utils/patches/110-portability.patch b/tools/mtd-utils/patches/110-portability.patch
|
|
index 4ad209a449191bfec3d54fb7dc349af06d039051..c4cdab928aea66b3d4beeeb5629aac1ead87ed7f 100644
|
|
--- a/tools/mtd-utils/patches/110-portability.patch
|
|
+++ b/tools/mtd-utils/patches/110-portability.patch
|
|
@@ -150,27 +150,6 @@
|
|
#include <inttypes.h>
|
|
#include "version.h"
|
|
|
|
-@@ -117,11 +116,6 @@ extern "C" {
|
|
- fprintf(stderr, "%s: warning!: " fmt "\n", PROGRAM_NAME, ##__VA_ARGS__); \
|
|
- } while(0)
|
|
-
|
|
--#if defined(__UCLIBC__)
|
|
--/* uClibc versions before 0.9.34 don't have rpmatch() */
|
|
--#if __UCLIBC_MAJOR__ == 0 && \
|
|
-- (__UCLIBC_MINOR__ < 9 || \
|
|
-- (__UCLIBC_MINOR__ == 9 && __UCLIBC_SUBLEVEL__ < 34))
|
|
- #undef rpmatch
|
|
- #define rpmatch __rpmatch
|
|
- static inline int __rpmatch(const char *resp)
|
|
-@@ -129,8 +123,6 @@ static inline int __rpmatch(const char *
|
|
- return (resp[0] == 'y' || resp[0] == 'Y') ? 1 :
|
|
- (resp[0] == 'n' || resp[0] == 'N') ? 0 : -1;
|
|
- }
|
|
--#endif
|
|
--#endif
|
|
-
|
|
- /**
|
|
- * prompt the user for confirmation
|
|
--- a/include/mtd/ubifs-media.h
|
|
+++ b/include/mtd/ubifs-media.h
|
|
@@ -33,7 +33,15 @@
|
|
diff --git a/tools/mtd-utils/patches/130-lzma_jffs2.patch b/tools/mtd-utils/patches/130-lzma_jffs2.patch
|
|
index 17f9978bef186a6a2fc088c58d1c31b7ce5b4fcb..b04f01992266386b979471629ceb2ef99d4df908 100644
|
|
--- a/tools/mtd-utils/patches/130-lzma_jffs2.patch
|
|
+++ b/tools/mtd-utils/patches/130-lzma_jffs2.patch
|
|
@@ -1,7 +1,7 @@
|
|
--- a/Makefile
|
|
+++ b/Makefile
|
|
@@ -4,6 +4,7 @@
|
|
- VERSION = 1.5.1
|
|
+ VERSION = 1.5.2
|
|
|
|
CPPFLAGS += -D_GNU_SOURCE -I./include -I$(BUILDDIR)/include -I./ubi-utils/include $(ZLIBCPPFLAGS) $(LZOCPPFLAGS) $(UUIDCPPFLAGS)
|
|
+CPPFLAGS += -I./include/linux/lzma
|
|
@@ -123,7 +123,7 @@
|
|
+}
|
|
+
|
|
+STATIC int jffs2_lzma_compress(unsigned char *data_in, unsigned char *cpage_out,
|
|
-+ uint32_t *sourcelen, uint32_t *dstlen, void *model)
|
|
++ uint32_t *sourcelen, uint32_t *dstlen)
|
|
+{
|
|
+ SizeT compress_size = (SizeT)(*dstlen);
|
|
+ int ret;
|
|
@@ -148,7 +148,7 @@
|
|
+}
|
|
+
|
|
+STATIC int jffs2_lzma_decompress(unsigned char *data_in, unsigned char *cpage_out,
|
|
-+ uint32_t srclen, uint32_t destlen, void *model)
|
|
++ uint32_t srclen, uint32_t destlen)
|
|
+{
|
|
+ int ret;
|
|
+ SizeT dl = (SizeT)destlen;
|
|
diff --git a/tools/mtd-utils/patches/136-mkfs.ubifs-xz-support.patch b/tools/mtd-utils/patches/136-mkfs.ubifs-xz-support.patch
|
|
index d97c244fafb86496efb85ef0db3a661a4465582f..e8b491b3cebe56ccfb0a454fabb055fef9cf8f78 100644
|
|
--- a/tools/mtd-utils/patches/136-mkfs.ubifs-xz-support.patch
|
|
+++ b/tools/mtd-utils/patches/136-mkfs.ubifs-xz-support.patch
|
|
@@ -1,7 +1,7 @@
|
|
--- a/Makefile
|
|
+++ b/Makefile
|
|
@@ -4,7 +4,7 @@
|
|
- VERSION = 1.5.1
|
|
+ VERSION = 1.5.2
|
|
|
|
CPPFLAGS += -D_GNU_SOURCE -I./include -I$(BUILDDIR)/include -I./ubi-utils/include $(ZLIBCPPFLAGS) $(LZOCPPFLAGS) $(UUIDCPPFLAGS)
|
|
-CPPFLAGS += -I./include/linux/lzma
|
|
diff --git a/tools/mtd-utils/patches/137-no_extern_inline.patch b/tools/mtd-utils/patches/137-no_extern_inline.patch
|
|
deleted file mode 100644
|
|
index d871d670d294797dac288968d82a1cd9132fc129..0000000000000000000000000000000000000000
|
|
--- a/tools/mtd-utils/patches/137-no_extern_inline.patch
|
|
+++ /dev/null
|
|
@@ -1,41 +0,0 @@
|
|
---- a/mkfs.ubifs/hashtable/hashtable_itr.c
|
|
-+++ b/mkfs.ubifs/hashtable/hashtable_itr.c
|
|
-@@ -35,18 +35,6 @@ hashtable_iterator(struct hashtable *h)
|
|
- }
|
|
-
|
|
- /*****************************************************************************/
|
|
--/* key - return the key of the (key,value) pair at the current position */
|
|
--/* value - return the value of the (key,value) pair at the current position */
|
|
--
|
|
--void *
|
|
--hashtable_iterator_key(struct hashtable_itr *i)
|
|
--{ return i->e->k; }
|
|
--
|
|
--void *
|
|
--hashtable_iterator_value(struct hashtable_itr *i)
|
|
--{ return i->e->v; }
|
|
--
|
|
--/*****************************************************************************/
|
|
- /* advance - advance the iterator to the next element
|
|
- * returns zero if advanced to end of table */
|
|
-
|
|
---- a/mkfs.ubifs/hashtable/hashtable_itr.h
|
|
-+++ b/mkfs.ubifs/hashtable/hashtable_itr.h
|
|
-@@ -28,7 +28,7 @@ hashtable_iterator(struct hashtable *h);
|
|
- /* hashtable_iterator_key
|
|
- * - return the value of the (key,value) pair at the current position */
|
|
-
|
|
--extern inline void *
|
|
-+static inline void *
|
|
- hashtable_iterator_key(struct hashtable_itr *i)
|
|
- {
|
|
- return i->e->k;
|
|
-@@ -37,7 +37,7 @@ hashtable_iterator_key(struct hashtable_
|
|
- /*****************************************************************************/
|
|
- /* value - return the value of the (key,value) pair at the current position */
|
|
-
|
|
--extern inline void *
|
|
-+static inline void *
|
|
- hashtable_iterator_value(struct hashtable_itr *i)
|
|
- {
|
|
- return i->e->v;
|
|
diff --git a/tools/mtd-utils/patches/300-libfec_use_standard_unsigned_long.patch b/tools/mtd-utils/patches/300-libfec_use_standard_unsigned_long.patch
|
|
deleted file mode 100644
|
|
index 73a68b5860928ed9afb737d85995748346e0085a..0000000000000000000000000000000000000000
|
|
--- a/tools/mtd-utils/patches/300-libfec_use_standard_unsigned_long.patch
|
|
+++ /dev/null
|
|
@@ -1,35 +0,0 @@
|
|
---- a/lib/libfec.c
|
|
-+++ b/lib/libfec.c
|
|
-@@ -61,8 +61,6 @@ struct timeval {
|
|
- };
|
|
- #define gettimeofday(x, dummy) { (x)->ticks = clock() ; }
|
|
- #define DIFF_T(a,b) (1+ 1000000*(a.ticks - b.ticks) / CLOCKS_PER_SEC )
|
|
--typedef unsigned long u_long ;
|
|
--typedef unsigned short u_short ;
|
|
- #else /* typically, unix systems */
|
|
- #include <sys/time.h>
|
|
- #define DIFF_T(a,b) \
|
|
-@@ -75,12 +73,12 @@ typedef unsigned short u_short ;
|
|
- t = x.tv_usec + 1000000* (x.tv_sec & 0xff ) ; \
|
|
- }
|
|
- #define TOCK(t) \
|
|
-- { u_long t1 ; TICK(t1) ; \
|
|
-+ { unsigned long t1 ; TICK(t1) ; \
|
|
- if (t1 < t) t = 256000000 + t1 - t ; \
|
|
- else t = t1 - t ; \
|
|
- if (t == 0) t = 1 ;}
|
|
-
|
|
--u_long ticks[10]; /* vars for timekeeping */
|
|
-+unsigned long ticks[10]; /* vars for timekeeping */
|
|
- #else
|
|
- #define DEB(x)
|
|
- #define DDB(x)
|
|
-@@ -625,7 +623,7 @@ init_fec(void)
|
|
- #define FEC_MAGIC 0xFECC0DEC
|
|
-
|
|
- struct fec_parms {
|
|
-- u_long magic ;
|
|
-+ unsigned long magic ;
|
|
- int k, n ; /* parameters of the code */
|
|
- gf *enc_matrix ;
|
|
- } ;
|