Skip to content

Commit 1860f03

Browse files
authored
Merge pull request #3612 from flatcar/chewi/non-live
Migrate (almost) all versioned coreos-overlay ebuilds away from git eclass
2 parents 04cd5a7 + a9297cf commit 1860f03

62 files changed

Lines changed: 732 additions & 1260 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

‎.github/workflows/portage-stable-packages-list‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -151,6 +151,7 @@ app-editors/nano
151151
app-editors/vim
152152
app-editors/vim-core
153153

154+
app-emulation/open-vmdk
154155
app-emulation/qemu
155156
app-emulation/qemu-guest-agent
156157
app-emulation/virt-firmware

‎build_library/build_image_util.sh‎

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -304,13 +304,12 @@ get_metadata() {
304304
if [ "${key}" = "SRC_URI" ]; then
305305
local package_name="$(echo "${pkg%%:*}" | cut -d / -f 2)"
306306
local ebuild_path="${prefix}/var/db/pkg/${pkg%%:*}/${package_name}.ebuild"
307-
# SRC_URI is empty for the special github.com/flatcar projects
308307
if [ -z "${val}" ]; then
309308
# The grep invocation gives errors when the ebuild file is not present.
310309
# This can happen when the binary packages from ./build_packages are outdated.
311310
val="$(grep "EGIT_REPO_URI=" "${ebuild_path}" | cut -d '"' -f 2)"
312311
if [ -n "${val}" ]; then
313-
# All github.com/flatcar projects specify their commit
312+
# If using git, then the package was probably pinned to a commit.
314313
local commit=""
315314
commit="$(grep "EGIT_COMMIT=" "${ebuild_path}" | cut -d '"' -f 2)"
316315
if [ -n "${commit}" ]; then
@@ -323,10 +322,6 @@ get_metadata() {
323322
# Do not attempt to postprocess by resolving ${P} and friends because it does not affect production images
324323
val="$(cat "${ebuild_path}" | tr '\n' ' ' | grep -P -o 'SRC_URI=".*?"' | cut -d '"' -f 2)"
325324
fi
326-
# Some packages use nothing from the above but EGIT_REPO_URI (currently only app-crypt/go-tspi)
327-
if [ -z "${val}" ]; then
328-
val="$(grep "EGIT_REPO_URI=" "${ebuild_path}" | cut -d '"' -f 2)"
329-
fi
330325
# Replace all mirror://MIRRORNAME/ parts with the actual URL prefix of the mirror
331326
new_val=""
332327
for v in ${val}; do

‎flatcar_workon‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,7 @@ list() {
166166
return 0
167167
}
168168

169-
case "$1" in
169+
case "${1-}" in
170170
start)
171171
find_ebuild "${2-}"
172172
start ;;
@@ -177,5 +177,5 @@ case "$1" in
177177
list ;;
178178
*)
179179
flags_help
180-
die "$0: command \"$1\" not recognized" ;;
180+
[[ ${1-} ]] && die "$0: command \"$1\" not recognized" ;;
181181
esac

‎run_sdk_container‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ if [[ -z ${stat} ]] ; then
140140
docker_flags=(
141141
"${tty[@]}"
142142
-i
143-
--mount type=tmpfs,destination=/tmp
143+
--tmpfs /tmp:exec
144144
-v /dev:/dev
145145
-v "${PWD}/sdk_container:/mnt/host/source/"
146146
-v "${PWD}/__build__/images:/mnt/host/source/src/build"
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
DIST locksmith-a1cb1f901971165827d68188e9f60752c0e33c10.tar.gz 239087 BLAKE2B f37e5cfcdad269f10b5c6f6f37365719f3a86cbe70ecf1c207e0e88129671b5d122170299eed5829a0b18ff1edd3d3e3f452efca207e819d646a4538c1820706 SHA512 79fe435d3efdaca7fec442701338b9dcc50b261e65d9628a3a0b69001f6bfadf4b4bf85f52d6025d4c3b04283b870423f23318bd275030032a34f5d9a82d1389
Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,35 +1,35 @@
11
# Copyright (c) 2014 CoreOS, Inc.. All rights reserved.
22
# Distributed under the terms of the GNU General Public License v2
33

4-
EAPI=7
5-
EGIT_REPO_URI="https://github.com/flatcar/locksmith.git"
4+
EAPI=8
5+
66
COREOS_GO_PACKAGE="github.com/flatcar/locksmith"
7-
inherit git-r3 systemd coreos-go
7+
inherit systemd coreos-go
8+
9+
DESCRIPTION="Reboot manager for the Flatcar update engine"
10+
HOMEPAGE="https://github.com/flatcar/locksmith"
811

9-
if [[ "${PV}" == 9999 ]]; then
10-
KEYWORDS="~amd64 ~arm64"
12+
if [[ ${PV} == 9999 ]]; then
13+
EGIT_REPO_URI="https://github.com/flatcar/locksmith.git"
14+
inherit git-r3
1115
else
12-
EGIT_COMMIT="ee644fc60a32af5fbc4e83c64fcc7ca0eadb9e3f" # flatcar-master
16+
EGIT_VERSION="a1cb1f901971165827d68188e9f60752c0e33c10" # flatcar-master
17+
SRC_URI="https://github.com/flatcar/locksmith/archive/${EGIT_VERSION}.tar.gz -> ${PN}-${EGIT_VERSION}.tar.gz"
18+
S="${WORKDIR}/${PN}-${EGIT_VERSION}"
1319
KEYWORDS="amd64 arm64"
1420
fi
1521

16-
DESCRIPTION="locksmith"
17-
HOMEPAGE="https://github.com/flatcar/locksmith"
18-
SRC_URI=""
19-
2022
LICENSE="Apache-2.0"
2123
SLOT="0"
22-
IUSE=""
2324

2425
src_compile() {
2526
COREOS_GO_MOD=vendor go_build "${COREOS_GO_PACKAGE}/locksmithctl"
2627
}
2728

2829
src_install() {
29-
dobin ${GOBIN}/locksmithctl
30-
dodir /usr/lib/locksmith
30+
dobin "${GOBIN}"/locksmithctl
3131
dosym ../../../bin/locksmithctl /usr/lib/locksmith/locksmithd
3232

33-
systemd_dounit "${S}"/systemd/locksmithd.service
33+
systemd_dounit systemd/locksmithd.service
3434
systemd_enable_service multi-user.target locksmithd.service
3535
}
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
11
<?xml version="1.0" encoding="UTF-8"?>
22
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
33
<pkgmetadata>
4+
<upstream>
5+
<remote-id type="github">flatcar/locksmith</remote-id>
6+
</upstream>
47
</pkgmetadata>
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
DIST mayday-ae784704884e85de795a56752a9a10f1ff13be15.tar.gz 1887053 BLAKE2B b64ca02ab64eb3dd15b40d3dc160aa29a13ff84afa2580e84d21802576c8b8d8099158aee832e302f163e1a7ad9e4df2de22fffb8f7c6ea8e2e8683b8ebec573 SHA512 cd3818b08bde1d854128bcdb97dc92a4857f24968212d17a3bd2f43191433dfea4ee1658d2575eb9be92525a55952e3e25a7841a11ab657621b8bc45d3581fd6
Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,33 +1,33 @@
11
# Copyright (c) 2015 CoreOS, Inc.. All rights reserved.
22
# Distributed under the terms of the GNU General Public License v2
33

4-
EAPI=7
5-
EGIT_REPO_URI="https://github.com/flatcar/mayday.git"
4+
EAPI=8
5+
66
COREOS_GO_PACKAGE="github.com/flatcar/mayday"
7-
inherit coreos-go git-r3
7+
inherit coreos-go
88

9-
if [[ "${PV}" == 9999 ]]; then
10-
KEYWORDS="~amd64 ~arm64"
9+
if [[ ${PV} == 9999 ]]; then
10+
EGIT_REPO_URI="https://github.com/flatcar/mayday.git"
11+
inherit git-r3
1112
else
12-
EGIT_COMMIT="8b9adcf261d13d395659ed839b3ba0af52bd117a" # main
13-
KEYWORDS="amd64 arm64"
13+
EGIT_VERSION="ae784704884e85de795a56752a9a10f1ff13be15" # main
14+
SRC_URI="https://github.com/flatcar/mayday/archive/${EGIT_VERSION}.tar.gz -> ${PN}-${EGIT_VERSION}.tar.gz"
15+
S="${WORKDIR}/${PN}-${EGIT_VERSION}"
16+
KEYWORDS="amd64 arm64"
1417
fi
1518

16-
DESCRIPTION="mayday"
19+
DESCRIPTION="Tool to simplify gathering support information"
1720
HOMEPAGE="https://github.com/flatcar/mayday"
18-
SRC_URI=""
1921

2022
LICENSE="Apache-2.0"
2123
SLOT="0"
22-
IUSE=""
2324

2425
src_compile() {
2526
COREOS_GO_MOD=vendor go_build "${COREOS_GO_PACKAGE}"
2627
}
2728

2829
src_install() {
29-
newbin ${GOBIN}/mayday mayday
30+
dobin "${GOBIN}"/mayday
3031
insinto /usr/share/mayday
31-
doins "${S}/default.json"
32+
doins default.json
3233
}
33-
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
11
<?xml version="1.0" encoding="UTF-8"?>
22
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
33
<pkgmetadata>
4+
<upstream>
5+
<remote-id type="github">flatcar/mayday</remote-id>
6+
</upstream>
47
</pkgmetadata>

0 commit comments

Comments
 (0)