diff options
author | Richard Purdie <richard.purdie@linuxfoundation.org> | 2021-02-09 13:15:24 +0000 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2021-02-10 23:48:51 +0000 |
commit | 63cbf187fe189c99645fe3afee8a6361a9a32cdc (patch) | |
tree | ba8e16cf10f2f5c3851f48409c671885923d9687 | |
parent | c7d7e5f8177cdebd580ca7ff8f4412596567aff1 (diff) | |
download | openembedded-core-63cbf187fe189c99645fe3afee8a6361a9a32cdc.tar.gz |
opkg: Fix patch glitches
The original patch contained some text which shouldn't have been there
and used brackets in configure which isn't a great idea. Tweak the patch
to resolve this.
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r-- | meta/recipes-devtools/opkg/opkg/sourcedateepoch.patch | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/meta/recipes-devtools/opkg/opkg/sourcedateepoch.patch b/meta/recipes-devtools/opkg/opkg/sourcedateepoch.patch index 285d258c63..4578fa33be 100644 --- a/meta/recipes-devtools/opkg/opkg/sourcedateepoch.patch +++ b/meta/recipes-devtools/opkg/opkg/sourcedateepoch.patch @@ -9,13 +9,12 @@ Index: opkg-0.4.4/configure.ac =================================================================== --- opkg-0.4.4.orig/configure.ac +++ opkg-0.4.4/configure.ac -@@ -281,7 +281,12 @@ AC_FUNC_UTIME_NULL +@@ -281,7 +281,11 @@ AC_FUNC_UTIME_NULL AC_FUNC_VPRINTF AC_CHECK_FUNCS([memmove memset mkdir regcomp strchr strcspn strdup strerror strndup strrchr strstr strtol strtoul sysinfo utime]) -CLEAN_DATE=`date +"%B %Y" | tr -d '\n'` -+1607446883 -+if [ ! -z "$SOURCE_DATE_EPOCH" ]; then ++if ! test -z "$SOURCE_DATE_EPOCH" ; then + CLEAN_DATE=`LC_ALL=C date -d @$SOURCE_DATE_EPOCH +"%B %Y" | tr -d '\n'` +else + CLEAN_DATE=`date +"%B %Y" | tr -d '\n'` |