mirror of
https://github.com/flatcar/scripts.git
synced 2025-08-18 10:27:00 +02:00
sys-process/tini: Sync with Gentoo upstream
For tini-0.19. Upstream commit 2e10a957da8a8a93c1f5d82011e3f6692f7b765c. Signed-off-by: Jeremi Piotrowski <jpiotrowski@microsoft.com>
This commit is contained in:
parent
1da2d646da
commit
5b4f80d2b2
@ -1 +1,3 @@
|
|||||||
DIST tini-0.18.0.tar.gz 32152 BLAKE2B d676f0f1b4d9f6dca98cdb626aa7c525ec55e090cfeb1cf0e9ab167f1ef4285123223873e92e81d5d62ceb631e26e9012f16b28b1d35813ac801f8e4594be70b SHA512 83279180b6a875aaff9b6b7446ee7e71fd05357279744afcb4db67c76572dc871acfba86c035857009b5dd88ca75d9f2e815d6a925563cdb3e6e771eb83be9b1
|
DIST tini-0.19.0.tar.gz 32369 BLAKE2B 5d86f6299b92152063974e6ecd347e1a2ba90f0188f2a702ddb6c814fc1c9723062481fe560caa89e9f74883017ee833566adf1eb1f11fe625671eced47f3296 SHA512 1fa85b56e2c6085ea474f251928e7a40510d92aeef60b3c145b0496969c1b5df86835d143cb91ef5b4bf4da63fa8a56947cc39a4276e4b72faa57276d432b292
|
||||||
|
EBUILD tini-0.19.0-r1.ebuild 1628 BLAKE2B bc6b59ecfd8a47645666d1a5ec5c81c983862bf1de483db88e025fd999821d6756ae871519c26f7492d983b3969681efab2f24e73e9cc60a5ef90ab9302e65c1 SHA512 9c414f7de0bbf666a9880bdec0b402dc036d25e52d4ea9c45bcafed3d0e92911cdd50735d244089cd4d61b3e3c29a50a0fb814dd81fa529322933ec2d6bc4346
|
||||||
|
MISC metadata.xml 558 BLAKE2B 7fd719d731c968125776805299e964567907ca7cae8a94c717218fdf8caa73d6f333a8bb22c36e0bec273f48504a55f91081e09474abc90440b50bcd760f53aa SHA512 dfbadc5994b3c7b4d8a27fd207c9f1836a21633218dee0252f938448f3c14f3c41d1f35c0604aecbc9f14117b27cd995451800c61dd41875be3becffb53d33f3
|
||||||
|
@ -1,5 +0,0 @@
|
|||||||
This is a fork of gentoo's sys-process/tini package. The sole reason
|
|
||||||
that this package is in coreos-overlay and not in portage-stable is to
|
|
||||||
get rid of the build dependency on cmake, which we do not provide. The
|
|
||||||
build system is replaced with a small autotools setup (see
|
|
||||||
[files/automake](files/automake)).
|
|
@ -1 +0,0 @@
|
|||||||
SUBDIRS = src
|
|
@ -1,12 +0,0 @@
|
|||||||
AC_INIT([tini], [0.1])
|
|
||||||
AC_PROG_CC
|
|
||||||
|
|
||||||
AM_INIT_AUTOMAKE([])
|
|
||||||
|
|
||||||
AC_SUBST(tini_VERSION_MAJOR)
|
|
||||||
AC_SUBST(tini_VERSION_MINOR)
|
|
||||||
AC_SUBST(tini_VERSION_PATCH)
|
|
||||||
AC_SUBST(tini_VERSION_GIT)
|
|
||||||
|
|
||||||
AC_CONFIG_FILES([Makefile src/Makefile src/tiniConfig.h tpl/VERSION])
|
|
||||||
AC_OUTPUT
|
|
@ -1,4 +0,0 @@
|
|||||||
bin_PROGRAMS = tini
|
|
||||||
tini_SOURCES = tini.c
|
|
||||||
|
|
||||||
tini_CFLAGS = -static
|
|
19
sdk_container/src/third_party/coreos-overlay/sys-process/tini/metadata.xml
vendored
Normal file
19
sdk_container/src/third_party/coreos-overlay/sys-process/tini/metadata.xml
vendored
Normal file
@ -0,0 +1,19 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
|
||||||
|
<pkgmetadata>
|
||||||
|
<upstream>
|
||||||
|
<remote-id type="github">krallin/tini</remote-id>
|
||||||
|
<remote-id type="cpe">cpe:/a:tini_project:tini</remote-id>
|
||||||
|
</upstream>
|
||||||
|
<maintainer type="person">
|
||||||
|
<email>zmedico@gentoo.org</email>
|
||||||
|
<name>Zac Medico</name>
|
||||||
|
</maintainer>
|
||||||
|
<maintainer type="person">
|
||||||
|
<email>williamh@gentoo.org</email>
|
||||||
|
<name>William Hubbs</name>
|
||||||
|
</maintainer>
|
||||||
|
<use>
|
||||||
|
<flag name="args">Enable argument parsing.</flag>
|
||||||
|
</use>
|
||||||
|
</pkgmetadata>
|
@ -1,42 +0,0 @@
|
|||||||
# Copyright 1999-2020 Gentoo Authors
|
|
||||||
# Distributed under the terms of the GNU General Public License v2
|
|
||||||
|
|
||||||
# Flatcar: Based on tini-0.18.0.ebuild from commit
|
|
||||||
# d6c89a5caedbe5cae98142ebb99974b41177aedd in gentoo repo (see
|
|
||||||
# https://gitweb.gentoo.org/repo/gentoo.git/plain/sys-process/tini/tini-0.18.0.ebuild?id=d6c89a5caedbe5cae98142ebb99974b41177aedd).
|
|
||||||
|
|
||||||
EAPI=7
|
|
||||||
|
|
||||||
# Flatcar: We provide our autotools-based build system to avoid build
|
|
||||||
# dependency on cmake. So the settings are hardcoded in the build
|
|
||||||
# system - we want static binary and a non-minimal build.
|
|
||||||
inherit autotools
|
|
||||||
|
|
||||||
GIT_COMMIT=fec3683b971d9c3ef73f284f176672c44b448662
|
|
||||||
DESCRIPTION="A tiny but valid init for containers"
|
|
||||||
HOMEPAGE="https://github.com/krallin/tini"
|
|
||||||
SRC_URI="https://github.com/krallin/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
|
|
||||||
|
|
||||||
LICENSE="MIT"
|
|
||||||
SLOT="0"
|
|
||||||
# Flatcar: We don't mark arm64 as "testing".
|
|
||||||
KEYWORDS="amd64 arm64"
|
|
||||||
# Flatcar: No IUSE on args or on static - it's hardcoded in the build
|
|
||||||
# system replacement.
|
|
||||||
|
|
||||||
src_prepare() {
|
|
||||||
# Flatcar: We don't use cmake, so all the code handling cmake
|
|
||||||
# stuff is dropped. Autotools provide the standard configure
|
|
||||||
# && make && make install build protocol, which Gentoo handles
|
|
||||||
# out of the box.
|
|
||||||
for file in configure.ac Makefile.am src/Makefile.am; do
|
|
||||||
cp "${FILESDIR}/automake/${file}" "${S}/${file}"
|
|
||||||
done
|
|
||||||
eapply_user
|
|
||||||
|
|
||||||
export tini_VERSION_MAJOR=$(ver_cut 1)
|
|
||||||
export tini_VERSION_MINOR=$(ver_cut 2)
|
|
||||||
export tini_VERSION_PATCH=$(ver_cut 3)
|
|
||||||
export tini_VERSION_GIT=${GIT_COMMIT}
|
|
||||||
eautoreconf
|
|
||||||
}
|
|
66
sdk_container/src/third_party/coreos-overlay/sys-process/tini/tini-0.19.0-r1.ebuild
vendored
Normal file
66
sdk_container/src/third_party/coreos-overlay/sys-process/tini/tini-0.19.0-r1.ebuild
vendored
Normal file
@ -0,0 +1,66 @@
|
|||||||
|
# Copyright 1999-2021 Gentoo Authors
|
||||||
|
# Distributed under the terms of the GNU General Public License v2
|
||||||
|
|
||||||
|
EAPI=7
|
||||||
|
|
||||||
|
inherit cmake flag-o-matic
|
||||||
|
|
||||||
|
# guard against forgetfulness, https://bugs.gentoo.org/795936
|
||||||
|
GIT_COMMIT_0190="de40ad007797e0dcd8b7126f27bb87401d224240"
|
||||||
|
GIT_COMMIT="GIT_COMMIT_${PV//./}"
|
||||||
|
GIT_COMMIT="${!GIT_COMMIT}"
|
||||||
|
|
||||||
|
DESCRIPTION="A tiny but valid init for containers"
|
||||||
|
HOMEPAGE="https://github.com/krallin/tini"
|
||||||
|
SRC_URI="https://github.com/krallin/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
|
||||||
|
|
||||||
|
LICENSE="MIT"
|
||||||
|
SLOT="0"
|
||||||
|
KEYWORDS="amd64 ~arm arm64 ppc64 ~x86"
|
||||||
|
IUSE="+args +static"
|
||||||
|
|
||||||
|
src_prepare() {
|
||||||
|
|
||||||
|
[[ -z ${GIT_COMMIT} ]] && die "forgetful maintainer! please define GIT_COMMIT_${PV//./} on bump"
|
||||||
|
|
||||||
|
cmake_src_prepare
|
||||||
|
|
||||||
|
local sed_args=(
|
||||||
|
# Do not strip binary
|
||||||
|
-e 's/-Wl,-s")$/")/'
|
||||||
|
|
||||||
|
# Remove -Werror and -pedantic-errors in order to allow macro
|
||||||
|
# redefinition, so that CFLAGS="-U_FORTIFY_SOURCE" does not
|
||||||
|
# trigger an error due to add_definitions(-D_FORTIFY_SOURCE=2)
|
||||||
|
# in CMakeLists.txt (bug 626438).
|
||||||
|
-e "s/ -Werror / /"
|
||||||
|
-e "s/ -pedantic-errors / /"
|
||||||
|
)
|
||||||
|
|
||||||
|
sed -i "${sed_args[@]}" \
|
||||||
|
-e "s/git.*status --porcelain.*/true/" \
|
||||||
|
-e "s/git.*log -n 1.*/true/" \
|
||||||
|
-e "s/git.\${tini_VERSION_GIT}/git.${GIT_COMMIT}/" \
|
||||||
|
CMakeLists.txt || die
|
||||||
|
}
|
||||||
|
|
||||||
|
src_configure() {
|
||||||
|
local mycmakeargs=()
|
||||||
|
use args || mycmakeargs+=(-DMINIMAL=ON)
|
||||||
|
|
||||||
|
cmake_src_configure
|
||||||
|
}
|
||||||
|
|
||||||
|
src_compile() {
|
||||||
|
append-cflags -DPR_SET_CHILD_SUBREAPER=36 -DPR_GET_CHILD_SUBREAPER=37
|
||||||
|
cmake_src_compile
|
||||||
|
}
|
||||||
|
|
||||||
|
src_install() {
|
||||||
|
cmake_src_install
|
||||||
|
if use static; then
|
||||||
|
mv "${ED}"/usr/bin/{${PN}-static,${PN}} || die
|
||||||
|
else
|
||||||
|
rm "${ED}"/usr/bin/${PN}-static || die
|
||||||
|
fi
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user