Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package patterns-wsl for openSUSE:Factory 
checked in at 2026-11-07 23:32:11
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/patterns-wsl (Old)
 and      /work/SRC/openSUSE:Factory/.patterns-wsl.new.3759290 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "patterns-wsl"

Sat Nov  7 23:32:11 2026 rev:7 rq:1395915 version:20261030

Changes:
--------
--- /work/SRC/openSUSE:Factory/patterns-wsl/patterns-wsl.changes        
2024-04-03 17:19:45.740051208 +0200
+++ /work/SRC/openSUSE:Factory/.patterns-wsl.new.3759290/patterns-wsl.changes   
2026-11-07 23:32:18.807804436 +0100
@@ -1,0 +2,18 @@
+Fri Nov  6 19:32:15 UTC 2026 - Scott Bradnick <[email protected]>
+
+- Adding 'Source100: README.md' as the README is suggested at src.opensuse.org
+  setup, otherwise get the following message:
+  * "Attention, "README.md" is not mentioned in spec files as source or patch."
+
+-------------------------------------------------------------------
+Fri Oct 30 17:07:47 UTC 2026 - Scott Bradnick <[email protected]>
+
+- Adding a systemd-detect-virt check for "wsl" so if the patterns-wsl packages
+  are installed in non-WSL environments they don't do anything.
+
+-------------------------------------------------------------------
+Thu Oct 29 19:24:08 UTC 2026 - Tomáš Chvátal <[email protected]>
+
+- Specify pattern-order() for wsl_base, wsl_systemd and wsl_gui
+
+-------------------------------------------------------------------
@@ -4 +22,2 @@
-- Adjusting %{_tmpfilesdir}/wslg.conf to be provided by a new package
+- Update to version 20240327
+  * Adjusting %{_tmpfilesdir}/wslg.conf to be provided by a new package
@@ -6 +25 @@
-  * WSL uses '/etc/zypp/zypp.conf:solver.onlyRequires = true' by default
+    - WSL uses '/etc/zypp/zypp.conf:solver.onlyRequires = true' by default

New:
----
  README.md
  _scmsync.obsinfo
  build.specials.obscpio

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

Other differences:
------------------
++++++ patterns-wsl.spec ++++++
--- /var/tmp/diff_new_pack.NCDY3v/_old  2026-11-07 23:32:20.281865342 +0100
+++ /var/tmp/diff_new_pack.NCDY3v/_new  2026-11-07 23:32:20.286865548 +0100
@@ -1,7 +1,7 @@
 #
 # spec file for package patterns-wsl
 #
-# Copyright (c) 2024 SUSE LLC
+# Copyright (c) 2026 SUSE LLC
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -17,10 +17,11 @@
 
 
 Name:           patterns-wsl
-Version:        20240327
+Version:        20261030
 Release:        0
 Summary:        Recommended packages for Windows Subsystem for Linux, WSL, WSLg
 License:        MIT
+Source100:      README.md
 Group:          Metapackages
 URL:            https://github.com/sbradnick/patterns
 BuildRequires:  patterns-rpm-macros
@@ -41,7 +42,7 @@
 Group:          Metapackages
 Provides:       pattern() = wsl_base
 Provides:       pattern-icon() = pattern-generic
-#Provides:       pattern-order() = ?
+Provides:       pattern-order() = 1130
 Provides:       pattern-visible()
 Requires:       bash
 Recommends:     fish
@@ -51,8 +52,10 @@
 This package contains the wsl_base pattern: recommended 
configs,tools,libraries for using WSL.
 
 %pre base
-if [[ -f %{_sysconfdir}/wsl.conf && ! -L %{_sysconfdir}/wsl.conf ]];
+if [ $(systemd-detect-virt) == "wsl" ];
 then
+  if [[ -f %{_sysconfdir}/wsl.conf && ! -L %{_sysconfdir}/wsl.conf ]];
+  then
   %{_bindir}/echo "* [wsl_base] Creating backup for 
%{_sysconfdir}/wsl.conf.wsl_base ..."
   cp -v %{_sysconfdir}/wsl.conf %{_sysconfdir}/wsl.conf.wsl_base
   BOOT_COUNT=$(%{_bindir}/grep -c "\[boot\]" %{_sysconfdir}/wsl.conf.wsl_base)
@@ -70,18 +73,26 @@
     %{_bindir}/echo "* [wsl_base] File existed, but no [boot]; adjusting 
%{_sysconfdir}/wsl.conf.wsl_base ..."
     %{_bindir}/echo -e "# added by wsl_base 
pattern\n[boot]\ncommand=/usr/sbin/sysctl -w net.ipv4.ping_group_range=\\\"0 
2147483647\\\"\n# END: wsl_base pattern edit" >> 
%{_sysconfdir}/wsl.conf.wsl_base
   fi
-elif [[ -f %{_sysconfdir}/wsl.conf && -L %{_sysconfdir}/wsl.conf ]];
-then
+  elif [[ -f %{_sysconfdir}/wsl.conf && -L %{_sysconfdir}/wsl.conf ]];
+  then
   %{_bindir}/echo "* [wsl_base] Current %{_sysconfdir}/wsl.conf is a symlink ; 
ensure contents you want are copied to a non-symlink %{_sysconfdir}/wsl.conf 
and reinstall the pattern ..."
-else
+  else
   %{_bindir}/echo "* [wsl_base] No file existed; adding 
%{_sysconfdir}/wsl.conf.wsl_base ..."
   %{_bindir}/echo -e "# added by wsl_base 
pattern\n[boot]\ncommand=/usr/sbin/sysctl -w net.ipv4.ping_group_range=\\\"0 
2147483647\\\"\n# END: wsl_base pattern edit" > %{_sysconfdir}/wsl.conf.wsl_base
+  fi
+else
+  echo -e "\n* This is not WSL, nothing to do.\n\n"
 fi
 
 %post base
-if [[ -e %{_sysconfdir}/wsl.conf.wsl_base ]];
+if [ $(systemd-detect-virt) == "wsl" ];
 then
+  if [[ -e %{_sysconfdir}/wsl.conf.wsl_base ]];
+  then
   ln -sf %{_sysconfdir}/wsl.conf.wsl_base %{_sysconfdir}/wsl.conf
+  fi
+else
+  echo -e "\n* This is not WSL, nothing to do.\n\n"
 fi
 
 %files base
@@ -96,7 +107,7 @@
 Group:          Metapackages
 Provides:       pattern() = wsl_gui
 Provides:       pattern-icon() = pattern-generic
-#Provides:       pattern-order() = ?
+Provides:       pattern-order() = 1320
 Provides:       pattern-visible()
 Requires:       lato-fonts
 Recommends:     adwaita-icon-theme
@@ -109,8 +120,10 @@
 This package contains the wsl_gui pattern: recommended configs,tools,libraries 
for using WSLg.
 
 %pre gui
-if [[ -f %{_sysconfdir}/wsl.conf && ! -L %{_sysconfdir}/wsl.conf ]];
+if [ $(systemd-detect-virt) == "wsl" ];
 then
+  if [[ -f %{_sysconfdir}/wsl.conf && ! -L %{_sysconfdir}/wsl.conf ]];
+  then
   %{_bindir}/echo "* [wsl_gui] Creating backup for 
%{_sysconfdir}/wsl.conf.wsl_gui ..."
   cp -v %{_sysconfdir}/wsl.conf %{_sysconfdir}/wsl.conf.wsl_gui
   BOOT_COUNT=$(%{_bindir}/grep -c "\[boot\]" %{_sysconfdir}/wsl.conf.wsl_gui)
@@ -128,18 +141,26 @@
     %{_bindir}/echo "* [wsl_gui] File existed, but no [boot]; adjusting 
%{_sysconfdir}/wsl.conf.wsl_gui ..."
     %{_bindir}/echo -e "# added by wsl_gui 
pattern\n[boot]\ncommand=/usr/sbin/sysctl -w net.ipv4.ping_group_range=\\\"0 
2147483647\\\"\n# END: wsl_gui pattern edit" >> %{_sysconfdir}/wsl.conf.wsl_gui
   fi
-elif [[ -f %{_sysconfdir}/wsl.conf && -L %{_sysconfdir}/wsl.conf ]];
-then
+  elif [[ -f %{_sysconfdir}/wsl.conf && -L %{_sysconfdir}/wsl.conf ]];
+  then
   %{_bindir}/echo "* [wsl_gui] Current %{_sysconfdir}/wsl.conf is a symlink ; 
ensure contents you want are copied to a non-symlink %{_sysconfdir}/wsl.conf 
and reinstall the pattern ..."
-else
+  else
   %{_bindir}/echo "* [wsl_gui] No file existed; adding 
%{_sysconfdir}/wsl.conf.wsl_gui ..."
   %{_bindir}/echo -e "# added by wsl_gui 
pattern\n[boot]\ncommand=/usr/sbin/sysctl -w net.ipv4.ping_group_range=\\\"0 
2147483647\\\"\n# END: wsl_gui pattern edit" > %{_sysconfdir}/wsl.conf.wsl_gui
+  fi
+else
+  echo -e "\n* This is not WSL, nothing to do.\n\n"
 fi
 
 %post gui
-if [[ -e %{_sysconfdir}/wsl.conf.wsl_gui ]];
+if [ $(systemd-detect-virt) == "wsl" ];
 then
+  if [[ -e %{_sysconfdir}/wsl.conf.wsl_gui ]];
+  then
   ln -sf %{_sysconfdir}/wsl.conf.wsl_gui %{_sysconfdir}/wsl.conf
+  fi
+else
+  echo -e "\n* This is not WSL, nothing to do.\n\n"
 fi
 
 %files gui
@@ -154,7 +175,7 @@
 Group:          Metapackages
 Provides:       pattern() = wsl_systemd
 Provides:       pattern-icon() = pattern-generic
-#Provides:       pattern-order() = ?
+Provides:       pattern-order() = 1140
 Provides:       pattern-visible()
 Requires:       systemd
 Requires:       patterns-wsl-tmpfiles
@@ -163,13 +184,15 @@
 This package contains the wsl_systemd pattern: adjusts or provides 
%{_sysconfdir}/wsl.conf and /sbin/init symlink where required.
 
 %pre systemd -p /bin/bash
-if [[ ! -L /sbin/init ]];
+if [ $(systemd-detect-virt) == "wsl" ];
 then
+  if [[ ! -L /sbin/init ]];
+  then
   %{_bindir}/echo "* [wsl_systemd] Adding /sbin/init -> 
/usr/lib/systemd/systemd symlink."
   %{_bindir}/ln -s %{_systemd_util_dir}/systemd /sbin/init
-fi
-if [[ -f %{_sysconfdir}/wsl.conf && ! -L %{_sysconfdir}/wsl.conf ]];
-then
+  fi
+  if [[ -f %{_sysconfdir}/wsl.conf && ! -L %{_sysconfdir}/wsl.conf ]];
+  then
   %{_bindir}/echo "* [wsl_systemd] Creating backup for 
%{_sysconfdir}/wsl.conf.wsl_systemd ..."
   cp -v %{_sysconfdir}/wsl.conf %{_sysconfdir}/wsl.conf.wsl_systemd
   BOOT_COUNT=$(%{_bindir}/grep -c "\[boot\]" 
%{_sysconfdir}/wsl.conf.wsl_systemd)
@@ -202,18 +225,26 @@
     %{_bindir}/echo "* [wsl_systemd] File existed, but no [boot]; adjusting 
%{_sysconfdir}/wsl.conf.wsl_systemd ..."
     %{_bindir}/echo -e "# added by wsl_systemd 
pattern\n[boot]\nsystemd=true\n# END: wsl_systemd pattern edit" >> 
%{_sysconfdir}/wsl.conf.wsl_systemd
   fi
-elif [[ -f %{_sysconfdir}/wsl.conf && -L %{_sysconfdir}/wsl.conf ]];
-then
+  elif [[ -f %{_sysconfdir}/wsl.conf && -L %{_sysconfdir}/wsl.conf ]];
+  then
   %{_bindir}/echo "* [wsl_systemd] Current %{_sysconfdir}/wsl.conf is a 
symlink ; ensure contents you want are copied to a non-symlink 
%{_sysconfdir}/wsl.conf and reinstall the pattern ..."
-else
+  else
   %{_bindir}/echo "* [wsl_systemd] No file existed; adding 
%{_sysconfdir}/wsl.conf.wsl_systemd ..."
   %{_bindir}/echo -e "# added by wsl_systemd pattern\n[boot]\nsystemd=true\n# 
END: wsl_systemd pattern edit" > %{_sysconfdir}/wsl.conf.wsl_systemd
+  fi
+else
+  echo -e "\n* This is not WSL, nothing to do.\n\n"
 fi
 
 %post systemd
-if [[ -e %{_sysconfdir}/wsl.conf.wsl_systemd ]];
+if [ $(systemd-detect-virt) == "wsl" ];
 then
+  if [[ -e %{_sysconfdir}/wsl.conf.wsl_systemd ]];
+  then
   ln -sf %{_sysconfdir}/wsl.conf.wsl_systemd %{_sysconfdir}/wsl.conf
+  fi
+else
+  echo -e "\n* This is not WSL, nothing to do.\n\n"
 fi
 
 %files systemd
@@ -230,7 +261,13 @@
 The package installs %{_tmpfilesdir}/wslg.conf so the proper symlink to 
/mnt/wslg/.X11-unix exists at boot.
 
 %post tmpfiles
-%tmpfiles_create %{_tmpfilesdir}/wslg.conf
+if [ $(systemd-detect-virt) == "wsl" ];
+then
+  %tmpfiles_create %{_tmpfilesdir}/wslg.conf
+else
+  echo -e "\n* This is not WSL, nothing to do.\n\n"
+  rm -vf %{_tmpfilesdir}/wslg.conf
+fi
 
 %files tmpfiles
 %{_tmpfilesdir}/wslg.conf

++++++ README.md ++++++
# patterns-wsl

URL: [patterns](https://github.com/sbradnick/patterns)

----

Provides "wsl_base", "wsl_gui", and "wsl_systemd" patterns for recommended 
WSL/WSLg related packages and setup.

++++++ _scmsync.obsinfo ++++++
mtime: 1793993893
commit: 4a5e89914ffe0045470b38ec5f04aafc9408f8e3af0de853cf27f13d8c42a7e0
url: https://src.opensuse.org/sbradnick/patterns-wsl
revision: main

++++++ build.specials.obscpio ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/.gitignore new/.gitignore
--- old/.gitignore      1970-01-01 01:00:00.000000000 +0100
+++ new/.gitignore      2026-11-06 20:38:13.000000000 +0100
@@ -0,0 +1,5 @@
+_buildconfig-*
+_buildinfo-*
+*.obscpio
+patterns-wsl/
+patterns/

Reply via email to