Commit Graph

6663 Commits

Author SHA1 Message Date
Dongsu Park
dacbfd7721 coreos-base/coreos: add cri-tools to base packages
Add a new ebuild `app-emulation/cri-tools` to the dependencies list of
`coreos-base/coreos`, to get included in the production image.
2021-02-02 14:15:35 +01:00
Dongsu Park
13946b551d app-emulation/cri-tools: apply Flatcar patches
Update to 1.19.0, to keep up with recent releases of cri-tools.
Note that we should not simply update to 1.20.0, because its crictl
binary file is 30M, so bigger than the usual size.
On the other hand, crictl 1.19.0 is only 21M.

To optimize the binary size of crictl, make use of the existing
helpers provided by `coreos-go.eclass`.
Add "-X $(PROJECT)/pkg/version.Version=$(VERSION)" to GO_LDFLAGS,
as the original cri-tools Makefile does.
Note, we cannot run the native command like `emake crictl`, because
the cri-tools Makefile does not allow custom env variables like
BUILDTAGS or GO_LDFLAGS to be configured.

Add `arm64` to ACCEPTED_KEYWORDS.

Remove unnecessary files from installation, as well as the bash
completion eclass.
2021-02-02 14:15:16 +01:00
Dongsu Park
94a00872df app-emulation/cri-tools: sync with Gentoo
To add a new ebuild `app-emulation-cri-tools`, sync with Gentoo.
2021-02-02 08:55:58 +01:00
Krzesimir Nowak
e900e5d6ea Merge pull request #810 from kinvolk/krnowak/systemd-install-fix
sys-apps/systemd: Fix unit installation
2021-02-01 19:06:12 +01:00
Krzesimir Nowak
5f1fe03412 Merge pull request #813 from kinvolk/linux-5.10.12-main
Upgrade Linux Kernel in main from 5.10.10 to 5.10.12
2021-02-01 19:01:23 +01:00
Kai Lüke
aa8083cd03 Merge pull request #809 from kinvolk/kai/tcsd
app-crypt/trousers: use correct file permissions
2021-02-01 18:04:05 +01:00
Kai Lüke
a658465ee9 sys-apps/baselayout: fix failed unit parsing
This pulls in
https://github.com/kinvolk/baselayout/pull/16
to fix parsing of failed units shown as motd.
2021-02-01 14:17:08 +01:00
Flatcar Buildbot
66c26e82e3 sys-kernel: Upgrade coreos-kernel 5.10.10 to 5.10.12 2021-01-31 07:30:17 +00:00
Krzesimir Nowak
8a67dfa986 sys-apps/systemd: Fix unit installation
The systemd.eclass was not finding the systemd pkg-config file to
figure out the system unit directory, so it was falling back to a
hardcoded default (`/lib/systemd/system`). In one case (when
overriding the `default.target` symlink), we tried to fix that by
specifying the `PKG_CONFIG_LIBDIR` environment variable, but that
still did not help.

Using functions from `systemd.eclass` in a systemd ebuild is working
only by chance here. This eclass is usually meant for ebuilds that
depend on systemd and rely on systemd being already installed in the
root filesystem.

The functions in `systemd.eclass` that need to figure out some values
from systemd's pkg-config file (like system unit directory) assume
that systemd is already installed in the root filesystem, which is not
the case when we actually are building and installing systemd.

To add an insult to the injury, `systemd.eclass` is not using
pkg-config directly, but rather a shell script that wraps pkg-config
(for example `/usr/bin/x86_64-cros-linux-gnu-pkg-config`). The script
clobbers the environment variables like `PKG_CONFIG_PATH` or
`PKG_CONFIG_LIBDIR`, which is why overriding them did not work when
fixing up the `default.target` symlink. Thus `systemd.eclass` was
actually falling back to a hardcoded default value. The only way to
control the script is through either SYSROOT or ROOT environment
variables. So do so.

This fixes merging the installed files into root file system using a
newer version of portage. The failure was that systemd build system
installs the `default.target` symlink in `/usr/lib/systemd/system`
pointing to `graphical.target`, while we later try to override it to
point it to `multi-user.target`.  But instead of overriding a symlink,
we installed a new symlink in `/lib/systemd/system`. Both `/lib` and
`/usr/lib` are separate directories in the temporary installation
directory, but in root filesystem, both are symlinks pointing to the
same directory. Which means that we ended up with two different
symlinks in temporary installation directory, and the new portage
version could not decide which one to use during the merge into the
root filesystem. I'm not sure what old portage version did here,
likely worked by chance too.
2021-01-29 21:42:31 +01:00
Kai Lüke
e75255bd67 app-crypt/trousers: use correct file permissions
The security patch that was brought in has stricter permission checks
which cause the service to fail:
ERROR: TCSD config file (/etc/tcsd.conf) must be user/group root/tss
Set the expected file ownership and permissions.

https://github.com/kinvolk/Flatcar/issues/335
2021-01-29 12:07:18 +01:00
Thilo Fromm
128f661745 app-admin/sudo: Apply Flatcar patches (remove perl dep)
Signed-off-by: Thilo Fromm <thilo@kinvolk.io>
2021-01-27 16:08:52 +01:00
Thilo Fromm
00abfb8538 app-admin/sudo,profiles: apply Flatcar patches
Signed-off-by: Thilo Fromm <thilo@kinvolk.io>
2021-01-27 12:22:19 +01:00
Thilo Fromm
131c6d1cba app-admin/sudo: update to 1.9.5_p2 (gentoo upstream)
Signed-off-by: Thilo Fromm <thilo@kinvolk.io>
2021-01-27 12:22:19 +01:00
Dongsu Park
9e0d1246a7 coreos-base/hard-host-depends: bring back dependency on dev-libs/nspr
Now that `dev-libs/nss` is removed from the depencencies list of
hard-host-depends, SDK does not include `dev-libs/nspr` any more.
As a result, `dev-lang/spidermonkey` fails to build, because it requires
`dev-libs/nspr` in the SDK. It is not sufficient to have nspr under
`/build/amd64-usr`.

Add `dev-libs/nspr` back to the dependencies of `hard-host-depends`,
to make it included in the SDK.
2021-01-26 10:52:33 +01:00
Sayan Chowdhury
e3511d1c79 Merge pull request #791 from kinvolk/sayan/update-iscsi-2.1.3
sys-block/open-iscsi: Update iscsi to 2.1.3
2021-01-25 19:07:15 +05:30
Dongsu Park
92b9b9ed01 Merge pull request #800 from kinvolk/dongsu/drop-nss
coreos-base,profiles: delete nss
2021-01-25 11:48:29 +01:00
Marga Manterola
b94a88eeba Merge pull request #798 from kinvolk/linux-5.10.10-main
Upgrade Linux Kernel in main from 5.10.8 to 5.10.10
2021-01-25 11:08:30 +01:00
Marga Manterola
716ee566f1 Merge pull request #799 from kinvolk/go-1.15.7-main
Upgrade Go in main from 1.15.6 to 1.15.7
2021-01-25 11:07:49 +01:00
Dongsu Park
d9c47f2e93 profiles: drop dev-libs/nss
Since an unnecessary ebuild `dev-libs/nss` was deleted, we should
also remove `dev-libs/nss` from profiles.
2021-01-25 10:09:58 +01:00
Dongsu Park
4b498ee81d coreos-devel/sdk-depends: drop dev-libs/nss
Since an unnecessary ebuild `dev-libs/nss` was deleted, we should
also remove `dev-libs/nss` from SDK dependencies.
2021-01-25 10:08:46 +01:00
Dongsu Park
d255c6b3b1 Merge pull request #795 from kinvolk/dongsu/open-vm-tools-11.2.5
app-emulation/open-vm-tools: update to 11.2.5
2021-01-25 09:55:03 +01:00
Flatcar Buildbot
86f7618d06 dev-lang: Upgrade Go 1.15.6 to 1.15.7 2021-01-25 08:14:17 +00:00
Flatcar Buildbot
a4783897bc sys-kernel: Upgrade coreos-kernel 5.10.8 to 5.10.10 2021-01-24 07:58:24 +00:00
Margarita Manterola
9b18ee2ede flatcar-eks: facilitate provisioning EKS workers
This change adds a new flatcar-eks package, that ships with all scripts
needed to join a Flatcar instance to an EKS cluster.

It includes the bootstrap.sh script used on Amazon Linux, to keep
compatibility with existing provisioning tools.

The package is included from the oem-ec2-compat package, when the board
is aws_pro, and it's part of board-packages, so that it's built by the
os/board/packages job.
2021-01-22 17:22:46 +01:00
Dongsu Park
c7449edc42 coreos-base/oem-vmware: update to 11.2.5
Update oem-vmware to 11.2.5, corresponding to the update of
open-vm-tools to 11.2.5.
2021-01-22 16:38:27 +01:00
Dongsu Park
02dbb8e4b2 app-emulation/open-vm-tools: update to 11.2.5
Update open-vm-tools 11.2.5,
https://github.com/vmware/open-vm-tools/releases/tag/stable-11.2.5 .
Update also the build number to 17337674.
2021-01-22 16:37:41 +01:00
Krzesimir Nowak
82366dc61e profiles: Drop obsolete record on libnih 2021-01-21 17:57:37 +01:00
Krzesimir Nowak
2e849b27c5 coreos-base/hard-host-depends: Drop dependency on libnih
It used to be a dependency of upstart and ureadahead, both dropped
long long time ago. Also drop nih-dbus-tool, which was built from
upstart too.

Found this out when updated profiles in portage-stable masked the
library.
2021-01-21 17:57:37 +01:00
Sayan Chowdhury
b24a61edf5 sys-apps/systemd: Fix the DefaultTasksMax patch to default to 100%
Signed-off-by: Sayan Chowdhury <sayan@kinvolk.io>
2021-01-21 15:55:53 +05:30
Sayan Chowdhury
0a7ffd5229 Merge pull request #790 from kinvolk/sayan/update-systemd
sys-apps/systemd: Update to systemd v247
2021-01-21 12:49:13 +05:30
Sayan Chowdhury
f0c0fe10af sys-apps/systemd: Update to systemd v247
Signed-off-by: Sayan Chowdhury <sayan@kinvolk.io>
2021-01-20 12:04:33 +00:00
Sayan Chowdhury
1cbe7c1fd2 sys-block/open-iscsi: Apply Flatcar patches
Signed-off-by: Sayan Chowdhury <sayan@kinvolk.io>
2021-01-20 10:04:27 +00:00
Sayan Chowdhury
c73b19d504 sys-block/open-iscsi: Sync from Gentoo
sync ref: 3e85eb9a786a79658e0abdb357f92f06ebf2a154

Signed-off-by: Sayan Chowdhury <sayan@kinvolk.io>
2021-01-20 09:44:48 +00:00
Krzesimir Nowak
7992b94560 app-emulation/open-vmdk: Update
Replace the use of deprecated git eclass with git-r3 and bump the
commit version to latest version. This version dropped a dependency on
jq.

It is a breaking change for users of mkova.sh, since it has changed
the order of parameters to allow passing multiple vmdk files to it.
2021-01-19 12:58:00 +01:00
Dongsu Park
4ff2518ba3 Merge pull request #782 from kinvolk/dongsu/curl-7.74
profiles: disable cxx for net-libs/nghttp2
2021-01-19 12:41:33 +01:00
Dongsu Park
9375f927fc profiles: disable cxx for net-libs/nghttp2
When building `net-libs/nghttp2` needed by curl 7.74, build fails
when checking for prerequisites of boost libs.

```
configure:20402: checking whether the Boost::ASIO library is available
configure:20433: x86_64-cros-linux-gnu-g++ -std=c++14 -c -O2 -pipe
-mtune=generic -g   conftest.cpp >&5
configure:20433: $? = 0
configure:20447: result: yes
configure:20540: error: Could not find a version of the library!
```

To avoid such issues, we should disable the `cxx` USE flag for
`net-libs/nghttp2`.
2021-01-18 18:23:37 +01:00
Marga Manterola
c0e950abc9 Merge pull request #785 from kinvolk/linux-5.10.8-main
Upgrade Linux Kernel in main from 5.10.7 to 5.10.8
2021-01-18 12:21:29 +01:00
Kai Lüke
168c59752f Merge pull request #774 from kinvolk/kai/use-go-1.13-for-docker
app-emulation/(docker*|containerd): Revert to Go 1.13
2021-01-18 11:57:00 +01:00
Flatcar Buildbot
ddc4dac853 sys-kernel: Upgrade coreos-kernel 5.10.7 to 5.10.8 2021-01-18 07:59:25 +00:00
Krzesimir Nowak
03d24ee62c Merge pull request #780 from kinvolk/krnowak/syslinux-url
sys-boot/syslinux: Update the SRC_URI to use kernel.org directly
2021-01-17 16:13:39 +01:00
Krzesimir Nowak
0852e93c07 dev-libs/openssl: Drop bindist from RESTRICT variable
It's really a hindrance during bootstrap, and we would be looking into
ways of making an exception for openssl anyway. Using
package.accept_restrict file does not do the trick, apparently because
of catalyst using its own portage config.
2021-01-15 14:10:19 +01:00
Krzesimir Nowak
afae905dfa sys-boot/syslinux: Update the SRC_URI to use kernel.org directly
It seems that there is no "kernel" mirror specified in third party
mirrors files in profiles any more. And gentoo seems to have switched
to direct kernel.org URLs anyway, probably because kernel.org is using
also some mirroring system, so we don't have to. Also, this syslinux
version is quite old, so if its tarball ever was on distfiles mirror,
it's gone by now.
2021-01-15 14:08:00 +01:00
Margarita Manterola
724a868e10 dev-lang/rust: Fix patch name 2021-01-14 12:19:05 +01:00
Margarita Manterola
4ba48d93d3 dev-lang/rust: Move TargetResult to Target in our local patch
The target methods have undergone significant refactoring. The return
value is no longer a TargetResult, it's just a Target. And also the
vendor is now part of the options.
2021-01-14 11:50:24 +01:00
Kai Lüke
2aaec9f0f5 app-emulation/(docker*|containerd): Revert to Go 1.13
When Docker/containerd binaries are compiled with Go 1.15 the
containers generate many signal 23 (SIGURG) events which flood
monitoring systems:
  https://github.com/kubernetes/kops/issues/10388
The SIGURG signal does not kill the process but is generated by Go
runtime scheduling:
  https://go.googlesource.com/proposal/+/master/design/24543-non-cooperative-preemption.md)
Because the Go runtime does not know if the process expects external
SIGURG signals, the signal is not filtered out but reported to the
process: https://github.com/golang/go/issues/37942
The process has to filter this signal out itself before forwarding it
to, e.g,. children processes or logs.
This change was introduced with the Go 1.15 update (actually Go 1.14
but Flatcar skipped that for Stable), however, while containerd has
some workarounds in place, e.g., in
https://github.com/containerd/containerd/pull/4532 but there are still
areas where the signal is not handled correctly.
Until this is the case, downgrade to use the Go 1.13 compiler for
Docker/containerd binaries.

See https://github.com/kinvolk/Flatcar/issues/315
2021-01-13 15:27:24 +01:00
Marga Manterola
b3d97f7eb0 Merge pull request #765 from kinvolk/rust-1.49.0-main
Upgrade dev-lang/rust in main from 1.48.0 to 1.49.0
2021-01-13 10:46:29 +01:00
Marga Manterola
cd0f74d157 Merge pull request #777 from kinvolk/linux-5.10.7-main
Upgrade Linux Kernel in main from 5.10.4 to 5.10.7
2021-01-13 10:45:46 +01:00
Flatcar Buildbot
f8301ebf2d sys-kernel: Upgrade coreos-kernel 5.10.4 to 5.10.7 2021-01-13 07:57:23 +00:00
Dongsu Park
9a4dd68239 dev-util/bsdiff: fix heap overflow vulnerability CVE-2020-14315
Fix a heap overflow vulnerability in bspatch included in bsdiff.

Originally the security issue was published as [FreeBSD-SA-16:29](https://www.freebsd.org/security/advisories/FreeBSD-SA-16:29.bspatch.asc),
which pointed to a FreeBSD [patch](https://security.freebsd.org/patches/SA-16:29/bspatch.patch).
However, the patch was a set of huge changes including other unrelated
changes. That's why it was not simple at all to apply the patch to
bsdiff. Both Gentoo and Flatcar have not included the fix.

Fortunately X41 D-SEC [examined](https://www.x41-dsec.de/security/news/working/research/2020/07/15/bspatch/)
the issue again, and nailed down to a simple patch that can be easily
applied to other trees. We simply take the patch with minimal changes.

See also [CVE-2020-14315](https://nvd.nist.gov/vuln/detail/CVE-2020-14315).
2021-01-12 17:14:44 +01:00
Dongsu Park
4f4a76a1a2 Merge pull request #772 from kinvolk/dongsu/github-actions-envvar-string
.github: fix env vars and sed expressions
2021-01-12 17:14:05 +01:00