6534 Commits

Author SHA1 Message Date
Thilo Fromm
d937cff9a7 coreos-devel/fero-client: fix grpc-sys-0.2.3 + glibc-2.32 compile issue
Signed-off-by: Thilo Fromm <thilo@kinvolk.io>
2020-11-25 12:41:20 +01:00
Thilo Fromm
84cca56fbd sys-libs/libselinux: un-break build with >=glibc-2.30
Signed-off-by: Thilo Fromm <thilo@kinvolk.io>
2020-11-25 12:41:09 +01:00
Thilo Fromm
7f781099dd 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>
2020-11-25 12:35:53 +01:00
Thilo Fromm
ae57f04c83 sys-libs/glibc: import Gentoo upstream 2.32
Signed-off-by: Thilo Fromm <thilo@kinvolk.io>
2020-11-24 20:07:03 +01:00
Thilo Fromm
5b89af81d8 Merge pull request #700 from kinvolk/linux-5.9.10-main
Upgrade Linux Kernel in main from 5.9.8 to 5.9.10
2020-11-24 14:21:07 +01:00
Kai Lüke
aab1e0773c sys-apps/baselayout: Point to latest repo state
This pulls in
https://github.com/kinvolk/baselayout/pull/8
to add tmpfile directives for for /opt and /opt/bin
2020-11-24 14:27:43 +09:00
Flatcar Buildbot
47d4197e87 sys-kernel: Upgrade coreos-kernel 5.9.8 to 5.9.10 2020-11-23 07:22:51 +00:00
Thilo Fromm
7b0bad618f sys-(devel|libs|kernel),profiles: make upstream gdb work, add gcc-9.3.0 changes
This PR includes the necessary changes to upgrade the SDK compiler to gcc-9.3.0.
It also changes the gdb-9.2 recipe to work with the Flatcar SDK.

The changes include:

sys-devel/gdb/gdb-9.2.ebuild: use EAPI6 to work around BDEPEND emerge bug
update sys-libs/nss-usrfiles to nss-usrfiles-2.30.ebuild to support glibc > 2.29
update sys-kernel/README.md to call out need for updating kernel-headers, perf
add sys-libs/glibc/README.md outlining our changes to the glibc recipe
update profiles/coreos/base/package.accept_keywords to include new toolchain

The change also adds a README to
sys-libs/glibc/README.md
and it improves on a README in
sys-kernel/README -> sys-kernel/README.md

Signed-off-by: Thilo Fromm <thilo@kinvolk.io>
2020-11-18 14:51:35 +01:00
Thilo Fromm
abbb97f075 sys-devel: import upstream gdb-9.2, strace-5.9
Import upstream recipes to enable gcc-9.3.0 builds.

Signed-off-by: Thilo Fromm <thilo@kinvolk.io>
2020-11-18 14:35:35 +01:00
Kai Lüke
9f84992c21 Merge pull request #689 from kinvolk/kai/extend-filesystem-race
coreos-base/coreos-init: Update to latest repository state
2020-11-18 20:43:55 +09:00
Kai Lüke
f3d421f45d coreos-base/coreos-init: Update to latest repository state
This pulls in
https://github.com/kinvolk/init/pull/31
to make extend-filesystems more robust against a race.
2020-11-18 20:43:30 +09:00
Dongsu Park
233ba141b8 Merge pull request #690 from kinvolk/dongsu/sdk-dwarves
profiles: make SDK include dev-util/dwarves
2020-11-18 12:33:25 +01:00
Dongsu Park
44ac3dbd92 Merge pull request #691 from kinvolk/dongsu/kernel-configs-20201117
sys-kernel: enable BPF_JIT, POWER_SUPPLY, overlayfs options
2020-11-18 11:23:51 +01:00
Dongsu Park
8243944c99 sys-kernel: enable metacopy and redirect_dir for overlayfs
Enable CONFIG_OVERLAY_FS_METACOPY, metadata only copy up feature
in overlayfs. When turned on, overlayfs will only copy up metadata
when a metadata specific operation like chown/chmod is performed.
Full file will be copied up later when file is opened for WRITE
operation. More or less like delayed data copy up operation.

Enable CONFIG_OVERLAY_FS_REDIRECT_DIR, which is equivalent to
"redirect_dir=on" in the kernel command-line. When turned on, overlayfs
will copy up directory first, before the actual contents.

See also https://github.com/kinvolk/Flatcar/issues/170
2020-11-17 16:25:16 +01:00
Dongsu Park
935f8c0c10 profiles: make SDK include dev-util/dwarves
To build Kernel with `CONFIG_DEBUG_INFO_BTF`, we need to make `pahole`
in dwarves included in the Flatcar SDK.

To do that, we need to make it accept `~amd64` keywords for dwarves
and binutils.
Also enable USE flag `python_single_target_python3_6` for dwarves.
2020-11-17 15:47:23 +01:00
Dongsu Park
92a5bb56e8 sys-kernel: enable CONFIG_POWER_SUPPLY
CONFIG_POWER_SUPPLY enables power supply class used to represent
battery, UPS, AC or DC power supply properties to user-space.
It defines core set of attributes, which should be applicable to
most power supplies out there.

See also https://github.com/kinvolk/Flatcar/issues/215.
2020-11-17 15:02:28 +01:00
Dongsu Park
50fdab4387 sys-kernel: enable CONFIG_BPF_JIT_ALWAYS_ON
CONFIG_BPF_JIT_ALWAYS_ON enables BPF JIT and removes BPF interpreter
to avoid speculative execution of BPF instructions by the interpreter.

See also https://github.com/kinvolk/Flatcar/issues/185.
2020-11-17 15:01:27 +01:00
Thilo Fromm
ac93ed4f5d Merge pull request #683 from kinvolk/t-lo/update-bzip2-tp-1.0.8-r1
bzip2: update to 1.0.8-r1
2020-11-17 14:23:24 +01:00
Thilo Fromm
02cca6360a app-arch/bzip2: update to 1.0.8-r1
Signed-off-by: Thilo Fromm <thilo@kinvolk.io>
2020-11-17 13:58:09 +01:00
Kai Lüke
20712d803b sys-apps/seismograph: Update to latest repo state
This pulls in
https://github.com/kinvolk/seismograph/pull/5
to fix a typo in the usage output.
2020-11-17 20:24:34 +09:00
Thilo Fromm
f620c9fc23 Merge pull request #687 from kinvolk/t-lo/update-to-ntp-4.2.8_p15
update to ntp-4.2.8_p15
2020-11-16 15:46:33 +01:00
Thilo Fromm
f0fda0860a net-misc/ntp/Manifest: remove spurious _p13 hashes 2020-11-16 14:47:44 +01:00
Thilo Fromm
0a9034480a net-misc/ntp-4.2.8_p15: Apply CoreOS changes
- Check out our previous ntp.conf and service units
  - Disable USE=threads
  - Add USE=perl, disabled to skip the scripts subdir
  - Do the /etc -> /usr/share + tmpfiles dance for ntp.conf
  - Drop unused init scripts and pkg_postinst-off-by: Thilo Fromm <thilo@kinvolk.io>
2020-11-16 13:50:41 +01:00
Thilo Fromm
a2036f5771 net-misc/ntp: ingest gentoo upstream 4.2.8_p15
Signed-off-by: Thilo Fromm <thilo@kinvolk.io>
2020-11-16 13:46:10 +01:00
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