Skip to contentSkip to conversation

sourceipk.bbclass: Remove broken symbolic links

PATCH NAK Franklin S. Cooper Jr 2 participants 2 messages Sep 23, 2013

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 sourceipk.bbclass: Remove broken symbolic links

* Latest kernel sources included symbolic links that were broken and caused the tar command to fail.
* Find and remove broken symlinks to avoid this issue.

---
 meta-arago-distro/classes/sourceipk.bbclass |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)
meta-arago-distro/classes/sourceipk.bbclass +3 -0
index 1ea0577..3b86b99 100644
@@ -166,6 +166,9 @@ sourceipk_do_create_srcipk() {
             cp ${FILE} $tmp_dir/${SRCIPK_INSTALL_DIR}/
         fi
 
+        # Remove any broken symlinks that causes tar to fail when encountered
+        find -L $tmp_dir/${SRCIPK_INSTALL_DIR} -type l  -exec rm {} \;
+
         #Write the data tarball
         tar -C $tmp_dir --owner=0 --group=0 -chzf $srcipk_dir/data.tar.gz .
 
Signature · 1 line
1.7.0.4
#1 lore raw

NAK

Quoted 30 lines · Franklin S. Cooper Jr

* Latest kernel sources included symbolic links that were broken and caused the tar command to fail.
* Find and remove broken symlinks to avoid this issue.

---
 meta-arago-distro/classes/sourceipk.bbclass |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)
meta-arago-distro/classes/sourceipk.bbclass +3 -0
index 1ea0577..3b86b99 100644
@@ -166,6 +166,9 @@ sourceipk_do_create_srcipk() {
             cp ${FILE} $tmp_dir/${SRCIPK_INSTALL_DIR}/
         fi
 
+        # Remove any broken symlinks that causes tar to fail when encountered
+        find -L $tmp_dir/${SRCIPK_INSTALL_DIR} -type l  -exec rm {} \;
+
         #Write the data tarball
         tar -C $tmp_dir --owner=0 --group=0 -chzf $srcipk_dir/data.tar.gz .
 
Signature · 6 lines
1.7.0.4

_______________________________________________
meta-arago mailing list
[email protected]
http://arago-project.org/cgi-bin/mailman/listinfo/meta-arago