commit: 4549460b6e37d87e025494ed15cc6587443d55e1
parent 957b37d462947edfc10ebddf9283aaae8f4c9cb3
Author: Haelwenn (lanodan) Monnier <contact@hacktivis.me>
Date: Fri, 31 Oct 2025 04:57:52 +0100
patches/sys-apps/kbd: end-of-options fix
Diffstat:
1 file changed, 41 insertions(+), 0 deletions(-)
diff --git a/patches/sys-apps/kbd/0001-data-Makefile.am-put-between-end-of-option-and-mode.patch b/patches/sys-apps/kbd/0001-data-Makefile.am-put-between-end-of-option-and-mode.patch
@@ -0,0 +1,41 @@
+From aef4fb57b98c0b5455b4d88526af58e2dd5c7ea9 Mon Sep 17 00:00:00 2001
+From: "Haelwenn (lanodan) Monnier" <contact@hacktivis.me>
+Date: Fri, 31 Oct 2025 04:44:33 +0100
+Subject: [PATCH] data/Makefile.am: put `--` between end of option and mode
+
+POSIX comforming getopt(3) will stop parsing options at the mode argument
+(provided it doesn't starts with a dash).
+So prior to this change `--` would be taken as a file argument
+because getopt(3) already stopped.
+---
+ data/Makefile.am | 6 +++---
+ 1 file changed, 3 insertions(+), 3 deletions(-)
+
+diff --git a/data/Makefile.am b/data/Makefile.am
+index 4d2ae3d..8cd3610 100644
+--- a/data/Makefile.am
++++ b/data/Makefile.am
+@@ -22,15 +22,15 @@ V_PACK_1 =
+
+ # compress data files - do not touch the distribution but copy first
+ $(SRC_KEYMAPDIR): $(KEYMAPDIR)
+- $(V_PACK)cp -r -- "$<" "$@" && chmod -R u+w -- "$@" && \
++ $(V_PACK)cp -r -- "$<" "$@" && chmod -R -- u+w "$@" && \
+ $(srcdir)/compress.sh "$@"/*/*.map "$@"/*/*/*.map
+
+ $(SRC_FONTDIR): $(FONTDIR)
+- $(V_PACK)cp -r -- "$<" "$@" && chmod -R u+w -- "$@" && \
++ $(V_PACK)cp -r -- "$<" "$@" && chmod -R -- u+w "$@" && \
+ $(srcdir)/compress.sh "$@"/*
+
+ $(SRC_PARTIALDIR): $(PARTIALDIR)
+- $(V_PACK)cp -r -- "$<" "$@" && chmod -R u+w -- "$@" && \
++ $(V_PACK)cp -r -- "$<" "$@" && chmod -R -- u+w "$@" && \
+ $(srcdir)/compress.sh "$@"/*
+
+ # (not yet screenmaps - some other time)
+
+base-commit: e4367620da3bd97111998de1aeec6ad68dbb477c
+--
+2.51.0
+