[Buildroot] [git commit] package/lsof: fix build without wchar or locale

Thomas Petazzoni thomas.petazzoni at bootlin.com
Fri Jan 5 12:43:19 UTC 2024


commit: https://git.buildroot.net/buildroot/commit/?id=5b12863107cb73d8263dd24eab1fb15bd9cb5e0f
branch: https://git.buildroot.net/buildroot/commit/?id=refs/heads/master

Fix the following build failure without wchar or locale raised since
bump to version 4.99.3 in commit
1edafc4b483e82b045d3a0cc9cbbd000d6183ac7 and
https://github.com/lsof-org/lsof/commit/898fe0eceec98ca71198de7d9c18e7ce6144ee13:

In file included from common.h:42,
                 from misc.c:31:
../machine.h:415:26: fatal error: wctype.h: No such file or directory
  415 | #    define WIDECHARINCL <wctype.h>
      |                          ^

Fixes:
 - http://autobuild.buildroot.org/results/aa98b10e8eff5cc4fd03b4a64224cdfb6a0324a5

Signed-off-by: Fabrice Fontaine <fontaine.fabrice at gmail.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni at bootlin.com>
---
 package/lsof/lsof.mk | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/package/lsof/lsof.mk b/package/lsof/lsof.mk
index bb6eacb696..1831080b17 100644
--- a/package/lsof/lsof.mk
+++ b/package/lsof/lsof.mk
@@ -16,14 +16,14 @@ endif
 
 ifeq ($(BR2_USE_WCHAR),)
 define LSOF_CONFIGURE_WCHAR_FIXUPS
-	$(SED) 's,^#define[[:space:]]*HASWIDECHAR.*,#undef HASWIDECHAR,' \
+	$(SED) 's,^#[[:space:]]*define HASWIDECHAR.*,#undef HASWIDECHAR,' \
 		$(@D)/machine.h
 endef
 endif
 
 ifeq ($(BR2_ENABLE_LOCALE),)
 define LSOF_CONFIGURE_LOCALE_FIXUPS
-	$(SED) 's,^#define[[:space:]]*HASSETLOCALE.*,#undef HASSETLOCALE,' \
+	$(SED) 's,^#[[:space:]]*define HASSETLOCALE.*,#undef HASSETLOCALE,' \
 		$(@D)/machine.h
 endef
 endif



More information about the buildroot mailing list