Merge pull request #1303 from flatcar-linux/krnowak/eapi-update

*: Update packages with EAPI <= 5 to EAPI 7
This commit is contained in:
Krzesimir Nowak 2021-10-04 18:31:12 +02:00 committed by GitHub
commit dc761d313a
67 changed files with 109 additions and 77 deletions

View File

@ -1,7 +1,7 @@
# Copyright (c) 2014 CoreOS, Inc.. All rights reserved. # Copyright (c) 2014 CoreOS, Inc.. All rights reserved.
# Distributed under the terms of the GNU General Public License v2 # Distributed under the terms of the GNU General Public License v2
EAPI=4 EAPI=7
CROS_WORKON_PROJECT="kinvolk/toolbox" CROS_WORKON_PROJECT="kinvolk/toolbox"
CROS_WORKON_LOCALNAME="toolbox" CROS_WORKON_LOCALNAME="toolbox"
CROS_WORKON_REPO="git://github.com" CROS_WORKON_REPO="git://github.com"

View File

@ -2,7 +2,7 @@
# Copyright 2016 CoreOS, Inc # Copyright 2016 CoreOS, Inc
# Distributed under the terms of the GNU General Public License v2 # Distributed under the terms of the GNU General Public License v2
EAPI="4" EAPI=7
DESCRIPTION="Tools for generating TPM policy" DESCRIPTION="Tools for generating TPM policy"

View File

@ -40,8 +40,8 @@ src_compile() {
# setup CFLAGS and LDFLAGS for separate build target # setup CFLAGS and LDFLAGS for separate build target
# see https://github.com/tianon/docker-overlay/pull/10 # see https://github.com/tianon/docker-overlay/pull/10
# FLatcar: inject our own CFLAGS/LDFLAGS for torcx # FLatcar: inject our own CFLAGS/LDFLAGS for torcx
export CGO_CFLAGS="${CGO_CFLAGS} -I${ROOT}/usr/include" export CGO_CFLAGS="${CGO_CFLAGS} -I${SYSROOT}/usr/include"
export CGO_LDFLAGS="${CGO_LDFLAGS} -L${ROOT}/usr/$(get_libdir)" export CGO_LDFLAGS="${CGO_LDFLAGS} -L${SYSROOT}/usr/$(get_libdir)"
emake \ emake \
LDFLAGS="$(usex hardened '-extldflags -fno-PIC' '')" \ LDFLAGS="$(usex hardened '-extldflags -fno-PIC' '')" \
VERSION="$(cat VERSION)" \ VERSION="$(cat VERSION)" \

View File

@ -42,9 +42,9 @@ PATCHES=(
src_compile() { src_compile() {
# Taken from app-emulation/docker-1.7.0-r1 # Taken from app-emulation/docker-1.7.0-r1
export CGO_CFLAGS="-I${ROOT}/usr/include" export CGO_CFLAGS="-I${SYSROOT}/usr/include"
export CGO_LDFLAGS="$(usex hardened '-fno-PIC ' '') export CGO_LDFLAGS="$(usex hardened '-fno-PIC ' '')
-L${ROOT}/usr/$(get_libdir)" -L${SYSROOT}/usr/$(get_libdir)"
# build up optional flags # build up optional flags
local options=( local options=(

View File

@ -2,7 +2,7 @@
# Distributed under the terms of the GNU General Public License v2 # Distributed under the terms of the GNU General Public License v2
# $Header: $ # $Header: $
EAPI=5 EAPI=7
inherit git-r3 inherit git-r3

View File

@ -2,9 +2,9 @@
# Distributed under the terms of the GNU General Public License v2 # Distributed under the terms of the GNU General Public License v2
# $Header: $ # $Header: $
EAPI=5 EAPI=7
inherit systemd versionator inherit systemd
DESCRIPTION="Fake data for XenServer's PV driver version detection." DESCRIPTION="Fake data for XenServer's PV driver version detection."
HOMEPAGE="http://xenserver.org/" HOMEPAGE="http://xenserver.org/"
@ -21,7 +21,8 @@ RDEPEND="app-emulation/xenstore"
S="${WORKDIR}" S="${WORKDIR}"
src_prepare() { src_prepare() {
local split=($(get_version_components)) default
local split=($(ver_cut 1-3))
sed -e "s/@@MAJOR@@/${split[0]}/" \ sed -e "s/@@MAJOR@@/${split[0]}/" \
-e "s/@@MINOR@@/${split[1]}/" \ -e "s/@@MINOR@@/${split[1]}/" \
-e "s/@@MICRO@@/${split[2]}/" \ -e "s/@@MICRO@@/${split[2]}/" \

View File

@ -2,7 +2,7 @@
# Distributed under the terms of the GNU General Public License v2 # Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/app-emulation/xen-tools/xen-tools-4.4.0.ebuild,v 1.3 2014/04/04 01:06:31 idella4 Exp $ # $Header: /var/cvsroot/gentoo-x86/app-emulation/xen-tools/xen-tools-4.4.0.ebuild,v 1.3 2014/04/04 01:06:31 idella4 Exp $
EAPI=5 EAPI=7
PYTHON_COMPAT=( python3_6 ) PYTHON_COMPAT=( python3_6 )
@ -47,6 +47,7 @@ pkg_setup() {
} }
src_prepare() { src_prepare() {
default
cp "${FILESDIR}"/config.h tools/ || die cp "${FILESDIR}"/config.h tools/ || die
cp "${FILESDIR}"/Tools.mk config/ || die cp "${FILESDIR}"/Tools.mk config/ || die
} }

View File

@ -1,7 +1,7 @@
# Copyright 2014 The CoreOS Authors # Copyright 2014 The CoreOS Authors
# Distributed under the terms of the GNU General Public License v2 # Distributed under the terms of the GNU General Public License v2
EAPI=5 EAPI=7
PYTHON_COMPAT=( python3_6 ) PYTHON_COMPAT=( python3_6 )
inherit python-any-r1 systemd inherit python-any-r1 systemd

View File

@ -1,7 +1,7 @@
# Copyright (c) 2017-2018 CoreOS, Inc.. All rights reserved. # Copyright (c) 2017-2018 CoreOS, Inc.. All rights reserved.
# Distributed under the terms of the GNU General Public License v2 # Distributed under the terms of the GNU General Public License v2
EAPI=2 EAPI=7
DESCRIPTION="Packages to be installed in a torcx image for Docker" DESCRIPTION="Packages to be installed in a torcx image for Docker"
@ -20,6 +20,8 @@ RDEPEND="
~sys-process/tini-0.19.0 ~sys-process/tini-0.19.0
" "
S="${WORKDIR}"
src_install() { src_install() {
insinto /.torcx insinto /.torcx
newins "${FILESDIR}/${P}-manifest.json" manifest.json newins "${FILESDIR}/${P}-manifest.json" manifest.json

View File

@ -1,7 +1,7 @@
# Copyright (c) 2013 CoreOS Inc. All rights reserved. # Copyright (c) 2013 CoreOS Inc. All rights reserved.
# Distributed under the terms of the GNU General Public License v2 # Distributed under the terms of the GNU General Public License v2
EAPI=5 EAPI=7
DESCRIPTION="CoreOS auto update signing keys." DESCRIPTION="CoreOS auto update signing keys."
HOMEPAGE="http://github.com/coreos/" HOMEPAGE="http://github.com/coreos/"

View File

@ -1,7 +1,7 @@
# Copyright (c) 2012 The Chromium OS Authors. All rights reserved. # Copyright (c) 2012 The Chromium OS Authors. All rights reserved.
# Distributed under the terms of the GNU General Public License v2 # Distributed under the terms of the GNU General Public License v2
EAPI="4" EAPI=7
DESCRIPTION="CoreOS developer images and containers (meta package)" DESCRIPTION="CoreOS developer images and containers (meta package)"
HOMEPAGE="http://coreos.com" HOMEPAGE="http://coreos.com"

View File

@ -2,7 +2,7 @@
# Copyright (c) 2011 The Chromium OS Authors. All rights reserved. # Copyright (c) 2011 The Chromium OS Authors. All rights reserved.
# Distributed under the terms of the GNU General Public License v2 # Distributed under the terms of the GNU General Public License v2
EAPI="5" EAPI=7
CROS_WORKON_PROJECT="flatcar-linux/init" CROS_WORKON_PROJECT="flatcar-linux/init"
CROS_WORKON_LOCALNAME="init" CROS_WORKON_LOCALNAME="init"
CROS_WORKON_REPO="git://github.com" CROS_WORKON_REPO="git://github.com"

View File

@ -1,7 +1,7 @@
# Copyright (c) 2016 CoreOS, Inc.. All rights reserved. # Copyright (c) 2016 CoreOS, Inc.. All rights reserved.
# Distributed under the terms of the GNU General Public License v2 # Distributed under the terms of the GNU General Public License v2
EAPI=2 EAPI=7
DESCRIPTION="CoreOS OEM suite for Google Compute Engine (meta package)" DESCRIPTION="CoreOS OEM suite for Google Compute Engine (meta package)"
HOMEPAGE="" HOMEPAGE=""

View File

@ -1,7 +1,7 @@
# Copyright (c) 2015 CoreOS Inc. # Copyright (c) 2015 CoreOS Inc.
# Distributed under the terms of the GNU General Public License v2 # Distributed under the terms of the GNU General Public License v2
EAPI=5 EAPI=7
DESCRIPTION="CoreOS Secure Boot keys" DESCRIPTION="CoreOS Secure Boot keys"
HOMEPAGE="" HOMEPAGE=""

View File

@ -1,7 +1,7 @@
# Copyright (c) 2011 The Chromium OS Authors. All rights reserved. # Copyright (c) 2011 The Chromium OS Authors. All rights reserved.
# Distributed under the terms of the GNU General Public License v2 # Distributed under the terms of the GNU General Public License v2
EAPI=2 EAPI=7
DESCRIPTION="CoreOS (meta package)" DESCRIPTION="CoreOS (meta package)"
HOMEPAGE="http://coreos.com" HOMEPAGE="http://coreos.com"

View File

@ -1,7 +1,7 @@
# Copyright (c) 2009 The Chromium OS Authors. All rights reserved. # Copyright (c) 2009 The Chromium OS Authors. All rights reserved.
# Distributed under the terms of the GNU General Public License v2 # Distributed under the terms of the GNU General Public License v2
EAPI=2 EAPI=7
DESCRIPTION="List of packages that are needed on the buildhost (meta package)" DESCRIPTION="List of packages that are needed on the buildhost (meta package)"
HOMEPAGE="http://src.chromium.org" HOMEPAGE="http://src.chromium.org"

View File

@ -1,7 +1,7 @@
# Copyright (c) 2013 CoreOS, Inc.. All rights reserved. # Copyright (c) 2013 CoreOS, Inc.. All rights reserved.
# Distributed under the terms of the GNU General Public License v2 # Distributed under the terms of the GNU General Public License v2
EAPI=5 EAPI=7
DESCRIPTION="nova agent for rackspace images" DESCRIPTION="nova agent for rackspace images"
HOMEPAGE="https://github.com/coreos/nova-agent-container" HOMEPAGE="https://github.com/coreos/nova-agent-container"

View File

@ -1,7 +1,7 @@
# Copyright (c) 2013 CoreOS, Inc.. All rights reserved. # Copyright (c) 2013 CoreOS, Inc.. All rights reserved.
# Distributed under the terms of the GNU General Public License v2 # Distributed under the terms of the GNU General Public License v2
EAPI=5 EAPI=7
DESCRIPTION="OEM suite for Azure" DESCRIPTION="OEM suite for Azure"
HOMEPAGE="" HOMEPAGE=""
@ -24,6 +24,7 @@ RDEPEND="
" "
src_prepare() { src_prepare() {
default
sed -e "s\\@@OEM_VERSION_ID@@\\${PVR}\\g" \ sed -e "s\\@@OEM_VERSION_ID@@\\${PVR}\\g" \
"${FILESDIR}/oem-release" > "${T}/oem-release" || die "${FILESDIR}/oem-release" > "${T}/oem-release" || die
} }

View File

@ -1,7 +1,7 @@
# Copyright (c) 2013 CoreOS, Inc.. All rights reserved. # Copyright (c) 2013 CoreOS, Inc.. All rights reserved.
# Distributed under the terms of the GNU General Public License v2 # Distributed under the terms of the GNU General Public License v2
EAPI=5 EAPI=7
DESCRIPTION="OEM suite for Azure" DESCRIPTION="OEM suite for Azure"
HOMEPAGE="" HOMEPAGE=""
@ -18,6 +18,7 @@ S="${WORKDIR}"
RDEPEND="~app-emulation/wa-linux-agent-${PV}" RDEPEND="~app-emulation/wa-linux-agent-${PV}"
src_prepare() { src_prepare() {
default
sed -e "s\\@@OEM_VERSION_ID@@\\${PVR}\\g" \ sed -e "s\\@@OEM_VERSION_ID@@\\${PVR}\\g" \
"${FILESDIR}/oem-release" > "${T}/oem-release" || die "${FILESDIR}/oem-release" > "${T}/oem-release" || die
} }

View File

@ -1,7 +1,7 @@
# Copyright (c) 2015 CoreOS, Inc.. All rights reserved. # Copyright (c) 2015 CoreOS, Inc.. All rights reserved.
# Distributed under the terms of the GNU General Public License v2 # Distributed under the terms of the GNU General Public License v2
EAPI=5 EAPI=7
DESCRIPTION="OEM suite for CloudSigma images" DESCRIPTION="OEM suite for CloudSigma images"
HOMEPAGE="" HOMEPAGE=""
@ -15,6 +15,7 @@ KEYWORDS="amd64 x86"
S="${WORKDIR}" S="${WORKDIR}"
src_prepare() { src_prepare() {
default
sed -e "s\\@@OEM_VERSION_ID@@\\${PVR}\\g" \ sed -e "s\\@@OEM_VERSION_ID@@\\${PVR}\\g" \
"${FILESDIR}/cloud-config.yml" > "${T}/cloud-config.yml" || die "${FILESDIR}/cloud-config.yml" > "${T}/cloud-config.yml" || die
} }

View File

@ -5,7 +5,7 @@
# $Header:$ # $Header:$
# #
EAPI=5 EAPI=7
DESCRIPTION="OEM suite for CloudStack images" DESCRIPTION="OEM suite for CloudStack images"
HOMEPAGE="" HOMEPAGE=""
@ -20,6 +20,7 @@ IUSE=""
S="${WORKDIR}" S="${WORKDIR}"
src_prepare() { src_prepare() {
default
sed -e "s\\@@OEM_VERSION_ID@@\\${PVR}\\g" \ sed -e "s\\@@OEM_VERSION_ID@@\\${PVR}\\g" \
"${FILESDIR}/cloud-config.yml" > "${T}/cloud-config.yml" || die "${FILESDIR}/cloud-config.yml" > "${T}/cloud-config.yml" || die
} }

View File

@ -1,7 +1,7 @@
# Copyright (c) 2014 CoreOS, Inc.. All rights reserved. # Copyright (c) 2014 CoreOS, Inc.. All rights reserved.
# Distributed under the terms of the GNU General Public License v2 # Distributed under the terms of the GNU General Public License v2
EAPI=5 EAPI=7
DESCRIPTION="OEM suite for DigitalOcean images" DESCRIPTION="OEM suite for DigitalOcean images"
HOMEPAGE="" HOMEPAGE=""
@ -15,6 +15,7 @@ KEYWORDS="amd64 x86"
S="${WORKDIR}" S="${WORKDIR}"
src_prepare() { src_prepare() {
default
sed -e "s\\@@OEM_VERSION_ID@@\\${PVR}\\g" \ sed -e "s\\@@OEM_VERSION_ID@@\\${PVR}\\g" \
"${FILESDIR}/oem-release" > "${T}/oem-release" || die "${FILESDIR}/oem-release" > "${T}/oem-release" || die
} }

View File

@ -1,7 +1,7 @@
# Copyright (c) 2013 CoreOS, Inc.. All rights reserved. # Copyright (c) 2013 CoreOS, Inc.. All rights reserved.
# Distributed under the terms of the GNU General Public License v2 # Distributed under the terms of the GNU General Public License v2
EAPI=5 EAPI=7
DESCRIPTION="OEM suite for EC2 compatible images" DESCRIPTION="OEM suite for EC2 compatible images"
HOMEPAGE="" HOMEPAGE=""
@ -25,6 +25,7 @@ RDEPEND="
S="${WORKDIR}" S="${WORKDIR}"
src_prepare() { src_prepare() {
default
if use ec2 || use aws_pro ; then if use ec2 || use aws_pro ; then
ID="ami" ID="ami"
if use ec2; then if use ec2; then

View File

@ -5,7 +5,7 @@
# $Header:$ # $Header:$
# #
EAPI=5 EAPI=7
DESCRIPTION="OEM suite for Exoscale images" DESCRIPTION="OEM suite for Exoscale images"
HOMEPAGE="" HOMEPAGE=""
@ -20,6 +20,7 @@ IUSE=""
S="${WORKDIR}" S="${WORKDIR}"
src_prepare() { src_prepare() {
default
sed -e "s\\@@OEM_VERSION_ID@@\\${PVR}\\g" \ sed -e "s\\@@OEM_VERSION_ID@@\\${PVR}\\g" \
"${FILESDIR}/cloud-config.yml" > "${T}/cloud-config.yml" || die "${FILESDIR}/cloud-config.yml" > "${T}/cloud-config.yml" || die
} }

View File

@ -1,7 +1,7 @@
# Copyright (c) 2013 CoreOS, Inc.. All rights reserved. # Copyright (c) 2013 CoreOS, Inc.. All rights reserved.
# Distributed under the terms of the GNU General Public License v2 # Distributed under the terms of the GNU General Public License v2
EAPI=5 EAPI=7
DESCRIPTION="OEM suite for Google Compute Engine images" DESCRIPTION="OEM suite for Google Compute Engine images"
HOMEPAGE="" HOMEPAGE=""
@ -16,6 +16,7 @@ IUSE=""
S="${WORKDIR}" S="${WORKDIR}"
src_prepare() { src_prepare() {
default
sed -e "s\\@@OEM_VERSION_ID@@\\${PVR}\\g" \ sed -e "s\\@@OEM_VERSION_ID@@\\${PVR}\\g" \
"${FILESDIR}/oem-release" > "${T}/oem-release" || die "${FILESDIR}/oem-release" > "${T}/oem-release" || die
} }

View File

@ -1,7 +1,7 @@
# Copyright (c) 2013 CoreOS, Inc.. All rights reserved. # Copyright (c) 2013 CoreOS, Inc.. All rights reserved.
# Distributed under the terms of the GNU General Public License v2 # Distributed under the terms of the GNU General Public License v2
EAPI=5 EAPI=7
DESCRIPTION="OEM suite for Hyper-V" DESCRIPTION="OEM suite for Hyper-V"
HOMEPAGE="" HOMEPAGE=""
@ -16,6 +16,7 @@ IUSE=""
S="${WORKDIR}" S="${WORKDIR}"
src_prepare() { src_prepare() {
default
sed -e "s\\@@OEM_VERSION_ID@@\\${PVR}\\g" \ sed -e "s\\@@OEM_VERSION_ID@@\\${PVR}\\g" \
"${FILESDIR}/oem-release" > "${T}/oem-release" || die "${FILESDIR}/oem-release" > "${T}/oem-release" || die
} }

View File

@ -5,7 +5,7 @@
# $Header:$ # $Header:$
# #
EAPI=5 EAPI=7
DESCRIPTION="OEM suite for Interoute images" DESCRIPTION="OEM suite for Interoute images"
HOMEPAGE="" HOMEPAGE=""
@ -25,6 +25,7 @@ RDEPEND="${DEPEND}"
S="${WORKDIR}" S="${WORKDIR}"
src_prepare() { src_prepare() {
default
sed -e "s\\@@OEM_VERSION_ID@@\\${PVR}\\g" \ sed -e "s\\@@OEM_VERSION_ID@@\\${PVR}\\g" \
"${FILESDIR}/cloud-config.yml" > "${T}/cloud-config.yml" || die "${FILESDIR}/cloud-config.yml" > "${T}/cloud-config.yml" || die
} }

View File

@ -1,7 +1,7 @@
# Copyright (c) 2014 NIFTY Corp.. All rights reserved. # Copyright (c) 2014 NIFTY Corp.. All rights reserved.
# Distributed under the terms of the GNU General Public License v2 # Distributed under the terms of the GNU General Public License v2
EAPI=5 EAPI=7
DESCRIPTION="OEM suite for NIFTY Cloud images" DESCRIPTION="OEM suite for NIFTY Cloud images"
HOMEPAGE="" HOMEPAGE=""
@ -21,6 +21,7 @@ DEPEND="
RDEPEND="${DEPEND}" RDEPEND="${DEPEND}"
src_prepare() { src_prepare() {
default
sed -e "s\\@@OEM_VERSION_ID@@\\${PVR}\\g" \ sed -e "s\\@@OEM_VERSION_ID@@\\${PVR}\\g" \
"${FILESDIR}/cloud-config.yml" > "${T}/cloud-config.yml" || die "${FILESDIR}/cloud-config.yml" > "${T}/cloud-config.yml" || die
} }

View File

@ -1,7 +1,7 @@
# Copyright (c) 2014 CoreOS, Inc.. All rights reserved. # Copyright (c) 2014 CoreOS, Inc.. All rights reserved.
# Distributed under the terms of the GNU General Public License v2 # Distributed under the terms of the GNU General Public License v2
EAPI=5 EAPI=7
DESCRIPTION="OEM suite for Packet images" DESCRIPTION="OEM suite for Packet images"
HOMEPAGE="" HOMEPAGE=""
@ -15,6 +15,7 @@ KEYWORDS="amd64 arm64 x86"
S="${WORKDIR}" S="${WORKDIR}"
src_prepare() { src_prepare() {
default
sed -e "s\\@@OEM_VERSION_ID@@\\${PVR}\\g" \ sed -e "s\\@@OEM_VERSION_ID@@\\${PVR}\\g" \
"${FILESDIR}/oem-release" > "${T}/oem-release" || die "${FILESDIR}/oem-release" > "${T}/oem-release" || die
} }

View File

@ -1,7 +1,7 @@
# Copyright (c) 2020 Kinvolk GmbH. All rights reserved. # Copyright (c) 2020 Kinvolk GmbH. All rights reserved.
# Distributed under the terms of the GNU General Public License v2 # Distributed under the terms of the GNU General Public License v2
EAPI=5 EAPI=7
DESCRIPTION="OEM suite for QEMU" DESCRIPTION="OEM suite for QEMU"
HOMEPAGE="" HOMEPAGE=""
@ -16,6 +16,7 @@ IUSE=""
S="${WORKDIR}" S="${WORKDIR}"
src_prepare() { src_prepare() {
default
sed -e "s\\@@OEM_VERSION_ID@@\\${PVR}\\g" \ sed -e "s\\@@OEM_VERSION_ID@@\\${PVR}\\g" \
"${FILESDIR}/oem-release" > "${T}/oem-release" || die "${FILESDIR}/oem-release" > "${T}/oem-release" || die
} }
@ -25,4 +26,3 @@ src_install() {
doins "${FILESDIR}/grub.cfg" doins "${FILESDIR}/grub.cfg"
doins "${T}/oem-release" doins "${T}/oem-release"
} }

View File

@ -1,7 +1,7 @@
# Copyright (c) 2013 CoreOS, Inc.. All rights reserved. # Copyright (c) 2013 CoreOS, Inc.. All rights reserved.
# Distributed under the terms of the GNU General Public License v2 # Distributed under the terms of the GNU General Public License v2
EAPI=5 EAPI=7
DESCRIPTION="OEM suite for Rackspace Teeth images" DESCRIPTION="OEM suite for Rackspace Teeth images"
HOMEPAGE="" HOMEPAGE=""
@ -15,6 +15,7 @@ KEYWORDS="amd64 x86"
S="${WORKDIR}" S="${WORKDIR}"
src_prepare() { src_prepare() {
default
sed -e "s\\@@OEM_VERSION_ID@@\\${PVR}\\g" \ sed -e "s\\@@OEM_VERSION_ID@@\\${PVR}\\g" \
"${FILESDIR}/cloud-config.yml" > "${T}/cloud-config.yml" || die "${FILESDIR}/cloud-config.yml" > "${T}/cloud-config.yml" || die
} }

View File

@ -5,7 +5,7 @@
# $Header:$ # $Header:$
# #
EAPI=5 EAPI=7
DESCRIPTION="oem suite for rackspace images" DESCRIPTION="oem suite for rackspace images"
HOMEPAGE="" HOMEPAGE=""
@ -24,6 +24,7 @@ RDEPEND="
S="${WORKDIR}" S="${WORKDIR}"
src_prepare() { src_prepare() {
default
sed -e "s\\@@OEM_VERSION_ID@@\\${PVR}\\g" \ sed -e "s\\@@OEM_VERSION_ID@@\\${PVR}\\g" \
"${FILESDIR}/cloud-config.yml" > "${T}/cloud-config.yml" || die "${FILESDIR}/cloud-config.yml" > "${T}/cloud-config.yml" || die
} }

View File

@ -1,7 +1,7 @@
# Copyright 2013 The CoreOS Authors # Copyright 2013 The CoreOS Authors
# Distributed under the terms of the GNU General Public License v2 # Distributed under the terms of the GNU General Public License v2
EAPI=5 EAPI=7
DESCRIPTION="OEM suite for login access via Vagrant's ssh key." DESCRIPTION="OEM suite for login access via Vagrant's ssh key."
HOMEPAGE="" HOMEPAGE=""

View File

@ -1,7 +1,7 @@
# Copyright 2017 The CoreOS Authors # Copyright 2017 The CoreOS Authors
# Distributed under the terms of the GNU General Public License v2 # Distributed under the terms of the GNU General Public License v2
EAPI=5 EAPI=7
DESCRIPTION="OEM suite for vagrant images (virtualbox)" DESCRIPTION="OEM suite for vagrant images (virtualbox)"
HOMEPAGE="" HOMEPAGE=""

View File

@ -1,7 +1,7 @@
# Copyright 2013 The CoreOS Authors # Copyright 2013 The CoreOS Authors
# Distributed under the terms of the GNU General Public License v2 # Distributed under the terms of the GNU General Public License v2
EAPI=5 EAPI=7
DESCRIPTION="OEM suite for vagrant images" DESCRIPTION="OEM suite for vagrant images"
HOMEPAGE="" HOMEPAGE=""
@ -16,6 +16,7 @@ IUSE=""
S="${WORKDIR}" S="${WORKDIR}"
src_prepare() { src_prepare() {
default
sed -e "s\\@@OEM_VERSION_ID@@\\${PVR}\\g" \ sed -e "s\\@@OEM_VERSION_ID@@\\${PVR}\\g" \
"${FILESDIR}/cloud-config.yml" > "${T}/cloud-config.yml" || die "${FILESDIR}/cloud-config.yml" > "${T}/cloud-config.yml" || die
} }

View File

@ -1,7 +1,7 @@
# Copyright (c) 2013 CoreOS, Inc.. All rights reserved. # Copyright (c) 2013 CoreOS, Inc.. All rights reserved.
# Distributed under the terms of the GNU General Public License v2 # Distributed under the terms of the GNU General Public License v2
EAPI=5 EAPI=7
DESCRIPTION="OEM suite for VirtualBox" DESCRIPTION="OEM suite for VirtualBox"
HOMEPAGE="" HOMEPAGE=""
@ -16,6 +16,7 @@ IUSE=""
S="${WORKDIR}" S="${WORKDIR}"
src_prepare() { src_prepare() {
default
sed -e "s\\@@OEM_VERSION_ID@@\\${PVR}\\g" \ sed -e "s\\@@OEM_VERSION_ID@@\\${PVR}\\g" \
"${FILESDIR}/oem-release" > "${T}/oem-release" || die "${FILESDIR}/oem-release" > "${T}/oem-release" || die
} }

View File

@ -1,7 +1,7 @@
# Copyright (c) 2014 CoreOS, Inc.. All rights reserved. # Copyright (c) 2014 CoreOS, Inc.. All rights reserved.
# Distributed under the terms of the GNU General Public License v2 # Distributed under the terms of the GNU General Public License v2
EAPI=5 EAPI=7
DESCRIPTION="OEM suite for VMware" DESCRIPTION="OEM suite for VMware"
HOMEPAGE="https://github.com/flatcar-linux/coreos-overlay/tree/main/coreos-base" HOMEPAGE="https://github.com/flatcar-linux/coreos-overlay/tree/main/coreos-base"
@ -21,6 +21,7 @@ RDEPEND="${DEPEND}"
S="${WORKDIR}" S="${WORKDIR}"
src_prepare() { src_prepare() {
default
sed -e "s\\@@OEM_VERSION_ID@@\\${PVR}\\g" \ sed -e "s\\@@OEM_VERSION_ID@@\\${PVR}\\g" \
"${FILESDIR}/oem-release" > "${T}/oem-release" || die "${FILESDIR}/oem-release" > "${T}/oem-release" || die
} }

View File

@ -1,10 +1,9 @@
# Copyright (c) 2012 The Chromium OS Authors. All rights reserved. # Copyright (c) 2012 The Chromium OS Authors. All rights reserved.
# Distributed under the terms of the GNU General Public License v2 # Distributed under the terms of the GNU General Public License v2
EAPI=5 EAPI=7
CROS_WORKON_PROJECT="flatcar-linux/update_engine" CROS_WORKON_PROJECT="flatcar-linux/update_engine"
CROS_WORKON_REPO="git://github.com" CROS_WORKON_REPO="git://github.com"
AUTOTOOLS_AUTORECONF=1
if [[ "${PV}" == 9999 ]]; then if [[ "${PV}" == 9999 ]]; then
KEYWORDS="~amd64 ~arm ~arm64 ~x86" KEYWORDS="~amd64 ~arm ~arm64 ~x86"
@ -13,7 +12,7 @@ else
KEYWORDS="amd64 arm64" KEYWORDS="amd64 arm64"
fi fi
inherit autotools-utils flag-o-matic toolchain-funcs cros-workon systemd inherit autotools flag-o-matic toolchain-funcs cros-workon systemd
DESCRIPTION="CoreOS OS Update Engine" DESCRIPTION="CoreOS OS Update Engine"
HOMEPAGE="https://github.com/coreos/update_engine" HOMEPAGE="https://github.com/coreos/update_engine"
@ -42,6 +41,11 @@ DEPEND="dev-cpp/gtest
${BDEPEND} ${BDEPEND}
${RDEPEND}" ${RDEPEND}"
src_prepare() {
default
eautoreconf
}
src_configure() { src_configure() {
# Disable PIE when building for the SDK, this works around a bug that # Disable PIE when building for the SDK, this works around a bug that
# breaks using delta_generator from the update.zip bundle. # breaks using delta_generator from the update.zip bundle.
@ -55,24 +59,24 @@ src_configure() {
# Work around new gdbus-codegen output. # Work around new gdbus-codegen output.
append-flags -Wno-unused-function append-flags -Wno-unused-function
local myeconfargs=( local myconf=(
$(use_enable cros-debug debug) $(use_enable cros-debug debug)
$(use_enable delta_generator) $(use_enable delta_generator)
) )
autotools-utils_src_configure econf "${myconf[@]}"
} }
src_test() { src_test() {
if use cros_host; then if use cros_host; then
autotools-utils_src_test default
else else
ewarn "Skipping tests on cross-compiled target platform..." ewarn "Skipping tests on cross-compiled target platform..."
fi fi
} }
src_install() { src_install() {
autotools-utils_src_install default
if use symlink-usr; then if use symlink-usr; then
dosym sbin/flatcar-postinst /usr/postinst dosym sbin/flatcar-postinst /usr/postinst

View File

@ -2,7 +2,7 @@
# Distributed under the terms of the GNU General Public License v2 # Distributed under the terms of the GNU General Public License v2
# $Header: $ # $Header: $
EAPI=5 EAPI=7
DESCRIPTION="Meta ebuild for building all binary packages." DESCRIPTION="Meta ebuild for building all binary packages."
HOMEPAGE="http://coreos.com/docs/sdk/" HOMEPAGE="http://coreos.com/docs/sdk/"

View File

@ -2,7 +2,7 @@
# Distributed under the terms of the GNU General Public License v2 # Distributed under the terms of the GNU General Public License v2
# $Header: $ # $Header: $
EAPI=5 EAPI=7
DESCRIPTION="Meta ebuild for everything that needs to be in the SDK." DESCRIPTION="Meta ebuild for everything that needs to be in the SDK."
HOMEPAGE="http://coreos.com/docs/sdk/" HOMEPAGE="http://coreos.com/docs/sdk/"

View File

@ -25,7 +25,7 @@ COREOS_SOURCE_VERSION="${PV}${COREOS_SOURCE_REVISION}"
COREOS_KERNEL_SOURCE_NAME="linux-${PV/_rc/-rc}-coreos${COREOS_SOURCE_REVISION}" COREOS_KERNEL_SOURCE_NAME="linux-${PV/_rc/-rc}-coreos${COREOS_SOURCE_REVISION}"
COREOS_SOURCE_NAME="linux-${PV/_rc/-rc}-flatcar" COREOS_SOURCE_NAME="linux-${PV/_rc/-rc}-flatcar"
[[ ${EAPI} != "5" ]] && die "Only EAPI=5 is supported" [[ ${EAPI} != "7" ]] && die "Only EAPI=7 is supported"
inherit linux-info toolchain-funcs inherit linux-info toolchain-funcs

View File

@ -1,7 +1,7 @@
# Copyright 1999-2013 Gentoo Foundation # Copyright 1999-2013 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2 # Distributed under the terms of the GNU General Public License v2
EAPI="5" EAPI=7
CROS_WORKON_PROJECT="flatcar-linux/baselayout" CROS_WORKON_PROJECT="flatcar-linux/baselayout"
CROS_WORKON_LOCALNAME="baselayout" CROS_WORKON_LOCALNAME="baselayout"
CROS_WORKON_REPO="git://github.com" CROS_WORKON_REPO="git://github.com"
@ -13,7 +13,7 @@ else
KEYWORDS="amd64 arm arm64 x86" KEYWORDS="amd64 arm arm64 x86"
fi fi
inherit cros-workon eutils multilib systemd inherit cros-workon multilib systemd
DESCRIPTION="Filesystem baselayout for CoreOS" DESCRIPTION="Filesystem baselayout for CoreOS"
HOMEPAGE="http://www.coreos.com/" HOMEPAGE="http://www.coreos.com/"

View File

@ -1,10 +1,9 @@
# Copyright (c) 2015 The CoreOS OS Authors. All rights reserved. # Copyright (c) 2015 The CoreOS OS Authors. All rights reserved.
# Distributed under the terms of the GNU General Public License v2 # Distributed under the terms of the GNU General Public License v2
EAPI=5 EAPI=7
CROS_WORKON_PROJECT="flatcar-linux/seismograph" CROS_WORKON_PROJECT="flatcar-linux/seismograph"
CROS_WORKON_REPO="git://github.com" CROS_WORKON_REPO="git://github.com"
AUTOTOOLS_AUTORECONF=1
if [[ "${PV}" == 9999 ]]; then if [[ "${PV}" == 9999 ]]; then
KEYWORDS="~amd64 ~arm ~arm64 ~x86" KEYWORDS="~amd64 ~arm ~arm64 ~x86"
@ -13,7 +12,7 @@ else
KEYWORDS="amd64 arm arm64 x86" KEYWORDS="amd64 arm arm64 x86"
fi fi
inherit autotools-utils cros-workon inherit autotools cros-workon
DESCRIPTION="CoreOS Disk Utilities (e.g. cgpt)" DESCRIPTION="CoreOS Disk Utilities (e.g. cgpt)"
LICENSE="BSD" LICENSE="BSD"
@ -25,3 +24,8 @@ RDEPEND="!coreos-base/vboot_reference
sys-apps/util-linux sys-apps/util-linux
sys-fs/e2fsprogs" sys-fs/e2fsprogs"
DEPEND="${RDEPEND}" DEPEND="${RDEPEND}"
src_prepare() {
default
eautoreconf
}

View File

@ -32,7 +32,7 @@ src_prepare() {
src_compile() { src_compile() {
emake CC="$(tc-getCC)" CXX="$(tc-getCXX)" \ emake CC="$(tc-getCC)" CXX="$(tc-getCXX)" \
VERSION=${PV} \ VERSION=${PV} \
JSON_INCLUDE_PATH="${ROOT%/}/usr/include/json-c" JSON_INCLUDE_PATH="${SYSROOT%/}/usr/include/json-c"
} }
src_install() { src_install() {

View File

@ -1,7 +1,7 @@
# Copyright 2015 CoreOS, Inc. # Copyright 2015 CoreOS, Inc.
# Distributed under the terms of the GNU General Public License v2 # Distributed under the terms of the GNU General Public License v2
EAPI=5 EAPI=7
CROS_WORKON_PROJECT="flatcar-linux/shim" CROS_WORKON_PROJECT="flatcar-linux/shim"
CROS_WORKON_REPO="git://github.com" CROS_WORKON_REPO="git://github.com"
@ -32,8 +32,8 @@ src_unpack() {
src_compile() { src_compile() {
emake \ emake \
CROSS_COMPILE="${CHOST}-" \ CROSS_COMPILE="${CHOST}-" \
EFI_INCLUDE="${ROOT}"usr/include/efi \ EFI_INCLUDE="${SYSROOT%/}"/usr/include/efi \
EFI_PATH="${ROOT}"usr/$(get_libdir) \ EFI_PATH="${SYSROOT%/}"/usr/$(get_libdir) \
shim.efi || die shim.efi || die
} }

View File

@ -1,7 +1,7 @@
# Copyright (c) 2013 CoreOS Inc. All rights reserved. # Copyright (c) 2013 CoreOS Inc. All rights reserved.
# Distributed under the terms of the GNU General Public License v2 # Distributed under the terms of the GNU General Public License v2
EAPI=5 EAPI=7
DESCRIPTION="Build tool wrappers for using custom SYSROOTs" DESCRIPTION="Build tool wrappers for using custom SYSROOTs"
HOMEPAGE="https://github.com/coreos/sysroot-wrappers" HOMEPAGE="https://github.com/coreos/sysroot-wrappers"

View File

@ -1,9 +1,9 @@
# Copyright (c) 2013 CoreOS Inc. All rights reserved. # Copyright (c) 2013 CoreOS Inc. All rights reserved.
# Distributed under the terms of the GNU General Public License v2 # Distributed under the terms of the GNU General Public License v2
EAPI=5 EAPI=7
inherit autotools git-2 inherit autotools git-r3
DESCRIPTION="Build tool wrappers for using custom SYSROOTs" DESCRIPTION="Build tool wrappers for using custom SYSROOTs"
HOMEPAGE="https://github.com/coreos/sysroot-wrappers" HOMEPAGE="https://github.com/coreos/sysroot-wrappers"
@ -16,5 +16,6 @@ KEYWORDS="-*"
IUSE="" IUSE=""
src_prepare() { src_prepare() {
default
eautoreconf eautoreconf
} }

View File

@ -1,7 +1,7 @@
# Copyright (c) 2013 CoreOS Authors. All rights reserved. # Copyright (c) 2013 CoreOS Authors. All rights reserved.
# Distributed under the terms of the GNU General Public License v2 # Distributed under the terms of the GNU General Public License v2
EAPI=5 EAPI=7
CROS_WORKON_PROJECT="flatcar-linux/bootengine" CROS_WORKON_PROJECT="flatcar-linux/bootengine"
CROS_WORKON_LOCALNAME="bootengine" CROS_WORKON_LOCALNAME="bootengine"
CROS_WORKON_OUTOFTREE_BUILD=1 CROS_WORKON_OUTOFTREE_BUILD=1
@ -14,7 +14,7 @@ else
KEYWORDS="amd64 arm arm64 x86" KEYWORDS="amd64 arm arm64 x86"
fi fi
inherit cros-workon cros-debug inherit cros-workon
DESCRIPTION="CoreOS Bootengine" DESCRIPTION="CoreOS Bootengine"
SRC_URI="" SRC_URI=""

View File

@ -4,8 +4,8 @@
EAPI=7 EAPI=7
# Tell linux-info where to find the kernel source/build # Tell linux-info where to find the kernel source/build
KERNEL_DIR="${SYSROOT}/usr/src/linux" KERNEL_DIR="${SYSROOT%/}/usr/src/linux"
KBUILD_OUTPUT="${SYSROOT}/var/cache/portage/sys-kernel/coreos-kernel" KBUILD_OUTPUT="${SYSROOT%/}/var/cache/portage/sys-kernel/coreos-kernel"
inherit linux-info savedconfig inherit linux-info savedconfig
# In case this is a real snapshot, fill in commit below. # In case this is a real snapshot, fill in commit below.
@ -102,7 +102,7 @@ src_unpack() {
} }
src_prepare() { src_prepare() {
local kernel_mods="${ROOT}/lib/modules/${KV_FULL}" local kernel_mods="${SYSROOT%/}/lib/modules/${KV_FULL}"
# Fail if any firmware is missing. # Fail if any firmware is missing.
einfo "Scanning for files required by ${KV_FULL}" einfo "Scanning for files required by ${KV_FULL}"

View File

@ -1,7 +1,7 @@
# Copyright 2014-2016 CoreOS, Inc. # Copyright 2014-2016 CoreOS, Inc.
# Distributed under the terms of the GNU General Public License v2 # Distributed under the terms of the GNU General Public License v2
EAPI=5 EAPI=7
COREOS_SOURCE_REVISION="" COREOS_SOURCE_REVISION=""
inherit coreos-kernel inherit coreos-kernel
@ -55,21 +55,22 @@ pkg_setup() {
} }
src_prepare() { src_prepare() {
default
# KV_OUT_DIR points to the minimal build tree installed by coreos-modules # KV_OUT_DIR points to the minimal build tree installed by coreos-modules
# Pull in the config and public module signing key # Pull in the config and public module signing key
KV_OUT_DIR="${ROOT%/}/lib/modules/${COREOS_SOURCE_NAME#linux-}/build" KV_OUT_DIR="${SYSROOT%/}/lib/modules/${COREOS_SOURCE_NAME#linux-}/build"
cp -v "${KV_OUT_DIR}/.config" build/ || die cp -v "${KV_OUT_DIR}/.config" build/ || die
local sig_key="$(getconfig MODULE_SIG_KEY)" local sig_key="$(getconfig MODULE_SIG_KEY)"
mkdir -p "build/${sig_key%/*}" || die mkdir -p "build/${sig_key%/*}" || die
cp -v "${KV_OUT_DIR}/${sig_key}" "build/${sig_key}" || die cp -v "${KV_OUT_DIR}/${sig_key}" "build/${sig_key}" || die
# Symlink to bootengine.cpio so we can stick with relative paths in .config # Symlink to bootengine.cpio so we can stick with relative paths in .config
ln -sv "${ROOT}"/usr/share/bootengine/bootengine.cpio build/ || die ln -sv "${SYSROOT%/}"/usr/share/bootengine/bootengine.cpio build/ || die
config_update 'CONFIG_INITRAMFS_SOURCE="bootengine.cpio"' config_update 'CONFIG_INITRAMFS_SOURCE="bootengine.cpio"'
config_update 'CONFIG_INITRAMFS_COMPRESSION_ZSTD=y' config_update 'CONFIG_INITRAMFS_COMPRESSION_ZSTD=y'
# include all intel and amd microcode files, avoiding the signatures # include all intel and amd microcode files, avoiding the signatures
local fw_dir="${ROOT}lib/firmware" local fw_dir="${SYSROOT%/}/lib/firmware"
use amd64 && config_update "CONFIG_EXTRA_FIRMWARE=\"$(find ${fw_dir} -type f \ use amd64 && config_update "CONFIG_EXTRA_FIRMWARE=\"$(find ${fw_dir} -type f \
\( -path ${fw_dir}'/intel-ucode/*' -o -path ${fw_dir}'/amd-ucode/*' \) -printf '%P ')\"" \( -path ${fw_dir}'/intel-ucode/*' -o -path ${fw_dir}'/amd-ucode/*' \) -printf '%P ')\""
use amd64 && config_update "CONFIG_EXTRA_FIRMWARE_DIR=\"${fw_dir}\"" use amd64 && config_update "CONFIG_EXTRA_FIRMWARE_DIR=\"${fw_dir}\""

View File

@ -1,7 +1,7 @@
# Copyright 2014-2016 CoreOS, Inc. # Copyright 2014-2016 CoreOS, Inc.
# Distributed under the terms of the GNU General Public License v2 # Distributed under the terms of the GNU General Public License v2
EAPI=5 EAPI=7
COREOS_SOURCE_REVISION="" COREOS_SOURCE_REVISION=""
inherit coreos-kernel savedconfig inherit coreos-kernel savedconfig
@ -10,6 +10,7 @@ KEYWORDS="amd64 arm64"
RDEPEND="!<sys-kernel/coreos-kernel-4.6.3-r1" RDEPEND="!<sys-kernel/coreos-kernel-4.6.3-r1"
src_prepare() { src_prepare() {
default
restore_config build/.config restore_config build/.config
if [[ ! -f build/.config ]]; then if [[ ! -f build/.config ]]; then
local archconfig="$(find_archconfig)" local archconfig="$(find_archconfig)"

View File

@ -1,7 +1,7 @@
# Copyright 2014 CoreOS, Inc. # Copyright 2014 CoreOS, Inc.
# Distributed under the terms of the GNU General Public License v2 # Distributed under the terms of the GNU General Public License v2
EAPI="5" EAPI=7
ETYPE="sources" ETYPE="sources"
# -rc releases should be versioned L.M_rcN # -rc releases should be versioned L.M_rcN

View File

@ -1,7 +1,7 @@
# Copyright (c) 2013 The CoreOS Authors. All rights reserved. # Copyright (c) 2013 The CoreOS Authors. All rights reserved.
# Distributed under the terms of the GNU General Public License v2 # Distributed under the terms of the GNU General Public License v2
EAPI="5" EAPI=7
CROS_WORKON_PROJECT="flatcar-linux/nss-altfiles" CROS_WORKON_PROJECT="flatcar-linux/nss-altfiles"
CROS_WORKON_LOCALNAME="nss-altfiles" CROS_WORKON_LOCALNAME="nss-altfiles"
CROS_WORKON_REPO="git://github.com" CROS_WORKON_REPO="git://github.com"

View File

@ -1,7 +1,7 @@
# Copyright (c) 2012 The CoreOS Authors. All rights reserved. # Copyright (c) 2012 The CoreOS Authors. All rights reserved.
# Distributed under the terms of the GNU General Public License v2 # Distributed under the terms of the GNU General Public License v2
EAPI=2 EAPI=7
DESCRIPTION="CoreOS Kernel virtual package" DESCRIPTION="CoreOS Kernel virtual package"
HOMEPAGE="http://www.coreos.com" HOMEPAGE="http://www.coreos.com"