Skip to content

Commit 9aa374d

Browse files
committed
meson: Make sed optional
sed is used only if dtrace or selinux are enabled. Those options are only used on Unix platforms, which should have sed. But we don't want to make sed a hard requirement on Windows, which was the case in meson until now. This just changes sed to be not-required by meson. If you happen to use a system with, say, dtrace but without sed, you might get a slightly complicated error from meson during the build, but that seems better than making the requiredness a complicated conditional that will need to be maintained. Discussion: https://www.postgresql.org/message-id/flat/ZQzp_VMJcerM1Cs_%40paquier.xyz
1 parent c161ab7 commit 9aa374d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

meson.build

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -331,7 +331,7 @@ perl = find_program(get_option('PERL'), required: true, native: true)
331331
python = find_program(get_option('PYTHON'), required: true, native: true)
332332
flex = find_program(get_option('FLEX'), native: true, version: '>= 2.5.35')
333333
bison = find_program(get_option('BISON'), native: true, version: '>= 2.3')
334-
sed = find_program(get_option('SED'), 'sed', native: true)
334+
sed = find_program(get_option('SED'), 'sed', native: true, required: false)
335335
prove = find_program(get_option('PROVE'), native: true, required: false)
336336
tar = find_program(get_option('TAR'), native: true)
337337
gzip = find_program(get_option('GZIP'), native: true)

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy