Sync from SUSE:ALP:Source:Standard:1.0 catatonit revision 1475bb4095860414b9c150689b26249f

This commit is contained in:
Adrian Schröter 2025-01-06 13:59:09 +01:00
commit c2fbe2b6a1
7 changed files with 267 additions and 0 deletions

23
.gitattributes vendored Normal file
View File

@ -0,0 +1,23 @@
## Default LFS
*.7z filter=lfs diff=lfs merge=lfs -text
*.bsp filter=lfs diff=lfs merge=lfs -text
*.bz2 filter=lfs diff=lfs merge=lfs -text
*.gem filter=lfs diff=lfs merge=lfs -text
*.gz filter=lfs diff=lfs merge=lfs -text
*.jar filter=lfs diff=lfs merge=lfs -text
*.lz filter=lfs diff=lfs merge=lfs -text
*.lzma filter=lfs diff=lfs merge=lfs -text
*.obscpio filter=lfs diff=lfs merge=lfs -text
*.oxt filter=lfs diff=lfs merge=lfs -text
*.pdf filter=lfs diff=lfs merge=lfs -text
*.png filter=lfs diff=lfs merge=lfs -text
*.rpm filter=lfs diff=lfs merge=lfs -text
*.tbz filter=lfs diff=lfs merge=lfs -text
*.tbz2 filter=lfs diff=lfs merge=lfs -text
*.tgz filter=lfs diff=lfs merge=lfs -text
*.ttf filter=lfs diff=lfs merge=lfs -text
*.txz filter=lfs diff=lfs merge=lfs -text
*.whl filter=lfs diff=lfs merge=lfs -text
*.xz filter=lfs diff=lfs merge=lfs -text
*.zip filter=lfs diff=lfs merge=lfs -text
*.zst filter=lfs diff=lfs merge=lfs -text

BIN
catatonit-0.2.0.tar.xz (Stored with Git LFS) Normal file

Binary file not shown.

View File

@ -0,0 +1,17 @@
-----BEGIN PGP SIGNATURE-----
iQJDBAABCAAtFiEEXzbGxhtUYBJKdfWmnhiqJn3bjbQFAmUaWnwPHGFzYXJhaUBz
dXNlLmRlAAoJEJ4YqiZ92420CvIQAIxZ1qxHYsdT8QTQkt7UkfXn13OrDOEoVEEp
z+m5+2uYoJNUu2KYGdiofPcH3qiu5+wMKJ/q3Py7EELz8MH3hLb0yiKzOPX6mXxa
kzH8zkF7ArhF29b3Ztp8PN58iEXeX4kiCJ+b7Sl9sikMukZ01JxBtjsi94Q3VAxc
Bq/rOxTsX/j+UpoNv5UJLYop1a842BraVMUyB7TJ4X5tSB+/hs/uGiyPmI6WW8Gk
6Ga/M8JIsQfQqkVmaq+l1pVMzhGEMb4xL07tBY47zGD0KLfgahZFq6AV/ECTUyfw
hEd3lk9yKUfo2TXULJrTyXBJBTl283DgU/AgA1SSW9uN1ngwrD6M8kRniAvCMLTE
VvY8+YKqJoOfHI/fVEb7XFTrJYkMirBKOCPF3wi6JEbfsnD3Eoq7yaR2tkdhY2UJ
Vp+0bXgwwksTzY2vu8XuzOHpOJbB7qw9owHmeTpgjXEAqpczckpuSpkD2YCGNxuG
tj9FO6Ac7dm0NkK0A9sM9oVX0JWskKX2TOS6Qqn3yy9Hgsh/lKwwXkLOEjpIxCwh
zvIiyFP+7yB/hlH+dhrbovAkHLx7GyQN/fdFZ39YwoEXC3wxnALF9xipFfIx2A5E
EhCE9C06EZFj3qSmPW7vMFaSvsvpIqauiCsbAe+QZptzrdj+j9ucvoHCBBt+q/TV
bJHTi865
=tBQq
-----END PGP SIGNATURE-----

3
catatonit-rpmlintrc Normal file
View File

@ -0,0 +1,3 @@
# We need catatonit to be statically linked.
addFilter ("^catatonit.*: [EW]: statically-linked-binary /usr/bin/catatonit")
addFilter ("^catatonit.*: W: position-independent-executable-suggested /usr/bin/catatonit")

78
catatonit.changes Normal file
View File

@ -0,0 +1,78 @@
-------------------------------------------------------------------
Mon Oct 2 05:48:52 UTC 2023 - Aleksa Sarai <asarai@suse.com>
- Update to catatonit v0.2.0.
* Change license to GPL-2.0-or-later.
- Remove upstreamed patches:
- 99bb9048f.patch
-------------------------------------------------------------------
Mon Apr 11 09:57:33 UTC 2022 - Richard Brown <rbrown@suse.com>
- Update to catatont v0.1.7
- This release adds the ability for catatonit to be used as the only
process in a pause container, by passing the -P flag (in this mode no
subprocess is spawned and thus no signal forwarding is done).
-------------------------------------------------------------------
Thu Nov 25 14:28:41 UTC 2021 - Dominique Leuenberger <dimstar@opensuse.org>
- Add 99bb9048f.patch: configure.ac: call AM_INIT_AUTOMAKE only
once. Fix build with autocnf 2.71 / automake 1.16.5.
-------------------------------------------------------------------
Thu Sep 16 05:16:12 UTC 2021 - Aleksa Sarai <asarai@suse.com>
- Update to catatonit v0.1.6, which fixes a few bugs -- mainly ones related to
socket activation or features somewhat adjacent to socket activation (such as
passing file descriptors).
- Update catatonit-rpmlintrc in order to cover that static binaries are now an
error not a warning.
-------------------------------------------------------------------
Mon Mar 2 16:20:29 UTC 2020 - Aleksa Sarai <asarai@suse.com>
- Update to catatonit v0.1.5, which fixes two bugs where catatonit would hang
endlessly when pid1 died in very specific ways. bsc#1176155
-------------------------------------------------------------------
Tue Jan 29 07:35:13 UTC 2019 - Aleksa Sarai <asarai@suse.com>
- Update to catatonit v0.1.4, which includes support for "-g".
-------------------------------------------------------------------
Wed Apr 18 13:06:13 UTC 2018 - asarai@suse.com
- Update to catatonit v0.1.3, which includes a fix for docker compatiblity so
that dockerd doesn't give spurrious warnings.
-------------------------------------------------------------------
Fri Apr 6 18:31:08 UTC 2018 - asarai@suse.com
- Fix build to correctly build a static binary (which will allow it to work in
all containers). This was caused by forgetting to include
'glibc-devel-static'. I've added a check to ensure it doesn't happen by
accident again.
- Add catatonit-rpmlintrc to include filters for "static binary" warnings,
since this is intentional.
-------------------------------------------------------------------
Tue Apr 3 23:27:27 UTC 2018 - jengelh@inai.de
- Update package descriptions.
-------------------------------------------------------------------
Thu Mar 29 09:13:58 UTC 2018 - asarai@suse.com
- Update to catatonit v0.1.2 and update links to point to openSUSE repo.
-------------------------------------------------------------------
Tue Mar 27 09:27:17 UTC 2018 - asarai@suse.com
- Update to catatonit v0.1.1, which includes a fix for the libtool requirement.
This lets us build on much older distributions.
-------------------------------------------------------------------
Tue Mar 27 08:39:07 UTC 2018 - asarai@suse.com
- Initial import of catatonit v0.1.0.

69
catatonit.keyring Normal file
View File

@ -0,0 +1,69 @@
pub rsa4096 2016-06-21 [SC] [expires: 2031-06-18]
5F36C6C61B5460124A75F5A69E18AA267DDB8DB4
uid [ultimate] Aleksa Sarai <asarai@suse.com>
uid [ultimate] Aleksa Sarai <asarai@suse.de>
sub rsa4096 2016-06-21 [E] [expires: 2031-06-18]
-----BEGIN PGP PUBLIC KEY BLOCK-----
mQINBFdpGN0BEADMEmLpnUel7OI2SM8f88i7w0iRgJd4kOvF1z673+zWCgaw9QW8
ha7wAm/+3isas9IqlvGx61i6hbO7TFwcYi472VHhs4HP8jMtWytHHkjc3O9xlMc0
CfekjIpoR1CffYtCvkLr8/f74jHNRfqsmZ1Oxa9GjbhgDnbw4Baztp6WctzMXyOJ
j5bJuSfQTcgFbIeQ27zx7gNjbnHyEP5TEm1/CeoWpGPpZLJPiKHdI/TBCyFexHJ0
IlabKc4DC43RZyh0Btuf+FiX9K2NkoCC7l5nQdde8B6YG7SA6xEhwhQ73bSs7A56
rlZxfIFmLCB/81FyXk5eH0Eu9Lbwj69YQ81EdkLnLAyP3ZB+MRGuiWVD88Jr1He2
25m3dxTVzaP0TAV4LqdbuqTwr2wagu9MZQ5XXDiaEuiPwTrO10xlmivOjRaWxoWA
E0I3fOdrzqfg9XK6g1pG23v2WhHFIejqVCXrf5oPcCd62lGeh0ghEdNN89ikXbka
1PJRiWI3uDQ6STSKa+6uC5eUM7tK/ymqS8JYSQf4d3eIaC2H403psPt5kbq1bHdx
nRPX2eh/t1QzR1dhPxzai4CzLERIYJ9iD4nGiSscwy0P44AgyeuywSg4qXzr9Sfe
igOj+6lfJb3iZRN3dKLTRAKWvo7yfdi/UOycodlaQyW8v0yXAx7Yh1NgJQARAQAB
tB1BbGVrc2EgU2FyYWkgPGFzYXJhaUBzdXNlLmRlPokCPQQTAQgAJwUCV2kY3QIb
AwUJHDIEgAULCQgHAgYVCAkKCwIEFgIDAQIeAQIXgAAKCRCeGKomfduNtGecEACZ
JLVdeKHKsSUqTLOjbC6t9uKfKlNpu+iQ2/TS9YazLWXoFEc8f/uWB8BpHcJBFr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qAytg8YawARAQABiQIlBBgBCAAPBQJXaRjdAhsMBQkcMgSAAAoJEJ4YqiZ9
2420AuIP/1PYZDKFLv//+iY6Z9xGz4zHL+9nWND/Kll3xHeuWjYGZ2nmcovSnEW4
0eiMn1c6KMgs/CCR4+9bm7MdgaF73pjM4xzHBIBetLLkcKQIrniX2Fq+WgscJfFx
+0ha7Xb2TTpSy8PRiYHowVUaMPwyqSsAUwrSenLuwyiKr+EW4Wzo+YM2w9a86yw1
GfWuiyk0Z4sGoPoPEjmD4y6Xlf8kIfuZeb+joHd6W1nMf7cxDkNLQqX6sWvs62Tv
Lsx2jApPKD2PyTyyxItJKc6NXFVM+Uww323ZYVWMkz+VKalHRiv6xzGqArhpAIH6
fn+1WjjqkrrLU4I7smjlulZCy/NZLOKqQYaqM+7BgC2mOPMb5CM99cg4SrK86dFr
3Cf22+OTmC6/Wb5Gu4PzTzkYIJDnt3BJQYjJlp4zyOHluN6notrWagLIB06oX+jQ
pxGySHW++Cha/JCUb0mfeHIJKvRor3v7YaSJoFIo//rz6XJ9WVZfsKnOte/3s9m7
qkEvLArbe2o7pUJ2mxZZw/nAk/Y39FYAMvgMA9f+uv18O7u+ojYjS6DlrmNuIEg/
mp8FqVxVNdIS2capSF4+eOn3a4kcF0018xbTLA2AwQ2o9eF5G9qTdSVrN865VPCd
KWr9ByCKAwVHsaSgVSJE/dse4f1toqeEHHbWk682U4RqOWZR4bA0
=3/jE
-----END PGP PUBLIC KEY BLOCK-----

74
catatonit.spec Normal file
View File

@ -0,0 +1,74 @@
#
# spec file for package catatonit
#
# Copyright (c) 2023 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via https://bugs.opensuse.org/
#
Name: catatonit
Version: 0.2.0
Release: 0
Summary: A signal-forwarding process manager for containers
License: GPL-2.0-or-later
Group: System/Management
URL: https://github.com/openSUSE/catatonit
Source0: https://github.com/openSUSE/catatonit/releases/download/v%{version}/%{name}.tar.xz#/%{name}-%{version}.tar.xz
Source1: https://github.com/openSUSE/catatonit/releases/download/v%{version}/%{name}.tar.xz.asc#/%{name}-%{version}.tar.xz.asc
Source2: %{name}.keyring
Source3: %{name}-rpmlintrc
BuildRequires: autoconf
BuildRequires: automake
BuildRequires: file
BuildRequires: gcc
BuildRequires: glibc-devel-static
BuildRequires: libtool
%description
Catatonit is a /sbin/init program for use within containers. It
forwards (almost) all signals to the spawned child, tears down
the container when the spawned child exits, and otherwise
cleans up other exited processes (zombies).
This is a reimplementation of other container init programs (such as
"tini" or "dumb-init"), but uses modern Linux facilities (such as
signalfd(2)) and has no additional features.
%prep
%autosetup -p1
%build
autoreconf -fi
%configure
make %{?_smp_mflags}
# Make sure we *always* build a static binary. Otherwise we'll break containers
# that don't have the necessary shared libs.
file ./%{name} | grep 'statically linked'
%install
%make_install
ln -s %{_bindir}/%{name} %{buildroot}%{_bindir}/docker-init
%files
%defattr(-,root,root)
%doc README.md
%if 0%{?suse_version} >= 1500
%license COPYING
%else
%doc COPYING
%endif
%{_bindir}/%{name}
%{_bindir}/docker-init
%changelog