void-packages/srcpkgs/imagescan/patches/fix-iostream.patch
Đoàn Trần Công Danh 986c0a7d5e srcpkgs/i*: 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
503 B
Diff

--- a/utsushi/string.hpp 2019-04-02 02:01:37.000000000 +0200
+++ b/utsushi/string.hpp 2021-01-19 00:58:03.102000070 +0100
@@ -23,6 +23,7 @@
#include <iosfwd>
+#include <iostream>
#include <string>
#include <boost/operators.hpp>
--- a/utsushi/toggle.hpp 2019-04-02 02:01:36.000000000 +0200
+++ b/utsushi/toggle.hpp 2021-01-19 01:00:34.884821885 +0100
@@ -22,6 +22,7 @@
#define utsushi_toggle_hpp_
#include <iosfwd>
+#include <iostream>
#include <boost/operators.hpp>
namespace utsushi {