Commit Graph

8379 Commits

Author SHA1 Message Date
Krzesimir Nowak
b908bd1ccc coreos-base/gmerge: Stop installing gmerge script
It is not used anywhere during the build process, thus drop
it. Dropping it makes it easier to port this ebuild to python3, since
there will be only one script to port to python3. The
`emerge-gitclone` script will need porting anyway, because it imports
portage code, which will become python3 after the update.

Most likely the package should be then renamed to
`coreos-base/emerge-gitclone`, but this can be done later.
2021-02-04 18:23:01 +01:00
Dongsu Park
ebf5dd95c5 Merge pull request #826 from kinvolk/dongsu/delete-docker-1.12
app-emulation,torcx: delete docker 1.12
2021-02-04 17:57:41 +01:00
Krzesimir Nowak
a5313396a8 Merge pull request #825 from kinvolk/krnowak/nvidia-metadata-amd64-only
coreos-base/coreos: Move nvidia-metadata to amd64-only RDEPENDS
2021-02-04 17:43:26 +01:00
Dongsu Park
8ec79d7452 profiles: delete app-emulation/runc 1.0.0_rc2
Now that `app-emulation/runc` is gone, we can also delete it from
`package.use` in profiles.
2021-02-04 16:56:10 +01:00
Dongsu Park
245527a87f app-emulation/docker-runc: delete app-emulation/runc from RDEPEND
Now that `app-emulation/runc` is gone, we can delete also the negative
dependency on `app-emulation/runc` from RDEPEND of
`app-emulation/docker-runc`.
2021-02-04 16:56:10 +01:00
Dongsu Park
3305ae7947 app-emulation/runc: delete runc 1.0.0_rc2
Now that docker 1.12 is gone, we can delete `app-emulation/runc`
1.0.0_rc2, which had dependency on docker 1.12.

Note, we do not delete `app-emulation/docker-runc` 1.0.0_rc2, because
that one is needed by Docker 17.03.
2021-02-04 16:56:10 +01:00
Dongsu Park
58195cfc50 app-emulation/containerd: delete 0.2.5
Now that docker 1.12 is gone, we can also delete containerd 0.2.5,
which had dependency on docker 1.12.
2021-02-04 16:56:10 +01:00
Dongsu Park
37a19744f8 app-arch/torcx: delete docker 1.12
Delete torcx config file needed only for Docker 1.12.
Note, let's keep the remaining file name as before,
`docker-1.12-no.json`, to be consistent with naming scheme of
the torcx repo itself of Flatcar.
2021-02-04 16:56:10 +01:00
Dongsu Park
6f56f85247 app-torcx/docker: delete docker 1.12
delete torcx profiles for docker 1.12
2021-02-04 16:56:10 +01:00
Dongsu Park
291af871d7 app-emulation/docker: delete docker 1.12
One of the torcx profiles in Flatcar is for docker 1.12, which is
outdated since a long time. It takes ~27 MB of space in production
images almost for no reason.
We can and should delete docker 1.12.

After deletion:

```
$ df -h /usr
Filesystem       Size  Used Avail Use% Mounted on
/dev/mapper/usr  985M  843M   91M  91% /usr
```
2021-02-04 16:56:10 +01:00
Krzesimir Nowak
86e4dc2f8b Merge pull request #823 from kinvolk/linux-5.10.13-main
Upgrade Linux Kernel in main from 5.10.12 to 5.10.13
2021-02-04 16:25:17 +01:00
Krzesimir Nowak
0d9d6e74cc coreos-base/coreos: Move nvidia-metadata to amd64-only RDEPENDS
x11-drivers/nvidia-drivers are installed only on amd64 arch, so
install x11-drivers/nvidia-metadata also only on amd64.
2021-02-04 13:59:34 +01:00
Flatcar Buildbot
a07123d3c0 sys-kernel: Upgrade coreos-kernel 5.10.12 to 5.10.13 2021-02-04 07:24:23 +00:00
Kai Lüke
252526cb5d Merge pull request #820 from kinvolk/kai/motd-oem
coreos-base/coreos-init: Show OEM in motd
2021-02-03 15:12:05 +01:00
Kai Lüke
2604b8d782 coreos-base/oem-*: add Pro to OEM name where applicable
Using the change in https://github.com/kinvolk/init/pull/34
we can show the OEM on the motd, and by including "Pro" in the OEM
name we can also show whether it is a Pro image or not. Later this
may be revisited if the /usr/../os-release file is the place for it.
2021-02-03 14:52:43 +01:00
Kai Lüke
e688b44567 coreos-base/coreos-init: Show OEM in motd
This pulls in
https://github.com/kinvolk/init/pull/34
2021-02-03 14:52:40 +01:00
Marga Manterola
153a1615d5 Merge pull request #817 from kinvolk/marga-kinvolk/missing-mkdir
flatcar-eks: add missing mkdir and update to latest versions
2021-02-03 12:24:29 +01:00
Kai Lüke
0a561945e2 Merge pull request #818 from kinvolk/kai/tss-gid
sys-apps/baselayout: use correct GID for tss in /etc/passwd
2021-02-03 11:16:02 +01:00
Sayan Chowdhury
a7289f52fa Merge pull request #762 from kinvolk/sayan/handle-nvidia-upgrades
x11-drivers/nvidia-drivers: Handle NVIDIA Version upgrades
2021-02-03 14:40:11 +05:30
Kai Lüke
f0164576fd sys-apps/baselayout: use correct GID for tss in /etc/passwd
This pulls in
https://github.com/kinvolk/baselayout/pull/15
2021-02-02 19:49:17 +01:00
Dongsu Park
23fa9c264f Merge pull request #816 from kinvolk/dongsu/cri-tools
app-emulation/cri-tools: add a new package
2021-02-02 18:19:01 +01:00
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
Margarita Manterola
017f65df7e flatcar-eks: add missing mkdir and update to latest versions
The bootstrapping script relies on /etc/docker existing, but this
directory doesn't exist on vanilla Flatcar. Add the missing call to
mkdir -p /etc/docker before the directory gets used.

Also, update the upstream files to their latest version.
2021-02-02 14:11:13 +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
Sayan Chowdhury
80f63d2cfb x11-drivers/nvidia-metadata: Handle NVIDIA Version upgrades
Move the NVIDIA variables into a seperate file inorder to handle them
when Flatcar upgrade happens

Signed-off-by: Sayan Chowdhury <sayan@kinvolk.io>
2021-02-02 11:09:09 +05:30
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
4f0dfbe755 Merge pull request #814 from kinvolk/kai/fix-motd-failed-units
sys-apps/baselayout: fix failed unit parsing
2021-02-01 14:18:21 +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
e04c5d4447 Merge pull request #804 from kinvolk/t-lo/sudo-remove-perl-dependency
app-admin/sudo: remove perl dependency
2021-01-27 16:30:43 +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
496624856b Merge pull request #803 from kinvolk/t-lo/update-sudo-to-1.9.5_p2
update sudo to 1.9.5_p2
2021-01-27 12:24:22 +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
f3abf2053c Merge pull request #802 from kinvolk/dongsu/nspr-sdk
coreos-base/hard-host-depends: bring back dependency on dev-libs/nspr
2021-01-26 14:35:30 +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