Skip to contentSkip to conversation

meson: Avoid duplicates in generated config-poison.h again

PATCH Applied Markus Armbruster 5 participants 6 messages Feb 6, 2023 – Feb 23, 2023

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 meson: Avoid duplicates in generated config-poison.h again

Commit eed56e9a89f "configure, meson: move config-poison.h to meson" lost a "| sort -u". Restore it. config-poison shrinks from ~4500 to ~700 lines when all targets are enabled.

---
 scripts/make-config-poison.sh | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
scripts/make-config-poison.sh +1 -1
index d222a04304..1892854261 100755
@@ -13,4 +13,4 @@ exec sed -n \
   -e    's///' \
   -e    's/ .*//' \
   -e    's/^/#pragma GCC poison /p' \
-  -e '}' "$@"
+  -e '}' "$@" | sort -u
Signature · 1 line
2.39.0
Reviewed-by on v1 1/1
#1 lore raw
Quoted 6 lines · Markus Armbruster

Commit eed56e9a89f "configure, meson: move config-poison.h to meson" lost a "| sort -u". Restore it. config-poison shrinks from ~4500 to ~700 lines when all targets are enabled.

Quoted 18 lines
---
 scripts/make-config-poison.sh | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
scripts/make-config-poison.sh +1 -2
index d222a04304..1892854261 100755
@@ -13,4 +13,4 @@ exec sed -n \
   -e    's///' \
   -e    's/ .*//' \
   -e    's/^/#pragma GCC poison /p' \
-  -e '}' "$@"
+  -e '}' "$@" | sort -u
--

2.39.0

Signature · 1 line
Marc-André Lureau
Reviewed-by on v1 1/1
#2 lore raw
In reply to Markus Armbruster
Quoted 8 lines · Markus Armbruster

Commit eed56e9a89f "configure, meson: move config-poison.h to meson" lost a "| sort -u". Restore it. config-poison shrinks from ~4500 to ~700 lines when all targets are enabled.

---
  scripts/make-config-poison.sh | 2 +-
  1 file changed, 1 insertion(+), 1 deletion(-)
Reviewed-by Tested-by on v1 1/1
#3 lore raw
In reply to Markus Armbruster
Quoted 5 lines · Markus Armbruster

Commit eed56e9a89f "configure, meson: move config-poison.h to meson" lost a "| sort -u". Restore it. config-poison shrinks from ~4500 to ~700 lines when all targets are enabled.

Signature · 2 lines
Alex Bennée
Virtualisation Tech Lead @ Linaro