aboutsummaryrefslogtreecommitdiffstats
path: root/tools
Commit message (Collapse)AuthorAgeFilesLines
* tools/xz: update to 5.4.3Nick Hainke2023-05-061-2/+2
| | | | | | | Changelog: https://git.tukaani.org/?p=xz.git;a=blob;f=NEWS;h=2f4d35adca6198671434d2988803cc9316ad1ec8;hb=c247d06e1f6cada9a76f4f6225cbd97ea760f52f#l5 Signed-off-by: Nick Hainke <vincent@systemli.org>
* tools/coreutils: bootstrap to local gnulib sourceMichael Pratt2023-05-043-0/+73
| | | | | | | | | | | | | | | | | | | | | Using the local gnulib source during bootstrap allows for fine-grained control over the macros and source files for use with coreutils but part of gnulib instead of coreutils, without having to wait for a release or deal with gnulib as a git submodule. In this case, the execution of autotools must be skipped by force. Autoconf and Automake during bootstrap on coreutils only works right when using directly checked-out source. There is a symbol in gnulib, @GNULIB_TIME@ that is not yet defined in coreutils source, so we use the backup of lib/time.in.h instead of the one provided by gnulib source. Signed-off-by: Michael Pratt <mcpratt@pm.me>
* tools/libtool: bootstrap to local gnulib sourceMichael Pratt2023-05-042-3/+17
| | | | | | | | | | | Using the local gnulib source during bootstrap allows for fine-grained control over the macros and source files for use with libtool but part of gnulib instead of libtool, without having to wait for a release or deal with gnulib as a git submodule. Signed-off-by: Michael Pratt <mcpratt@pm.me>
* tools/gengetopt: override SUBDIRS variable with MakefileMichael Pratt2023-05-042-34/+5
| | | | | | | | | | | | | | Instead of editing the SUBDIRS variable with a patch, it can be overriden at the end of the command line when invoking Make. This tool has a series of recursive Makefiles in each subdirectory, therefore SUBDIRS is set to a pattern of Make functions so that the result is variable depending on the current subdirectory that Make is being invoked in. By eliminating the patch, autoreconf is no longer required. Signed-off-by: Michael Pratt <mcpratt@pm.me>
* tools/flex: override SUBDIRS variable with MakefileMichael Pratt2023-05-042-15/+6
| | | | | | | | | | Instead of editing the SUBDIRS variable with a patch, it can be overriden at the end of the command line when invoking Make. Skip the build for po files as well, which is causing a conflict depending on the version of gettext detected, and macros present. Signed-off-by: Michael Pratt <mcpratt@pm.me>
* tools/automake: move file requirements to higher strictnessMichael Pratt2023-05-041-0/+29
| | | | | | | | | | | | GNU standards requires certain files at the top-level directory of a package that automake is used with, mostly documentation. If one of these files happens to be missing, autoreconf would fail. Move these file requirements to the more strict 'GNITS' setting. Link: https://www.gnu.org/software/automake/manual/html_node/Strictness.html Signed-off-by: Michael Pratt <mcpratt@pm.me>
* tools/missing-macros: bump version of makeinfo alternative scriptMichael Pratt2023-05-041-1/+1
| | | | | | | | | | Some new releases of GNU tools are checking for a higher version of makeinfo than what our scripted alternative shows when working with checked-out sources instead of releases. Since this is a "fake" makeinfo we can also just fake the version. Signed-off-by: Michael Pratt <mcpratt@pm.me>
* tools/missing-macros: prefer macros provided by gnulib sourceMichael Pratt2023-05-049-1293/+2
| | | | | | | | These 7 macro files are provided by gnulib, so we can now replace these statically stored copies with the latest copy from GNU sources. Signed-off-by: Michael Pratt <mcpratt@pm.me>
* tools: add gnulib sourceMichael Pratt2023-05-043-0/+80
| | | | | | | | | | | | | | | | By having a local copy of gnulib, we can: import the latest macro fixes into any package, get rid of some statically stored macros that were otherwise missing, bootstrap GNU tools with the latest relevant source without having to wait for a release or rely on git submodules, and possibly more... The patch assists in bootstrapping by ignoring the building of po files using gettext, and also to allow a user-defined path to a program to include parameters. Signed-off-by: Michael Pratt <mcpratt@pm.me>
* tools/patchelf: update to 0.18.0Nick Hainke2023-04-291-2/+2
| | | | | | | Release Notes: https://github.com/NixOS/patchelf/releases/tag/0.18.0 Signed-off-by: Nick Hainke <vincent@systemli.org>
* tools/coreutils: update to 9.3Nick Hainke2023-04-293-148/+2
| | | | | | | | | | Update to latest bugfix release. Remove upstreamed patches: - 001-copy-fix-reflink-auto-to-fallback-in-more-cases.patch - 002-date-diagnose-f-read-errors.patch Signed-off-by: Nick Hainke <vincent@systemli.org>
* tools/isl: update to 0.26Nick Hainke2023-04-221-2/+2
| | | | | | | Changelog: https://repo.or.cz/isl.git/blob/e58af07f91c94db81627fb801fa6f52c3a7201a8:/ChangeLog Signed-off-by: Nick Hainke <vincent@systemli.org>
* tools/libressl: update to 3.7.2Nick Hainke2023-04-221-2/+2
| | | | | | | Release Notes: https://ftp.openbsd.org/pub/OpenBSD/LibreSSL/libressl-3.7.2-relnotes.txt Signed-off-by: Nick Hainke <vincent@systemli.org>
* tools/squashfs4: backport OpenWrt extended options patchChristian Marangi2023-04-203-1/+900
| | | | | | | | | | | | | Due to us keeping a patch around for years and never proposing it to squashfs4 repository, we resulted in having the same squashfs4 version but with different supported options. (openwrt patched -- upstream) To workaround this problem, a non-standard option was required. To not have surprise on tool bump, backport the patch and add the new config option required to enable these extended non-standard options. Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
* tools/lz4: build with mesonRosen Penev2023-04-202-23/+12
| | | | | | | | | | | | | | | | Simplifies Makefile and speeds up compilation. Before: Executed in 68.00 secs fish external usr time 104.17 secs 1.33 millis 104.17 secs sys time 4.29 secs 0.35 millis 4.29 secs After: Executed in 27.98 secs fish external usr time 25.18 secs 1.32 millis 25.18 secs sys time 3.31 secs 0.35 millis 3.31 secs Signed-off-by: Rosen Penev <rosenp@gmail.com>
* tools/dwarves: update to 1.25Nick Hainke2023-04-191-5/+3
| | | | | | | | | Remove AUTORELEASE and HOST_BUILD_PARALLEL. Release Notes: https://lore.kernel.org/dwarves/ZDG4qxirpIfmbiip@kernel.org/T/#u Signed-off-by: Nick Hainke <vincent@systemli.org>
* tools/cmake: update to 3.26.3Nick Hainke2023-04-191-2/+2
| | | | | | | | | Release Notes: - https://www.kitware.com/cmake-3-26-1-available-for-download/ - https://www.kitware.com/cmake-3-26-2-available-for-download/ - https://www.kitware.com/cmake-3-26-3-available-for-download/ Signed-off-by: Nick Hainke <vincent@systemli.org>
* tools/bzip2: add `bzip2` binariesTony Butler2023-04-184-0/+484
| | | | | | | | | | | | | | | `bzip2` is the standard executable for bzip2 compression this includes development includes and both static and shared libs (libbz2) which can be used by other packages the initramfs generator offers the BZIP2 option but there was no executable to support it, and worked only via side effect of having a system-installed version of bzip2, which could be less predictable Signed-off-by: Tony Butler <spudz76@gmail.com> [ remove unintended change ] Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
* Revert "tools/bzip2: add `bzip2` binaries"Christian Marangi2023-04-184-484/+1
| | | | | | | | | This reverts commit 394d7134ec42f14ddb91769c737098753fa68266. The commit has unintentded change that cause compilation error with SDK or LZO compression. Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
* tools/bzip2: add `bzip2` binariesTony Butler2023-04-184-1/+484
| | | | | | | | | | | | | `bzip2` is the standard executable for bzip2 compression this includes development includes and both static and shared libs (libbz2) which can be used by other packages the initramfs generator offers the BZIP2 option but there was no executable to support it, and worked only via side effect of having a system-installed version of bzip2, which could be less predictable Signed-off-by: Tony Butler <spudz76@gmail.com>
* firmware-utils: update to latest HEADDavid Bauer2023-04-181-3/+3
| | | | | | e8191eb tplink-safeloader: increase support-list size for AX23 v1 Signed-off-by: David Bauer <mail@david-bauer.net>
* tools/libdeflate: update to 1.18Nick Hainke2023-04-171-3/+3
| | | | | | | Release Notes: https://github.com/ebiggers/libdeflate/blob/master/NEWS.md#version-118 Signed-off-by: Nick Hainke <vincent@systemli.org>
* firmware-utils: update to latest HEADDavid Bauer2023-04-121-3/+3
| | | | | | 6a58f45 tplink-safeloader: add US-CA-TW support-list entries for Archer AX23v1 Signed-off-by: David Bauer <mail@david-bauer.net>
* tools/squashfs4: refresh multiple lzma configuration option patchChristian Marangi2023-04-122-25/+45
| | | | | | | | Refresh multiple lzma configuration option patch with new version proposed upstream. (Reintroduce -Xe option and add more checks and general better code quality) Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
* tools/mkimage: update to 2023.04Nick Hainke2023-04-112-6/+6
| | | | | | Update to latest version. Signed-off-by: Nick Hainke <vincent@systemli.org>
* tools/mtools: update to 4.0.43Nick Hainke2023-04-081-2/+2
| | | | | | | Release Notes: https://lists.gnu.org/archive/html/info-gnu/2023-03/msg00006.html Signed-off-by: Nick Hainke <vincent@systemli.org>
* tools/zstd: update to 1.5.5Nick Hainke2023-04-071-2/+2
| | | | | | | Release Notes: https://github.com/facebook/zstd/releases/tag/v1.5.5 Signed-off-by: Nick Hainke <vincent@systemli.org>
* tools/7z: Allow building on alpineOlliver Schinagl2023-04-022-0/+86
| | | | | | | | | | | | When using alpine as host, things start to fail. Lets pull in the upstream alpine patches to make things work. This should not affect other hosts. Note, that Alpine has the '_GNU_SOURCE' define in the APKBUILD file, but here we add this flag to the needed fix flags patch, which does similar things too. Signed-off-by: Olliver Schinagl <oliver@schinagl.nl>
* tools/ccache: bump to 4.8Linhui Liu2023-04-022-3/+3
| | | | | | | Release Notes: https://ccache.dev/releasenotes.html#_ccache_4_8 Signed-off-by: Linhui Liu <liulinhui36@gmail.com>
* tools/ccache: always disable documentation compilationLinhui Liu2023-04-021-5/+1
| | | | | | | | | Speed up compilation. Also remove useless include target.mk (b492e69bd2d09aaa2c3c76b52203cbb3527eb2f7). Signed-off-by: Linhui Liu <liulinhui36@gmail.com>
* tools/coreutils: update to 9.2Georgi Valkov2023-04-024-98/+148
| | | | | | | | | | | | | | | | | | | | | This resolves an error when building toolchain/musl on macOS due to improper hole-detection caused by a bug in macOS/APFS [1]. As long as we don't reconfigure, 001-m4.patch is not needed. If we keep it, it will force reconfigure the project, since m4 files are changed. This works, but may not be optimal, because the build should use files from coreutils/m4, but OpenWRT uses legacy files from staging_dir/host/share/aclocal [2]. backport a couple of upstream patches date: diagnose -f read errors copy: fix --reflink=auto to fallback in more cases [1] https://debbugs.gnu.org/cgi/bugreport.cgi?bug=61386 [2] https://github.com/openwrt/openwrt/pull/12233#issuecomment-1481097456 Co-developed-by: Michael Pratt <mcpratt@pm.me> Signed-off-by: Georgi Valkov <gvalkov@gmail.com>
* tools/squashfs4: bump to 4.6.1Linhui Liu2023-04-0110-506/+4
| | | | | | | | | | | | | | | | | Changelogs: https://github.com/plougher/squashfs-tools/blob/4.6.1/CHANGES Removed upstreamed patches: - 001-Unsquashfs-Add-and-make-some-header-includes-conditi.patch - 002-Mksquashfs-Make-sysinfo-conditional.patch - 003-Only-use-available-CPUs.patch - 004-action-rework-strdupa-with-POSIX-strdup-and-free.patch - 005-Don-t-use-sigwaitinfo-sigtimedwait-if-not-supported.patch - 006-Move-sysinfo.h-into-the-linux-only-section-should-fi.patch - 007-Unsquashfs-fix-compilation-error-for-missing-sysctl..patch - 100-portability.patch Signed-off-by: Linhui Liu <liulinhui36@gmail.com>
* tools/squashfs4: enable parallel buildsLinhui Liu2023-04-011-1/+3
| | | | | | | | | | | | | | Run `time make tools/squashfs4/{clean,compile} -j$(nproc)` Before: real 0m8.803s user 0m12.415s sys 0m1.317s After: real 0m13.781s user 0m13.290s sys 0m1.528s Signed-off-by: Linhui Liu <liulinhui36@gmail.com>
* tools/libtool: clean up build recipesMichael Pratt2023-03-271-6/+3
| | | | | | | | | Host/Clean/Default is no longer defined. Use the uninstall makefile target to remove the obsolete m4 files, and more. Signed-off-by: Michael Pratt <mcpratt@pm.me>
* autotools: remove specialized version of libtoolMichael Pratt2023-03-271-2/+0
| | | | | | | | | | | | | Remove the specialized copy of libtool which was used for linking to uClibc++, which is now removed. Also remove references to the deprecated fixup targets that invoked this specialized libtool, which no package uses. Ref: 6b2ed6101 ("uclibc++: remove") Ref: c10515db6 ("re-enable the libtool PKG_BUILD_DEPENDS for PKG_FIXUP") Ref: 246a5b334 ("More libtool madness") Signed-off-by: Michael Pratt <mcpratt@pm.me>
* tools/automake: verbose variable compatibilityMichael Pratt2023-03-271-0/+59
| | | | | | | | | | | | | | | An old patch attempted to harmonize the way that both Openwrt and Automake uses the $(V) variable. However, it was reverted because of the side-effects. This method is more simple and just allows Automake to accept any string as part of the verbosity toggle, falling back to the default if null. Ref: e6901bf90 ("tools/automake: Revert "Do not use $(V) - force AM_V=1"") Ref: 43365ca66 ("Do not use $(V) - force AM_V=1") Signed-off-by: Michael Pratt <mcpratt@pm.me>
* tools/autoconf-archive: bump to 2023.02.20Linhui Liu2023-03-201-2/+2
| | | | | | Changelog included in package. Signed-off-by: Linhui Liu <liulinhui36@gmail.com>
* tools/cmake: bump to 3.26.0Linhui Liu2023-03-203-5/+5
| | | | | | | Release Notes: https://cmake.org/cmake/help/v3.26/release/3.26.html Signed-off-by: Linhui Liu <liulinhui36@gmail.com>
* tools/xz: bump to 5.4.2Linhui Liu2023-03-201-2/+2
| | | | | | | Release Notes: https://git.tukaani.org/?p=xz.git;a=blob;f=NEWS;hb=HEAD Signed-off-by: Linhui Liu <liulinhui36@gmail.com>
* tools/libressl: bump to 3.7.1Linhui Liu2023-03-201-3/+2
| | | | | | | Release Notes: https://ftp.openbsd.org/pub/OpenBSD/LibreSSL/libressl-3.7.1-relnotes.txt Signed-off-by: Linhui Liu <liulinhui36@gmail.com>
* tools: update elf.hMathew McBride2023-03-191-215/+1535
| | | | | | | | | | | | | | | | | | | | | | OpenWrt contains a 2012 copy of glibc's elf.h, which predates the introduction of some newer architectures like Arm64 and RISC-V. Linux 5.13 introduced the "gen-hyprel" tool into the kernel compile (when virtualization/KVM is enabled) which requires EM_AARCH64 to be defined. arch/arm64/kvm/hyp/nvhe/gen-hyprel.c: In function 'init_elf': arch/arm64/kvm/hyp/nvhe/gen-hyprel.c:289:43: error: 'EM_AARCH64' undeclared (first use in this function); did you mean 'EM_IA_64'? 289 | assert_eq(elf16toh(elf.ehdr->e_machine), EM_AARCH64, "%u"); | ^~~~~~~~~~ Update the copy of elf.h from the latest glibc to fix this. Compile-tested: ath79, armvirt, mpc85xx, x86 Run-tested: armvirt Signed-off-by: Mathew McBride <matt@traverse.com.au>
* tools/autoconf: ensure relocatabilityJo-Philipp Wich2023-03-161-2/+5
| | | | | | | | | | | Upstream introduced a new `trailer.m4` macro file referenced by the absolute build path of autoconf. Make sure that this is covered by the `000-relocatable.patch` as well. This should fix various SDK build failures related to autoconf. Fixes: 030447b8f4 ("tools/autoconf: bump to 2.71") Signed-off-by: Jo-Philipp Wich <jo@mein.io>
* firmware-utils: update to latest HEADDavid Bauer2023-03-151-3/+3
| | | | | | | | | | | | | | | | a2c80c5 tplink-safeloader: add Archer AX23 3c04ecf tplink-safeloader: add Cloud image detection 87e593d tplink-safeloader: add QNEW image detection 34fbf48 tplink-safeloader: add vendor info support d86cc1b tplink-safeloader: refactor image ingestion 5d3a14a tplink-safeloader: ignore NULLs in version info 71ddbcd tplink-safeloader: don't end-pad sysupgrade file a29817e tplink-safeloader: stop at nameless partition 0c8a724 tplink-safeloader: replace hardcoded offsets b82a521 tplink-safeloader: use enum for table types 201a6c0 tplink-safeloader: stricter free_image_partition() Signed-off-by: David Bauer <mail@david-bauer.net>
* tools/libtool: bump to 2.4.7Rosen Penev2023-03-139-242/+18
| | | | | | | | Remove upstreamed patch and refresh others. Signed-off-by: Rosen Penev <rosenp@gmail.com> [rebased and refreshed patches again] Signed-off-by: Michael Pratt <mcpratt@pm.me>
* tools/libtool: bump to 2.4.6Eneas U de Queiroz2023-03-1310-326/+395
| | | | | | | | | | | | | | | | | | | | | | | | | | | This updates libtool to its current release, from 2015. Current patches were renumbered and given a description text. The fix in 160-passthrough-ssp.patch is no longer needed. A patch to speed up build was cherry-picked, and another openwrt specific patch was needed to not use quotes in $(SHELL), to acommodate our "SHELL=/usr/bin/env bash" usage. The already present call to ./bootstrap ensures that generated files are refreshed, so the patches are applied only to their sources. Also, that bootstrap call was adjusted to run at the appropriate time when QUILT=1. References below are relevant commits to upstream libtool regarding some of the changes to patches. This commit is being reapplied after previous revertion, and after some editing. The fix for the issue that prompted reverting is the parent of this commit. Ref: 435cb8d71 ("libtoolize: simplify runtime by substituting pkgauxdir") Ref: 3cf11cfe2 ("libtoolize: rewritten over funclib.sh instead of general.m4sh") Signed-off-by: Eneas U de Queiroz <cotequeiroz@gmail.com> Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net> [refactored to simplify patch changes, expanded patches, added upstream references] Signed-off-by: Michael Pratt <mcpratt@pm.me>
* tools/libtool: fix hard-coded pathsSebastian Kemper2023-03-131-12/+22
| | | | | | | | | | | | | | | | | | | | | | | | | | | | libtoolize hardcodes some paths. This is fine when building libtool and then using it (for example in OpenWrt's buildroot). But when using an SDK the paths are most likely different. For example, when building util-linux within an SDK we're greeted with the following message: libtoolize: error: $pkgauxdir is not a directory: '/path/to/openwrt/staging_dir/host/share/libtool/build-aux' This is because staging_dir/host/bin/libtoolize contains the following hard-coded paths from when the SDK was built in the first place: prefix="/path/to/openwrt/staging_dir/host" datadir="/path/to/openwrt/staging_dir/host/share" pkgauxdir="/path/to/openwrt/staging_dir/host/share/libtool/build-aux" pkgltdldir="/path/to/openwrt/staging_dir/host/share/libtool" aclocaldir="/path/to/openwrt/staging_dir/host/share/aclocal" This commits updates 000-relocatable.patch to correct the paths, relative to "$STAGING_DIR_HOST". Ref: 96e05e2e3 ("libtool: Revert "libtool: bump to 2.4.6"") Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net> [adapted to older libtool version before bumping, use STAGING_DIR_HOST] Signed-off-by: Michael Pratt <mcpratt@pm.me>
* tools/libtool: add commit messages to patchesMichael Pratt2023-03-136-0/+71
| | | | | | | | | | | | Add commit messages to patches as intended by the last bump to libtool which had to be reverted. This allows for a cleaner diff later, removing this clutter from the complex changes to patches that are required to bump to the latest libtool version. Ref: c377d874b ("libtool: bump to 2.4.6") Signed-off-by: Michael Pratt <mcpratt@pm.me>
* tools/libtool: refresh patchesMichael Pratt2023-03-133-11/+8
| | | | | | | | | Preparation for bumping libtool several versions at once, which includes some complex changes to patches. Remove an empty line change from a patch. Signed-off-by: Michael Pratt <mcpratt@pm.me>
* tools/automake: bump to 1.16.5Michael Pratt2023-03-133-65/+21
| | | | | | | | | | | | | | | | | | | | | Automake releases 1.16.2 to 1.16.5 are major releases, the two before are minor releases. The first patch needed rewriting, some lines moved to be consistent with the same change upstream in other files. This also simplifies the patch. Second patch refreshed. Links to changelogs in order, oldest to newest. Link: https://lists.gnu.org/archive/html/info-gnu/2018-02/msg00008.html Link: https://lists.gnu.org/archive/html/info-gnu/2018-03/msg00002.html Link: https://lists.gnu.org/archive/html/info-gnu/2020-03/msg00009.html Link: https://lists.gnu.org/archive/html/info-gnu/2020-11/msg00005.html Link: https://lists.gnu.org/archive/html/info-gnu/2021-07/msg00013.html Link: https://lists.gnu.org/archive/html/info-gnu/2021-10/msg00000.html Signed-off-by: Michael Pratt <mcpratt@pm.me>
* tools/autoconf: bump to 2.71Michael Pratt2023-03-134-128/+47
| | | | | | | | | | | | | | | | | | | | | | | | | | Autoconf release 2.71 is a bugfix release of 2.70 Links provided are the changelog of 2.70 [1] [2] and the announcement of 2.71 [3] The first patch needed to be rewritten. Some of the lines in the patch were moved to be consistent with the same change added upstream in other similar files. Second and third patches are no longer needed, Emacs can now be disabled at the configure stage, and support for musl was added upstream. The patch now causes help2man to be required for installing man pages, but we don't need them. There is no way to disable man pages build with the configure script, so use make to touch the files with the build target install-man1. Link: https://lists.gnu.org/archive/html/autotools-announce/2020-12/msg00001.html Link: https://lwn.net/Articles/839395 Link: https://lists.gnu.org/archive/html/info-gnu/2021-01/msg00017.html Signed-off-by: Michael Pratt <mcpratt@pm.me>