[arch-commits] Commit in stratisd/repos (3 files)
Jiachen Yang
farseerfc at gemini.archlinux.org
Mon Oct 4 23:00:57 UTC 2021
Date: Monday, October 4, 2021 @ 23:00:56
Author: farseerfc
Revision: 1027678
archrelease: copy trunk to community-testing-x86_64
Added:
stratisd/repos/community-testing-x86_64/
stratisd/repos/community-testing-x86_64/PKGBUILD
(from rev 1027677, stratisd/trunk/PKGBUILD)
stratisd/repos/community-testing-x86_64/pr2665.patch
(from rev 1027677, stratisd/trunk/pr2665.patch)
--------------+
PKGBUILD | 66 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++
pr2665.patch | 51 ++++++++++++++++++++++++++++++++++++++++++++
2 files changed, 117 insertions(+)
Copied: stratisd/repos/community-testing-x86_64/PKGBUILD (from rev 1027677, stratisd/trunk/PKGBUILD)
===================================================================
--- community-testing-x86_64/PKGBUILD (rev 0)
+++ community-testing-x86_64/PKGBUILD 2021-10-04 23:00:56 UTC (rev 1027678)
@@ -0,0 +1,66 @@
+# Maintainer: Jiachen YANG <farseerfc at archlinux.org>
+# Contributor: Dan Beste <dan.ray.beste at gmail.com>
+
+pkgname='stratisd'
+pkgver=2.4.2
+pkgrel=2
+pkgdesc='Easy to use local storage management for Linux.'
+arch=('x86_64')
+url='https://stratis-storage.github.io/'
+license=('MPL2')
+makedepends=('asciidoc' 'cargo' 'rust' 'clang')
+depends=('dbus' 'cryptsetup' 'util-linux-libs' 'clevis' 'systemd')
+optdepends=('stratis-cli: command line interface'
+ 'dracut: stratis as root filesystem support')
+checkdepends=('python-pyudev')
+source=("${pkgname}-${pkgver}.tar.gz::https://github.com/stratis-storage/stratisd/archive/v${pkgver}.tar.gz"
+ "pr2665.patch::https://patch-diff.githubusercontent.com/raw/stratis-storage/stratisd/pull/2665.patch")
+b2sums=('6a3a4176216575cfb9eff75073ac126e7bf7048025c521d76a9840cb0d6ef0a261d7c175e69b51ce32b31ae00c7a3d1945178ced0cca6f213211b38d15dae831'
+ '68a0291b8837377f2e3c864d06c275d9aafa35cd9fb2836b37e10c774f2459b05879aafdf9634e669d819433bbea4825af73e982dd5b0205cfdce2aa3a4a7cf9')
+
+prepare() {
+ cd "${pkgname}-${pkgver}"
+
+ # patch to allow nullptr deref
+ patch -Np1 -i "$srcdir/pr2665.patch"
+
+ # patch libexec path in configs
+ configs=(systemd/stratisd.service
+ dracut/90stratis/module-setup.sh
+ org.storage.stratis2.service
+ dracut/90stratis/stratisd-min.service
+ systemd/stratisd-min-postinitrd.service)
+ for file in ${configs[@]}; do
+ echo "Patching libexec in $file"
+ sed -i 's,/usr/libexec,/usr/lib,g' $file
+ done
+}
+
+build() {
+ cd "${pkgname}-${pkgver}"
+
+ # Release
+ export LIBEXECDIR=/usr/lib
+ make release
+ make release-min
+ make docs/stratisd.8
+}
+
+check() {
+ cd "${pkgname}-${pkgver}"
+
+ export LIBEXECDIR=/usr/lib
+ make test
+}
+
+package() {
+ cd "${pkgname}-${pkgver}"
+
+ export LIBEXECDIR=/usr/lib
+ install -dm755 "${pkgdir}/usr/lib/systemd/system-generators"
+ install -dm755 "${pkgdir}/usr/bin"
+ make install DESTDIR="${pkgdir}" PREFIX="/usr" LIBEXECDIR="/usr/lib"
+ install -D -m644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
+}
+
+# vim: ts=2 sw=2 et:
Copied: stratisd/repos/community-testing-x86_64/pr2665.patch (from rev 1027677, stratisd/trunk/pr2665.patch)
===================================================================
--- community-testing-x86_64/pr2665.patch (rev 0)
+++ community-testing-x86_64/pr2665.patch 2021-10-04 23:00:56 UTC (rev 1027678)
@@ -0,0 +1,51 @@
+From 5e433304fac6864d2ef75b3124281d18cd5a35ba Mon Sep 17 00:00:00 2001
+From: John Baublitz <jbaublitz at redhat.com>
+Date: Thu, 17 Jun 2021 17:05:47 -0400
+Subject: [PATCH 1/2] Allow code generated by bindgen for testing struct
+ layouts
+
+---
+ src/systemd/bindings.rs | 4 ++++
+ 1 file changed, 4 insertions(+)
+
+diff --git a/src/systemd/bindings.rs b/src/systemd/bindings.rs
+index fda3e7425..d0e81a5cb 100644
+--- a/src/systemd/bindings.rs
++++ b/src/systemd/bindings.rs
+@@ -5,5 +5,9 @@
+ #![allow(clippy::redundant_static_lifetimes)]
+ #![allow(clippy::unreadable_literal)]
+ #![allow(clippy::missing_safety_doc)]
++// This allow should be removed once bindgen finds a way to
++// generate struct alignment tests without triggering errors
++// in the compiler. See https://github.com/rust-lang/rust-bindgen/issues/1651.
++#![allow(deref_nullptr)]
+
+ include!(concat!(env!("OUT_DIR"), "/bindings.rs"));
+
+From 3aafc75c991548a468631c6aa6e6b20d60632de1 Mon Sep 17 00:00:00 2001
+From: mulhern <amulhern at redhat.com>
+Date: Fri, 18 Jun 2021 20:53:48 -0400
+Subject: [PATCH 2/2] Allow lint in order to cover our lowest supported
+ toolchain
+
+This would be unnecessary if it were a clippy lint, but it is a regular
+compiler lint.
+
+Signed-off-by: mulhern <amulhern at redhat.com>
+---
+ src/systemd/bindings.rs | 1 +
+ 1 file changed, 1 insertion(+)
+
+diff --git a/src/systemd/bindings.rs b/src/systemd/bindings.rs
+index d0e81a5cb..9dd61cfc2 100644
+--- a/src/systemd/bindings.rs
++++ b/src/systemd/bindings.rs
+@@ -8,6 +8,7 @@
+ // This allow should be removed once bindgen finds a way to
+ // generate struct alignment tests without triggering errors
+ // in the compiler. See https://github.com/rust-lang/rust-bindgen/issues/1651.
++#![allow(unknown_lints)]
+ #![allow(deref_nullptr)]
+
+ include!(concat!(env!("OUT_DIR"), "/bindings.rs"));
More information about the arch-commits
mailing list