void-packages/srcpkgs/pdsh/patches/fix_configure_ac.patch
Đoàn Trần Công Danh 49cb564d14 srcpkgs/p*: convert patches to -Np1
* par is kept at -Np0

```sh
git grep -l '^patch_args=-Np0' "srcpkgs/$1*/template" |
while read template; do
	for p in ${template%/template}/patches/*; do
		sed -i '
			\,^[+-][+-][+-] /dev/null,b
			/^[*-]\+ [0-9]\+\(,[0-9]\+\)\? [*-]\+$/b
			s,^[*][*][*] ,&a/,
			/^--- /{
				s,\(^--- \)\(./\)*,\1a/,
				s,[.-][Oo][Rr][Ii][Gg]\([	/]\),\1,
				s/[.-][Oo][Rr][Ii][Gg]$//
				s/[.]patched[.]\([^.]\)/.\1/
				h
			}
			/^+++ -/{
				g
				s/^--- a/+++ b/
				b
			}
			s,\(^+++ \)\(./\)*,\1b/,
		' "$p"
	done
	sed -i '/^patch_args=/d' $template
done
```
2021-06-20 13:17:29 +07:00

18 lines
675 B
Diff

configure.ac relies on git, which doesn't work for release tarball.
See: https://github.com/chaos/pdsh/issues/116
--- a/configure.ac 2017-06-28 19:28:26.000000000 -0500
+++ b/configure.ac 2019-09-11 08:41:27.613006239 -0500
@@ -4,12 +4,11 @@
# Copyright (C) 2000-2002 Regents of the University of California
# See ./DISCLAIMER
#
# This file is to be processed with autoconf to generate a configure script.
-AC_INIT([pdsh],
- m4_esyscmd([git describe --always | awk '/.*/ {sub(/^pdsh-/, ""); printf "%s",$1; exit}']))
+AC_INIT([pdsh], 2)
AC_CONFIG_SRCDIR([pdsh])
AC_CONFIG_AUX_DIR([config])
AC_CONFIG_MACRO_DIR([config])
AC_CONFIG_SRCDIR([src/pdsh/dsh.h])