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.

(From OE-Core rev: 7ab4b11228d66811ff767e31fd3f024c790d4b68)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit 63cbf187fe189c99645fe3afee8a6361a9a32cdc)
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
Richard Purdie 2021-02-09 13:15:24 +00:00
parent 316333ec91
commit ccfa84bf18

View File

@ -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'`