Overview

Request 949496 superseded

New package, see https://lists.opensuse.org/archives/list/factory@lists.opensuse.org/thread/GWRQ6L6MA5JB35LNWXK2S2EIKQ6O43O6/

Request History
Scott Bradnick's avatar

sbradnick created request

New package, see https://lists.opensuse.org/archives/list/factory@lists.opensuse.org/thread/GWRQ6L6MA5JB35LNWXK2S2EIKQ6O43O6/


Factory Auto's avatar

factory-auto added opensuse-review-team as a reviewer

Please review sources


Factory Auto's avatar

factory-auto accepted review

Check script succeeded


Dominique Leuenberger's avatar

dimstar_suse added openSUSE:Factory:Staging:adi:22 as a reviewer

Being evaluated by staging project "openSUSE:Factory:Staging:adi:22"


Dominique Leuenberger's avatar

dimstar_suse accepted review

Picked "openSUSE:Factory:Staging:adi:22"


Saul Goodman's avatar

licensedigger accepted review

ok


Dominique Leuenberger's avatar

dimstar declined review

26+Source: %{name}.tar.gz

Please use full URLs to source tarball, so that their content can be counter-checked against what upstream publishes (or use a _service for git checkouts)

29+# ---
30+Requires: lightdm
31+Conflicts: sddm
32+# ---

What about all the other display managers? (gdm comes to mind)

38+Recommends: icewm-default
39+Suggests: icewm-default

Recommend AND suggest? Recommends being a stronger dep than suggests makes the 2nd a NOP in all cases

+%pre
68+# ---

The entire pre-script happens on every subsequent updates of the package as well. Feels rude to overwrite an admin over and over (they might have wanted to change some of those values intentionally)

Same for post - it runs on each subsequent upgrade of the package (including rebuilds for example)

and I hope
106+ %{_bindir}/firewall-cmd --add-service=ms-wbt
that firewalls is smart enough to not add this more than once when re-executed over and over

115+then
116+ printf "\nRunning systemctl preset commands for xrdp, xrdp-sesman, xvnc-novnc, and vncmanager:\n"
117+ %{_bindir}/systemctl preset xrdp.service
118+ %{_bindir}/systemctl preset xrdp-sesman.service
119+ %{_bindir}/systemctl preset xvnc-novnc.socket
120+ %{_bindir}/systemctl preset vncmanager.service
121+fi

That should rather be done properly using the systemd macros, see https://en.opensuse.org/openSUSE:Systemd_packaging_guidelines#Registering_unit_files_in_install_scripts (same argument: you reset to the preset on each update of the package. The admin is not supposed having to fight against packages; the systemd macros handle the case properly)


Dominique Leuenberger's avatar

dimstar declined request

26+Source: %{name}.tar.gz

Please use full URLs to source tarball, so that their content can be counter-checked against what upstream publishes (or use a _service for git checkouts)

29+# ---
30+Requires: lightdm
31+Conflicts: sddm
32+# ---

What about all the other display managers? (gdm comes to mind)

38+Recommends: icewm-default
39+Suggests: icewm-default

Recommend AND suggest? Recommends being a stronger dep than suggests makes the 2nd a NOP in all cases

+%pre
68+# ---

The entire pre-script happens on every subsequent updates of the package as well. Feels rude to overwrite an admin over and over (they might have wanted to change some of those values intentionally)

Same for post - it runs on each subsequent upgrade of the package (including rebuilds for example)

and I hope
106+ %{_bindir}/firewall-cmd --add-service=ms-wbt
that firewalls is smart enough to not add this more than once when re-executed over and over

115+then
116+ printf "\nRunning systemctl preset commands for xrdp, xrdp-sesman, xvnc-novnc, and vncmanager:\n"
117+ %{_bindir}/systemctl preset xrdp.service
118+ %{_bindir}/systemctl preset xrdp-sesman.service
119+ %{_bindir}/systemctl preset xvnc-novnc.socket
120+ %{_bindir}/systemctl preset vncmanager.service
121+fi

That should rather be done properly using the systemd macros, see https://en.opensuse.org/openSUSE:Systemd_packaging_guidelines#Registering_unit_files_in_install_scripts (same argument: you reset to the preset on each update of the package. The admin is not supposed having to fight against packages; the systemd macros handle the case properly)


Scott Bradnick's avatar

sbradnick superseded request

Made some changes, per @dimstar, looking for another review.

openSUSE Build Service is sponsored by