-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: update dependencies, hermetic build
- Build Python dependencies hermetically - Download Go dependencies in prepare stage to ensure hermeticity - Fix ca-certificates permissions (fixes kres network issue) - Don't build sd-boot here, as we build systemd in pkgs - Publish packages to not be rebuilt in pkgs - Update toolchain for newer Go - Update dependencies - rekres Fixes: #424 Ref: siderolabs/pkgs#1153 Signed-off-by: Dmitry Sharshakov <[email protected]>
- Loading branch information
Showing
42 changed files
with
540 additions
and
243 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
name: ninja | ||
variant: scratch | ||
dependencies: | ||
- stage: base | ||
- stage: cmake | ||
- stage: curl | ||
- stage: libuv | ||
- stage: xz | ||
- stage: expat | ||
- stage: rhash | ||
steps: | ||
- sources: | ||
- url: https://github.com/ninja-build/ninja/archive/refs/tags/{{ .ninja_version }}.tar.gz | ||
destination: ninja.tar.gz | ||
sha256: "{{ .ninja_sha256 }}" | ||
sha512: "{{ .ninja_sha512 }}" | ||
prepare: | ||
- | | ||
tar -xzf ninja.tar.gz --strip-components=1 | ||
cmake -Bbuild -DBUILD_TESTING=OFF | ||
build: | ||
- | | ||
cmake --build build | ||
install: | ||
- | | ||
install -m755 -D build/ninja /rootfs/usr/bin/ninja | ||
finalize: | ||
- from: /rootfs | ||
to: / |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
name: pyelftools | ||
variant: scratch | ||
dependencies: | ||
- stage: base | ||
- stage: libffi | ||
- stage: python3 | ||
- stage: python-setuptools | ||
- stage: zlib | ||
steps: | ||
- sources: | ||
- url: https://github.com/eliben/pyelftools/archive/refs/tags/{{ .pyelftools_version }}.tar.gz | ||
destination: pyelftools.tar.gz | ||
sha256: "{{ .pyelftools_sha256 }}" | ||
sha512: "{{ .pyelftools_sha512 }}" | ||
prepare: | ||
- | | ||
tar -xzf pyelftools.tar.gz --strip-components=1 | ||
build: | ||
- | | ||
python3 setup.py build | ||
install: | ||
- | | ||
python3 setup.py install --root=/rootfs | ||
# Determinism: remove all bytecode | ||
find /rootfs -type d -name __pycache__ -print0 | xargs -0 -I {} rm -rf "{}" | ||
finalize: | ||
- from: /rootfs | ||
to: / |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
name: python-build | ||
variant: scratch | ||
dependencies: | ||
- stage: base | ||
steps: | ||
- sources: | ||
- url: https://github.com/pypa/build/archive/refs/tags/{{ .python_build_version }}.tar.gz | ||
destination: python-build.tar.gz | ||
sha256: "{{ .python_build_sha256 }}" | ||
sha512: "{{ .python_build_sha512 }}" | ||
prepare: | ||
- | | ||
tar -xzf python-build.tar.gz --strip-components=1 | ||
install: | ||
- | | ||
mkdir -p /rootfs/usr/lib/python{{ .python_maj_min_version }}/site-packages | ||
cp -rd src/build /rootfs/usr/lib/python{{ .python_maj_min_version }}/site-packages/ | ||
finalize: | ||
- from: /rootfs | ||
to: / |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
name: python-flit_core | ||
variant: scratch | ||
dependencies: | ||
- stage: base | ||
steps: | ||
- sources: | ||
- url: https://github.com/pypa/flit/archive/refs/tags/{{ .python_flit_core_version }}.tar.gz | ||
destination: python_flit_core.tar.gz | ||
sha256: "{{ .python_flit_core_sha256 }}" | ||
sha512: "{{ .python_flit_core_sha512 }}" | ||
prepare: | ||
- | | ||
tar -xzf python_flit_core.tar.gz --strip-components=1 | ||
install: | ||
- | | ||
mkdir -p /rootfs/usr/lib/python{{ .python_maj_min_version }}/site-packages | ||
cp -rd flit_core/flit_core /rootfs/usr/lib/python{{ .python_maj_min_version }}/site-packages/ | ||
finalize: | ||
- from: /rootfs | ||
to: / |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
name: python-gpep517 | ||
variant: scratch | ||
dependencies: | ||
- stage: base | ||
steps: | ||
- sources: | ||
- url: https://github.com/projg2/gpep517/archive/refs/tags/{{ .python_gpep517_version }}.tar.gz | ||
destination: python_gpep517.tar.gz | ||
sha256: "{{ .python_gpep517_sha256 }}" | ||
sha512: "{{ .python_gpep517_sha512 }}" | ||
prepare: | ||
- | | ||
tar -xzf python_gpep517.tar.gz --strip-components=1 | ||
install: | ||
- | | ||
mkdir -p /rootfs/usr/lib/python{{ .python_maj_min_version }}/site-packages | ||
cp -rd gpep517 /rootfs/usr/lib/python{{ .python_maj_min_version }}/site-packages/ | ||
finalize: | ||
- from: /rootfs | ||
to: / |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
name: python-installer | ||
variant: scratch | ||
dependencies: | ||
- stage: base | ||
steps: | ||
- sources: | ||
- url: https://github.com/pypa/installer/archive/refs/tags/{{ .python_installer_version }}.tar.gz | ||
destination: python_installer.tar.gz | ||
sha256: "{{ .python_installer_sha256 }}" | ||
sha512: "{{ .python_installer_sha512 }}" | ||
prepare: | ||
- | | ||
tar -xzf python_installer.tar.gz --strip-components=1 | ||
install: | ||
- | | ||
mkdir -p /rootfs/usr/lib/python{{ .python_maj_min_version }}/site-packages | ||
rm -rf src/installer/_scripts/*.exe | ||
cp -rd src/installer /rootfs/usr/lib/python{{ .python_maj_min_version }}/site-packages/ | ||
finalize: | ||
- from: /rootfs | ||
to: / |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
name: python-jinja2 | ||
variant: scratch | ||
dependencies: | ||
- stage: base | ||
- stage: libffi | ||
- stage: python3 | ||
- stage: python-build | ||
- stage: python-gpep517 | ||
- stage: python-flit_core | ||
- stage: python-installer | ||
- stage: python-markupsafe | ||
- stage: zlib | ||
steps: | ||
- sources: | ||
- url: https://github.com/pallets/jinja/archive/refs/tags/{{ .python_jinja2_version }}.tar.gz | ||
destination: jinja2.tar.gz | ||
sha256: "{{ .python_jinja2_sha256 }}" | ||
sha512: "{{ .python_jinja2_sha512 }}" | ||
prepare: | ||
- | | ||
tar -xzf jinja2.tar.gz --strip-components=1 | ||
build: | ||
- | | ||
python3 -m gpep517 build-wheel --wheel-dir /tmp --output-fd 1 | ||
install: | ||
- | | ||
python3 -m installer -d /rootfs /tmp/*.whl | ||
# Determinism: remove all bytecode | ||
find /rootfs -type d -name __pycache__ -print0 | xargs -0 -I {} rm -rf "{}" | ||
test: | ||
- | | ||
python3 -m installer /tmp/*.whl | ||
python3 -c "import jinja2" | ||
finalize: | ||
- from: /rootfs | ||
to: / |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
name: python-markupsafe | ||
variant: scratch | ||
dependencies: | ||
- stage: base | ||
- stage: libffi | ||
- stage: python3 | ||
- stage: python-build | ||
- stage: python-gpep517 | ||
- stage: python-flit_core | ||
- stage: python-installer | ||
- stage: python-setuptools | ||
- stage: zlib | ||
steps: | ||
- sources: | ||
- url: https://github.com/pallets/markupsafe/archive/refs/tags/{{ .python_markupsafe_version }}.tar.gz | ||
destination: markupsafe.tar.gz | ||
sha256: "{{ .python_markupsafe_sha256 }}" | ||
sha512: "{{ .python_markupsafe_sha512 }}" | ||
prepare: | ||
- | | ||
tar -xzf markupsafe.tar.gz --strip-components=1 | ||
build: | ||
- | | ||
python3 -m gpep517 build-wheel --wheel-dir /tmp --output-fd 1 | ||
install: | ||
- | | ||
python3 -m installer -d /rootfs /tmp/*.whl | ||
# Determinism: remove all bytecode | ||
find /rootfs -type d -name __pycache__ -print0 | xargs -0 -I {} rm -rf "{}" | ||
test: | ||
- | | ||
python3 -m installer /tmp/*.whl | ||
python3 -c "import markupsafe" | ||
finalize: | ||
- from: /rootfs | ||
to: / |
Oops, something went wrong.