summaryrefslogtreecommitdiffstats
path: root/meta/recipes-devtools/opkg-utils
diff options
context:
space:
mode:
authorRoss Burton <ross.burton@intel.com>2018-03-09 20:55:50 +0200
committerRichard Purdie <richard.purdie@linuxfoundation.org>2018-03-11 06:27:00 -0700
commit2a0f0adf0567f46f893685ff1e5e4f24f8e2cbbe (patch)
treef029ccdee0453e9563d83da189abba40565f78ce /meta/recipes-devtools/opkg-utils
parent19e4de6ebae756271a8b47712c4acff366d6e7aa (diff)
downloadpoky-2a0f0adf0567f46f893685ff1e5e4f24f8e2cbbe.tar.gz
opkg-utils: refresh patches
The patch tool will apply patches by default with "fuzz", which is where if the hunk context isn't present but what is there is close enough, it will force the patch in. Whilst this is useful when there's just whitespace changes, when applied to source it is possible for a patch applied with fuzz to produce broken code which still compiles (see #10450). This is obviously bad. We'd like to eventually have do_patch() rejecting any fuzz on these grounds. For that to be realistic the existing patches with fuzz need to be rebased and reviewed. (From OE-Core rev: ca733ba0e28d6d4c199e149ce8ae428397dfa51f) Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Alexander Kanavin <alexander.kanavin@linux.intel.com> Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-devtools/opkg-utils')
-rw-r--r--meta/recipes-devtools/opkg-utils/opkg-utils/0001-Only-use-sort-name-on-versions-of-tar-which-support-.patch13
-rw-r--r--meta/recipes-devtools/opkg-utils/opkg-utils/0002-opkg-build-Use-local-time-for-build_date-since-opkg-.patch13
2 files changed, 10 insertions, 16 deletions
diff --git a/meta/recipes-devtools/opkg-utils/opkg-utils/0001-Only-use-sort-name-on-versions-of-tar-which-support-.patch b/meta/recipes-devtools/opkg-utils/opkg-utils/0001-Only-use-sort-name-on-versions-of-tar-which-support-.patch
index 7de4b7f723..203c585053 100644
--- a/meta/recipes-devtools/opkg-utils/opkg-utils/0001-Only-use-sort-name-on-versions-of-tar-which-support-.patch
+++ b/meta/recipes-devtools/opkg-utils/opkg-utils/0001-Only-use-sort-name-on-versions-of-tar-which-support-.patch
@@ -11,10 +11,10 @@ Signed-off-by: Alejandro del Castillo <alejandro.delcastillo@ni.com>
11 opkg-build | 11 ++++++++--- 11 opkg-build | 11 ++++++++---
12 1 file changed, 8 insertions(+), 3 deletions(-) 12 1 file changed, 8 insertions(+), 3 deletions(-)
13 13
14diff --git a/opkg-build b/opkg-build 14Index: opkg-utils-0.3.6/opkg-build
15index 265906f..094d69f 100755 15===================================================================
16--- a/opkg-build 16--- opkg-utils-0.3.6.orig/opkg-build
17+++ b/opkg-build 17+++ opkg-utils-0.3.6/opkg-build
18@@ -232,6 +232,11 @@ if [ $compressor = "gzip" ] ; then 18@@ -232,6 +232,11 @@ if [ $compressor = "gzip" ] ; then
19 compressorargs=$zipargs 19 compressorargs=$zipargs
20 fi 20 fi
@@ -40,13 +40,10 @@ index 265906f..094d69f 100755
40 echo "2.0" > $tmp_dir/debian-binary 40 echo "2.0" > $tmp_dir/debian-binary
41@@ -296,7 +301,7 @@ rm -f $pkg_file 41@@ -296,7 +301,7 @@ rm -f $pkg_file
42 if [ "$outer" = "ar" ] ; then 42 if [ "$outer" = "ar" ] ; then
43 ( cd $tmp_dir && ar -crfD $pkg_file ./debian-binary ./control.tar.gz ./data.tar.$cext ) 43 ( cd $tmp_dir && ar -crf $pkg_file ./debian-binary ./control.tar.gz ./data.tar.$cext )
44 else 44 else
45- ( cd $tmp_dir && tar -c --sort=name --mtime=$build_date $tarformat ./debian-binary ./control.tar.gz ./data.tar.$cext | gzip $zipargs > $pkg_file ) 45- ( cd $tmp_dir && tar -c --sort=name --mtime=$build_date $tarformat ./debian-binary ./control.tar.gz ./data.tar.$cext | gzip $zipargs > $pkg_file )
46+ ( cd $tmp_dir && tar -c $tsortargs --mtime=$build_date $tarformat ./debian-binary ./control.tar.gz ./data.tar.$cext | gzip $zipargs > $pkg_file ) 46+ ( cd $tmp_dir && tar -c $tsortargs --mtime=$build_date $tarformat ./debian-binary ./control.tar.gz ./data.tar.$cext | gzip $zipargs > $pkg_file )
47 fi 47 fi
48 48
49 rm $tmp_dir/debian-binary $tmp_dir/data.tar.$cext $tmp_dir/control.tar.gz 49 rm $tmp_dir/debian-binary $tmp_dir/data.tar.$cext $tmp_dir/control.tar.gz
50--
512.16.1
52
diff --git a/meta/recipes-devtools/opkg-utils/opkg-utils/0002-opkg-build-Use-local-time-for-build_date-since-opkg-.patch b/meta/recipes-devtools/opkg-utils/opkg-utils/0002-opkg-build-Use-local-time-for-build_date-since-opkg-.patch
index b42d7878c9..0a7403d674 100644
--- a/meta/recipes-devtools/opkg-utils/opkg-utils/0002-opkg-build-Use-local-time-for-build_date-since-opkg-.patch
+++ b/meta/recipes-devtools/opkg-utils/opkg-utils/0002-opkg-build-Use-local-time-for-build_date-since-opkg-.patch
@@ -12,10 +12,10 @@ Signed-off-by: Alejandro del Castillo <alejandro.delcastillo@ni.com>
12 opkg-build | 8 ++++---- 12 opkg-build | 8 ++++----
13 1 file changed, 4 insertions(+), 4 deletions(-) 13 1 file changed, 4 insertions(+), 4 deletions(-)
14 14
15diff --git a/opkg-build b/opkg-build 15Index: opkg-utils-0.3.6/opkg-build
16index 094d69f..0050c2b 100755 16===================================================================
17--- a/opkg-build 17--- opkg-utils-0.3.6.orig/opkg-build
18+++ b/opkg-build 18+++ opkg-utils-0.3.6/opkg-build
19@@ -282,11 +282,11 @@ fi 19@@ -282,11 +282,11 @@ fi
20 tmp_dir=$dest_dir/IPKG_BUILD.$$ 20 tmp_dir=$dest_dir/IPKG_BUILD.$$
21 mkdir $tmp_dir 21 mkdir $tmp_dir
@@ -33,13 +33,10 @@ index 094d69f..0050c2b 100755
33 echo "2.0" > $tmp_dir/debian-binary 33 echo "2.0" > $tmp_dir/debian-binary
34@@ -301,7 +301,7 @@ rm -f $pkg_file 34@@ -301,7 +301,7 @@ rm -f $pkg_file
35 if [ "$outer" = "ar" ] ; then 35 if [ "$outer" = "ar" ] ; then
36 ( cd $tmp_dir && ar -crfD $pkg_file ./debian-binary ./control.tar.gz ./data.tar.$cext ) 36 ( cd $tmp_dir && ar -crf $pkg_file ./debian-binary ./control.tar.gz ./data.tar.$cext )
37 else 37 else
38- ( cd $tmp_dir && tar -c $tsortargs --mtime=$build_date $tarformat ./debian-binary ./control.tar.gz ./data.tar.$cext | gzip $zipargs > $pkg_file ) 38- ( cd $tmp_dir && tar -c $tsortargs --mtime=$build_date $tarformat ./debian-binary ./control.tar.gz ./data.tar.$cext | gzip $zipargs > $pkg_file )
39+ ( cd $tmp_dir && tar -c $tsortargs --mtime="$build_date" $tarformat ./debian-binary ./control.tar.gz ./data.tar.$cext | gzip $zipargs > $pkg_file ) 39+ ( cd $tmp_dir && tar -c $tsortargs --mtime="$build_date" $tarformat ./debian-binary ./control.tar.gz ./data.tar.$cext | gzip $zipargs > $pkg_file )
40 fi 40 fi
41 41
42 rm $tmp_dir/debian-binary $tmp_dir/data.tar.$cext $tmp_dir/control.tar.gz 42 rm $tmp_dir/debian-binary $tmp_dir/data.tar.$cext $tmp_dir/control.tar.gz
43--
442.16.1
45