diff options
Diffstat (limited to 'meta-oe/recipes-multimedia/mplayer/mpv/0001-file2string-Avoid-emitting-absolute-filepaths-into-g.patch')
-rw-r--r-- | meta-oe/recipes-multimedia/mplayer/mpv/0001-file2string-Avoid-emitting-absolute-filepaths-into-g.patch | 33 |
1 files changed, 0 insertions, 33 deletions
diff --git a/meta-oe/recipes-multimedia/mplayer/mpv/0001-file2string-Avoid-emitting-absolute-filepaths-into-g.patch b/meta-oe/recipes-multimedia/mplayer/mpv/0001-file2string-Avoid-emitting-absolute-filepaths-into-g.patch deleted file mode 100644 index b96ec5d4c4..0000000000 --- a/meta-oe/recipes-multimedia/mplayer/mpv/0001-file2string-Avoid-emitting-absolute-filepaths-into-g.patch +++ /dev/null | |||
@@ -1,33 +0,0 @@ | |||
1 | From 9878681df9919d28da3e4c6cc706e264abd9df92 Mon Sep 17 00:00:00 2001 | ||
2 | From: Khem Raj <raj.khem@gmail.com> | ||
3 | Date: Thu, 29 Aug 2024 17:54:15 -0700 | ||
4 | Subject: [PATCH] file2string: Avoid emitting absolute filepaths into generated | ||
5 | sources | ||
6 | |||
7 | These sources are bundled into src packages to be distributed and leaking | ||
8 | buildpaths results in violating reproducibility norms. | ||
9 | |||
10 | Upstream-Status: Submitted [https://github.com/mpv-player/mpv/pull/14763] | ||
11 | |||
12 | Signed-off-by: Khem Raj <raj.khem@gmail.com> | ||
13 | --- | ||
14 | TOOLS/file2string.py | 4 ++-- | ||
15 | 1 file changed, 2 insertions(+), 2 deletions(-) | ||
16 | |||
17 | diff --git a/TOOLS/file2string.py b/TOOLS/file2string.py | ||
18 | index 5b1c4a95d1..39c1122a35 100755 | ||
19 | --- a/TOOLS/file2string.py | ||
20 | +++ b/TOOLS/file2string.py | ||
21 | @@ -22,10 +22,10 @@ | ||
22 | # License along with mpv. If not, see <http://www.gnu.org/licenses/>. | ||
23 | # | ||
24 | |||
25 | -import sys | ||
26 | +import os, sys | ||
27 | |||
28 | def file2string(infilename, infile, outfile): | ||
29 | - outfile.write("// Generated from %s\n\n" % infilename) | ||
30 | + outfile.write("// Generated from %s\n\n" % os.path.basename(infilename)) | ||
31 | |||
32 | conv = ["\\%03o" % c for c in range(256)] | ||
33 | safe_chars = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz" \ | ||