22893 Commits

Author SHA1 Message Date
Thilo Fromm
ceba903d1b
Merge pull request #228 from flatcar-linux/t-lo/container-builds-add-testing
ci-automation: Add foundational testing primitives
2022-02-22 15:45:23 +01:00
Thilo Fromm
081df6cd2c ci-automtion/packages.sh: fix torcx URL, add manifest
Signed-off-by: Thilo Fromm <thilo@kinvolk.io>
2022-02-22 15:44:04 +01:00
Jeremi Piotrowski
f8efad73bf
Merge pull request #231 from flatcar-linux/jepio/build-image-disable-ebuild-locks
build_library/build_image_util: disable ebuild-locks when merging binary packages.
2022-02-22 13:52:46 +01:00
Krzesimir Nowak
c2353cfbbb eclass/mercurial: Sync with gentoo
It's from gentoo commit 9f24bebc8dd0d5dd6b8c683ea8bc1b39c64481d4.
2022-02-22 12:25:13 +01:00
Krzesimir Nowak
c6a76af95b eclass/portability: Sync with gentoo
It's from gentoo commit 5eae2995e46c6dc23f85bd0839eb9a1028ebea91.
2022-02-22 12:25:13 +01:00
Krzesimir Nowak
d692f0b456 eclass: Drop unused eclasses 2022-02-22 12:25:13 +01:00
Krzesimir Nowak
93b9a20a1b virtual/pam: Drop unused package 2022-02-22 12:25:13 +01:00
Krzesimir Nowak
a339d6ab05 perl-core/File-Temp: Add from gentoo
It's from gentoo commit 4422984d379c73f5b76891fcb58f694b5ba5a150.

It's a dependency of virtual/perl-File-Temp.
2022-02-22 12:25:12 +01:00
Krzesimir Nowak
2db71b8e80 virtual/perl-File-Temp: Add from gentoo
It's from gentoo commit bb84c633a1730c8e85701c906cbd378f71e86b03.

It's a dependency of dev-perl/File-Slurp.
2022-02-22 12:25:12 +01:00
Krzesimir Nowak
a91cd58e6b virtual/perl-IO: Add from gentoo
It's from gentoo commit 9cef49a74aa25da92f1b8afcbe039cceb2ff0500.

It's a dependency of dev-perl/File-Slurp.
2022-02-22 12:25:12 +01:00
Krzesimir Nowak
69d757d228 virtual/perl-Exporter: Add from gentoo
It's from gentoo commit 3f9381139fb59fc4719c453888b82354fb370562.

It's a dependency of dev-perl/File-Slurp.
2022-02-22 12:09:18 +01:00
Krzesimir Nowak
35930c0aef virtual/perl-Carp: Add from gentoo
It's from gentoo commit d2be4f85258c39e3351bc395cb55b2d798d9fd8f.

It's a dependency of dev-perl/File-Slurp.
2022-02-22 12:09:18 +01:00
Krzesimir Nowak
ab5c422c60 dev-perl/File-Slurp: Sync with gentoo
It's from gentoo commit d411db90221a2a6d86aed14665b22fd0d4c66187.
2022-02-22 12:09:18 +01:00
Krzesimir Nowak
6456162d75 virtual/package-manager: Sync with gentoo
It's from gentoo commit 38b155fa1bf907617067c98eb4ba3a5d0790eb1a.
2022-02-22 12:09:18 +01:00
Krzesimir Nowak
e92e1e7f81 virtual/ssh: Sync with gentoo
It's from gentoo commit 38b155fa1bf907617067c98eb4ba3a5d0790eb1a.
2022-02-22 12:09:18 +01:00
Krzesimir Nowak
feb2578191 dev-util/gtk-doc-am: Sync with gentoo
It's from gentoo commit 38b155fa1bf907617067c98eb4ba3a5d0790eb1a.
2022-02-22 12:09:18 +01:00
Krzesimir Nowak
5544e12b25 virtual/libc: Sync with gentoo
It's from gentoo commit 3088400aa075ae4abd4b14c4457f725ffa9e692e.
2022-02-22 12:09:18 +01:00
Krzesimir Nowak
a55b653a59 virtual/editor: Sync with gentoo
It's from gentoo commit 38b155fa1bf907617067c98eb4ba3a5d0790eb1a.
2022-02-22 12:09:18 +01:00
Krzesimir Nowak
5213f4827b virtual/pager: Sync with gentoo
It's from gentoo commit 38b155fa1bf907617067c98eb4ba3a5d0790eb1a.
2022-02-22 12:09:18 +01:00
Krzesimir Nowak
ff2aed2def Merge pull request #295 from flatcar-linux/krnowak/pkg-updates-2013
Update eclasses from 2013
2022-02-22 12:01:55 +01:00
Dongsu Park
fe7a6c904b profiles: enable su USE flag for shadow
Enable su USE flag for shadow, because shadow >= 4.11 does not have it
by default.
Ideally util-linux should have the su binary, but that is currently not
possible, because of a bunch of additional dependencies in SDK like
pam_sssd in baselayout.
2022-02-22 11:54:21 +01:00
Jeremi Piotrowski
4cdacf5ae4 build_library/build_image_util: disable ebuild-locks when merging binary packages
Disable ebuild-locks for the emerge command that creates the image.
Ebuild-locks protect unsandboxed ebuild phases from running
concurrently, but also slow things down greatly when a lot of
concurrency would otherwise be possible. The image build phase merges a
big amount of binary packages, and I am not aware of us having any
phases that risk concurrently modifying shared files.

I have been testing this for the last months and have not seen any
failures. The time savings are significant: this cuts image build time
from 20m to 10m for me.

Signed-off-by: Jeremi Piotrowski <jpiotrowski@microsoft.com>
2022-02-22 09:42:42 +00:00
Dongsu Park
91c7be888f changelog: add changelog for expat 2.4.6 2022-02-22 09:54:32 +01:00
Dongsu Park
3bd3353793 dev-libs/expat: update to 2.4.6
Update dev-libs/expat to 2.4.6 to mainly address the CVEs:
CVE-2022-25235, CVE-2022-25236, CVE-2022-25313, CVE-2022-25314,
CVE-2022-25315
2022-02-22 09:48:27 +01:00
Thilo Fromm
38d85729bf update_sdk_container_image: update SDK container image
This change introduces update_sdk_container_image, a script to generate
a new SDK container image based on an existing SDK container. The
script is meant to be used for minor / patch level SDK changes (like
test suite updates).

Signed-off-by: Thilo Fromm <thilo@kinvolk.io>
2022-02-21 20:06:30 +01:00
Thilo Fromm
4f39e0112f ci-automation/tests.sh: use http in torcx manifest
Use HTTP instead of https because Ignition does not recognise
letsencrypt certificates, leading to test breakage in
docker.torcx-manifest-pkgs.

Add a note in settings.env to explicitly call out HTTP requirement of
build cache server.

Signed-off-by: Thilo Fromm <thilo@kinvolk.io>
2022-02-21 17:23:53 +01:00
Thilo Fromm
0fa985b872 ci-automation/test.sh: stage torcx manifest
Signed-off-by: Thilo Fromm <thilo@kinvolk.io>
2022-02-21 16:30:30 +01:00
Dongsu Park
b25f70e646 changelog: add changelog for man-pages 5.12 2022-02-21 15:51:41 +01:00
Dongsu Park
07cf13481c sys-apps/man-pages: update to 5.12-r2
Update sys-apps/man-pages to 5.12-r2, which is needed by sys-apps/shadow
4.11.1.
2022-02-21 15:51:41 +01:00
Dongsu Park
2037f0a173 changelog: add changelog for shadow 4.11.1 2022-02-21 15:51:16 +01:00
Dongsu Park
a44f3b8fbd sys-apps/shadow: Apply Flatcar modifications
- Carry over our custom tmpfiles and securetty files
  - Remove /etc files and install them to /usr, use tmpfiles
  - Switch /etc/login.defs edits to /usr/share/shadow/login.defs
  - Drop moving passwd out of /usr since we don't have split-usr
  - Drop pkg_postinst
2022-02-21 15:51:16 +01:00
Dongsu Park
2b733fd76a sys-apps/shadow: update to 4.11.1
Sync with Gentoo to update sys-apps/shadow to 4.11.1, mainly to address
CVE-2013-4235.

Gentoo ref: defe2a377e43a756441b183b66e2c4aae2be27b5
2022-02-21 15:51:16 +01:00
Thilo Fromm
1045fd5ac8 ci-automation/README.md: add docs for qemu test 2022-02-21 13:57:11 +01:00
Thilo Fromm
bee5ac7f74 ci-automation/tapfile: enforce foreign keys, simplify 2022-02-21 12:56:45 +01:00
Krzesimir Nowak
b30e3d52ee eclass/mono-env: Sync with gentoo
It's from gentoo commit 5f1f870f36da4f0739058b1f36c939e7ec53f3b3.
2022-02-21 12:13:32 +01:00
Krzesimir Nowak
46fdaf3fd7 eclass/alternatives: Sync with gentoo
It's from gentoo commit 1ade252f652cfba4068bb2275e0b24e1175ee924.
2022-02-21 12:13:32 +01:00
Krzesimir Nowak
0bad1e326b Merge pull request #293 from flatcar-linux/krnowak/pkg-updates-2012
eclass: Drop unused eclasses
2022-02-21 12:12:27 +01:00
Kai Lüke
2b41a770d5 Merge pull request #1640 from flatcar-linux/kai/udev-race
sys-apps/ignition: prevent races with udev
2022-02-21 11:24:33 +01:00
Kai Lueke
3d5309794a sys-apps/ignition: prevent races with udev
This pulls in
https://github.com/flatcar-linux/ignition/pull/35
to prevent boot failures such as fsck running while udev was still
processing the disk changes, and thus failing when the /dev/disk/
symlink is shortly gone.
2022-02-21 11:12:24 +01:00
Thilo Fromm
3219bd9035 Merge pull request #1661 from flatcar-linux/t-lo/bootengine-fix-container-build
sys-kernel/bootengine: fix containerised builds
2022-02-21 10:42:39 +01:00
Kai Lüke
a8c00f42d3 Merge pull request #1652 from flatcar-linux/kai/use-package-users
sys-apps/baselayout: remove duplicates of acct-user|group
2022-02-18 18:16:29 +01:00
Kai Lüke
ce43f1e001
Merge pull request #227 from flatcar-linux/kai/use-package-users
build_library: move package sysusers to /usr database
2022-02-18 18:16:12 +01:00
Thilo Fromm
8adf98c2c8 sys-kernel/bootengine: fix containerised builds
Bump CROS_WORKON to include
https://github.com/flatcar-linux/bootengine/pull/36
to fix an issue with dracut in containerised builds.

Signed-off-by: Thilo Fromm <thilo@kinvolk.io>
2022-02-18 18:00:50 +01:00
Mathieu Tortuyaux
e7923114db Merge pull request #1659 from flatcar-linux/tormath1/sqlite
dev-db/sqlite: skip `sqlite3` installation
2022-02-18 17:51:09 +01:00
Mathieu Tortuyaux
121cc4e28f profiles/coreos/make: add sqlite3 to INSTALL_MASK
this prevents the installation of `/usr/bin/sqlite3` cli provided by
`dev-db/sqlite`.

Signed-off-by: Mathieu Tortuyaux <mtortuyaux@microsoft.com>
2022-02-18 17:48:18 +01:00
Kai Lueke
cc509e77d3 build_library: move package sysusers to /usr database
Package users nowadays get created through systemd-sysuser files.
Gentoo uses the acct-user|groups packages to allocate stable IDs for
these users. Since they get created at runtime, we have the problem
that they end up in /etc/passwd at boot time which would be fine if
they follow the acct-user allocations but it could also be that there
is a package that uses its own sysuser files, leading to dynamic ID
allocation which we can't control and may result in ugly user ID
mismatches that are hard to resolve again. Normally we intend to ship
all system users under /usr/share/baselayout/passwd so that /etc/passwd
is really left to the user's own entries.
Generate the /etc/passwd sysuser entries at image build time and move
these entries over to /usr/share/baselayout/passwd so that all
system users reside in this database. We should still ensure to have
acct-user packages for all system users or at least hardcoded user
IDs, therefore, add a check for that.
2022-02-18 16:57:42 +01:00
Thilo Fromm
cafa385164 ci-automation: publish torcx json and use in tests
This change updates the package build script to publish the torcx
manifest file to the build cache so it can be used by tests.
It also updates the generic test script to use the SDK container instead
of the packages container image, and to download and use the torcx
manifest from the build cache.

Signed-off-by: Thilo Fromm <thilo@kinvolk.io>
2022-02-18 15:52:47 +01:00
Thilo Fromm
a5b958fd07 ci-automation/test.sh: fix reruns, set retry to 20
Signed-off-by: Thilo Fromm <thilo@kinvolk.io>
2022-02-18 14:40:18 +01:00
Krzesimir Nowak
45bd9ff89e eclass: Drop unused eclasses 2022-02-18 13:26:37 +01:00
Dongsu Park
a6b7fcb76d Merge pull request #1658 from flatcar-linux/dongsu/bpftool
profiles,coreos-base: changes needed by bpftool
2022-02-18 11:53:45 +01:00