14524 Commits

Author SHA1 Message Date
Jeremi Piotrowski
304b5abf7a net-libs/libslirp: Import from Gentoo
slirp is needed to by qemu netdev user backend, which was removed in the
process of upgrading qemu to 5.2.0. Bring it back so that it is possible
to run flatcar_production_qemu.sh directly from the chroot.

See also kinvolk/Flatcar#420

Signed-off-by: Jeremi Piotrowski <jpiotrowski@microsoft.com>
2021-07-07 12:43:14 +00:00
Kai Lüke
c2b0b0cc7e coreos-base/coreos-init: add udev systemd tag for Azure storage devices
This pulls in
https://github.com/kinvolk/init/pull/41
2021-07-07 12:25:46 +02:00
Mathieu Tortuyaux
1219a8ff35 sec-policy/selinux-base: sync with the upstream
Signed-off-by: Mathieu Tortuyaux <mathieu@kinvolk.io>
2021-07-06 15:57:28 +02:00
Mathieu Tortuyaux
b7419c3548 sys-libs/libsemanage: apply flatcar changes
Signed-off-by: Mathieu Tortuyaux <mathieu@kinvolk.io>
2021-07-06 15:57:28 +02:00
Mathieu Tortuyaux
5738da828c sys-libs/libsemanage: sync with the upstream
Signed-off-by: Mathieu Tortuyaux <mathieu@kinvolk.io>
2021-07-06 15:57:28 +02:00
Mathieu Tortuyaux
522387fa10 sys-libs/libselinux: apply flatcar changes
Signed-off-by: Mathieu Tortuyaux <mathieu@kinvolk.io>
2021-07-06 15:57:28 +02:00
Mathieu Tortuyaux
9aecd8fc33 sys-libs/libselinux: sync with upstream
Signed-off-by: Mathieu Tortuyaux <mathieu@kinvolk.io>
2021-07-06 15:57:28 +02:00
Mathieu Tortuyaux
a693d478e1 sys-apps/policycoreutils: apply flatcar changes
Signed-off-by: Mathieu Tortuyaux <mathieu@kinvolk.io>
2021-07-06 15:57:28 +02:00
Mathieu Tortuyaux
c172da732c sys-apps/policycoreutils: sync with upstream
Signed-off-by: Mathieu Tortuyaux <mathieu@kinvolk.io>
2021-07-06 15:57:27 +02:00
Mathieu Tortuyaux
17d538681e sys-apps/checkpolicy: apply flatcar changes
backported from CoreOS commits

Signed-off-by: Mathieu Tortuyaux <mathieu@kinvolk.io>
2021-07-06 15:57:27 +02:00
Mathieu Tortuyaux
3b1534f9da sys-apps/checkpolicy: sync with the upstream
Signed-off-by: Mathieu Tortuyaux <mathieu@kinvolk.io>
2021-07-06 15:57:27 +02:00
Sayan Chowdhury
c9c98f49b6 acct-{group, user}/messagebus: Add the new dependencies for dbus
Signed-off-by: Sayan Chowdhury <sayan@kinvolk.io>
2021-07-06 15:55:19 +02:00
Mathieu Tortuyaux
8565def18b sys-apps/semodule-utils: apply tmp flatcar changes
Signed-off-by: Mathieu Tortuyaux <mathieu@kinvolk.io>
2021-07-06 15:55:19 +02:00
Mathieu Tortuyaux
676c14c966 sys-apps/semodule-utils: add new package
Signed-off-by: Mathieu Tortuyaux <mathieu@kinvolk.io>
2021-07-06 15:55:19 +02:00
Mathieu Tortuyaux
9e3a91b57d eclass/selinux: fix POLICY_PATCH applying
need to open a bug upstream - current discussions on IRC
2021-07-06 15:55:19 +02:00
Mathieu Tortuyaux
da7e024e1f eclass/selinux-policy-2: sync with upstream
Signed-off-by: Mathieu Tortuyaux <mathieu@kinvolk.io>
2021-07-06 15:55:18 +02:00
Mathieu Tortuyaux
0e286d00c4 sys-libs/libsepol: sync with the upstream
Signed-off-by: Mathieu Tortuyaux <mathieu@kinvolk.io>
2021-07-06 15:55:18 +02:00
Dongsu Park
8f82c06a48 app-admin/updateservicectl: sync with current main - 2021-07-05
Update commit to 6a4ff4ca879082c07353dd379439c437cbe27e18, to sync with
the current main branch.
Pulls in https://github.com/kinvolk/updateservicectl/pull/6 .

Also update Go import paths to `github.com/kinvolk/updateservicectl`.

Also set `COREOS_GO_GO111MODULE=on` because updateservicectl now relies
on Go module.
2021-07-06 12:31:13 +02:00
Dongsu Park
1694beca3f Merge pull request #174 from kinvolk/rust-1.53.0-main
Upgrade virtual Rust in main from 1.52.1 to 1.53.0
2021-07-06 11:43:50 +02:00
Dongsu Park
37eeb0f666 Merge pull request #1068 from kinvolk/rust-1.53.0-main
Upgrade dev-lang/rust in main from 1.52.1 to 1.53.0
2021-07-06 11:43:31 +02:00
Dongsu Park
7a418b4212 Merge pull request #1088 from kinvolk/dongsu/libpcre-8.44
profiles,app-crypt: fixes needed by libpcre 8.44
2021-07-05 14:19:20 +02:00
Dongsu Park
b7609c8644 Merge pull request #184 from kinvolk/dongsu/libpcre-8.44
dev-libs/libpcre: update to 8.44
2021-07-05 14:19:07 +02:00
Mathieu Tortuyaux
377d68fbc3 Merge pull request #1087 from kinvolk/t-lo/update-to-glibc-2.33
Upgrade to glibc-2.33
2021-07-05 14:05:57 +02:00
Dongsu Park
e91efef4ff app-crypt/mit-krb5: add warn-crossbuild.patch
Set PYTHON_COMPAT to python 3.6 and 3.7 to be suitable for the current
code base.

Add a custom patch to replace error with warning when running autoconf
for cross builds, because libkrb5 is not able to detect
cross-compilation.

See also https://github.com/kinvolk/Flatcar/issues/369 .
2021-07-05 13:08:35 +02:00
Dongsu Park
c4e7fd6fca app-crypt/mit-krb5: move from portage-stable
To add a custom patch, move mit-krb5 from portage-stable to
coreos-overlay, and update it to 1.18.2-r4.
2021-07-05 13:08:35 +02:00
Flatcar Buildbot
b9c3e25d51 Upgrade virtual Rust in main from 1.52.1 to 1.53.0 2021-07-05 12:59:59 +02:00
Flatcar Buildbot
fc048ca53c dev-lang: Upgrade dev-lang/rust 1.52.1 to 1.53.0 2021-07-05 12:59:07 +02:00
Dongsu Park
bfc8d0ef5f app-crypt/mit-krb5: move to coreos-overlay
To add a custom patch to mit-krb5, move it to coreos-overlay.
2021-07-05 11:06:26 +02:00
Dongsu Park
659f32a73b dev-libs/libverto: update to 0.3.1-r1
Update dev-libs/libverto to 0.3.1-r1, to avoid failures like below:

```
!!! All ebuilds that could satisfy "=dev-libs/libverto-0.3.1-r1" for
/usr/aarch64-cros-linux-gnu/ have been masked.
!!! One of the following masked packages is required to complete your
request:
- dev-libs/libverto-0.3.1-r1::portage-stable (masked by: ~arm64 keyword)
```
2021-07-05 11:06:26 +02:00
Dongsu Park
a28f63378d dev-libs/libev: update to 4.33
Update dev-libs/libev to 4.33, needed by libpcre 8.44.
2021-07-05 11:06:26 +02:00
Dongsu Park
ac81c59212 virtual/acl: update to acl-0-r2
Update virtual/acl to 0-r2.
Otherwise build will fail on arm64 due to missing keywords.
2021-07-05 11:06:26 +02:00
Dongsu Park
6904a001b1 dev-libs/libpcre: update to 8.44
Update dev-libs/libpcre to 8.44, mainly to address security issues
like CVE-2019-20838, CVE-2020-14155 .
2021-07-05 11:06:26 +02:00
Mathieu Tortuyaux
a26bcc0184 coreos-base/update_engine: bump commit ID
related to: https://github.com/kinvolk/update_engine/pull/10,
https://github.com/kinvolk/Flatcar/issues/356

Signed-off-by: Mathieu Tortuyaux <mathieu@kinvolk.io>
2021-07-02 17:15:54 +02:00
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
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
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
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
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
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