Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package numlockx for openSUSE:Factory 
checked in at 2026-08-19 17:55:05
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/numlockx (Old)
 and      /work/SRC/openSUSE:Factory/.numlockx.new.1258 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "numlockx"

Wed Aug 19 17:55:05 2026 rev:21 rq:1371676 version:1.2

Changes:
--------
--- /work/SRC/openSUSE:Factory/numlockx/numlockx.changes        2017-12-08 
12:54:46.923332080 +0100
+++ /work/SRC/openSUSE:Factory/.numlockx.new.1258/numlockx.changes      
2026-08-19 17:55:09.285174208 +0200
@@ -1,0 +2,8 @@
+Tue Aug 11 21:09:01 UTC 2026 - Stanislav Brabec <[email protected]>
+
+- Implement default NumLock state, uses KBD_NUMLOCK variable in
+  /etc/sysconfig/keyboard using /run/numlock-on set by
+  kbdsettings.service from kbd package
+  (numlockx-sysconfig-default.patch).
+
+-------------------------------------------------------------------

New:
----
  numlockx-sysconfig-default.patch

----------(New B)----------
  New:  kbdsettings.service from kbd package
  (numlockx-sysconfig-default.patch).
----------(New E)----------

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ numlockx.spec ++++++
--- /var/tmp/diff_new_pack.oPz1Hh/_old  2026-08-19 17:55:10.257209325 +0200
+++ /var/tmp/diff_new_pack.oPz1Hh/_new  2026-08-19 17:55:10.258209361 +0200
@@ -1,7 +1,7 @@
 #
 # spec file for package numlockx
 #
-# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
+# Copyright (c) 2026 SUSE LLC and contributors
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -12,12 +12,12 @@
 # license that conforms to the Open Source Definition (Version 1.9)
 # published by the Open Source Initiative.
 
-# Please submit bugfixes or comments via http://bugs.opensuse.org/
+# Please submit bugfixes or comments via https://bugs.opensuse.org/
 #
 
 
 Name:           numlockx
-Url:            http://freecode.com/projects/numlockx
+URL:            http://freecode.com/projects/numlockx
 BuildRequires:  automake
 BuildRequires:  pkgconfig(x11)
 BuildRequires:  pkgconfig(xtst)
@@ -29,6 +29,10 @@
 License:        MIT
 Group:          System/YaST
 Source:         http://home.kde.org/~seli/numlockx/numlockx-%{version}.tar.gz
+# PATCH-FEATURE-SUSE numlockx-sysconfig-default.patch [email protected] -- Add 
"default": Set default NumLock state.
+Patch0:         numlockx-sysconfig-default.patch
+# Symbol defining package support for "numlockx default"
+Provides:       numlockx-default
 
 %description
 This little thingy allows you to start X with NumLock turned on ( which
@@ -46,6 +50,7 @@
 
 %prep
 %setup
+%autopatch -p1
 
 %build
 autoreconf -fi

++++++ numlockx-sysconfig-default.patch ++++++
Implement default NumLock state. Defined in KBD_NUMLOCK variable
in /etc/sysconfig/keyboard using /run/numlock-on set by
kbdsettings.service from kbd package.

Index: numlockx-1.2/main.c
===================================================================
--- numlockx-1.2.orig/main.c
+++ numlockx-1.2/main.c
@@ -36,6 +36,7 @@ DEALINGS IN THE SOFTWARE.
 #include <string.h>
 #include <stdlib.h>
 #include <stdio.h>
+#include <unistd.h>
 
 #include <X11/Xlib.h>
 
@@ -55,9 +56,12 @@ void usage( const char* argv0 )
         "(C) 2000-2001 Lubos Lunak <[email protected]>\n"
         "(C) 2001      Oswald Buddenhagen <[email protected]>\n\n"
         "Usage : %s [on|off]\n"
-        "on     - turns NumLock on in X ( default )\n"
-        "off    - turns NumLock off in X\n"
-        "toggle - toggles the NumLock on and off in X\n"
+        "on      - turns NumLock on in X ( default )\n"
+        "off     - turns NumLock off in X\n"
+        "toggle  - toggles the NumLock on and off in X\n"
+        "default - sets the default NumLock state from KBD_NUMLOCK in\n"
+        "          /etc/sysconfig/keyboard using /run/numlock-on set by\n"
+        "          kbdsettings.service on boot\n"
         "\n"
         , argv0 );
     }
@@ -235,6 +239,14 @@ void numlock_toggle()
 #endif
     }
 
+void numlock_default()
+    {
+    if( access("/run/numlock-on", F_OK) == 0)
+        numlock_set_on();
+    else
+        numlock_set_off();
+    }
+
 int main( int argc, char* argv[] )
     {
     if( argc > 2 )
@@ -256,6 +268,8 @@ int main( int argc, char* argv[] )
         numlock_set_off();
     else if( strcmp( argv[ 1 ], "toggle" ) == 0 )
         numlock_toggle();
+    else if( strcmp( argv[ 1 ], "default" ) == 0 )
+        numlock_default();
     else
         {
         usage( argv[ 0 ] );

Reply via email to