diff options
Diffstat (limited to 'meta/recipes-devtools/opkg-utils/opkg-utils/0001-opkg-build-do-not-set-mtime-on-data.tar.X.patch')
-rw-r--r-- | meta/recipes-devtools/opkg-utils/opkg-utils/0001-opkg-build-do-not-set-mtime-on-data.tar.X.patch | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/meta/recipes-devtools/opkg-utils/opkg-utils/0001-opkg-build-do-not-set-mtime-on-data.tar.X.patch b/meta/recipes-devtools/opkg-utils/opkg-utils/0001-opkg-build-do-not-set-mtime-on-data.tar.X.patch new file mode 100644 index 0000000000..6c058c71d7 --- /dev/null +++ b/meta/recipes-devtools/opkg-utils/opkg-utils/0001-opkg-build-do-not-set-mtime-on-data.tar.X.patch | |||
@@ -0,0 +1,33 @@ | |||
1 | From 42afc1f652d28dce3c5b9915d0cd3087a144e445 Mon Sep 17 00:00:00 2001 | ||
2 | From: Alejandro del Castillo <alejandro.delcastillo@ni.com> | ||
3 | Date: Mon, 18 Feb 2019 11:25:43 -0600 | ||
4 | Subject: [PATCH] opkg-build: do not set mtime on data.tar.X | ||
5 | |||
6 | Opkg should make sure the binaries it creates are created in a | ||
7 | repoducibe way, but it shouldn't modify the mtime of the binaries it | ||
8 | consumes. Doing so has side effects, for exmaple, Python pyc files are | ||
9 | invalidated. | ||
10 | |||
11 | Signed-off-by: Alejandro del Castillo <alejandro.delcastillo@ni.com> | ||
12 | |||
13 | Upstream-Status: Submitted | ||
14 | --- | ||
15 | opkg-build | 2 +- | ||
16 | 1 file changed, 1 insertion(+), 1 deletion(-) | ||
17 | |||
18 | diff --git a/opkg-build b/opkg-build | ||
19 | index 13782ee..363cd01 100755 | ||
20 | --- a/opkg-build | ||
21 | +++ b/opkg-build | ||
22 | @@ -301,7 +301,7 @@ build_date="${SOURCE_DATE_EPOCH:-$(date +%s)}" | ||
23 | |||
24 | ( cd $pkg_dir/$CONTROL && find . -type f > $tmp_dir/control_list ) | ||
25 | ( cd $pkg_dir && find . -path ./$CONTROL -prune -o -print > $tmp_dir/file_list ) | ||
26 | -( cd $pkg_dir && tar $ogargs $tsortargs --no-recursion --mtime=@$build_date -c $tarformat -T $tmp_dir/file_list | $compressor $compressorargs > $tmp_dir/data.tar.$cext ) | ||
27 | +( cd $pkg_dir && tar $ogargs $tsortargs --no-recursion -c $tarformat -T $tmp_dir/file_list | $compressor $compressorargs > $tmp_dir/data.tar.$cext ) | ||
28 | ( cd $pkg_dir/$CONTROL && tar $ogargs $tsortargs --no-recursion --mtime=@$build_date -c $tarformat -T $tmp_dir/control_list | gzip $zipargs > $tmp_dir/control.tar.gz ) | ||
29 | rm $tmp_dir/file_list | ||
30 | rm $tmp_dir/control_list | ||
31 | -- | ||
32 | 2.20.1 | ||
33 | |||