14983 Commits

Author SHA1 Message Date
Krzesimir Nowak
0e7b9ab914 dev-util/perf: Support python 3.6 2021-11-29 16:31:45 +01:00
Krzesimir Nowak
285e82c44a dev-util/perf: Sync with gentoo
It's from gentoo commit 6ede713804d35a8de4590ac3459a7c8f2c0ee4fd.
2021-11-29 16:31:45 +01:00
Krzesimir Nowak
ec2b61fce1 sys-kernel/linux-headers: Sync with gentoo
It's from gentoo commit 6beda972e3fc6a2a32603652855a83da1b61e4b3.
2021-11-29 16:31:45 +01:00
Mathieu Tortuyaux
ac99563d5e app-admin/etcd-wrapper: remove ETCD_NAME
`etcd` node's name was defined by `ETCD_NAME`, from `etcd/v3` the server
can't be started with both `ETCD_NAME` and `--name` supplied.

Which leads to three cases:
* `etcd-member.service` starts without further configuration, no issue
since only `ETCD_NAME=%m` is used
* `etcd-member.service` is overrided with a CLC without `name: ` key, no
issue since only `ETCD_NAME=%m` is used
* `etcd-member.service` is overrided with a CLC with a `name: ` key,
there is an issue since in the final service we will have both
`ETCD_NAME=%m` and `--name name-from-clc`

This patch conditionally unset the `ETCD_NAME` in case `--name` is
supplied.

Signed-off-by: Mathieu Tortuyaux <mtortuyaux@microsoft.com>
2021-11-29 10:49:39 +01:00
flatcar-ci
8c877b7bb9 sdk_container: rebase on latest main (all 3 repos)
Signed-off-by: flatcar-ci <infra+ci@flatcar-linux.org>
2021-11-26 17:55:49 +01:00
flatcar-ci
cfc007be17 alpha-3046.0.0
Signed-off-by: flatcar-ci <infra+ci@flatcar-linux.org>
2021-11-26 17:54:43 +01:00
Thilo Fromm
1d1c6048d4 sdk-container: add @krnowak's suggestions from code review
Co-authored-by: Krzesimir Nowak <knowak@microsoft.com>
2021-11-26 17:54:43 +01:00
Thilo Fromm
2324c5eeff sdk_container: fix submodules parent path in container
Signed-off-by: Thilo Fromm <thilo@kinvolk.io>
2021-11-26 17:54:43 +01:00
Thilo Fromm
b567344234 sdk-container: add scripts for containerised SDK
This change introduces a containerised SDK as a replacement for cork SDK
operations. It also simplifies versioning by removing the need for
manifest repos as well as usage of the "repo" tool by use of git
submodules for coreos-overlay and portage-stable.

The following feature scripts are added:
- run_sdk_container: Run a command in an SDK container, using the
        current scripts repo + ebuild submodules.
        current scripts repo + ebuild submodules.
- bootstrap_sdk_container / build_sdk_container_image: Bootstrap a new
        SDK and create an SDK container from the resulting SDK tarball.

The following additions have been made to SDK scripts:
- setup_board: add --pkgdir parameter to use a custom binary packge
  directory.

Signed-off-by: Thilo Fromm <thilo@kinvolk.io>
2021-11-26 17:54:43 +01:00
Dongsu Park
f386da4005 Merge pull request #1445 from flatcar-linux/dongsu/gcc-9.4.0
profiles: delete unnecessary keywords for gcc
2021-11-26 16:00:03 +01:00
Dongsu Park
0eac2e4aaa changelog: add new changelog for gcc 9.4.0 2021-11-26 15:34:52 +01:00
Dongsu Park
4841bcaebf sys-devel/gcc: update gcc to 9.4.0
Update sys-devel/gcc to 9.4.0, mainly to address CVE-2020-13844.
2021-11-26 15:34:08 +01:00
Dongsu Park
bb66a28afe changelog: use date format of YYYY-MM-DD
If we use date format of DD-MM-YYYY in changelog file names, the files
will not sorted by date. e.g. 01-12-2021 will come before 25-11-2021.
Use date format of YYYY-MM-DD to make the files sorted by date.
2021-11-26 15:31:09 +01:00
Dongsu Park
80972c2b70 changelog: use date format of YYYY-MM-DD
If we use date format of DD-MM-YYYY in changelog file names, the files
will not sorted by date. e.g. 01-12-2021 will come before 25-11-2021.
Use date format of YYYY-MM-DD to make the files sorted by date.
2021-11-26 15:21:29 +01:00
Dongsu Park
e580958b30 profiles: delete unnecessary keywords for gcc
Now that gcc 9.4.0 already has stable keywords both amd64 and arm64,
we do not need to accept keywords in profiles. Simply delete.
2021-11-25 16:18:07 +01:00
Sayan Chowdhury
9ea89fe87f Merge pull request #1436 from flatcar-linux/sayan/mandate-changelog-entry
changelog: Add placeholder directory to add the changelogs
2021-11-24 22:53:45 +05:30
Sayan Chowdhury
14b91f57e6 changelog: Add placeholder directory to add the changelogs
Signed-off-by: Sayan Chowdhury <schowdhury@microsoft.com>
2021-11-24 22:50:19 +05:30
Sayan Chowdhury
025273dd18 changelog: Add placeholder directory to add the changelogs
Signed-off-by: Sayan Chowdhury <schowdhury@microsoft.com>
Co-authored-by: Mathieu Tortuyaux <mtortuyaux@microsoft.com>
Co-authored-by: Kai Lüke <pothos@users.noreply.github.com>
Signed-off-by: Sayan Chowdhury <schowdhury@microsoft.com>
2021-11-24 22:49:48 +05:30
Dongsu Park
8ec91fc7c8 Merge pull request #1408 from ArkaprabhaChakraborty/arkaprabha/upgrade-net-libs-libmicrohttpd
Upgrade net-libs/libmicrohttpd to 0.9.73
2021-11-23 15:28:38 +01:00
Kai Lueke
e860093fe1 app-admin/logrotate: Correct downstream changes to take effect
By accident the upstream files from the example folder got used,
instead of the downstream files that were added in the files/ folder.
Also, the configuration file didn't get installed.

Use the right paths to install the downstream files.
2021-11-23 10:50:25 +01:00
ArkaprabhaChakraborty
4032d3a5e5 Remove net-libs/libmicrohttpd from package.accept_keywords 2021-11-21 15:09:15 +00:00
ArkaprabhaChakraborty
d7d1a79cd7 Upgrade net-libs/libmicrohttpd to 0.9.73
Signed-off-by: ArkaprabhaChakraborty <chakrabortyarkaprabha998@gmail.com>
2021-11-21 13:39:52 +00:00
Dongsu Park
d68272f5e6 Merge pull request #1431 from flatcar-linux/dongsu/rsync-3.2.3-r5
profiles: accept keywords for rsync 3.2.3-r5
2021-11-19 17:41:44 +01:00
Dongsu Park
4739a90732 Merge pull request #1435 from flatcar-linux/linux-5.10.80-main
Upgrade Linux Kernel in main from 5.10.78 to 5.10.80
2021-11-19 17:38:25 +01:00
Mathieu Tortuyaux
218b96730b app-emulation/docker-cli: use ${PV} for CLI version
Upstream isn't updating the file regularly, so use ${PV}.

Closes: https://bugs.gentoo.org/815658
Closes: https://github.com/gentoo/gentoo/pull/22457
Package-Manager: Portage-3.0.20, Repoman-3.0.3
Signed-off-by: Mathieu Tortuyaux <mtortuyaux@microsoft.com>
Signed-off-by: William Hubbs <williamh@gentoo.org>
2021-11-19 17:23:20 +01:00
Flatcar Buildbot
494c12850f app-emulation: Upgrade Docker 20.10.10 to 20.10.11 2021-11-19 17:23:19 +01:00
Dongsu Park
bd623c63e9 profiles: accept keywords for rsync 3.2.3-r5 2021-11-19 09:21:07 +01:00
Flatcar Buildbot
e7d74d8a45 app-emulation: Upgrade Containerd 1.5.7 to 1.5.8 2021-11-19 09:18:57 +01:00
Flatcar Buildbot
e277aa133a sys-kernel: Upgrade Kernel 5.10.78 to 5.10.80 2021-11-19 07:24:19 +00:00
Mathieu Tortuyaux
46edd14fad Merge pull request #1426 from flatcar-linux/tormath1/selinux
sec-policy/selinux-base-policy: add capability to unlabeled_t
2021-11-18 16:57:53 +01:00
Mathieu Tortuyaux
5c25c3835c sec-policy/selinux-base-policy: add capability to unlabeled_t
with this patch, we allow `unlabeled_t` to associate to tmpfs
filesystem.
It aims to solve the AVC we have with `torcx` with the
`torcx-generator`:
```
Nov 15 09:45:43 localhost audit[688]: AVC avc: denied { associate } for pid=688 comm="torcx-generator" name="docker" dev="tmpfs" ino=2 scontext=system_u:object_r:unlabeled_t:s0 tcontext=system_u:object_r:tmpfs_t:s0 tclass=filesystem permissive=0
```

It has been not been caught earlier because it occurs
when the system boots with `SELinux` in `enforcing` mode.

This denial was preventing torcx to finish correctly its setup and so
Docker was not able to start.

Signed-off-by: Mathieu Tortuyaux <mtortuyaux@microsoft.com>
2021-11-18 16:56:55 +01:00
Dongsu Park
e3d44a3cc8 net-misc/rsync: update to 3.2.3-r5
Mainly to address CVE-2020-14387 .
2021-11-18 14:17:06 +01:00
Flatcar Buildbot
b1f26fb9de app-misc: Upgrade ca-certificates 3.70 to 3.72 2021-11-17 16:03:23 +00:00
Dongsu Park
b65c369d0a .github: fix version delimiter of ca-certs workflow for main
Since every tag of the nss Github repo has `_` delimiters, we need to
first use `sort -t_` for sorting, then after that we need to replace `_`
with `.` by calling tr. Without that conversion, the input ebuild file
name will be wrong.
We fixed the issue in all other maintenance branches, but not in main.
Fix that also in main.
2021-11-17 16:25:41 +01:00
Dongsu Park
f561ec568c .github: add Github Actions for ca-certificates
Automatically update app-misc/ca-certificates , a derivative of
nss https://hg.mozilla.org/projects/nss . To make things easier,
we simply check for new releases on its Github mirror
https://github.com/nss-dev/nss . When the new latest tag is found,
simply bump the version of ca-certificates ebuild.
2021-11-16 15:30:13 +01:00
Krzesimir Nowak
e6897de5e4 sys-fs/btrfs-progs: Apply Flatcar modifications 2021-11-15 15:29:26 +01:00
Krzesimir Nowak
ed3e805682 sys-fs/btrfs-progs: Add from gentoo
It's from gentoo commit 638e02f491a1e37f2af31523490f00f8a118419d.
2021-11-15 15:29:26 +01:00
Krzesimir Nowak
f6b8a1ab88 sys-fs/lvm2: Fix detection of systemd util directory
There usually exists a way to tell the configure script to use certain
path, so the script won't try to autodetect things. This is a case for
the systemd system unit directory, but apparently not for systemd util
directory. So for the system unit directory, we can forward the path
we received from systemd.eclass' `systemd_get_systemunitdir`, but for
the util directory, we need to hack the script with `sed`. The reason
for this is that autodetected directory will have the sysroot path
prepended twice. The systemd eclass has a workaround for this issue.
2021-11-15 15:29:26 +01:00
Krzesimir Nowak
2cc885be59 app-crypt/p11-kit: Apply Flatcar modifications 2021-11-15 15:29:26 +01:00
Krzesimir Nowak
ce7cc55536 app-crypt/p11-kit: Add from gentoo
It's from gentoo commit 38b155fa1bf907617067c98eb4ba3a5d0790eb1a.
2021-11-15 15:29:26 +01:00
Krzesimir Nowak
4cf37b6152 sys-auth/sssd: Set the conf dir path explicitly
Without passing the --with-systemdconfdir flag, the configure script
will query pkg-config for the directory itself. In the
cross-compilation setup that we have, this will result in a path
sysroot prepended to the path twice. systemd.eclass has a workaround
for this issue, but it does not provide an elegant getter of the
system configuration directory, thus we call `_systemd_get_dir`
ourselves.
2021-11-15 15:29:26 +01:00
Krzesimir Nowak
a4373a7c1b coreos-base/update_engine: Override path to glib-genmarshal
Normally we use pkg-config to query flags and libraries that are
needed to build things. These are specific to CHOST, and the build
system usually uses pkg-config on CHOST to get those flags and
libraries. But pkg-config is also used to query for the location of
the tools used during the build, and for those we need to use
pkg-config on CBUILD. But the build system is usually using the same
pkg-config for both flags and libs, and for build tools. Which works
fine for typical builds, but breaks for cross builds.

One of such build tools is glib-genmarshal. Fortunately the build
system allows us to override the detection results by passing
GLIB_GENMARSHAL="${some_path}" to the configure script. So do that.
2021-11-15 15:29:26 +01:00
Krzesimir Nowak
6c5f93d3ba dev-libs/dbus-glib: Apply Flatcar modifications 2021-11-15 15:29:26 +01:00
Krzesimir Nowak
f942b28dca dev-libs/dbus-glib: Sync with gentoo 2021-11-15 15:29:26 +01:00
Krzesimir Nowak
2172004803 sys-apps/systemd: Reimplement builddir_ functions
This is to avoid querying pkg-config for this information and
overriding the SYSROOT variable. These hacks seem to be broken with
the change of the pkgconfig implementation.

We know what will the path for the directory of the system units -
it's based on rootprefix that we pass to configure script. So use this
knowledge directly instead of getting it in a roundabout way from
pkg-config file.
2021-11-15 15:29:26 +01:00
Krzesimir Nowak
a1a8d57868 profiles: Drop dev-util/pkgconfig from package.use
The package is about to be replaced with dev-util/pkgconf.
2021-11-15 15:29:26 +01:00
Krzesimir Nowak
d35d4b7534 sys-fs/btrfs-progs: Move to overlay
We will need to patch the configure script to override the udev rules
directory.
2021-11-15 15:28:11 +01:00
Krzesimir Nowak
58e3b78944 eclass/udev: Revert some changes
We still have old EAPIs around, so keep supporting them.
2021-11-15 15:28:11 +01:00
Krzesimir Nowak
237eaf7d8c eclass/udev: Sync with gentoo
It's from gentoo commit 3fc8be35607dc65897279f666c8171b174dd2bf2.
2021-11-15 15:28:11 +01:00
Krzesimir Nowak
d67c558126 eclass/bash_completion-r1: Backport the fix for paths from systemd.eclass
The paths returned by pkg-config seem to have sysroot prepended
twice. The systemd eclass has a workaround for that - use it for bash
completion files too, then.
2021-11-15 15:28:11 +01:00