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

30 lines
943 B
Diff

--- a/c++/patchcanvas/canvasbezierline.cpp 2019-11-17 21:34:05.000000000 +0100
+++ b/c++/patchcanvas/canvasbezierline.cpp 2020-09-02 13:13:34.042234477 +0200
@@ -18,6 +18,7 @@
#include "canvasbezierline.h"
#include <QtGui/QPainter>
+#include <QtGui/QPainterPath>
#include "canvasport.h"
#include "canvasportglow.h"
--- a/c++/patchcanvas/canvasbezierlinemov.cpp 2019-11-17 21:34:05.000000000 +0100
+++ b/c++/patchcanvas/canvasbezierlinemov.cpp 2020-09-02 13:13:27.093234119 +0200
@@ -18,6 +18,7 @@
#include "canvasbezierlinemov.h"
#include <QtGui/QPainter>
+#include <QtGui/QPainterPath>
#include "canvasport.h"
--- a/c++/widgets/pixmapdial.cpp 2019-11-17 21:34:05.000000000 +0100
+++ b/c++/widgets/pixmapdial.cpp 2020-09-02 13:13:16.853233591 +0200
@@ -21,6 +21,7 @@
#include <QtCore/QTimer>
#include <QtGui/QPainter>
+#include <QtGui/QPainterPath>
#include <QtGui/QPaintEvent>
PixmapDial::PixmapDial(QWidget* parent)