void-packages/srcpkgs/avidemux/patches/use-realpath.patch
Đoàn Trần Công Danh ae69000001 srcpkgs/a*: convert patches to -Np1
* arduino and antiword is kept at -Np0

```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

11 lines
453 B
Diff

--- a/avidemux_core/ADM_core/src/ADM_folder_linux.cpp 2016-11-19 08:58:39.000000000 +0100
+++ b/avidemux_core/ADM_core/src/ADM_folder_linux.cpp 2016-11-21 07:05:07.700699647 +0100
@@ -39,7 +39,7 @@
static std::string canonize(const std::string &in)
{
std::string out;
- char *simple2=canonicalize_file_name(in.c_str());
+ char *simple2=realpath(in.c_str(), NULL);
if(simple2)
{
out=std::string(simple2)+std::string("/");