void-packages/srcpkgs/rinse/patches/fix-tests.patch
Đoàn Trần Công Danh 103ab731ab srcpkgs/r*: convert patches to -Np1
* runit 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

95 lines
2.7 KiB
Diff

Source: maxice8
Upstream: no (feel free to)
Reason: fixes test for tab chars
--- a/scripts/opensuse-11.1/post-install.sh
+++ b/scripts/opensuse-11.1/post-install.sh
@@ -42,8 +42,8 @@ gpgcheck=1
EOF
if [ $ARCH = "i386" ] ; then
- echo " Setting architecture to i686"
- sed -i 's/\(# \)\?arch = .*/arch = i686/' ${prefix}/etc/zypp/zypp.conf
+ echo " Setting architecture to i686"
+ sed -i 's/\(# \)\?arch = .*/arch = i686/' ${prefix}/etc/zypp/zypp.conf
fi
--- a/scripts/opensuse-11.2/post-install.sh
+++ b/scripts/opensuse-11.2/post-install.sh
@@ -60,8 +60,8 @@ gpgcheck=1
EOF
if [ $ARCH = "i386" ] ; then
- echo " Setting architecture to i686"
- sed -i 's/\(# \)\?arch = .*/arch = i686/' ${prefix}/etc/zypp/zypp.conf
+ echo " Setting architecture to i686"
+ sed -i 's/\(# \)\?arch = .*/arch = i686/' ${prefix}/etc/zypp/zypp.conf
fi
--- a/scripts/opensuse-11.3/post-install.sh
+++ b/scripts/opensuse-11.3/post-install.sh
@@ -39,8 +39,8 @@ gpgcheck=1
EOF
if [ $ARCH = "i386" ] ; then
- echo " Setting architecture to i686"
- sed -i 's/\(# \)\?arch = .*/arch = i686/' ${prefix}/etc/zypp/zypp.conf
+ echo " Setting architecture to i686"
+ sed -i 's/\(# \)\?arch = .*/arch = i686/' ${prefix}/etc/zypp/zypp.conf
fi
--- a/scripts/opensuse-12.3/post-install.sh
+++ b/scripts/opensuse-12.3/post-install.sh
@@ -38,8 +38,8 @@ gpgcheck=1
EOF
if [ $ARCH = "i386" ] ; then
- echo " Setting architecture to i686"
- sed -i 's/\(# \)\?arch = .*/arch = i686/' ${prefix}/etc/zypp/zypp.conf
+ echo " Setting architecture to i686"
+ sed -i 's/\(# \)\?arch = .*/arch = i686/' ${prefix}/etc/zypp/zypp.conf
fi
--- a/scripts/opensuse-13.1/post-install.sh
+++ b/scripts/opensuse-13.1/post-install.sh
@@ -38,8 +38,8 @@ gpgcheck=1
EOF
if [ $ARCH = "i386" ] ; then
- echo " Setting architecture to i686"
- sed -i 's/\(# \)\?arch = .*/arch = i686/' ${prefix}/etc/zypp/zypp.conf
+ echo " Setting architecture to i686"
+ sed -i 's/\(# \)\?arch = .*/arch = i686/' ${prefix}/etc/zypp/zypp.conf
fi
--- a/scripts/centos-7/post-install.sh
+++ b/scripts/centos-7/post-install.sh
@@ -39,8 +39,8 @@ install -m 600 /dev/null $prefix/var/log/tallylog
cd $prefix/var/log
for n in messages secure maillog spooler;do
- [ -f $n ] && continue
- umask 066 && touch $n
+ [ -f $n ] && continue
+ umask 066 && touch $n
done
cd /
touch $prefix/var/log/lastlog
--- a/scripts/opensuse-42.2/post-install.sh
+++ b/scripts/opensuse-42.2/post-install.sh
@@ -38,8 +38,8 @@ gpgcheck=1
EOF
if [ $ARCH = "i386" ] ; then
- echo " Setting architecture to i686"
- sed -i 's/\(# \)\?arch = .*/arch = i686/' ${prefix}/etc/zypp/zypp.conf
+ echo " Setting architecture to i686"
+ sed -i 's/\(# \)\?arch = .*/arch = i686/' ${prefix}/etc/zypp/zypp.conf
fi