23028 Commits

Author SHA1 Message Date
Thilo Fromm
7427f5de87 sys-apps/glibc-(2.32|2.33): add Flatcar changes
2.33
- unmask amd64 and arm64
- remove tmpfiles from ebuild inherit so we don't run into a circular
  dep with systemd, use systemd_tmpfilesd instead
- take care of nscd.conf via systemd_tmpfilesd,
  add files/nscd-conf.tmpfiles.
- Don't run sanity checks in pkg_pretend to prevent gcc checks when
  only the binary package is installed.
- comment out 'dostrip -x' to force the OS image binaries to be stripped
- remove everything glibc wants to put under /etc since we use
  baselayout to provide that

2.32
sys-libs/glibc-2.32,targets/sdk: backport to EAPI6, add Flatcar changes

Backport the glibc recipe to EAPI6 to work around BDEPEND emerge
issue, add flatcar specific changes to the build recipe.
Move PYTHON_DEPS to DEPEND so things can build.

Don't run sanity checks in pkg_pretend
(similar change as in glibc-2.29) to prevent
gcc checks when only the binary package is installed.

Also, force the "crypt" use flag for all builds so libcrypt is built.
(Upstream gentoo does the same)

Signed-off-by: Thilo Fromm <thilo@kinvolk.io>
2021-07-01 16:42:39 +02:00
Thilo Fromm
bd723baccd sys-libs/glibc upstream sync: add 2.33 remove 2.29
Signed-off-by: Thilo Fromm <thilo@kinvolk.io>
2021-07-01 16:42:10 +02:00
Thilo Fromm
a29b87a4c6 app-misc/pax-utils: update to upstream 1.3.1
This change syncs pax-utils to 1.3.1, bringin it on par with Gentoo
upstream. A minor change is incuded in the ebuild (commented on in the
file) to work around a build issue with our (outdated)
python-single-r1.eclass.

The workaround may be removed after we updated to a python version
supported by upstream, and updated our eclasses respectively.

The update fixes an issue with scanelf and glibc-2.33:

     /usr/lib/portage/python3.6/estrip: line 393: 1628751 Bad system call (core dumped) scanelf -yqRBF '#k%F' -k '.symtab' "$@"

Signed-off-by: Thilo Fromm <thilo@kinvolk.io>
2021-07-01 12:43:10 +02:00
Thilo Fromm
c2822ccc78 Merge pull request #1081 from kinvolk/t-lo/mask-glibc-2.33
sys-libs/glibc-2.33: mask for now to un-break build
2021-06-30 18:03:03 +02:00
Thilo Fromm
37f572461a sys-libs/glibc-2.33: mask for now to un-break build
We experience an issue with glibc-2.33 which causes all binaries in the
OS image to end up not stripped, which would increase the size of the OS
image threefold.

The change masks glibc-2.33 for all architectures, so the build will
default on glibc-2.32 until we have fixed the issue.

Signed-off-by: Thilo Fromm <thilo@kinvolk.io>
2021-06-30 17:26:01 +02:00
Kai Lüke
8eaef708be jenkins: move all inline bash scripts to flatcar-scripts
The logic of the inline bash scripts of each job was sometimes
separated into the flatcar-scripts/jenkins/*.sh helpers but mostly
part of the Groovy file. This coupling had its advantages but also
downsides when special cases needed to be added for different release
versions. Other issues were that the inline scripts needed the
backslash character to be escaped twice and Jenkins was not good in
terminating the child processes when stopping a job. Having inline
bash scripts in Groovy also mandated the use of Jenkins to build and
release Flatcar Container Linux which hinders test builds in other CI
platforms.
Move the inline bash scripts fully to to the files in
flatcar-scripts/jenkins/ and create new ones for job that didn't have
a script there yet. Also invoke them through a systemd-run wrapper
script which ensures that all child processes are terminated and also
sets up /opt/bin as additional path for the static lbzcat binary.
A workaround for bash 4 was needed to use a temporary file instead of
the <(cmd) bash feature which caused a strange syntax error, otherwise
the bash commands are moved as they are.
2021-06-30 16:31:58 +02:00
Sayan Chowdhury
ce55cb0736 Merge pull request #1078 from kinvolk/sayan/add-nvidia-aws-pro
coreos-base/oem-ec2-compat: Add NVIDIA support for AWS Pro
2021-06-29 21:54:40 +05:30
Sayan Chowdhury
6db75ee456 Merge pull request #1073 from kinvolk/linux-5.10.46-main
Upgrade Linux Kernel in main from 5.10.45 to 5.10.46
2021-06-29 21:52:46 +05:30
Sayan Chowdhury
81598d97bb coreos-base/oem-ec2-compat: Add NVIDIA support for AWS Pro
Signed-off-by: Sayan Chowdhury <sayan@kinvolk.io>
2021-06-29 20:45:08 +05:30
Thilo Fromm
250642de96 Merge pull request #1067 from kinvolk/t-lo/update-to-glibc-2.33
Update to glibc 2.33
2021-06-29 14:21:04 +02:00
Thilo Fromm
6b20fe0f08 Merge pull request #177 from kinvolk/t-lo/update-to-glibc-2.33
Unmasks for arm64 required by glibc-2.33 upgrade
2021-06-29 14:20:54 +02:00
Thilo Fromm
0ec82836ad
Merge pull request #126 from kinvolk/t-lo/update-to-glibc-2.33-simple
catalyst_toolchains: don't touch the SDK
alpha-2920.0.0
2021-06-29 14:20:23 +02:00
Dongsu Park
fa4d20829d Merge pull request #1077 from kinvolk/dongsu/intel-microcode-20210608
sys-firmware/intel-microcode: update to 20210608
2021-06-29 10:01:36 +02:00
Sayan Chowdhury
a321cc9fd3 sys-firmware/intel-microcode: Apply Flatcar patches
Signed-off-by: Sayan Chowdhury <sayan@kinvolk.io>
2021-06-29 09:43:17 +02:00
Dongsu Park
06a1783030 sys-firmware/intel-microcode: update to 20210608
Sync with Gentoo to update intel-microcode to 20210608,
mainly to address CVE-2020-24489, CVE-2020-24511, CVE-2020-24513.

Gentoo ref: 66c8a60ea74e8ed2391c9fdff749c65eb0f398ff
2021-06-29 09:43:17 +02:00
Thilo Fromm
33e49eaeec sys-apps/glibc-(2.32|2.33): add Flatcar changes
2.33
- unmask amd64 and arm64
- remove tmpfiles from ebuild inherit so we don't run into a circular
  dep with systemd
- take care of nscd.conf via tmpfiles, add files/nscd-conf.tmpfiles.
- Don't run sanity checks in pkg_pretend to prevent gcc checks when
  only the binary package is installed.
- comment out 'dostrip -x' to force the OS image binaries to be stripped
- remove everything glibc wants to put under /etc since we use
  baselayout to provide that

2.32
sys-libs/glibc-2.32,targets/sdk: backport to EAPI6, add Flatcar changes

Backport the glibc recipe to EAPI6 to work around BDEPEND emerge
issue, add flatcar specific changes to the build recipe.
Move PYTHON_DEPS to DEPEND so things can build.

Don't run sanity checks in pkg_pretend
(similar change as in glibc-2.29) to prevent
gcc checks when only the binary package is installed.

Also, force the "crypt" use flag for all builds so libcrypt is built.
(Upstream gentoo does the same)

Signed-off-by: Thilo Fromm <thilo@kinvolk.io>
2021-06-29 09:27:59 +02:00
Thilo Fromm
3fc8747b60 unmask arm64 for pax-utils, libev, libverto, acl
To un-break the toolchain build for arm64 for the glibc-2.33 update, a
few packages require un-masking for arm64.

This change unmasks arm64 for
  * app-misc/pax-utils
  * dev-libs/libev, libverto
  * virtual/acl

Unmasking this here instead of overriding the masks in
package.accept_keywords because our ebuild versions are outdated, newer
upstream versions are unmasked for arm64 already. I.e. when we update to
current upstream these packages will remain available on ARM64, no need
to use custom overrides via package.accept_keywords.

Signed-off-by: Thilo Fromm <thilo@kinvolk.io>
2021-06-29 09:22:30 +02:00
Dongsu Park
53773c875b Merge pull request #180 from kinvolk/dongsu/lz4-1.9.3
app-arch/lz4: update to 1.9.3-r1
2021-06-29 08:58:34 +02:00
Dongsu Park
605cd2c0ef Merge pull request #1076 from kinvolk/dongsu/lz4-1.9.3
sys-apps/systemd: depend on lz4 >= 1.9.3-r1
2021-06-29 08:58:19 +02:00
Thilo Fromm
3baf9c2c44 sys-libs/glibc upstream sync: add 2.33 remove 2.29
Signed-off-by: Thilo Fromm <thilo@kinvolk.io>
2021-06-28 17:31:39 +02:00
Dongsu Park
1b1a15e76f sys-apps/systemd: depend on lz4 >= 1.9.3-r1
Now that lz4 was updated to 1.9.3-r1, systemd has to depend on
lz4 >= 1.9.3-r1, so that its dependency graph during the SDK stage3
could be generated correctly.

Without that change, the preclean of SDK stage3 could fail because of
an inverted dependency order between systemd and lz4, like following:

```
 emerge --depclean --with-bdeps=y
 ...
 * Dependencies could not be completely resolved due to
 * the following required packages not being installed:
 *
 *   >=app-arch/lz4-0_p131:0/r131=[abi_x86_64(-)] pulled in by:
 *     sys-apps/systemd-247.6
```

Stage3 first runs `emerge --quiet --usepkg --buildpkg
--binpkg-respect-use=y --newuse -e --update --deep --with-bdeps=y @system`,
which works well.
After that, only the stage3 (no other stages) runs preclean, which in fact
runs `emerge --depclean --with-bdeps=y` to clean up unnecessary ebuilds.
That's where it fails.

That happens because systemd still depends on lz4 0_p131. As a result, the
main installation step of stage3 seems to first install systemd 247, and
after that it updates lz4 to 1.9.3-r1. Then systemd thinks it still depends
on 0_p131. When doing it the other way around, the dependency graph is
correctly generated, first lz4 1.9.3-r1, then systemd 247.
2021-06-28 16:52:45 +02:00
Thilo Fromm
10400c4341 Merge pull request #181 from kinvolk/t-lo/gentoo-functions-switch-to-github
sys-apps/gentoo-functions: use tarball from github
2021-06-28 14:50:51 +02:00
Thilo Fromm
085fea2a81 sys-apps/gentoo-functions: use tarball from github
This one-line change pulls the gentoo-functions source tarball from
github instead from gentoo's own gitweb, to stabilise the build process.
We assume github to have higher availability than gentoo gitweb.

Signed-off-by: Thilo Fromm <thilo@kinvolk.io>
2021-06-28 13:33:42 +02:00
Mathieu Tortuyaux
8bcde7c7ed Merge pull request #179 from kinvolk/tormath1/gptfdisk-1.0.7
sys-apps/gptfdisk: sync with ::gentoo upstream
2021-06-25 15:06:02 +02:00
Thilo Fromm
d1e2f6d1f2 catalyst_toolchains: don't touch the SDK
This change removes 8 years old code from the toolchains build which
tries to update SDK libraries for unknown reasons, breaking the
toolchains build in the glibc-2.33 update.

Signed-off-by: Thilo Fromm <thilo@kinvolk.io>
2021-06-25 10:37:21 +02:00
Mathieu Tortuyaux
de5afb0109 Merge pull request #1075 from kinvolk/runc-1.0.0-main
Upgrade Runc in main from 1.0.0_rc95 to 1.0.0
2021-06-25 09:55:47 +02:00
Mathieu Tortuyaux
a85e4af09b sys-apps/gptfdisk: sync with ::gentoo upstream
this commit addresses the following CVE:
- CVE-2021-0308

Signed-off-by: Mathieu Tortuyaux <mathieu@kinvolk.io>
2021-06-25 08:05:52 +02:00
Mathieu Tortuyaux
f28dd3815e Merge pull request #178 from kinvolk/tormath1/gettext-0.21
sys-devel/gettext: sync with gentoo upstream
2021-06-24 17:29:22 +02:00
Mathieu Tortuyaux
f8c416ef1d net-dialup/lrzsz: sync with gentoo upstream
the version stays the same (0.12.20) but we add some patches
to fix compatibility issues with autoconf.

See: https://bugs.gentoo.org/685696

Signed-off-by: Mathieu Tortuyaux <mathieu@kinvolk.io>
2021-06-24 14:31:04 +02:00
Flatcar Buildbot
99dca5debb app-emulation: Upgrade Runc 1.0.0_rc95 to 1.0.0 2021-06-24 08:01:13 +00:00
Flatcar Buildbot
8c36038ece sys-kernel: Upgrade Kernel 5.10.45 to 5.10.46 2021-06-24 07:10:02 +00:00
Mathieu Tortuyaux
83374bc5b7 sys-devel/gettext: sync with gentoo upstream
this commit addresses the following CVE:
- CVE-2020-12825

Signed-off-by: Mathieu Tortuyaux <mathieu@kinvolk.io>
2021-06-23 17:47:16 +02:00
Dongsu Park
ba832d25bd app-arch/lz4: update to 1.9.3-r1
Update app-arch/lz4 to 1.9.3-r1, mainly to address CVE-2021-3520.
2021-06-23 12:13:16 +02:00
Mathieu Tortuyaux
aae132d3de Merge pull request #1069 from kinvolk/tormath1/curl-7.77
Revert "profiles: Update the accept keywords for curl 7.76.1"
2021-06-23 10:46:25 +02:00
Mathieu Tortuyaux
c0c6904c0d Merge pull request #175 from kinvolk/tormath1/curl-7.77
net-misc/curl: sync with gentoo upstream
2021-06-23 10:44:37 +02:00
Mathieu Tortuyaux
3e4da82981 net-misc/curl: sync with gentoo upstream
this addresses the following CVE:
- CVE-2021-22898
- CVE-2021-22901

Signed-off-by: Mathieu Tortuyaux <mathieu@kinvolk.io>
2021-06-23 10:42:42 +02:00
Thilo Fromm
cf364ba619 Merge pull request #176 from kinvolk/revert-173-dongsu/lz4-1.9.3
Revert "app-arch/lz4: update to 1.9.3-r1"
2021-06-22 17:42:27 +02:00
Thilo Fromm
4d05889cdf Revert "app-arch/lz4: update to 1.9.3-r1" 2021-06-22 17:20:31 +02:00
Mathieu Tortuyaux
169d025f84 Revert "profiles: Update the accept keywords for curl 7.76.1"
This reverts commit 8d56fd17957540e764ca491285776d2dbb73c38e.
2021-06-22 11:55:13 +02:00
Sayan Chowdhury
0249137fa4 Merge pull request #1065 from kinvolk/linux-5.10.45-main
Upgrade Linux Kernel in main from 5.10.43 to 5.10.45
2021-06-21 13:01:32 +05:30
Flatcar Buildbot
8375a98a76 sys-kernel: Upgrade Kernel 5.10.43 to 5.10.45 2021-06-19 07:12:03 +00:00
Dongsu Park
147addfb29 Merge pull request #173 from kinvolk/dongsu/lz4-1.9.3
app-arch/lz4: update to 1.9.3-r1
2021-06-18 14:59:56 +02:00
Dongsu Park
e503e0f5a2 app-arch/lz4: update to 1.9.3-r1
Update app-arch/lz4 to 1.9.3-r1, mainly to address CVE-2021-3520.
2021-06-18 10:59:38 +02:00
Iago López Galeiras
9a5b486219 Merge pull request #1055 from kinvolk/iaguis/remove-nnp-patch 2021-06-15 16:57:35 +02:00
Sayan Chowdhury
b1414fdcf1 Merge pull request #1053 from kinvolk/linux-5.10.43-main
Upgrade Linux Kernel in main from 5.10.42 to 5.10.43
2021-06-15 12:46:56 +05:30
Iago Lopez Galeiras
3f354a1114 app-emulation/docker: disable SELinux
We disable SELinux because Flatcar doesn't properly support it and it
was causing labeling problems when running runc containers with
NoNewPrivileges or seccomp.
2021-06-14 16:23:00 +02:00
Iago Lopez Galeiras
9b18f05723 app-emulation/runc: remove patches disabling NNP and seccomp
These were included as a workaround for SELinux issues on Flatcar.
However, they also disable NoNewPrivileges and seccomp support, which
reduces security.

Instead, we'll disable SELinux support in the Docker daemon in the next
commit.
2021-06-14 16:22:55 +02:00
Flatcar Buildbot
5575a1bc42 sys-kernel: Upgrade Kernel 5.10.42 to 5.10.43 2021-06-11 07:12:11 +00:00
Sayan Chowdhury
b6435d8d5a Merge pull request #1047 from kinvolk/linux-5.10.42-main
Upgrade Linux Kernel in main from 5.10.41 to 5.10.42
2021-06-11 11:00:55 +05:30
Dongsu Park
7632c0af3a Merge pull request #1049 from kinvolk/go-1.16.5-main
Upgrade Go in main from 1.16.4 to 1.16.5
2021-06-07 17:22:31 +02:00