Bug 2584553
| Summary: | Review Request: mddm-config - Application for configuring the mddm login manager | ||
|---|---|---|---|
| Product: | [Fedora] Fedora | Reporter: | Shawn W Dunn <sfalken> |
| Component: | Package Review | Assignee: | Neal Gompa <ngompa13> |
| Status: | RELEASE_PENDING --- | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
| Severity: | medium | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | rawhide | CC: | ngompa13, package-review |
| Target Milestone: | --- | Flags: | ngompa13:
fedora-review+
|
| Target Release: | --- | ||
| Hardware: | Unspecified | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | --- | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | Type: | --- | |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
| Embargoed: | |||
| Bug Depends On: | 2582260 | ||
| Bug Blocks: | |||
|
Description
Shawn W Dunn
2026-11-25 22:41:29 UTC
Taking this review. Initial spec review: > %if %{without kcm} > %global debug_package %{nil} > %endif This seems to be related to the mess around whether it is archful or not... I'm not sure the way this package is structured is a good idea. Unfortunately, we can't declare the binary package with the same name as the source package to fix this. Is there a way to make the source package and binary package names different? Then we can drop this weird handling for noarch/archful primary package. Either way, since you have a "BuildArch: noarch" conditionally used, you don't need the "%debug_package %nil" stanza at all, since the former implies the latter anyway. > %if %{with kcm} > Requires: (%{name}-kcm if plasma-systemsettings) > %endif Does the KCM use the main package stuff? Or could it be split so that there's a -common that the tool and the kcm use? That would allow this to move to the kcm subpackage and become a "Supplements:" instead. > %cmake -DWITH_KCM:STRING=%{?with_kcm:ON}%{!?with_kcm:OFF} Shouldn't this be "BOOL" instead of "STRING"? SRPM: https://sfaulken.fedorapeople.org/mddm-config-0.2.1-1.fc46.src.rpm SPEC: https://sfaulken.fedorapeople.org/mddm-config.spec > > %if %{without kcm} > > %global debug_package %{nil} > > %endif > This seems to be related to the mess around whether it is archful or not... > > I'm not sure the way this package is structured is a good idea. Unfortunately, we can't declare the binary package with the same name as the source package to fix this. > >Is there a way to make the source package and binary package names different? Then we can drop this weird handling for noarch/archful primary package. Done, and dropped, subpackages are now mddm-conf and kcm-mddm > > %if %{with kcm} > > Requires: (%{name}-kcm if plasma-systemsettings) > > %endif > Does the KCM use the main package stuff? Or could it be split so that there's a -common that the tool and the kcm use? > That would allow this to move to the kcm subpackage and become a "Supplements:" instead. > Either way, since you have a "BuildArch: noarch" conditionally used, you don't need the "%debug_package %nil" stanza at all, since the former implies the latter anyway. Done. There's no shared code, so a -common subpackage isn't needed > > %cmake -DWITH_KCM:STRING=%{?with_kcm:ON}%{!?with_kcm:OFF} > Shouldn't this be "BOOL" instead of "STRING"? Nope. WITH_KCM is a tri-state option (AUTO/ON/OFF), The spec always forces ON or OFF so that a missing dep can't silently drop the subpackage. I can remove the explicit type and just make it %cmake -DWITH_KCM=%{?with_kcm:ON}%{!?with_kcm:OFF} if that reads better The ticket summary is not in the correct format.
Expected:
Review Request: <main package name here> - <short summary here>
Found:
mddm-config: Application for configuring the mddm login manager
As a consequence, the package name cannot be parsed and submitted to
be automatically build. Please modify the ticket summary and trigger a
build by typing [fedora-review-service-build].
---
This comment was created by the fedora-review-service
https://github.com/FrostyX/fedora-review-service
If you want to trigger a new Copr build, add a comment containing new
Spec and SRPM URLs or [fedora-review-service-build] string.
(In reply to Shawn W Dunn from comment #3) > SRPM: https://sfaulken.fedorapeople.org/mddm-config-0.2.1-1.fc46.src.rpm > > SPEC: https://sfaulken.fedorapeople.org/mddm-config.spec > > > > %if %{without kcm} > > > %global debug_package %{nil} > > > %endif > > > This seems to be related to the mess around whether it is archful or not... > > > > I'm not sure the way this package is structured is a good idea. Unfortunately, we can't declare the binary package with the same name as the source package to fix this. > > > >Is there a way to make the source package and binary package names different? Then we can drop this weird handling for noarch/archful primary package. > > Done, and dropped, subpackages are now mddm-conf and kcm-mddm > > > > %if %{with kcm} > > > Requires: (%{name}-kcm if plasma-systemsettings) > > > %endif > > > Does the KCM use the main package stuff? Or could it be split so that there's a -common that the tool and the kcm use? > > > That would allow this to move to the kcm subpackage and become a "Supplements:" instead. > > > Either way, since you have a "BuildArch: noarch" conditionally used, you don't need the "%debug_package %nil" stanza at all, since the former implies the latter anyway. > > Done. There's no shared code, so a -common subpackage isn't needed > > > > %cmake -DWITH_KCM:STRING=%{?with_kcm:ON}%{!?with_kcm:OFF} > > > Shouldn't this be "BOOL" instead of "STRING"? > > Nope. WITH_KCM is a tri-state option (AUTO/ON/OFF), The spec always forces > ON or OFF so that a missing dep can't silently drop the subpackage. I can > remove the explicit type and just make it %cmake > -DWITH_KCM=%{?with_kcm:ON}%{!?with_kcm:OFF} if that reads better Nah, it's fine. Since it's a tri-state, it's no big deal. More spec feedback: > Requires: kf6-kauth > Requires: kf6-kcmutils > Requires: kf6-kirigami This these are linked at runtime, shouldn't this get expressed as automatic dependencies? > Requires: polkit I think this actually requires PolicyKit-authentication-agent as well, right? > Supplements: (mddm-conf and plasma-systemsettings) If there's no shared code, shouldn't this just be "Supplements: (mddm and plasma-systemsettings)"? Also, you might want to consider moving BRs relevant for each subpackage to the subpackage definition. It reduces the number of conditional stanzas in the spec file and makes it easier to read. (In reply to Neal Gompa from comment #6) > More spec feedback: > > > Requires: kf6-kauth > > Requires: kf6-kcmutils > > Requires: kf6-kirigami > > This these are linked at runtime, shouldn't this get expressed as automatic > dependencies? > Yep, the only one I actually *need* depending on the system it's being installed on is kf6-kirigami, fixed. > > Requires: polkit > > I think this actually requires PolicyKit-authentication-agent as well, right? > > Yep, missed this in my testing, as I was using lxqt, which already pulls in lxqt-policykit, and provides the agent > > Supplements: (mddm-conf and plasma-systemsettings) > > If there's no shared code, shouldn't this just be "Supplements: (mddm and > plasma-systemsettings)"? > Good catch, done. > Also, you might want to consider moving BRs relevant for each subpackage to > the subpackage definition. It reduces the number of conditional stanzas in > the spec file and makes it easier to read. Done. Also updated to virtual provides where applicable SRPM: https://sfaulken.fedorapeople.org/mddm-config-0.2.1-1.fc46.src.rpm SPEC: https://sfaulken.fedorapeople.org/mddm-config.spec The ticket summary is not in the correct format.
Expected:
Review Request: <main package name here> - <short summary here>
Found:
mddm-config - Application for configuring the mddm login manager
As a consequence, the package name cannot be parsed and submitted to
be automatically build. Please modify the ticket summary and trigger a
build by typing [fedora-review-service-build].
---
This comment was created by the fedora-review-service
https://github.com/FrostyX/fedora-review-service
If you want to trigger a new Copr build, add a comment containing new
Spec and SRPM URLs or [fedora-review-service-build] string.
Do you want to consider grouping the %package and %files sections together, similar to how lxqt-wayland-session does it[1]? It would further reduce the number of conditionals in the spec... [1]: https://src.fedoraproject.org/rpms/lxqt-wayland-session/blob/rawhide/f/lxqt-wayland-session.spec (In reply to Neal Gompa from comment #9) > Do you want to consider grouping the %package and %files sections together, > similar to how lxqt-wayland-session does it[1]? It would further reduce the > number of conditionals in the spec... > > [1]: > https://src.fedoraproject.org/rpms/lxqt-wayland-session/blob/rawhide/f/lxqt- > wayland-session.spec Yeah, actually, I do. Specfile updated. SPEC: https://sfaulken.fedorapeople.org/mddm-config.spec For my own tracking... Spec URL: https://sfaulken.fedorapeople.org/mddm-config.spec SRPM URL: https://sfaulken.fedorapeople.org/mddm-config-0.2.1-1.fc46.src.rpm Review notes: * Package follows Fedora Packaging Guidelines * Package follows Fedora Python and KDE packaging guideliens * Package builds and installs * No serious issues from rpmlint PACKAGE APPROVED. The Pagure repository was created at https://src.fedoraproject.org/rpms/mddm-config Monitoring: Wasn't able to create project in Anitya. You can create it manually on: `https://release-monitoring.org` |