On Tue, 2021-02-09 at 07:16 -0800, Matt Madison wrote: > > > On Tue, Feb 9, 2021 at 6:34 AM Richard Purdie > <[email protected]> wrote: > > 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 <[email protected]> > > --- > > meta/recipes-devtools/opkg/opkg/sourcedateepoch.patch | 5 ++--- > > 1 file changed, 2 insertions(+), 3 deletions(-) > > > > diff --git a/meta/recipes-devtools/opkg/opkg/sourcedateepoch.patch > > b/meta/recipes-devtools/opkg/opkg/sourcedateepoch.patch > > index 285d258c635..6d0b1486ad3 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 ! -z "$SOURCE_DATE_EPOCH" ; then > > > > This doesn't look like valid shell syntax - there should be a 'test' > command before the '!', right? > Or change the whole thing to use AS_IF.
Well spotted. I somehow grabbed a half complete version, trying to juggle too many things at once I think. I've fixed it on the branch, third time lucky :/. Cheers, Richard
-=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#147862): https://lists.openembedded.org/g/openembedded-core/message/147862 Mute This Topic: https://lists.openembedded.org/mt/80505499/21656 Group Owner: [email protected] Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub [[email protected]] -=-=-=-=-=-=-=-=-=-=-=-
