[arch-commits] Commit in dracut/repos/extra-x86_64 (3 files)

Giancarlo Razzolini grazzolini at archlinux.org
Wed Oct 2 12:40:44 UTC 2019


    Date: Wednesday, October 2, 2019 @ 12:40:43
  Author: grazzolini
Revision: 363653

archrelease: copy trunk to extra-x86_64

Added:
  dracut/repos/extra-x86_64/PKGBUILD
    (from rev 363652, dracut/trunk/PKGBUILD)
Deleted:
  dracut/repos/extra-x86_64/0001-90crypt-Change-the-module-setup.sh-to-use-uname-r-in.patch
  dracut/repos/extra-x86_64/PKGBUILD

-----------------------------------------------------------------+
 0001-90crypt-Change-the-module-setup.sh-to-use-uname-r-in.patch |   27 --
 PKGBUILD                                                        |  113 +++++-----
 2 files changed, 64 insertions(+), 76 deletions(-)

Deleted: 0001-90crypt-Change-the-module-setup.sh-to-use-uname-r-in.patch
===================================================================
--- 0001-90crypt-Change-the-module-setup.sh-to-use-uname-r-in.patch	2019-10-02 12:40:02 UTC (rev 363652)
+++ 0001-90crypt-Change-the-module-setup.sh-to-use-uname-r-in.patch	2019-10-02 12:40:43 UTC (rev 363653)
@@ -1,27 +0,0 @@
-From a79fb31261688f6d612f0145c68964956a0a46b4 Mon Sep 17 00:00:00 2001
-From: Giancarlo Razzolini <grazzolini at archlinux.org>
-Date: Mon, 20 May 2019 22:41:43 -0300
-Subject: [PATCH] 90crypt: Change the module-setup.sh to use uname -r instead
- of arch binary.
-
-Signed-off-by: Giancarlo Razzolini <grazzolini at archlinux.org>
----
- modules.d/90crypt/module-setup.sh | 2 +-
- 1 file changed, 1 insertion(+), 1 deletion(-)
-
-diff --git a/modules.d/90crypt/module-setup.sh b/modules.d/90crypt/module-setup.sh
-index 1ec59096..bd5bb6a0 100755
---- a/modules.d/90crypt/module-setup.sh
-+++ b/modules.d/90crypt/module-setup.sh
-@@ -25,7 +25,7 @@ depends() {
- # called by dracut
- installkernel() {
-     hostonly="" instmods drbg
--    arch=$(arch)
-+    arch=$(uname -m)
-     [[ $arch == x86_64 ]] && arch=x86
-     [[ $arch == s390x ]] && arch=s390
-     instmods dm_crypt =crypto =drivers/crypto =arch/$arch/crypto
--- 
-2.21.0
-

Deleted: PKGBUILD
===================================================================
--- PKGBUILD	2019-10-02 12:40:02 UTC (rev 363652)
+++ PKGBUILD	2019-10-02 12:40:43 UTC (rev 363653)
@@ -1,49 +0,0 @@
-# Maintainer: Giancarlo Razzolini <grazzolini at archlinux.org>
-pkgname=dracut
-pkgver=049
-# tag commit of the pkgver
-_tag_blob='1a3447fa9bbf0954d62025957362536a482f1f79'
-pkgrel=3
-pkgdesc="An event driven initramfs infrastructure"
-arch=('x86_64')
-url="https://dracut.wiki.kernel.org"
-license=('GPL')
-depends=('bash' 'coreutils' 'cpio' 'filesystem' 'findutils' 'grep' 'gzip'
-         'kmod' 'procps-ng' 'sed' 'systemd' 'util-linux' 'xz')
-makedepends=('asciidoc' 'bash-completion' 'git')
-provides=('initramfs')
-backup=('etc/dracut.conf')
-source=("git+https://github.com/dracutdevs/dracut#tag=${_tag_blob}?signed"
-        "0001-90crypt-Change-the-module-setup.sh-to-use-uname-r-in.patch")
-sha512sums=('SKIP'
-            'a4ed8da197fde60cf69803431a61273b0db921fe84589879fdd37697df6e0d95275daf6273eee86077ba93687be6e88da0b26fff60451d5dec2a69fafcf6094d')
-validpgpkeys=(
-  '4C96E1500F9421CCF82D5DCA034EB370014DF270' # Harald Hoyer <harald at redhat.com>
-)
-
-prepare () {
-  cd "$srcdir/${pkgname}"
-
-  # patch for arch. we only support x86_64
-  patch -Np1 < "$srcdir/0001-90crypt-Change-the-module-setup.sh-to-use-uname-r-in.patch"
-}
-
-build() {
-  local prefix=/usr sysconfdir=/etc
-  
-  cd "$srcdir/${pkgname}"
-
-  ./configure \
-    --sysconfdir=${sysconfdir} \
-    --prefix=${prefix} \
-    --libdir=${prefix}/lib \
-    --systemdsystemunitdir=${prefix}/lib/systemd/system \
-    --bashcompletiondir=$(pkg-config --variable=completionsdir bash-completion)
-  make
-}
-
-package() {
-  cd "$srcdir/${pkgname}"
-
-  DESTDIR="$pkgdir" make install
-}

Copied: dracut/repos/extra-x86_64/PKGBUILD (from rev 363652, dracut/trunk/PKGBUILD)
===================================================================
--- PKGBUILD	                        (rev 0)
+++ PKGBUILD	2019-10-02 12:40:43 UTC (rev 363653)
@@ -0,0 +1,64 @@
+# Maintainer: Giancarlo Razzolini <grazzolini at archlinux.org>
+pkgname=dracut
+pkgver=049
+# tag commit of the pkgver
+_tag_blob='1a3447fa9bbf0954d62025957362536a482f1f79'
+pkgrel=4
+pkgdesc="An event driven initramfs infrastructure"
+arch=('x86_64')
+url="https://dracut.wiki.kernel.org"
+license=('GPL')
+depends=('bash' 'coreutils' 'cpio' 'filesystem' 'findutils' 'grep' 'gzip'
+         'kmod' 'pkgconf' 'procps-ng' 'sed' 'systemd' 'util-linux' 'xz')
+makedepends=('asciidoc' 'bash-completion' 'git')
+provides=('initramfs')
+backup=('etc/dracut.conf')
+source=("git+https://github.com/dracutdevs/dracut#tag=${_tag_blob}?signed")
+sha512sums=('SKIP')
+validpgpkeys=(
+  '4C96E1500F9421CCF82D5DCA034EB370014DF270' # Harald Hoyer <harald at redhat.com>
+)
+
+_backports=(
+  #Replace $(arch) by $(uname -m)
+  '0585725908c9238e5da6b7768c05bf0ac0a0a015'
+)
+
+_reverts=(
+)
+
+prepare() {
+  cd "$srcdir/${pkgname}"
+
+  local _c
+  
+  for _c in "${_backports[@]}"; do
+    git log --oneline -1 "${_c}"  
+    git cherry-pick -n "${_c}"
+  done
+
+  for _c in "${_reverts[@]}"; do
+    git log --oneline -1 "${_c}"
+    git revert -n "${_c}"
+  done
+}
+
+build() {
+  local prefix=/usr sysconfdir=/etc
+  
+  cd "$srcdir/${pkgname}"
+
+  ./configure \
+    --sysconfdir=${sysconfdir} \
+    --prefix=${prefix} \
+    --libdir=${prefix}/lib \
+    --systemdsystemunitdir=${prefix}/lib/systemd/system \
+    --bashcompletiondir=$(pkg-config --variable=completionsdir bash-completion)
+  make
+}
+
+package() {
+  cd "$srcdir/${pkgname}"
+
+  DESTDIR="$pkgdir" make install
+}



More information about the arch-commits mailing list