1
0
Fork 0
mirror of https://git.openwrt.org/openwrt/openwrt.git synced 2024-05-11 18:16:22 +02:00
openwrt/include
Eneas U de Queiroz 8cf4d4df55 download: improve handling of invalid local files
4e19cbc5533: [download: handle possibly invalid local tarballs] added a
FORCE rule to downloaded files, so that they will be always checked by
download.pl.

As a side-effect, check-compile will fail, forcing unnecessary package
rebuilds.
The check-compile.txt log shows (for libxml2 for example):
  Considering target file '.../dl/libxml2-2.9.12.tar.gz'.
    ...
    prerequisite 'FORCE' of target '.../dl/libxml2-2.9.12.tar.gz' does
    not exist.
    Must remake target '.../dl/libxml2-2.9.12.tar.gz'.
    ...
   Giving up on target file '...libxml2-2.9.12/.prepared_...'.
   Giving up on target file '...libxml2-2.9.12/.configured_...'.
   Giving up on target file '...libxml2-2.9.12/.built'.
   Giving up on target file '...stamp/.libxml2_installed'.
  Giving up on target file '.compile'.

Then the package is rebuilt even if it is not otherwise needed.

To fix this, instead of always forcing the download target to be remade,
check its hash first: if it matches, then the FORCE is not added.

Signed-off-by: Eneas U de Queiroz <cotequeiroz@gmail.com>
2021-11-01 20:18:55 +01:00
..
site Revert "build: use config.site generated by autoconf-lean, drop hardcoded sitefiles" 2021-03-02 11:35:45 +00:00
autotools.mk build: prevent dupes in autotools.mk 2021-03-01 16:16:32 +00:00
bpf.mk build: fix bpf toolchain dependency for qosify 2021-11-01 18:41:20 +01:00
cmake.mk include/cmake.mk: fix host builds with CMAKE_BINARY_SUBDIR 2021-10-20 11:35:34 +02:00
debug.mk build: use SPDX license tags 2021-02-05 14:54:47 +01:00
depends.mk build: introduce $(MKHASH) 2021-05-13 15:13:15 +02:00
device_table.txt image: ensure that /dev/console exist in rootfs images 2013-08-27 12:02:58 +00:00
download.mk download: improve handling of invalid local files 2021-11-01 20:18:55 +01:00
feeds.mk build: ensure that dash isn't prepended twice to abi version suffix 2021-06-15 09:58:33 +02:00
hardened-ld-pie.specs build: add hardened builds with PIE (ASLR) support 2018-01-27 16:46:45 +01:00
hardening.mk build: use SPDX license tags 2021-02-05 14:54:47 +01:00
host-build.mk download: improve handling of invalid local files 2021-11-01 20:18:55 +01:00
image-commands.mk build: move elecom-wrc-gs-factory to image-commands.mk 2021-10-30 22:05:25 +02:00
image.mk image: define DEVICE_DTS_DELIMITER as per-device variable 2021-10-24 11:19:58 +02:00
kernel-build.mk generic: Kconfig: exit on unset symbol 2021-08-10 13:14:52 +02:00
kernel-defaults.mk build: fix regression for kernels < 5.10 2021-05-25 19:46:13 +02:00
kernel-version.mk kernel: bump 5.10 to 5.10.76 2021-10-30 21:17:20 +02:00
kernel.mk build: use -nostdinc and -isystem in NOSTDINC_FLAGS for out-of-tree kernel modules 2021-03-18 10:53:26 +01:00
logo.png include: update logo with better kerning 2021-01-18 09:31:39 -10:00
logo.svg include: update logo with better kerning 2021-01-18 09:31:39 -10:00
meson.mk tools/meson: update to 0.60.0 2021-10-30 21:17:20 +02:00
netfilter.mk netfilter: remove no-op kconfig symbols 2021-05-01 00:37:15 +02:00
nls.mk build: use SPDX license tags 2021-02-05 14:54:47 +01:00
package-bin.mk build: use SPDX license tags 2021-02-05 14:54:47 +01:00
package-defaults.mk build: use SPDX license tags 2021-02-05 14:54:47 +01:00
package-dumpinfo.mk build: drop ABI version from metadata 2021-02-14 19:41:52 +01:00
package-ipkg.mk build: prepend ABI suffixes with a dash if package name ends with digit 2021-06-14 15:14:19 +02:00
package-seccomp.mk build: use SPDX license tags 2021-02-05 14:54:47 +01:00
package.mk download: improve handling of invalid local files 2021-11-01 20:18:55 +01:00
prereq-build.mk build: prereq detect Python 3.10 for `python3` binary 2021-10-10 15:25:58 +01:00
prereq.mk Revert "build: replace which with Bash command built-in" 2021-03-03 22:51:39 +01:00
quilt.mk build: introduce $(MKHASH) 2021-05-13 15:13:15 +02:00
rootfs.mk build: reduce cleanup binary calls in rootfs.mk 2020-12-05 22:07:00 -10:00
scan.awk build: propagate override information to .packageinfo 2015-02-09 12:09:31 +00:00
scan.mk build: introduce $(MKHASH) 2021-05-13 15:13:15 +02:00
shell.sh build: use mkhash to replace various quirky md5sum/openssl calls 2017-01-05 11:09:12 +01:00
subdir.mk build: use SPDX license tags 2021-02-05 14:54:47 +01:00
target.mk buildsystem: add CONFIG_SECCOMP 2021-10-16 02:00:47 +01:00
toolchain-build.mk build: use SPDX license tags 2021-02-05 14:54:47 +01:00
toplevel.mk toplevel.mk: remove legacy packages feed from 'make distclean' 2021-02-20 13:11:10 -10:00
trusted-firmware-a.mk trusted-firmware-a: fix project name spelling 2021-02-13 20:11:57 +00:00
u-boot.mk u-boot.mk: always link host libraries static 2021-10-24 18:00:49 +02:00
uclibc++.mk uclibc++: remove 2021-10-24 18:20:50 +02:00
unpack.mk include: use cpio from staging dir 2021-02-28 00:09:09 +00:00
verbose.mk build: use SPDX license tags 2021-02-05 14:54:47 +01:00
version.mk build: use SPDX license tags 2021-02-05 14:54:47 +01:00