49cb564d14
* par 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 ```
22 lines
625 B
Diff
22 lines
625 B
Diff
From bf0601df89f611b33d8dbc27722351bf99e2cc18 Mon Sep 17 00:00:00 2001
|
|
From: =?UTF-8?q?Piotr=20W=C3=B3jcik?= <chocimier@tlen.pl>
|
|
Date: Sat, 18 Jan 2020 12:19:45 +0100
|
|
Subject: [PATCH] relocate
|
|
|
|
|
|
diff --git src/port/path.c src/port/path.c
|
|
index 710988b..20dc57d 100644
|
|
--- a/src/port/path.c
|
|
+++ b/src/port/path.c
|
|
@@ -544,6 +544,8 @@ make_relative_path(char *ret_path, const char *target_path,
|
|
int tail_len;
|
|
int i;
|
|
|
|
+ goto no_match; // we relocate only binaries
|
|
+
|
|
/*
|
|
* Determine the common prefix --- note we require it to end on a
|
|
* directory separator, consider eg '/usr/lib' and '/usr/libexec'.
|
|
--
|
|
2.23.0
|
|
|