Skip to contentSkip to conversation

archiver.bbclass: Fix patch error for recipes that inherit dos2unix.

PATCH New leimaohui 1 participant 1 message Jul 21, 2021

lore
Share & tools
lore

leimaohui

author
#0 lore raw

PATCH 1/1 archiver.bbclass: Fix patch error for recipes that inherit dos2unix.

do_unpack_and_patch error happens for these recipes inherit dos2unix.

---
 meta/classes/archiver.bbclass | 3 +++
 1 file changed, 3 insertions(+)
meta/classes/archiver.bbclass +3 -0
index a3962306b1..900268971c 100644
@@ -483,6 +483,9 @@ python do_unpack_and_patch() {
         src_orig = '%s.orig' % src
         oe.path.copytree(src, src_orig)
 
+    if bb.data.inherits_class('dos2unix', d):
+        bb.build.exec_func('do_convert_crlf_to_lf', d)
+
     # Make sure gcc and kernel sources are patched only once
     if not (d.getVar('SRC_URI') == "" or is_work_shared(d)):
         bb.build.exec_func('do_patch', d)
Signature · 1 line
2.25.1