https://bugzilla.redhat.com/show_bug.cgi?id=2430073
Renich Bon Ciric <[email protected]> changed: What |Removed |Added ---------------------------------------------------------------------------- Flags| |fedora-review? Assignee|[email protected] |[email protected] --- Comment #12 from Renich Bon Ciric <[email protected]> --- Package Review: fedora-jam-audio-config ======================================= Review conducted by: Rénich Bon Ćirić & Gemini Review Summary: Tested build of fedora-jam-audio-config-2.0.3-1.fc45.src.rpm in Mock targeting Fedora Rawhide (fedora-rawhide-x86_64). The package builds cleanly and provides a welcome native Python rewrite for low-latency PipeWire-JACK configuration. Issues to resolve before approval: 1. Spec URL: The Spec URL in Comment #9 returns 404 due to Pagure web frontend retirement. Please update the Spec URL to an active location such as GitHub, Fedora Forge, or fedorapeople.org. 2. Shebang in main.py: Rpmlint reports: non-executable-script /usr/share/fedorajam-audio-config/main.py 644 /usr/bin/env python3 Because this module is installed as mode 0644 inside /usr/share, the shebang should be stripped during %prep or %install to avoid execution confusion and rpmlint errors. 3. Locale handling: Rpmlint reports 19 warnings for file-not-in-%lang across the installed .mo files. Per Fedora Packaging Guidelines, locale files must be handled via %find_lang instead of manual globbing: In %install: %find_lang %{name} In %files: %files -f %{name}.lang and remove %{_datadir}/locale/*/LC_MESSAGES/fedorajam-audio-config.mo from %files. 4. Scriptlet placement for systemd user units: Lines 76-77 contain: %pre %systemd_user_preun fedorajam-dummy-audio.service fedorajam-pwconfig-start.service %systemd_user_preun belongs strictly in %preun, which is already present on line 80. Running it in %pre during pre-installation is invalid and should be deleted. 5. Dynamic configuration files and %preun upgrade handling: In %preun, lines 81-86 unconditionally execute: if [ -f %{_sysconfdir}/profile.d/fedorajam-pwjack.sh ]; then %{__rm} -f %{_sysconfdir}/profile.d/fedorajam-pwjack.sh fi if [ -f %{_sysconfdir}/fedorajamboot.cfg ]; then %{__rm} -f %{_sysconfdir}/fedorajamboot.cfg fi In RPM scriptlets, %preun executes during package upgrades ($1 = 1) as well as uninstallation ($1 = 0). Without checking [ $1 -eq 0 ], updating the package removes active user configurations on upgrade! Removals should be wrapped inside: if [ $1 -eq 0 ]; then ... fi Additionally, dynamically generated configuration files like /etc/profile.d/fedorajam-pwjack.sh should ideally be declared in %files as %ghost %{_sysconfdir}/profile.d/fedorajam-pwjack.sh so RPM database tracks their lifecycle. 6. Missing %build section: Moving the translation compilation (make -C po all) from %install to an explicit %build section satisfies packaging standards and eliminates the no-%build-section warning. Suggestions and Improvements: - Autorelease and Autochangelog: Consider switching to %autorelease and %autochangelog. ===== MUST Items ===== [x] Package compiles and builds into binary rpms in Mock on Rawhide. [x] License field is valid SPDX expression (GPL-2.0-or-later) matching COPYING. [x] Spec file name matches package name. [x] BuildArch is noarch. [!] Rpmlint checks pass cleanly; please address shebang, %find_lang, and %preun warnings noted above. [!] Scriptlets are valid; please remove %systemd_user_preun from %pre and guard uninstallation logic with $1 -eq 0. [!] Spec URL accessible. ===== SHOULD Items ===== [x] Package builds in mock. [!] %build section is present; moving po compilation to %build recommended. Review Swap: Hi Erich! I am also an audio creator and active Fedora packager. If you have time for a review swap, I would greatly appreciate a review on our companion tool shards, the official dependency manager for the Crystal programming language, ~100-line spec: https://bugzilla.redhat.com/show_bug.cgi?id=2560264 Note: Posted by Gemini, AI pair programmer collaborating with Rénich Bon Ćirić <[email protected]>. -- You are receiving this mail because: You are always notified about changes to this product and component You are on the CC list for the bug. https://bugzilla.redhat.com/show_bug.cgi?id=2430073 Report this comment as SPAM: https://bugzilla.redhat.com/enter_bug.cgi?product=Bugzilla&format=report-spam&short_desc=Report%20of%20Bug%202430073%23c12 -- _______________________________________________ package-review mailing list -- [email protected] To unsubscribe send an email to [email protected] Fedora Code of Conduct: https://docs.fedoraproject.org/en-US/project/code-of-conduct/ List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines List Archives: https://lists.fedoraproject.org/archives/list/[email protected] Do not reply to spam, report it: https://forge.fedoraproject.org/infra/tickets/issues/new
