Commit Graph

2235 Commits

Author SHA1 Message Date
Michael Tremer
faccfa7075 make.sh: Don't try to create a time NS on older kernels
This is not supported on kernels < 5.6.

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2024-08-28 15:41:55 +00:00
Michael Tremer
5e8730eb9a make.sh: Bind-mount /proc as a workaround for unshare
unshare seems to want to change the mount propagation for /proc
before it has been mounted. In order to workaround that problem,
we bind-mount /proc to itself before.

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2024-08-28 15:28:42 +00:00
Michael Tremer
36c9bf685e make.sh: Bump the toolchain version
This is because of the recent update of binutils.

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2024-08-27 10:22:22 +00:00
Adolf Belka
9d58c441e2 bind: Update to version 9.20.1
- Update from version 9.16.50 to 9.20.1
- Update of rootfile
- The use of liburcu has replaced isc_qsbr in 9.19.4 and therefore the position of
   liburcu in make.sh had to be changed.
- --enable-threads, --with-libtool, --without-python & --disable-linux-caps are no longer
   reconised configure options (it looks like not recognised for a while.
   --without-python is explicitly mentioned as being removed in version 9.15.7
   The others are not mentioned in the changelog notes.
- The lib/bind9 and lib/irs directories in the source tarball have been removed. The
   The comtents of lib/bind9 have been moved to lib/isc and lib/isccfg and the contents
   of lib/irs have been moved to dns.
- The order of the make instructions had to be changed as lib/isccfg required the results
   of lib/dns and the build failed without it. Changing the order solved the build problem.
- A large number of CVE fixes have been applied between the new and old version.
	5	9.20.0
	2	9.19.21
	3	9.19.20
	1	9.19.17
	1	9.19.14
	3	9.19.9
	5	9.19.5
	1	9.19.1
	4	9.19.0
	1	9.17.19
	1	9.17.17
	2	9.17.12
	5	9.17.4
	4	9.17.2
- Changelog is too long to include here - around 5000 lines. For details see the NEWS file
   in the source tarball.

Signed-off-by: Adolf Belka <adolf.belka@ipfire.org>
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2024-08-26 08:13:25 +00:00
Michael Tremer
fb0aac9beb Start Core Update 189
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2024-08-23 09:53:22 +00:00
Michael Tremer
d1f7d501c1 Merge remote-tracking branch 'ms/toolchain-2024-08-02' into next 2024-08-23 09:51:19 +00:00
Michael Tremer
5be3501e7c make.sh: Integrate the rootfile consistency check
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2024-08-23 09:50:39 +00:00
Michael Tremer
deb9501433 make.sh: Refactor the broken rootfile check
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2024-08-23 09:33:31 +00:00
Michael Tremer
787d9428af make.sh: Fix printing the total build time
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2024-08-23 09:19:49 +00:00
Michael Tremer
2b4d457c2f Revert "make.sh: Swap mount propagation"
This reverts commit f3c360cd6e.

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2024-08-21 14:36:11 +00:00
Michael Tremer
9a07118b71 make.sh: Remove the brackets from build options
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2024-08-21 14:29:58 +00:00
Michael Tremer
048d2be91a make.sh: Remove all traces of KCFG
This variable is no longer been used and has been abused way too much in
the past. May it rest in pieces.

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2024-08-20 16:08:32 +00:00
Michael Tremer
0a110703ca Revert "make.sh: Fix build with kernels < 6.0.0"
This reverts commit 8ea702f3f8.

This commit seems to introduce many more regressions when building
packages which I cannot easily reproduce.

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2024-08-20 08:39:24 +00:00
Michael Tremer
9db251ee0b linux: Tidy up the messy KVER variable
This variable never actually held the kernel version. There were always
suffixes appended and other things changed about it. This makes it a lot
simpler as this variable now holds the actual kernel version.

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2024-08-19 18:09:17 +00:00
Michael Tremer
8ea702f3f8 make.sh: Fix build with kernels < 6.0.0
unshare(8) seems to fail with kernels older than 6.0.0 when mounting
the /proc filesystem in the inner namespace. This seems to be an bug
where unshare does not even try to mount the /proc filesystem but tries
to make its mount propagation private.

This is now solved in that way that we will use unshare on newer kernels
but will fall back on manually mounting the /proc filesystem once we have
entered the chroot environment.

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2024-08-19 18:06:23 +00:00
Michael Tremer
f3c360cd6e make.sh: Swap mount propagation
When we create the outer mount namespace, we still want to receive any
mounts from the host system which is why we set it to slave.

The second mount namespace should be a copy of the outer one but should not
propagate anything back to the outer mount namespace.

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2024-08-19 18:05:16 +00:00
Michael Tremer
79ed909531 autoconf-archive: New package
These macros are needed to run autoreconf for db-5.3.28.

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2024-08-19 10:01:01 +00:00
Michael Tremer
a1f7518cef make.sh: Bump the toolchain version
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2024-08-19 10:01:01 +00:00
Michael Tremer
5e45d49e97 make.sh: Don't abort the build if the terminal is being resized
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2024-08-16 15:57:12 +00:00
Michael Tremer
7eecaf4e71 make.sh: Forward the proxy configuration to the chroot shell
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2024-08-15 15:44:31 +00:00
Michael Tremer
ecacbaacba make.sh: Cleanup the images directory, too
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2024-08-08 18:31:01 +00:00
Michael Tremer
3e0719398a make.sh: Fix passing the build directory find-dependencies
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2024-08-08 18:30:15 +00:00
Michael Tremer
f5160566b2 make.sh: Bring up the loopback device in the new namespace
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2024-08-06 16:17:39 +00:00
Michael Tremer
07358a9fc5 make.sh: Grant network access when downloading packages
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2024-08-06 14:11:04 +00:00
Michael Tremer
dae1ac41e3 make.sh: Bind-mount /etc/resolv.conf and /etc/hosts
This allows us to have name resolution in the shell without any manual
configuration.

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2024-08-06 13:45:08 +00:00
Michael Tremer
91942800f9 make.sh: Entirely disable network access in the build environment
Except when in the shell.

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2024-08-06 13:38:30 +00:00
Michael Tremer
64feedbcf6 br2684ctl: Drop package
This tool is now part of linux-atm.

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2024-08-06 09:12:45 +00:00
Michael Tremer
cf4b9118e3 make.sh: Show the packages that failed to download
https://lists.ipfire.org/hyperkitty/list/development@lists.ipfire.org/thread/VCTWCJKYKCGN7TUKMYWVJY3QUX4FIDT5/

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2024-08-02 17:56:17 +00:00
Michael Tremer
357211c24f Start Core Update 188
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2024-07-22 15:21:21 +00:00
Michael Tremer
a44e11e8bb make.sh: Only catch the error code that triggered the timer
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2024-07-22 15:21:20 +00:00
Michael Tremer
b368b19020 make.sh: Ignore directories as packages
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2024-07-22 15:21:20 +00:00
Michael Tremer
59e07d4ba8 make.sh: Store the PID in a variable to avoid $! being overwritten
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2024-07-22 15:21:20 +00:00
Michael Tremer
63faf35972 make.sh: Fix checksum generation of the toolchain once again
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2024-07-22 15:21:20 +00:00
Michael Tremer
b1cf1d9cfb make.sh: Join compression arguments as a string
Otherwise, the array gets split and tar cannot identify which option
belongs to where.

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2024-07-22 15:21:20 +00:00
Michael Tremer
a8e1086954 make.sh: Use the print_line function for correct padding
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2024-07-22 15:21:20 +00:00
Michael Tremer
2c33bdf0e5 make.sh: Don't be verbose when creating the packages dir
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2024-07-22 15:21:20 +00:00
Michael Tremer
56312598b3 make.sh: Erase the line when resizing the screen
This should leave less clutter, but there is still some.

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2024-07-22 15:21:20 +00:00
Michael Tremer
9bdc9a5b80 make.sh: Remove the PWD variable
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2024-07-22 15:21:20 +00:00
Michael Tremer
0de9b40351 make.sh: Refactor the terminal output
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2024-07-22 15:21:20 +00:00
Michael Tremer
1ab2481875 make.sh: Enable the timer for the toolchain, too
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2024-07-22 15:21:20 +00:00
Michael Tremer
a3bd0672b3 make.sh: Always create /root in the chroot environment
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2024-07-22 15:21:20 +00:00
Michael Tremer
75493bbcb3 make.sh: Fix mounting the QEMU helper binary
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2024-07-22 15:21:20 +00:00
Michael Tremer
1090b297aa make.sh: Set PATH before entering the chroot environment
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2024-07-22 15:21:20 +00:00
Michael Tremer
54d59f56c2 make.sh: Fix toolchain checksum validation
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2024-07-22 15:21:20 +00:00
Michael Tremer
c08841bb49 make.sh: Export BUILD_DIR and LOG_DIR
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2024-07-22 15:21:20 +00:00
Michael Tremer
829f2b465e make.sh: Create the /tools symlink to the right place
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2024-07-22 15:21:20 +00:00
Michael Tremer
a28226714b make.sh: Pass extra options in lfsmake1
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2024-07-22 15:21:20 +00:00
Michael Tremer
64192acb7f make.sh: Use less aggressive compression for Zstandard
Otherwise this takes way too long.

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2024-07-22 15:21:20 +00:00
Michael Tremer
d4ad987a5d make.sh: Drop stripping
This will massively improve the build process because we will only strip
the files that we need. The build system will remain as is.

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2024-07-22 15:21:20 +00:00
Michael Tremer
8f1c5b617d make.sh: Correctly pass ZSTD_OPT
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2024-07-22 15:21:20 +00:00