Commit Graph

6510 Commits

Author SHA1 Message Date
Dongsu Park
dd15b2ee4d eclass: remove also other optimization flags with -Wl,-O*
We need to filter not only `-Wl,-O1`, but also other flags like
`-Wl,-O2`, `-Wl,-Og`, `-Wl,-Os`, etc. Otherwise, SDK build would fail,
for example, as its default `$LDFLAGS` includes `-Wl,-O2`.

We need to manually strip only the optimization element of
comma-separated flags, e.g. from `-Wl,-O1,-s` to `-Wl,-s`.
To support multiple characters that can follow `-O`, e.g. `-Ofast`,
we should use regexp like `[[:alnum:]]*`.
2020-11-16 13:07:04 +01:00
Thilo Fromm
dc242f0fc9 Merge pull request #684 from kinvolk/t-lo/patch-trousers
trousers: add patch to fix CVE issues
2020-11-16 09:18:16 +01:00
Dongsu Park
1310b3b004 Merge pull request #680 from kinvolk/linux-5.9.8-main
Upgrade Linux Kernel in main from 5.9.1 to 5.9.8
2020-11-13 17:43:42 +01:00
Dongsu Park
b561d71285 .github: fix mantle URL for downloading cork
The repo `github.com/flatcar-linux/mantle` has been moved to
`github.com/kinvolk/mantle`. However, Github Actions still fetch cork
binaries from the original URL, by running `curl` without `-L`. So the
request does not get redirected to the new URL. As a result,
`CORK_VERSION` becomes null.

Fix it by replacing `flatcar-linux` with `kinvolk`, as well as adding
`-L` to the curl command, just in case.
2020-11-13 16:52:22 +01:00
Thilo Fromm
0e753a02f8 app-crypt/trousers: add patch for CVEs
Signed-off-by: Thilo Fromm <thilo@kinvolk.io>
2020-11-13 16:44:29 +01:00
Dongsu Park
da29970ce8 Merge pull request #681 from kinvolk/dongsu/open-vm-tools-11.2.0
app-emulation/open-vm-tools: update to 11.2.0
2020-11-13 16:29:19 +01:00
Dongsu Park
758512c7a0 Merge pull request #677 from kinvolk/go-1.15.4-main
Upgrade Go in main from 1.15.3 to 1.15.5
2020-11-13 15:34:19 +01:00
Dongsu Park
5f7126329e eclass: remove -Wl,-O1 from LDFLAGS passed to go_export
Go 1.15.5 fixed a security issue CVE-2020-28366, by rejecting certain
LDFLAGS for CGO. See https://github.com/golang/go/issues/42559.

However, that change breaks builds based on the Flatcar build chain,
because `go_export` sets `$LDFLAGS` to `-Wl,-O1 -Wl,--as-needed`.
As a result, Go build fails like:

```
go build runtime/cgo: invalid flag in go:cgo_ldflag: -Wl,-O1
```

We need to remove the flag `-Wl,-O1` from $LDFLAGS before building the
Go runtime, to fix the failure.
2020-11-13 15:25:57 +01:00
Dongsu Park
0c75022065 Merge pull request #676 from kinvolk/dongsu/samba-sssd
net-fs,sys-auth: Update samba 4.11.13, sssd 2.3.1
2020-11-13 15:10:23 +01:00
Dongsu Park
e27a7f1bfe Merge pull request #675 from kinvolk/dongsu/bind-tools-gssapi
profiles: enable gssapi for bind-tools in SDK
2020-11-13 15:04:35 +01:00
Dongsu Park
d1952f9a5e Merge pull request #671 from kinvolk/dongsu/shadow-4.8
sys-apps/shadow: update to 4.8-r5, apply Flatcar changes
2020-11-13 15:00:33 +01:00
Dongsu Park
b04b8588a0 Merge pull request #678 from kinvolk/kai/keep-network-configuration
coreos-base/coreos-(cloud)init: Point to flatcar-master
2020-11-13 14:25:25 +01:00
Dongsu Park
0985aa7629 Merge pull request #682 from kinvolk/sayan/update-open-iscsi
sys-block/open-iscsi: Add the version 2.1.2
2020-11-13 13:19:00 +01:00
Dongsu Park
cedfffecc8 coreos-base/oem-vmware: update to 11.2.0
Update oem-vmware to 11.2.0, corresponding to the update of
open-vm-tools to 11.2.0.
2020-11-13 11:43:41 +01:00
Dongsu Park
c8490d71ef app-emulation/open-vm-tools: update to 11.2.0
Update open-vm-tools 11.2.0,
https://github.com/vmware/open-vm-tools/releases/tag/stable-11.2.0 .
Update also the build number to 16938113.
2020-11-13 11:42:45 +01:00
Dongsu Park
72e72c2b3c dev-lang/go: update to 1.15.5
Update Go to 1.15.5, to fix multiple security issues,
CVE-2020-28362, CVE-2020-28367, CVE-2020-28366.

See also https://groups.google.com/g/golang-announce/c/NpBGTTmKzpM .
2020-11-13 09:56:57 +01:00
Kai Lüke
7e877dc5e4 coreos-base/coreos-(cloud)init: Point to flatcar-master
Pulls in
https://github.com/flatcar-linux/coreos-cloudinit/pull/10
https://github.com/flatcar-linux/init/pull/30
to restore the systemd-networkd 243 behavior with
KeepConfiguration=dhcp-on-stop to prevent the network from going down
before the SIGTERM is broadcasted to orphaned processes not part of a
systemd unit.
2020-11-12 21:20:01 +09:00
Flatcar Buildbot
3606555844 sys-kernel: Upgrade coreos-kernel 5.9.1 to 5.9.8 2020-11-11 07:21:16 +00:00
Dongsu Park
f24e7e43e8 profiles: unmask gnutls from the masked packages
Now that `net-libs/gnutls` needs to be included in the images, we
also need to unmask gnutls from the generic target of profiles.
2020-11-09 13:05:36 +01:00
Dongsu Park
698e9e2a9f profiles: make net-mail/mailbase provided
Although `dev-libs/cyrus-sasl` pulls in `net-mail/mailbase`, the
mailbase package is not needed at all.
Simply mark it as provided, to make it build without mailbase.

Also enable python_single_target_python3_6 for tdb, talloc, tevent.
Remove unnecessary arm64 keywords.
Clean up unnecessary USE flags.
2020-11-09 13:05:36 +01:00
Dongsu Park
9b3d0ae4f2 sys-auth/sssd: disable realm check for nsupdate
At the moment bind-tools does not enable `gssapi`, so its `nsupdate`
tool is also not able to run `realm` command. As a result, configure
script of `sssd` fails when running `echo realm | nsupdate`, like
`syntax error`.

To avoid such issues, we need to disable the nsupdate check for now.
After we could enable `gssapi` for the SDK correctly, we can bring back
the nsupdate check in the future.
2020-11-09 13:05:36 +01:00
Dongsu Park
58ccfd5208 sys-auth/sssd: move runstatedir option from configure to make
Now that the upstream sssd 2.3.1 does not support `--runstatedir` option
from its configure script, we need to remove the option, to unblock the
configure issue like `unrecognized option --runstatedir`.
Instead we need to pass `runstatedir=` to emake commands.
2020-11-09 13:04:29 +01:00
Flatcar Buildbot
ecd238e679 dev-lang: Upgrade Go 1.15.3 to 1.15.4 2020-11-09 07:29:19 +00:00
Dongsu Park
fb4c61d5d3 profiles: enable gssapi for bind-tools in SDK
In the past we
[enabled](https://github.com/flatcar-linux/coreos-overlay/commit/172d9311bacd)
the USE flag `gssapi` only for amd64, not for arm64. We did so to
avoid build issues that only happened for arm64.

However, that change caused interesting side effects in the SDK, where
bind-tools ended up being compiled without `gssapi`. It means, tools
like `nsupdate` in the SDK are not able to deal with certain commands
like `realm`. As a result, configure scripts in packages like
`sys-auth/sssd` fail, because they cannot run commands like
"echo realm | nsupdate".

We should bring the `gssapi` USE flag back to the SDK, to avoid such
issues in the future.
2020-11-06 14:10:10 +01:00
Dongsu Park
7dbd4ac634 sys-auth/sssd: make BDEPEND independent of DEPEND
The `BDEPEND` is a build-time requirement, so it should not be included
in the whole `DEPEND` list. If it does, an installation of
`sys-auth/sssd` causes other dependencies to be installed not only in
the `/build`, but also under the SDK. That's not what we want, so we
need to exclude `BDEPEND` from the list.
2020-11-06 13:52:04 +01:00
Dongsu Park
65cab2738c sys-auth/sssd: Apply Flatcar patches
Apply Flatcar-specific changes.

Original-by: Kai Lüke <kai@kinvolk.io>
https://github.com/flatcar-linux/coreos-overlay/commit/59e7f7f6ed1b
2020-11-06 13:52:01 +01:00
Dongsu Park
6c6aa8be07 sys-auth/sssd: update to 2.2.0 sync with Gentoo
Update sys-auth/sssd, by syncing with upstream Gentoo.

Mainly needed by net-fs/samba 4.11.
Also resolves CVE-2018-16883, CVE-2019-3811, CVE-2018-16838.
2020-11-06 13:51:59 +01:00
Dongsu Park
40ac654c20 profiles: set python_single_target_python3.6 for net-fs/samba 2020-11-06 13:51:57 +01:00
Dongsu Park
a5e2bf4282 net-fs/samba: Apply Flatcar changes
- Add a minimal USE flag for only installing libraries
  - Change the Perl and Python run-time deps to build-time only
  - Drop a bunch of dependencies with broken cross-compilation
  - Enable using bundled libraries in their place
  - Disable building libraries requiring Python

Original-by: David Michael <dm0@redhat.com>
https://github.com/flatcar-linux/coreos-overlay/commit/8445f8b4386a
2020-11-06 13:51:55 +01:00
Dongsu Park
28783b1e69 net-fs/samba: update to 4.11.13, sync with Gentoo
Update net-fs/samba to 4.11.13-r1, by syncing with upstream Gentoo.

It is mainly to resolve CVE-2019-10197, CVE-2020-10704, CVE-2020-10745,
and CVE-2019-10218.
See also https://security.gentoo.org/glsa/202003-52 and
https://security.gentoo.org/glsa/202007-15 .
2020-11-06 13:51:53 +01:00
Dongsu Park
c4322159bd Merge pull request #638 from flatcar-linux/dongsu/kernel-config-psi
sys-kernel/coreos-modules: enable PSI (Pressure Stall Information)
2020-11-06 09:41:39 +01:00
Sayan Chowdhury
ae0cfca4ae sys-block/open-iscsi: Add the version 2.1.2
Signed-off-by: Sayan Chowdhury <sayan@kinvolk.io>
2020-11-06 11:38:33 +05:30
Kai Lüke
eea2288fbb .github: Remove fetching unused key from gpg server
The key server currently doesn't work. Since the key is not used
currently but the key we have hosted on our web server, we can remove
this failing step to restore GitHub Actions.
2020-11-05 17:10:06 +09:00
Dongsu Park
e74f2e325d Merge pull request #669 from flatcar-linux/dongsu/dbus-glib-0.110
dev-libs/dbus-glib: update to 0.110, fix cross compile build error
2020-11-04 16:16:09 +01:00
Dongsu Park
ea970f094f sys-apps/shadow: Apply Flatcar changes
Apply Flatcar-specific changes, like below:

  - 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

Original-by: David Michael <dm0@redhat.com>
  6fd490ebfefd ("sys-apps/shadow: Apply CoreOS changes")
2020-11-04 16:03:39 +01:00
Dongsu Park
2d8dec749f sys-apps/shadow: update to 4.8-r5, sync with Gentoo
Update sys-apps/shadow to 4.8-r5, simply syncing with Gentoo.

It is mainly to resolve
[CVE-2019-19882](https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2019-19882).
See also https://security.gentoo.org/glsa/202008-09.
2020-11-04 16:03:35 +01:00
Dongsu Park
8881733152 sys-kernel/coreos-modules: enable PSI (Pressure Stall Information)
Enable Kernel config for PSI (Pressure Stall Information), which might
help system administrators to detect bottleneck in cpu, memory and io
in an easy way.

```
$ zgrep -i _psi /proc/config.gz
CONFIG_PSI=y

$ ls -l /proc/pressure/
-r--r--r--. 1 root root 0 Oct  7 11:56 cpu
-r--r--r--. 1 root root 0 Oct  7 11:56 io
-r--r--r--. 1 root root 0 Oct  7 11:56 memory
$ cat /proc/pressure/cpu
some avg10=0.13 avg60=0.68 avg300=0.28 total=1195993
$ cat /proc/pressure/io
some avg10=0.00 avg60=1.11 avg300=0.68 total=2828208
full avg10=0.00 avg60=0.91 avg300=0.56 total=2334731
$ cat /proc/pressure/memory
some avg10=0.00 avg60=0.00 avg300=0.00 total=0
full avg10=0.00 avg60=0.00 avg300=0.00 total=0
```

See also https://www.kernel.org/doc/html/latest/accounting/psi.html ,
https://facebookmicrosites.github.io/psi/docs/overview

Fixes https://github.com/flatcar-linux/Flatcar/issues/162
2020-11-04 09:37:45 +01:00
Krzesimir Nowak
aee9d1bc02 Merge pull request #659 from flatcar-linux/krnowak/systemd-gentoo
Update systemd (sync, use gentoo workflow, add missing patches)
2020-11-03 20:14:24 +01:00
Krzesimir Nowak
92a3de35e0 .github: Update KV_MAIN to 5.9 2020-11-03 12:16:56 +01:00
Krzesimir Nowak
38798dac1f sys-kernel/coreos-firmware: Update to 20200918 2020-11-03 12:16:56 +01:00
Krzesimir Nowak
86a2e229cf sys-kernel/*: Bump to 5.9.1 2020-11-03 12:16:53 +01:00
Krzesimir Nowak
8f5411b63f sys-kernel/coreos-sources: Regenerate patches against 5.9.1 2020-11-03 12:13:44 +01:00
Dongsu Park
57d56fa2c0 dev-libs/dbus-glib: Fix cross compile build error
Use host tool when building cross.
Bump revision to -r1.
Adjust the patch on top of dbus-glib 0.110.

Original-by: Geoff Levand <geoff@infradead.org>
  6d7756b77b10 ("dev-libs/dbus-glib: Fix cross compile build error")
2020-11-02 11:58:11 +01:00
Dongsu Park
e4cb197be5 dev-libs/dbus-glib: update to 0.110, sync with Gentoo
To fix build issues from glib 2.64.5, we need to update dbus-glib
to 0.110.
2020-11-02 11:57:28 +01:00
Krzesimir Nowak
1d7053e8a1 sys-apps/systemd: Add Manifest
Otherwise the build fails at the verification stage.
2020-10-26 15:03:48 +01:00
Krzesimir Nowak
e9b2cee708 sys-apps/systemd: Rename the ebuild to pick the patch release
With this change `PV` variable will become 246.6, thus it will try to
download the archive from the systemd-stable repo.
2020-10-26 14:43:28 +01:00
Krzesimir Nowak
cfd6c15d51 sys-apps/systemd: Bring the rest of missing patches
We have these patches in v245 too. I have missed them when doing the
update to v246, because apparently I have assumed that our flatcar
branches are more or less some upstream branch/tag + our patches on
top. That assumption was wrong and it surfaced when I rebased the
v245-flatcar branch to the v245.8 tag.
2020-10-26 14:40:04 +01:00
Krzesimir Nowak
37c8517551 sys-apps/systemd: Move away from cros-workon
Our current cros-workon setup was awkward to use when a new patch
release happened on upstream. In this case we would go to our
`v<VERSION>-flatcar` branch and merge/cherry-pick the commits from
upstream that appeared between the release we have been using so far
and the new release. In such case, our non-upstreamed patches were
hidden somewhere in history. To fix that, I proposed having a branch
for each patch release, so the branch would always be based on an
upstream tag and have our patches on top of that. An alternative
proposition was to just use the Gentoo workflow for patches, and this
is what we are doing here.

This also slightly minimizes the difference between the Gentoo recipe
and ours.
2020-10-26 14:33:54 +01:00
Krzesimir Nowak
c4f0e7e437 sys-apps/systemd: Sync with Gentoo
This brings in a dependency on app-arch/zstd, which will be pulled
into portage-stable.
2020-10-26 14:17:20 +01:00
Dongsu Park
17eb4d5b5e Merge pull request #658 from flatcar-linux/dongsu/gdbus-codegen
profiles: gdbus-codegen only for python 3.6
2020-10-23 15:06:31 +02:00