Commit graph

1279 commits

Author SHA1 Message Date
fosslinux
a67db8fcbd Make patches relative to where tarballs are extracted
Ever since an old patch version, it has (for reasonable security
reasons) not supported patched with ../ in the filename.
Many of our patches have been relying on this behaviour being OK,
because we start off with an ancient patch version that didn't perform
such checks. As soon as we need this behaviour after we build a newer
patch though, we will have problems.

So, let's change the policy.
Patches are relative to where tarballs are extracted, rather than the
"working directory" - e.g. have patches for `coreutils-9.4/src/cp.c`
instead of `src/cp.c`.
Keeping this consistent has a few implications;
- patches are applied from the build/ directory in bash era now, with
  `-p0`
- when patches are manually applied in the bash era, use `-p` as
  required, usually `-p1`
- in kaem era where patches are always manually applied, `-p1` is used
2024-12-23 15:20:42 +11:00
Andrius Štikonas
749b2bfe37
Merge pull request #482 from stikonas/openssl
Switch to different OpenSSL mirrors.
2024-10-26 11:57:56 +01:00
Andrius Štikonas
e99f21db55 Switch to different OpenSSL mirrors. 2024-10-26 00:51:34 +01:00
Andrius Štikonas
48f728622e
Merge pull request #481 from stikonas/cmp
cmp should use 0 immediate not 0 address.
2024-10-26 00:42:45 +01:00
Andrius Štikonas
9950b07204 Silence pylint errors. 2024-10-25 18:15:58 +01:00
Andrius Štikonas
b120a39ec6 cmp should use 0 immediate not 0 address. 2024-10-24 22:24:13 +01:00
Googulator
1f272f9050
Fix formatting of instructions 2024-09-07 15:43:13 +02:00
Googulator
71ff0a0481
Merge pull request #478 from mid-kid/master
Enable _ctypes and dynamic linking for python
2024-08-02 15:09:45 +02:00
mid-kid
346d1ce4b2 Enable _ctypes and dynamic linking for python 2024-07-31 18:47:57 +02:00
Andrius Štikonas
c936c9c2b6
Merge pull request #476 from stikonas/mes-0.27
Update to mes 0.27.
2024-07-10 00:08:23 +01:00
Andrius Štikonas
185bd78ec4 Update to mes 0.27. 2024-07-08 21:25:46 +01:00
Googulator
18da5ad533
Merge pull request #471 from stikonas/mes_0.26.1
Update to mes-0.26.1.
2024-06-25 13:26:59 +02:00
Andrius Štikonas
e6ed60cec4 Update to mes-0.26.1. 2024-06-25 08:58:12 +01:00
Googulator
3116214cc6
Band-aid fix for #472 - get openssl from archive.org
While this works for now, it's not a sustainable solution.
Supporting a simpler SSL library (small enough to bundle into srcfs) such as BearSSL or WolfSSL in the first build of curl would be preferable.
2024-06-25 03:18:39 +02:00
fosslinux
e1cc51964f
Merge pull request #468 from fosslinux/configurator
Add interactive "configurator"
2024-05-29 08:51:34 +10:00
fosslinux
8291a9153d Clarify some descriptions 2024-05-28 21:57:36 +10:00
fosslinux
4c08ba4de3 Integrate configurator with rootfs.py 2024-05-28 21:57:36 +10:00
fosslinux
67d92a50f3 Allow the use of configurator under builder-hex0 2024-05-28 21:57:36 +10:00
fosslinux
e1077cbed3 Add interactive "configurator"
This is a more UX-friendly glorified bootstrap.cfg editor.
Somewhat inspired by kconfig.
2024-05-28 21:57:36 +10:00
fosslinux
e2d4782cc2 Reclaim 5MB to the Fiwix rootfs from kexec
We need just a couple more MB for configurator to be added!
The tolerances are *very* tight now...
2024-05-28 21:57:36 +10:00
fosslinux
7937797ea5 Bzip2 compression in Linux initramfs/kernel
There isn't really any reason to use gzip instead of bzip2 for the Linux
initramfs/kernel, since we have it!

Saves a few MB (~13MB as far as I can tell)
2024-05-28 21:57:36 +10:00
fosslinux
c30ace4d4c Update stage0-posix modules 2024-05-26 21:06:41 +10:00
Googulator
c37486d428
Fix spurious error message for missing prebuilts in --repo mode 2024-05-22 01:12:37 +02:00
Googulator
8884d79802
Allow use of base.tar.bz2 from previous build as early preseed
base.tar.bz2 will contain the "steps" and "external" subdirectories, which we later try to create - ensure that they are deleted when restoring an early preseed; this way base.tar.bz2 works without any modification as a preseed tarball
2024-05-22 00:51:07 +02:00
Googulator
b02c35443f
Stop src_get overrides from propagating between builds
Because src_get was never unset at the end of a build, it would propagate to subsequent builds until it would be either overridden again, or cleared by a new bash process starting (either due to a jump step or a new version of bash being built).

Thus, kexec-linux's override of src_get to a no-op would stay in effect in chroot mode until musl-1.2.4 phase2's override restored src_get's functionality. This override is actually obsolete, since musl-1.2.4's source code is now preserved across the Linux kexec via a different mechanism - but removing it mysteriously broke downloading bash-5.2.15 due to kexec-linux's override still being in effect.
2024-05-22 00:21:40 +02:00
Googulator
b988fb5764
Merge pull request #467 from fosslinux/fix-preseed
Fix early-preseed (and environment variables generally)
2024-05-10 13:07:58 +02:00
fosslinux
6302bb6d20 Fix early-preseed (and environment variables generally) 2024-05-10 12:18:24 +10:00
Andrius Štikonas
f5eb51c2cc
Merge pull request #466 from stikonas/fixes
Fix patch makefile and unfuzzy some early patches.
2024-05-05 22:54:48 +01:00
Andrius Štikonas
6ade9e0e8a Fix patch makefile and unfuzzy some early patches. 2024-05-05 10:09:59 +01:00
Andrius Štikonas
268ccea37d
Merge pull request #465 from stikonas/nss
Update to nss 3.99.
2024-04-28 21:04:20 +01:00
Andrius Štikonas
2d5a85e770 Update to nss 3.99. 2024-04-28 13:29:00 +01:00
Andrius Štikonas
c22e3dac66 Fix a typo in CFLAGS variable name. 2024-04-28 00:38:38 +01:00
Andrius Štikonas
0e6133eed2
Merge pull request #464 from Googulator/grub-reproducibility
Drop non-reproducible manpage from Grub package
2024-04-20 15:19:09 +01:00
Andrius Štikonas
5052c8ad76 Fix a typo reported by Hagfish. 2024-04-20 11:53:05 +01:00
Andrius Štikonas
ca00dd635f
Merge pull request #458 from fosslinux/cleanup_weak_symbols_patch
Remove patch that is no longer needed.
2024-04-19 19:15:21 +01:00
Gábor Stefanik
8c67b9ee9c Drop non-reproducible manpage from Grub package
This embeds the type of the building system's firmware at build time,
causing different checksums on UEFI vs BIOS machines.

Fixes #463
2024-04-19 00:19:29 +02:00
Andrius Štikonas
71253f7f8c Remove patch that is no longer needed.
This fixed some issues with weak symbols but now tcc is properly patched.
2024-04-18 21:28:39 +01:00
Andrius Štikonas
3bbd639937
Merge pull request #461 from fosslinux/update-parts
Update parts.rst
2024-04-17 19:22:50 +01:00
Googulator
cd74988efb
fix typos 2024-04-17 02:29:01 +02:00
Googulator
43f31ce543
Update parts.rst 2024-04-17 02:15:05 +02:00
Googulator
85026900ac
Fix formatting of Pythonless build instructions 2024-04-17 00:59:58 +02:00
Googulator
34a72584c1
Update Pythonless bootstrap instructions
* ``pre-network-sources`` is no more
* builder-hex0 stage1 is no longer precompiled, but instead needs to be generated from hex0 code (using POSIX tools or by hand)
2024-04-17 00:58:50 +02:00
Googulator
27b4f1c766
Merge pull request #460 from Googulator/after-extend
Add extension mechanism to execute .sh files dropped in /steps/after
2024-04-17 00:49:53 +02:00
Gábor Stefanik
c73d8c9dc1 Add extension mechanism to execute .sh files dropped in /steps/after
These are executed at the end of the bootstrap, if /steps/after exists.
In interactive mode, they run before the interactive prompt is displayed.
2024-04-16 20:53:52 +02:00
Andrius Štikonas
5595a06ad9
Merge pull request #459 from Googulator/script-generator-checksum
Add checksum protection to script-generator
2024-04-16 19:25:45 +01:00
Gábor Stefanik
c5eb402eeb Add checksum protection to script-generator 2024-04-16 10:20:39 +02:00
Gábor Stefanik
7f08661b6c Fix a missed amd64 checksum 2024-04-16 10:16:51 +02:00
Andrius Štikonas
0f91a466a1
Merge pull request #356 from Googulator/mes-0.26
Upgrade mes to 0.26
2024-04-16 06:59:39 +01:00
Gábor Stefanik
aa3d36b934 Update checksums for x86, amd64 & riscv64
Also, add missing non-x86 checksums for simple-patch.
2024-04-16 00:24:44 +02:00
Gábor Stefanik
e08f655cd6 Rebuild pregenerated files in nyacc 2024-04-15 22:11:44 +02:00