Bug 2564649
| Summary: | Review Request: mp3val - A tool for checking the integrity of MPEG files | ||
|---|---|---|---|
| Product: | [Fedora] Fedora | Reporter: | Bradan Fleming <bradan> |
| Component: | Package Review | Assignee: | Nobody's working on this, feel free to take it <nobody> |
| Status: | NEW --- | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
| Severity: | medium | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | rawhide | CC: | package-review |
| Target Milestone: | --- | Flags: | renich:
fedora-review?
|
| Target Release: | --- | ||
| Hardware: | All | ||
| 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: | |||
| Bug Blocks: | 177841 | ||
|
Description
Bradan Fleming
2026-11-02 02:37:05 UTC
Package Review: mp3val
======================
Review conducted by: Rénich Bon Ćirić & Gemini
Review Summary:
Tested build of mp3val-0.1.8-1.fc45.src.rpm in Mock targeting Fedora Rawhide (fedora-rawhide-x86_64). The tool is lightweight, builds quickly, and fills a useful role for audio integrity validation.
Issues to resolve before approval:
1. Compiler BuildRequires:
Line 21 currently specifies:
BuildRequires: g++
Per Fedora Packaging Guidelines, packages requiring a C++ compiler must declare:
BuildRequires: gcc-c++
2. Linker flags and security hardening:
Fedora requires packages to be built with full security hardening, including Position Independent Executable (PIE) and full RELRO.
Inspecting the built binary shows:
Type: EXEC (Executable file)
instead of DYN (Position-Independent Executable), and BIND_NOW is missing.
This occurs because upstream Makefile.linux omits $(LDFLAGS) during the linking step:
$(CXX) $(CXXFLAGS) $^ -o $@
In mp3val-fix.patch, please update Makefile.linux line 21 to pass $(LDFLAGS):
$(CXX) $(CXXFLAGS) $(LDFLAGS) $^ -o $@
This ensures Fedora flags (-Wl,-z,relro -Wl,-z,now) are passed to the linker.
3. Install path double slash:
Line 35:
install -Dp %{name} %{buildroot}/%{_bindir}/%{name}
Because %{_bindir} begins with a leading slash, %{buildroot}/%{_bindir} expands to //usr/bin. Please update to:
install -Dp %{name} %{buildroot}%{_bindir}/%{name}
4. Changelog packager attribution:
Line 45 contains a placeholder entry:
* Mon Nov 02 2026 John Doe <packager> - 0.1.8-1
Please configure git author identity (git config user.name and user.email) so rpmautospec generates your FAS packager identity.
5. Description typo:
Lines 24-25 have a duplicate "of": "fixing most of of the problems." Please change to "fixing most of the problems."
6. Check section:
Consider adding a simple %check smoketest to verify binary execution and satisfy rpmlint:
%check
# Upstream provides no test suite; verify binary smoketest
./mp3val -h >/dev/null
===== MUST Items =====
[x] Package compiles and builds into binary rpms in Mock on Rawhide.
[x] License field is valid SPDX expression (GPL-2.0-only) matching COPYING.
[x] Spec file name matches package name.
[!] Compiler BuildRequires: please update g++ to gcc-c++.
[!] Security hardening: please pass $(LDFLAGS) during linking for PIE and RELRO.
[!] Fix path typo in %install.
===== SHOULD Items =====
[x] Package builds in mock.
[x] Spec uses %autorelease and %autochangelog.
[!] Add %check section with smoketest.
[!] Fix typo in %description.
Sponsorship and Review Swap:
Hi Bradan! Welcome to Fedora packaging. I saw you are looking for a sponsor. Doing package reviews and getting clean reviews into Bugzilla is the proven path toward sponsorship in the packager group. I am happy to help review your package and shepherd it through.
If you have a moment, I would also appreciate a review swap on our package 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ć <renich>.
(In reply to Renich Bon Ciric from comment #1) Thanks for the welcome + formal review Renich! 🙇 Sorry, I've been away for the past few days, so it looks like someone else reviewed your packages already, but don't hesitate to let me know if you'd like me to look at any others. (I can't do formal reviews because I am not currently a packager, but I can do mock reviews, and I've done a few of those earlier this year.) Fixes: 1) Fixed the build dep (g++ -> gnu-c++) 2) Added LDFLAGS to the Makefile patch 3) Fixed the install path typo 4) This was actually a deliberate decision to silence the fedora-review notice about the specfile differing from the one processed by mockbuild. I've submitted the raw specfile this time. 5) Oops. I ended up rewriting the description because I don't like how I initially wrote it. 6) Added the smoke test to the %check section (good idea!) Spec URL: https://bradan.ca/tmp/mp3val.spec SRPM URL: https://bradan.ca/tmp/mp3val-0.1.8-1.fc45.src.rpm Patch URL: https://bradan.ca/tmp/mp3val-fix.patch COPR build: https://copr.fedorainfracloud.org/coprs/bradan/mp3val/build/11268495/ (Note: Posted by Gemini, AI pair programmer collaborating with Renich Bon Ciric.)
Thank you for the quick turnaround and updated package, Bradan!
I verified your updated spec, patch, and Rawhide Copr build (11268495):
- BuildRequires is properly set to gcc-c++ in mp3val.spec (the comment said gnu-c++, but the spec itself is correct).
- Security hardening verified via readelf on /usr/bin/mp3val: Type is DYN (PIE), GNU_RELRO is present, and BIND_NOW / NOW PIE flags are set.
- Install path double slash is fixed, description reads cleanly, and the %check smoke test runs cleanly.
One tiny optional cleanup for whenever you next touch the spec:
- Line 29 runs "install -Dp manual.html %{buildroot}%{_pkgdocdir}/manual.html" while %files also lists "%doc manual.html". %doc already installs manual.html into %{_pkgdocdir}, so line 29 is redundant and can be dropped.
Important note on sponsorship:
Because this review blocks FE-NEEDSPONSOR (bug 177841) and Renich is not currently a Fedora Packager Sponsor, we cannot formally grant fedora-review+ or sponsor your account. Everything looks solid technically, so I am resetting the assignee to nobody while leaving fedora-review? set so a Fedora Packager Sponsor can pick this up for final approval and sponsorship.
|