void-packages/srcpkgs/ufraw/patches/iostream.patch
Đoàn Trần Công Danh 5769f150de srcpkgs/u*: 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

13 lines
312 B
Diff

ufraw_exiv2.cc:343:10: note: 'std::cerr' is defined in header '<iostream>'
ufraw_exiv2.cc:365:14: error: 'cerr' is not a member of 'std'
--- a/ufraw_exiv2.cc
+++ b/ufraw_exiv2.cc
@@ -17,6 +17,7 @@
#ifdef HAVE_EXIV2
#include <exiv2/exiv2.hpp>
#include <sstream>
+#include <iostream>
#include <cassert>
/*