From 97abbbb98730f7ad6b4ede1193f487553552b085 Mon Sep 17 00:00:00 2001 From: Daniel Kolesa Date: Tue, 7 Mar 2023 05:39:20 +0100 Subject: [PATCH] build: fix pretty() sed invocation portability in .ver script The `\0` being used to refer to the whole match is a GNU extension. On other implementations of sed, this will simply replace the each matched line with ` 0;`, resulting in symbols being missing in the NetworkManager executable, which breaks the wifi plugin and others. Use `&` instead, which behaves as expected in all implementations. https://gitlab.freedesktop.org/NetworkManager/NetworkManager/-/merge_requests/1562 --- tools/create-exports-NetworkManager.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/create-exports-NetworkManager.sh b/tools/create-exports-NetworkManager.sh index 21ba369a41..ef4b381a60 100755 --- a/tools/create-exports-NetworkManager.sh +++ b/tools/create-exports-NetworkManager.sh @@ -71,7 +71,7 @@ get_symbols_missing() { } pretty() { - sed 's/.*/\t\0;/' + sed 's/.*/\t&;/' } do_build() {