void-packages/srcpkgs/trojita/patches/QPainterPath.patch
Đoàn Trần Công Danh 4f75cf25fd srcpkgs/t*: 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

20 lines
581 B
Diff

--- a/src/Gui/Spinner.cpp 2016-06-15 09:17:23.000000000 +0200
+++ b/src/Gui/Spinner.cpp 2020-09-02 13:51:52.962353077 +0200
@@ -26,6 +26,7 @@
#include <QFontMetricsF>
#include <QPainter>
+#include <QPainterPath>
#include <QTimer>
#include <QTimerEvent>
#include <qmath.h>
--- a/src/Gui/Window.cpp 2016-06-15 09:17:23.000000000 +0200
+++ b/src/Gui/Window.cpp 2020-09-02 13:52:19.050354423 +0200
@@ -32,6 +32,7 @@
#include <QKeyEvent>
#include <QMenuBar>
#include <QMessageBox>
+#include <QPainterPath>
#include <QProgressBar>
#include <QScrollBar>
#include <QSplitter>