void-packages/srcpkgs/k3b/patches/fix-musl.patch
Đoàn Trần Công Danh dd9d4a1979 srcpkgs/k*: convert patches to -Np1
```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

29 lines
769 B
Diff

--- a/src/k3bsystemproblemdialog.cpp 2018-05-31 08:02:32.713467562 +0200
+++ b/src/k3bsystemproblemdialog.cpp 2018-05-31 08:02:42.902478072 +0200
@@ -57,7 +57,7 @@
#include <langinfo.h>
#endif
-#ifndef Q_OS_WIN32
+#ifdef __GLIBC__
#include <fstab.h>
#endif
#include <unistd.h>
@@ -394,7 +394,7 @@
dvd_r_dl = true;
}
-#ifndef Q_OS_WIN32
+#ifdef __GLIBC__
// check automounted devices
QList<K3b::Device::Device*> automountedDevices = checkForAutomounting();
for( QList<K3b::Device::Device *>::const_iterator it = automountedDevices.constBegin();
@@ -681,7 +681,7 @@
}
-#ifndef Q_OS_WIN32
+#ifdef __GLIBC__
QList<K3b::Device::Device*> K3b::SystemProblemDialog::checkForAutomounting()
{
QList<K3b::Device::Device *> l;