[pacman-dev] meson: fix inodecmd for darwin/bsd

Message ID 20191027061128.1820821-1-eschwartz@archlinux.org
State Accepted, archived
Headers show
Series [pacman-dev] meson: fix inodecmd for darwin/bsd | expand

Commit Message

Eli Schwartz Oct. 27, 2019, 6:11 a.m. UTC
The BSD stat command uses %N, not %n, and was incorrectly ported to
meson.

Signed-off-by: Eli Schwartz <eschwartz@archlinux.org>
---
 meson.build | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

Patch

diff --git a/meson.build b/meson.build
index c5704efe..1e2a78c3 100644
--- a/meson.build
+++ b/meson.build
@@ -236,13 +236,13 @@  endif
 
 os = host_machine.system()
 if os.startswith('darwin')
-  inodecmd = '/usr/bin/stat -f \'%i %n\''
+  inodecmd = '/usr/bin/stat -f \'%i %N\''
   default_sedinplaceflags = ' -i \'\''
   strip_binaries = ''
   strip_shared = '-s'
   strip_static = '-s'
 elif os.contains('bsd') or os == 'dragonfly'
-  inodecmd = 'stat -f \'%i %n\''
+  inodecmd = 'stat -f \'%i %N\''
   default_sedinplaceflags = ' -i \'\''
 endif