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 2022-10-08 01:23:46 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/patterns-wsl (Old) and /work/SRC/openSUSE:Factory/.patterns-wsl.new.2275 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "patterns-wsl" Sat Oct 8 01:23:46 2022 rev:3 rq:1008562 version:20220929 Changes: -------- --- /work/SRC/openSUSE:Factory/patterns-wsl/patterns-wsl.changes 2022-03-02 18:20:49.720655366 +0100 +++ /work/SRC/openSUSE:Factory/.patterns-wsl.new.2275/patterns-wsl.changes 2022-10-08 01:23:46.926031094 +0200 @@ -1,0 +2,8 @@ +Thu Sep 29 15:39:56 UTC 2022 - Scott Bradnick <scott.bradn...@suse.com> + +- Adding a patterns-wsl-systemd <-> wsl_systemd pattern to setup 2 things: + * /sbin/init -> /usr/lib/systemd/systemd symlink (if it doesn't exist) + * backup an existing /etc/wsl.conf ; drop in new /etc/wsl.conf with + boot.systemd=true entry. + +------------------------------------------------------------------- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ patterns-wsl.spec ++++++ --- /var/tmp/diff_new_pack.WU3B2H/_old 2022-10-08 01:23:47.250031837 +0200 +++ /var/tmp/diff_new_pack.WU3B2H/_new 2022-10-08 01:23:47.254031846 +0200 @@ -17,23 +17,22 @@ Name: patterns-wsl -Version: 20220222 +Version: 20220929 Release: 0 Summary: Recommended packages for Windows Subsystem for Linux, WSL, WSLg License: MIT Group: Metapackages -#URL: https://github.com/openSUSE/patterns URL: https://github.com/sbradnick/patterns BuildRequires: patterns-rpm-macros +#BuildArch: noarch %description This is an internal package that is used to create the patterns as part of the installation source setup. Installation of this package does not make sense. +# ---- - -# ----- %package base %pattern_development Summary: Base WSL packages @@ -53,7 +52,7 @@ %dir /usr/share/doc/packages/patterns /usr/share/doc/packages/patterns/wsl_base.txt -# ----- +# ---- %package gui %pattern_development @@ -77,7 +76,40 @@ %dir /usr/share/doc/packages/patterns /usr/share/doc/packages/patterns/wsl_gui.txt -# ----- +# ---- + +%package systemd +%pattern_development +Summary: WSL systemd setup +Group: Metapackages +Provides: pattern() = wsl_systemd +Provides: pattern-icon() = wsl +Provides: pattern-order() = 3420 +Provides: pattern-visible() + +%description systemd +This package contains the wsl_systemd pattern: provides /etc/wsl.conf and /sbin/init symlink where required. + +#%%if 0%%{?suse_version} == 1500 +#%%endif +%post systemd +if [[ ! -L /sbin/init ]]; +then + %{_bindir}/echo "ADDING /sbin/init -> /usr/lib/systemd/systemd SYMLINK." + %{_bindir}/ln -s %{_systemd_util_dir}/systemd /sbin/init + if [[ -e /etc/wsl.conf ]]; + then + cp /etc/wsl.conf /etc/wsl.conf.$(date +%s) + fi + %{_bindir}/echo "ADDING /etc/wsl.conf ..." + %{_bindir}/echo -e "# added by wsl_systemd pattern\n[boot]\nsystemd=true\n# END: wsl_systemd pattern edit" > %{_sysconfdir}/wsl.conf +fi + +%files systemd +%dir /usr/share/doc/packages/patterns +/usr/share/doc/packages/patterns/wsl_systemd.txt + +# ---- %prep @@ -88,5 +120,7 @@ echo 'This file marks the pattern wsl_base to be installed.' > %{buildroot}/usr/share/doc/packages/patterns/wsl_base.txt mkdir -p %{buildroot}/usr/share/doc/packages/patterns/ echo 'This file marks the pattern wsl_gui to be installed.' > %{buildroot}/usr/share/doc/packages/patterns/wsl_gui.txt +mkdir -p %{buildroot}/usr/share/doc/packages/patterns/ +echo 'This file marks the pattern wsl_systemd to be installed.' > %{buildroot}/usr/share/doc/packages/patterns/wsl_systemd.txt %changelog