Skip to contentSkip to conversation

clang: Fix sigsegv of llvm-config on the target

PATCH In review Ricardo Ribalda Delgado 2 participants 3 messages May 30, 2018

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 clang: Fix sigsegv of llvm-config on the target

llvm-config is, by default, broken by the SSTATE_SCAN_CMD. This patch removes llvm-config from SSTATE_SCAN_FILES.

---
 recipes-devtools/clang/clang_git.bb | 3 +++
 1 file changed, 3 insertions(+)
recipes-devtools/clang/clang_git.bb +3 -0
index 5730b9b..3e2d2c7 100644
@@ -158,3 +158,6 @@ FILES_${PN}-dev += "\
 
 INSANE_SKIP_${PN} += "already-stripped"
 INSANE_SKIP_${PN}-dev += "dev-elf"
+
+#Avoid SSTATE_SCAN_COMMAND running sed over llvm-config.
+SSTATE_SCAN_FILES_remove = "*-config"
Signature · 1 line
2.17.0
#1 lore raw

Sorry for the spam. The SOB is missing this this patch. Shall I resend?

recipes-devtools/clang/

Quoted 7 lines · Ricardo Ribalda Delgado

llvm-config is, by default, broken by the SSTATE_SCAN_CMD. This patch removes llvm-config from SSTATE_SCAN_FILES.

---
  recipes-devtools/clang/clang_git.bb | 3 +++
  1 file changed, 3 insertions(+)
recipes-devtools/clang/ renamed from recipes-devtools/clang/clang_git.bb +0 -0

clang_git.bb

Quoted 12 lines

index 5730b9b..3e2d2c7 100644

recipes-devtools/clang/clang_git.bb +3 -1
@@ -158,3 +158,6 @@ FILES_${PN}-dev += "\
 
  INSANE_SKIP_${PN} += "already-stripped"
  INSANE_SKIP_${PN}-dev += "dev-elf"
+
+#Avoid SSTATE_SCAN_COMMAND running sed over llvm-config.
+SSTATE_SCAN_FILES_remove = "*-config"
--

2.17.0

Signature · 1 line
Ricardo Ribalda
#2 lore raw
Quoted 1 line · Ricardo Ribalda Delgado

Sorry for the spam. The SOB is missing this this patch. Shall I resend?

It would be good if you sent a pull request on GitHub

Quoted 31 lines

Review

Quoted 7 lines · Ricardo Ribalda Delgado

llvm-config is, by default, broken by the SSTATE_SCAN_CMD. This patch removes llvm-config from SSTATE_SCAN_FILES.

---
  recipes-devtools/clang/clang_git.bb | 3 +++
  1 file changed, 3 insertions(+)
(quoted diff) +0 -0

b/recipes-devtools/clang/
clang_git.bb

Quoted 11 lines

index 5730b9b..3e2d2c7 100644

recipes-devtools/clang/clang_git.bb +3 -1
@@ -158,3 +158,6 @@ FILES_${PN}-dev += "\
 
  INSANE_SKIP_${PN} += "already-stripped"
  INSANE_SKIP_${PN}-dev += "dev-elf"
+
+#Avoid SSTATE_SCAN_COMMAND running sed over llvm-config.
+SSTATE_SCAN_FILES_remove = "*-config"
--
Quoted 1 line

2.17.0

--
Ricardo Ribalda