22914 Commits

Author SHA1 Message Date
Kai Lüke
e43d79f55a Merge pull request #509 from flatcar-linux/linux-5.4.55-main
Upgrade Linux Kernel in main from 5.4.53 to 5.4.55
2020-08-03 17:41:16 +02:00
Kai Lüke
08ce8054ca
Merge pull request #85 from flatcar-linux/kai/no-rust-recompilation
build_library/toolchain_util.sh: Remove old download code for Rust
2020-08-03 11:28:30 +02:00
Flatcar Buildbot
9fd5a44e39 sys-kernel: Upgrade coreos-kernel 5.4.53 to 5.4.55 2020-08-01 07:18:42 +00:00
Kai Lüke
cfdb7b0ab7
build_library/toolchain_util.sh: Remove old download code for Rust
The SDK now includes a Rust version with the aarch64 cross-compilation
libraries and the toolchain job doesn't build it anymore. Yet it was
still recompiled because the path had changed.
Remove the adjustment of the download URL and any automatic building
of Rust. Just issue a warning so that any problem can be spotted easily.
This change does not affect the SDK bootstrapping (full or just stage4)
but affects ./build_packages and the toolchains job. For the toolchains
job the crossdev setup is missing anyway and rebuilding wouldn't help
but only downloading, yet since in stage4 there are no binary package
URLs at all, it's best to remove this step and if it is needed later,
the warning will help.
2020-07-31 22:54:53 +02:00
Kai Lüke
b1af220ef9 coreos-base/coreos-init: Update to exclude weave network devices
The special weave devices are now excluded from networkd to prevent
interference.
This pulls in
https://github.com/flatcar-linux/init/pull/22
2020-07-31 15:09:47 +02:00
Kai Lüke
ba9192da26 Merge pull request #505 from flatcar-linux/kai/journal-remote-tmpfile
sys-apps/systemd: Add tmpfile directive for /var/log/journal/remote
2020-07-31 11:31:28 +02:00
Kai Lüke
f45f540b65 sys-apps/systemd: Add tmpfile directive for /var/log/journal/remote
The folder /var/log/journal/remote used to be part of the inital rootfs
through a keepdir directive in the build. However, any paths except
/usr are ephemeral and can be deleted at any time and should be recreated
with tmpfile directives. When upstream Gentoo removed the line
"keepdir /var/log/journal/remote" our tests started to fail but in fact
they could have failed earlier if they had tested with Ignition creating
a new root filesystem which lacks the /var/log/journal/remote folder.
Add a directive to create /var/log/journal/remote at runtime in any case.
2020-07-30 19:16:47 +02:00
Kai Lüke
d73b424f61 Merge pull request #496 from flatcar-linux/kai/run-flatcar-tmpfiles-and-cacerts-once
app-misc/ca-certificates|sys-apps/baselayout: Run flatcar-tmpfiles|clean-ca-certificates only once, sys-fs/lvm2: Run lvm2-activation(-early).service only once
2020-07-30 18:14:19 +02:00
Kai Lüke
7b28342265 sys-fs/lvm2: Run lvm2-activation(-early).service only once
Increase the revision and apply a new lvm2-2.02.145-oneshot.patch:
  The lvm2-activation(-early).service was triggered multiple times which
  if done too quickly leads to a failure like this:
  systemd[1]: Finished Activation of LVM2 logical volumes.
  systemd[1]: lvm2-activation-early.service: Start request repeated too quickly.
  systemd[1]: lvm2-activation-early.service: Failed with result 'start-limit-hit'.
  Set RemainAfterExit=yes as done for the other oneshot services to
  prevent the unit from running multiple times in a row and hitting the
  restart limit.
The patch was sent to upstream lvm-devel@redhat.com
2020-07-30 18:11:37 +02:00
Kai Lüke
4ac7513875 app-misc/ca-certificates|sys-apps/baselayout: Run flatcar-tmpfiles|clean-ca-certificates only once
The flatcar-tmpfiles and clean-ca-certificates services were run
many times and finally failed to run because they were spawned too
often during the allowed time period.
Mark them as active after they ran once. Also ensure that when they
run all mounts are ready.
Pulls in https://github.com/flatcar-linux/baselayout/pull/4
2020-07-30 18:11:37 +02:00
Kai Lüke
d8519f4b5c
Merge pull request #84 from flatcar-linux/kai/no-metadata-md5-cache
update_ebuilds: Do not generate metadata/md5-cache files
2020-07-30 12:13:54 +02:00
Kai Lüke
c39b2f2901 Merge pull request #499 from flatcar-linux/kai/systemd-hwdb-ebuild
sys-apps/systemd: Guard deletion of hwdb.d folder behind use flag, sys-apps/baselayout: Work around systemd-tmpfiles not finding libidn2
2020-07-29 18:55:40 +02:00
Kai Lüke
b80e236aa7 Merge pull request #92 from flatcar-linux/kai/old-readline
Revert "sys-libs/readline: update to 8.0_p4"
2020-07-29 18:53:20 +02:00
Dongsu Park
0ac37230ef dev-util/pkgconfig: bump to 0.29.2 for PKG_CHECK_MODULES_STATIC
pkg-config 0.29 or newer introduced a macro `PKG_CHECK_MODULES_STATIC`,
which is needed by ebuilds like dev-util/strace >= 5.5.
So we should update pkg-config to 0.29.2, to avoid such issues.
(see 0efb668bd5)

```
***** autoconf *****
***** PWD: /build/amd64-usr/var/tmp/portage/dev-util/strace-5.6/work/strace-5.6
***** autoconf --force -I /build/amd64-usr/usr/share/aclocal

configure:17585: error: possibly undefined macro: PKG_CHECK_MODULES_STATIC
```
2020-07-29 17:25:26 +02:00
Kai Lüke
8f994d6963 sys-apps/baselayout: Work around systemd-tmpfiles not finding libidn2
The baselayout ebuild file calls systemd-tmpfiles but despite that
the systemd ebuild file depends on libidn2 through a use flag, it was
not built early enough.
Ensure that libidn2 is built before baselayout wants to use it.
2020-07-29 16:33:32 +02:00
Kai Lüke
c66b25ccfe sys-apps/systemd: Guard deletion of hwdb.d folder behind use flag
Building systemd in the SDK bootstrap failed because the hwdb.d folder
did not exist. The upstream ebuild file has this guard:
https://gitweb.gentoo.org/repo/gentoo.git/tree/sys-apps/systemd/systemd-245.5.ebuild#n390
2020-07-29 12:37:54 +02:00
Kai Lüke
6a15a68fc3 Revert "sys-libs/readline: update to 8.0_p4"
This reverts commit 36bc8e0edb7ce961b5020b8152514560a5feb3eb
until we have a newer gdb. The md5-cache changes were dropped.
2020-07-28 18:41:24 +02:00
Kai Lüke
c0d4c41ae3 Merge pull request #498 from flatcar-linux/kai/no-md5-cache
metadata: Delete md5-cache
2020-07-28 16:52:46 +02:00
Kai Lüke
761551ac22 Merge pull request #91 from flatcar-linux/kai/no-md5-cache
metadata: Delete md5-cache
2020-07-28 16:52:23 +02:00
Kai Lüke
158f72af0f Merge pull request #494 from flatcar-linux/kai/migrate-github-actions
Migrate GitHub actions
2020-07-28 15:36:10 +02:00
Kai Lüke
d5d3368cf2 Merge pull request #90 from flatcar-linux/kai/migrate-github-actions
Migrate GitHub actions
2020-07-28 15:35:44 +02:00
Kai Lüke
254db834fd
update_ebuilds: Do not generate metadata/md5-cache files
The metadata/md5-cache is not required and we stop using it because
this machine-generated content is a common cause for merge conflicts
and has no benefits.
2020-07-28 15:18:16 +02:00
Kai Lüke
a1727654a8 .github: Do not create metadata/md5-cache commits 2020-07-28 15:12:58 +02:00
Kai Lüke
0066ee57e0 .github: Setup kernel updates for maintenance branches 2020-07-28 15:05:31 +02:00
Kai Lüke
52aaa06c79
Merge pull request #83 from flatcar-linux/kai/stage1-gcc-rebuild
build_library/catalyst.sh: Specify which gcc package to rebuild
2020-07-28 14:08:35 +02:00
Kai Lüke
c016b581b4
build_library/catalyst.sh: Specify which gcc package to rebuild
The default update seed command does only specify gcc which leads to
an error because »The short ebuild name "gcc" is ambiguous«.
Choose the standard package name instead of the cross compiler packages
which are only known to emerge because we build them as part of an SDK
release now.
2020-07-27 20:31:17 +02:00
Kai Lüke
898d49bdc1 metadata: Delete md5-cache
The metadata/md5-cache folder is machine-generated based on the
other files in the repository. It causes merge conflicts when at
one time they were not regernated in a commit and then later a
commit does it and includes cache changes which are incompatible
with later or newer states.
Remove the folder as it is not necessary to have it and was removed
in upstream Gentoo, too.
2020-07-27 16:22:24 +02:00
Kai Lüke
0324dd7f93 metadata: Delete md5-cache
The metadata/md5-cache folder is machine-generated based on the
other files in the repository. It causes merge conflicts when at
one time they were not regernated in a commit and then later a
commit does it and includes cache changes which	are incompatible
with later or newer states.
Remove the folder as it	is not necessary to have it and was removed
in upstream Gentoo, too.
2020-07-27 16:20:16 +02:00
Kai Lüke
e0af7833b4 Merge pull request #497 from flatcar-linux/kai/revert-glibc-update
Revert glibc update
2020-07-27 13:19:05 +02:00
Kai Lüke
1965865b12 Revert "sys-libs/glibc: update to 2.30-r8"
This reverts commit 7ed010a557a898ffce6697f4006e27294f2d77f6.
2020-07-27 11:54:27 +02:00
Kai Lüke
eba038aed2 Revert "sys-libs/glibc: Apply Flatcar changes"
This reverts commit 640d6894a1cd788f4e3250878f2d31b801728ed3.
2020-07-27 11:54:19 +02:00
Dongsu Park
06166e3b6e Merge pull request #488 from flatcar-linux/linux-5.4.53-alpha
Upgrade Linux Kernel in Alpha from 5.4.52 to 5.4.53
2020-07-24 15:32:00 +02:00
Kai Lüke
7411de99f3 .github: Give background on Rust updates 2020-07-24 11:15:26 +02:00
Kai Lüke
042515d58f .github: Only update the new main branch
The new main branch is the only branch that should get new software
updates (with the exception of the maintenance branches that get kernel
updates).
2020-07-24 11:10:42 +02:00
Kai Lüke
d23182c3b4
Merge pull request #81 from flatcar-linux/kai/set-version-maintenance
set_version: Document new naming scheme for nightly builds
2020-07-24 10:41:47 +02:00
Kai Lüke
4e25834549 .github: Only update the new main branch
The new main branch is the only branch that should get new software
updates with the exception of the maintenance branches that get kernel
updates.
Only target the main branch with GitHub Actions until we add discovery
for all active channel maintenance branches.
2020-07-23 19:26:09 +02:00
Kai Lüke
bdc2dc8405 .github: Use new main branch 2020-07-23 18:38:55 +02:00
Dongsu Park
62c7d06103 .github: add Github actions for virtual/rust
Whenever a new upstream Rust release appears, a Github workflow in
`coreos-overlay` creates a new pull request for `dev-lang/rust`.
At the same time, it sends a repository dispatch event to
portage-stable, so it also creates a pull request for `virtual/rust`.
2020-07-23 18:37:21 +02:00
Dongsu Park
bb6a5945f4 .github: replace COMMIT_ID in runc ebuilds
So far Github actions have not changed existing `COMMIT_ID` variable in
runc ebuilds. As a result, the result PRs have correct versions with wrong
commit hashes.

We need to replace `COMMIT_ID` with one that matches with the new version.
To do that, clone the repo completely, since it is not possible to get
the commit hash by running `git rev-parse` on a shallow cloned repo.
Parse commit from a tag with an original version with `-` as its
delimiter, e.g. `v1.0.0-rc91`, because a transformed
tag like `v1.0.0_rc91` does not exist in the upstream repo.
2020-07-23 18:32:28 +02:00
Sayan Chowdhury
39b5c5d2e0 .github/workflows: Update the kernel release edge version to 5.7
Signed-off-by: Sayan Chowdhury <sayan.chowdhury2012@gmail.com>
2020-07-23 18:32:28 +02:00
Dongsu Park
faf94bbe20 .github: update rust versions also in profiles
We need to update rust versions also in multiple files in profiles,
e.g. `package.accept_keywords`. Otherwise `emerge rust` will fail,
due to mismatches between rust versions, in profiles and the actual
ebuilds.
2020-07-23 18:32:28 +02:00
Dongsu Park
ee7960d64e .github: fix version format in docker-runc
docker-runc ebuild has lines of runc versions with not only underscore
(`_`) but also hyphen (`-`). So when we replace the runc version, we
need to also care about versions with hyphen, for example, `1.0.0-rc10`.
2020-07-23 18:32:28 +02:00
Dongsu Park
e4c1f9b59a .github: correctly check status of checkout_branches
`exit` command will simply fail the whole script, so it would not be
possible to check for status of `checkout_branches`. Instead, we need to
use `return` for the error checks.
2020-07-23 18:32:28 +02:00
Dongsu Park
b330d54042 .github: update Kernel version to 5.4 for beta
Now that we updated Kernel to 5.4 for Beta, we also need to set Kernel
version to 5.4 in Github Actions.
2020-07-23 18:32:28 +02:00
Dongsu Park
730ae31678 .github: skip branch checkout if it exists
In case the target branch already exists, `checkout_branch()` needs to
simply `exit 0`, so the subsequent steps could be skipped.
In that case, it has to set `UPDATE_NEEDED` to 0, so the Github action
could avoiding creating another PR.

It resolves occasional issues that happen when subsequent PRs overwrite
existing open PRs made on the very same version. It would be no problem
if there was no change in the PR. However, if there was any manual
change in the previous open PR, the change will be simply overwritten.
That would be very unfortunate.
2020-07-23 18:32:27 +02:00
Dongsu Park
e48aa048a2 .github: check out with a specific channel name
When checking out into a branch name, append `-${CHANNEL}` to the name,
so the branch can be distinguished from each other. To do that, make
every Github actions yaml file pass in its corresponding `CHANNEL`
variable.
2020-07-23 18:32:27 +02:00
Dongsu Park
ee727b639f .github: generate package versions from input values
We do not need to specify each version from each workflow yaml file.
Make *-apply.patch scripts instead generate `$VERSION_SHORT` from the
input version value.
2020-07-23 18:32:27 +02:00
Dongsu Park
596136827b .github: detect latest cork version during SDK setup
We do not need to specify a cork version from each Github action.
Simply detect the latest version in `setup-flatcar-sdk.sh`, before
downloading cork binary file from Github.

Also remove the env variable for cork version from each Github action.
2020-07-23 18:32:27 +02:00
Dongsu Park
566be32dfd .github: update Kernel version to 5.4 for Alpha
Now that Kernel was updated to 5.4 in flatcar-master-alpha, we need
to update also Kernel versions for Alpha in Github actions.
2020-07-23 18:32:27 +02:00
Dongsu Park
8ae55c6d77 .github: schedule weekly Github actions for containerd
To get containerd in sync with upstream, we need to schedule weekly
Github actions. It runs on Friday every week, only for Alpha and Edge.
Similar to those for Docker, we need to deal with torcx ebuilds as well,
as they contain containerd versions.
2020-07-23 18:32:27 +02:00