openwrt/include
Josef Schlehofer 382a2109c8
build: create CONTROL before writing files-sha256sum
Since APK support was added, the CONTROL directory is created only after
the checksum step. With IPK_FILES_CHECKSUMS enabled, redirecting output
to CONTROL/files-sha256sum fails for packages that do not create CONTROL
themselves. The error is hidden by "|| true", so these packages are built
without checksums and pkg_check skips them. Only base-files still gets
the file.

Create the directory before writing the checksums, as in 23.05, and
drop the "|| true", so that a failure to write the file stops the build
instead of going unnoticed.

Tested with a test package in the main, 25.12 and 24.10 SDKs. The IPKs
contain files-sha256sum matching data.tar.gz, and without the mkdir the
build now fails.

Fixes: d788ab376f ("build: add APK package build capabilities")
Signed-off-by: Josef Schlehofer <pepe.schlehofer@gmail.com>
Link: https://github.com/openwrt/openwrt/pull/26257
Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
2026-11-01 11:40:56 +01:00
..
site build: start the configure cache cold when its answers may be stale 2026-09-22 20:29:59 +02:00
autotools.mk include: autotools: remove .la files from host staging 2026-10-29 14:55:37 +01:00
bpf.mk build: bpf: remap build paths in BTF line info 2026-09-25 09:13:47 +02:00
cmake.mk build: pass Rust variables to CMake packages 2026-10-30 12:06:08 +02:00
debug.mk
…
default-packages.mk
…
depends.mk build: hash the package files only once per Makefile 2026-09-22 18:18:58 +02:00
device_table.txt
…
download.mk build: add cargo vendor download methods 2026-10-30 12:06:08 +02:00
feeds.mk build: list the available feeds only when needed 2026-09-22 18:18:58 +02:00
hardened-ld-pie.specs
…
hardening.mk
…
host-build.mk build: cache the autoconf results of a package that opts in 2026-09-22 18:18:58 +02:00
image-commands.mk build: read full blocks from pipes in image headers 2026-10-14 18:40:19 +02:00
image.mk build: add optional DTB schema check target 2026-10-27 17:45:21 +01:00
kernel-build.mk build: add optional DTB schema check target 2026-10-27 17:45:21 +01:00
kernel-defaults.mk build: drop references to removed kernel options 2026-10-21 18:46:59 +02:00
kernel-version.mk
…
kernel.mk kernel: support building Rust in the kernel 2026-10-30 12:06:08 +02:00
logo.png
…
logo.svg
…
meson.mk tools/meson: add rust entry to meson cross file 2026-10-30 12:06:08 +02:00
netfilter.mk netfilter: drop entries for kernel symbols that no longer exist 2026-10-23 15:32:43 +02:00
nls.mk
…
openssl-module.mk
…
optee-os.mk
…
package-bin.mk
…
package-defaults.mk
…
package-dumpinfo.mk build: allow packages to build their variants in parallel 2026-09-22 18:18:58 +02:00
package-pack.mk build: create CONTROL before writing files-sha256sum 2026-11-01 11:40:56 +01:00
package-seccomp.mk
…
package.mk build: map the staging directory out of the compiler output 2026-09-22 18:46:30 +02:00
prereq-build.mk prereq-build/u-boot: add Python 3.14 support 2026-06-16 12:51:01 +02:00
prereq.mk
…
quilt.mk build: quilt.mk: fix missing newline after patch refresh 2026-09-01 11:33:25 +02:00
rootfs.mk build: drop uClibc leftovers 2026-10-21 18:46:59 +02:00
rust-host-build.mk build: add Rust package build helpers 2026-10-30 12:06:08 +02:00
rust-package.mk build: add Rust package build helpers 2026-10-30 12:06:08 +02:00
rust-values.mk tools/sccache: add sccache Rust compiler cache 2026-10-30 12:06:08 +02:00
scan.awk
…
scan.mk libstd-rust: build and package the Rust standard library 2026-10-30 12:06:08 +02:00
shell.sh
…
subdir.mk build: add optional DTB schema check target 2026-10-27 17:45:21 +01:00
target.mk build: drop references to removed kernel options 2026-10-21 18:46:59 +02:00
toolchain-build.mk
…
toplevel.mk tools/sccache: add sccache Rust compiler cache 2026-10-30 12:06:08 +02:00
trusted-firmware-a.mk trusted-firmware-a: use a reproducible build timestamp 2026-09-22 18:46:30 +02:00
u-boot.mk u-boot: update PKG_BUILD_DIR for version 2026.10+ 2026-10-11 08:55:47 +02:00
unpack.mk build: support git-src override for host builds 2026-07-07 10:46:12 +02:00
verbose.mk
…
version.mk
…