Skip to contentSkip to conversation

tisdk-bundle: Fix generate_sw_manifest_table

PATCH In review Aniket Limaye 2 participants 3 messages Oct 4, 2023

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 tisdk-bundle: Fix generate_sw_manifest_table

The generated manifest file is expected to strictly have 7 columns, delimited by '|' while the License section also sometimes has '|' character. Replace this one by 'or' to fix manifest file

---
 meta-arago-distro/classes/tisdk-bundle.bbclass | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
meta-arago-distro/classes/tisdk-bundle.bbclass +1 -1
index 1ebdb6fb..d2d31381 100644
@@ -553,7 +553,7 @@ EOF
         package="`cat $i | grep Package: | awk {'print $2'}`"
         version="`cat $i | grep Version: | awk {'print $2'} | cut -f1-2 -d-`"
         long_version="`cat $i | grep Version: | awk {'print $2'}`"
-        license="`cat $i | grep License: | cut -d: -f2 `"
+        license="`cat $i | grep License: | cut -d: -f2 | sed 's/|/or/g' `"
         architecture="`cat $i | grep Architecture: | awk {'print $2'}`"
         sources="`cat $i | grep Source: | cut -d ':' -f2-`"
         location="$package""_""$long_version""_""$architecture"".ipk"
Signature · 1 line
2.34.1
#1 lore raw
Quoted 14 lines · Aniket Limaye

The generated manifest file is expected to strictly have 7 columns, delimited by '|' while the License section also sometimes has '|' character. Replace this one by 'or' to fix manifest file

---
  meta-arago-distro/classes/tisdk-bundle.bbclass | 2 +-
  1 file changed, 1 insertion(+), 1 deletion(-)
meta-arago-distro/classes/tisdk-bundle.bbclass +0 -0
index 1ebdb6fb..d2d31381 100644

meta-arago-distro/classes/tisdk-bundle.bbclass EOF · line 559

Quoted 8 lines
meta-arago-distro/classes/tisdk-bundle.bbclass +1 -1
@@ -553,7 +553,7 @@ EOF
          package="`cat $i | grep Package: | awk {'print $2'}`"
          version="`cat $i | grep Version: | awk {'print $2'} | cut -f1-2 -d-`"
          long_version="`cat $i | grep Version: | awk {'print $2'}`"
-        license="`cat $i | grep License: | cut -d: -f2 `"
+        license="`cat $i | grep License: | cut -d: -f2 | sed 's/|/or/g' `"
          architecture="`cat $i | grep Architecture: | awk {'print $2'}`"
          sources="`cat $i | grep Source: | cut -d ':' -f2-`"
          location="$package""_""$long_version""_""$architecture"".ipk"

I'm in the middle of modifying all of this code to fix a build issue. This section of code is moving to a new file. I will resubmit a new version of this patch with the change made in the new location.

Signature · 3 lines
Ryan Eatmon                [email protected]
-----------------------------------------
Texas Instruments, Inc.  -  LCPD  -  MGTS
#2 lore raw

Hi Ryan,

Yeah sure, thanks!
Sorry, I saw your patch only after I sent mine.

Regards,
Aniket

-----Original Message-----
From: Eatmon, Ryan <[email protected]>
Sent: Wednesday, October 4, 2023 7:04 PM
To: Limaye, Aniket <[email protected]>; [email protected]
Subject: Re: [meta-arago][master/kirkstone][PATCH] tisdk-bundle: Fix generate_sw_manifest_table

Quoted 15 lines · Aniket Limaye

The generated manifest file is expected to strictly have 7 columns, delimited by '|' while the License section also sometimes has '|' character. Replace this one by 'or' to fix manifest file

---
  meta-arago-distro/classes/tisdk-bundle.bbclass | 2 +-
  1 file changed, 1 insertion(+), 1 deletion(-)
meta-arago-distro/classes/tisdk-bundle.bbclass +0 -0
index 1ebdb6fb..d2d31381 100644

meta-arago-distro/classes/tisdk-bundle.bbclass EOF · line 559

Quoted 8 lines
meta-arago-distro/classes/tisdk-bundle.bbclass +1 -1
@@ -553,7 +553,7 @@ EOF
          package="`cat $i | grep Package: | awk {'print $2'}`"
          version="`cat $i | grep Version: | awk {'print $2'} | cut -f1-2 -d-`"
          long_version="`cat $i | grep Version: | awk {'print $2'}`"
-        license="`cat $i | grep License: | cut -d: -f2 `"
+        license="`cat $i | grep License: | cut -d: -f2 | sed 's/|/or/g' `"
          architecture="`cat $i | grep Architecture: | awk {'print $2'}`"
          sources="`cat $i | grep Source: | cut -d ':' -f2-`"
          location="$package""_""$long_version""_""$architecture"".ipk"

I'm in the middle of modifying all of this code to fix a build issue.
This section of code is moving to a new file. I will resubmit a new version of this patch with the change made in the new location.

Signature · 3 lines
Ryan Eatmon                [email protected]
-----------------------------------------
Texas Instruments, Inc.  -  LCPD  -  MGTS