Christian Hesse pushed to branch main at Arch Linux / Packaging / Packages / 
lib32-util-linux


Commits:
2f6ef55a by Christian Hesse at 2024-02-01T09:29:09+01:00
support backports and reverts in build

- - - - -


1 changed file:

- PKGBUILD


Changes:

=====================================
PKGBUILD
=====================================
@@ -19,6 +19,31 @@ validpgpkeys=('B0C64D14301CC6EFAEDF60E4E4B71D5EEC39C284')  # 
Karel Zak
 source=("git+https://github.com/util-linux/util-linux#tag=${_tag}?signed";)
 sha256sums=('SKIP')
 
+_backports=(
+)
+
+_reverts=(
+)
+
+prepare() {
+  cd "${_pkgbasename}"
+
+  local _c _l
+  for _c in "${_backports[@]}"; do
+    if [[ "${_c}" == *..* ]]; then _l='--reverse'; else _l='--max-count=1'; fi
+    git log --oneline "${_l}" "${_c}"
+    git cherry-pick --mainline 1 --no-commit "${_c}"
+  done
+  for _c in "${_reverts[@]}"; do
+    if [[ "${_c}" == *..* ]]; then _l='--reverse'; else _l='--max-count=1'; fi
+    git log --oneline "${_l}" "${_c}"
+    git revert --mainline 1 --no-commit "${_c}"
+  done
+
+  # do not mark dirty
+  sed -i '/dirty=/c dirty=' tools/git-version-gen
+}
+
 build() {
   export CC="gcc -m32"
   export CXX="g++ -m32"



View it on GitLab: 
https://gitlab.archlinux.org/archlinux/packaging/packages/lib32-util-linux/-/commit/2f6ef55a02f564ea943dbd728dafdc600c91f492

-- 
View it on GitLab: 
https://gitlab.archlinux.org/archlinux/packaging/packages/lib32-util-linux/-/commit/2f6ef55a02f564ea943dbd728dafdc600c91f492
You're receiving this email because of your account on gitlab.archlinux.org.


Reply via email to