Bug 2302351 - Review Request: mpv-mpris - MPRIS plugin for mpv
Summary: Review Request: mpv-mpris - MPRIS plugin for mpv
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Fedora
Classification: Fedora
Component: Package Review
Version: rawhide
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Peter Lemenkov
QA Contact: Fedora Extras Quality Assurance
URL: https://github.com/hoyon/mpv-mpris
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2024-08-01 19:12 UTC by Jan Drögehoff
Modified: 2024-09-04 06:55 UTC (History)
2 users (show)

Fixed In Version: mpv-mpris-1.1-4.fc42
Clone Of:
Environment:
Last Closed: 2024-09-04 06:55:11 UTC
Type: ---
Embargoed:
lemenkov: fedora-review+


Attachments (Terms of Use)

Description Jan Drögehoff 2024-08-01 19:12:31 UTC
Spec URL: https://pkgs.rpmfusion.org/cgit/free/mpv-mpris.git/plain/mpv-mpris.spec
SRPM URL: https://koji.rpmfusion.org/kojifiles/packages/mpv-mpris/1.1/2.fc40/src/mpv-mpris-1.1-2.fc40.src.rpm
Description:
mpv-mpris allows control of mpv using standard media keys

This plugin implements the MPRIS D-Bus interface and can
be controlled using tools such as playerctl or through
many Linux DEs, such as Gnome and KDE

Fedora Account System Username: sentry


This package is just an import from RPMFusion since mpv has been moved to the official Fedora repos

Comment 1 Fedora Review Service 2024-08-01 19:23:11 UTC
Copr build:
https://copr.fedorainfracloud.org/coprs/build/7817221
(succeeded)

Review template:
https://download.copr.fedorainfracloud.org/results/@fedora-review/fedora-review-2302351-mpv-mpris/fedora-rawhide-x86_64/07817221-mpv-mpris/fedora-review/review.txt

Please take a look if any issues were found.


---
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.

Comment 2 Peter Lemenkov 2024-08-08 19:35:06 UTC
I'll review it.

Comment 3 Peter Lemenkov 2024-08-08 19:50:04 UTC
Few remarks.

* Quick question - should these two libraries go to the main mpv package? Looks very generic to me.

```
%dir %{_libdir}/mpv/
%dir %{_sysconfdir}/mpv/scripts
```

Not a blocker - but please in the meantime discuss this thins with mpv maintainer.

* Also it looks like your SPEC-file is different with the one from SRPM-file. Please take a look at this.

* More worse issue is lots of "undefined-non-weak-symbol" rpmlint messages. Should the library be linked against mpv-libs?

Apart from that I don't see any other issues so here is my formal 

Package Review
==============

Legend:
[x] = Pass, [!] = Fail, [-] = Not applicable, [?] = Not evaluated
[ ] = Manual review needed

===== MUST items =====

C/C++:
[x]: Package does not contain kernel modules.
[-]: Unversioned .so files placed in a main package since it's a plugin library.
[x]: If your application is a C or C++ application you must list a
     BuildRequires against gcc, gcc-c++ or clang.
[x]: Package does not contain any libtool archives (.la)
[x]: Package contains no static executables.
[x]: Rpath absent or only used for internal libs.

Generic:
[x]: Package is licensed with an open-source compatible license and meets
     other legal requirements as defined in the legal section of Packaging
     Guidelines.
[x]: License field in the package spec file matches the actual license (MIT).
[-]: License file installed when any subpackage combination is installed (no subpackages).
[x]: Package requires other packages for directories it uses. See my comment above.
[x]: Package must own all directories that it creates. Again see my comment above.
[x]: %build honors applicable compiler flags or justifies otherwise.
[x]: Package contains no bundled libraries without FPC exception.
[x]: Changelog in prescribed format.
[x]: Sources contain only permissible code or content.
[-]: Package does not have a desktop file. Not a GUI app.
[-]: No development files.
[x]: Package uses nothing in %doc for runtime.
[x]: Package consistently uses macros (instead of hard-coded directory
     names).
[x]: Package is named according to the Package Naming Guidelines.
[x]: Package does not generate any conflict.
[x]: Package obeys FHS, except libexecdir and /usr/target.
[-]: If the package is a rename of another package, proper Obsoletes and
     Provides are present.
[x]: Requires correct, justified where necessary.
[x]: Spec file is legible and written in American English.
[-]: Package doe not contains systemd file(s).
[x]: Useful -debuginfo package or justification otherwise.
[x]: Package is not known to require an ExcludeArch tag.
[x]: Package complies to the Packaging Guidelines
[x]: Package successfully compiles and builds into binary rpms on at least
     one supported primary architecture.
[x]: Package installs properly.
[x]: Rpmlint is run on all rpms the build produces.
     Note: There are rpmlint messages (see attachment).
[x]: If (and only if) the source package includes the text of the
     license(s) in its own file, then that file, containing the text of the
     license(s) for the package is included in %license.
[x]: The License field must be a valid SPDX expression.
[x]: Package does not own files or directories owned by other packages.
[x]: Package uses either %{buildroot} or $RPM_BUILD_ROOT
[x]: Package does not run rm -rf %{buildroot} (or $RPM_BUILD_ROOT) at the
     beginning of %install.
[x]: Macros in Summary, %description expandable at SRPM build time.
[x]: Dist tag is present.
[x]: Package does not contain duplicates in %files.
[x]: Permissions on files are set properly.
[x]: Package must not depend on deprecated() packages.
[x]: Package use %makeinstall only when make install DESTDIR=... doesn't
     work.
[x]: Package is named using only allowed ASCII characters.
[x]: Package does not use a name that already exists.
[x]: Package is not relocatable.
[x]: Sources used to build the package match the upstream source, as
     provided in the spec URL.
[x]: Spec file name must match the spec package %{name}, in the format
     %{name}.spec.
[x]: File names are valid UTF-8.
[x]: Large documentation must go in a -doc subpackage. Large could be size
     (~1MB) or number of files.
     Note: Documentation size is 3680 bytes in 1 files.
[x]: Packages must not store files under /srv, /opt or /usr/local

===== SHOULD items =====

Generic:
[-]: If the source package does not include license text(s) as a separate
     file from upstream, the packager SHOULD query upstream to include it.
[x]: Final provides and requires are sane (see attachments).
[?]: i did not chec if the package functions as described.
[x]: Latest version is packaged (1.1).
[x]: Package does not include license text files separate from upstream.
[-]: Sources weren't verified with gpgverify because upstream does not
     publish signatures.
[?]: I did not test if the package compiles and builds into binary rpms 
     on all supported architectures.
[-]: No tests.
[x]: Packages should try to preserve timestamps of original installed
     files.
[x]: Reviewer should test that the package builds in mock.
[x]: Buildroot is not present
[x]: Package has no %clean section with rm -rf %{buildroot} (or
     $RPM_BUILD_ROOT)
[x]: No file requires outside of /etc, /bin, /sbin, /usr/bin, /usr/sbin.
[x]: Fully versioned dependency in subpackages if applicable.
[x]: Packager, Vendor, PreReq, Copyright tags should not be in spec file
[x]: Sources can be downloaded from URI in Source: tag
[x]: SourceX is a working URL.
[x]: Spec use %global instead of %define unless justified.

===== EXTRA items =====

Generic:
[!]: Spec file according to URL is the same as in SRPM.
     Note: Spec file as given by url is not the same as in SRPM (see
     attached diff).
[x]: Rpmlint is run on debuginfo package(s).
     Note: No rpmlint messages.
[x]: Rpmlint is run on all installed packages.
     Note: There are rpmlint messages (see attachment).
[x]: Large data in /usr/share should live in a noarch subpackage if package
     is arched.


Rpmlint
-------
Checking: mpv-mpris-1.1-2.fc41.x86_64.rpm
          mpv-mpris-debuginfo-1.1-2.fc41.x86_64.rpm
          mpv-mpris-debugsource-1.1-2.fc41.x86_64.rpm
          mpv-mpris-1.1-2.fc41.src.rpm
========================================================================================================================================== rpmlint session starts ==========================================================================================================================================
rpmlint: 2.5.0
configuration:
    /usr/lib/python3.12/site-packages/rpmlint/configdefaults.toml
    /etc/xdg/rpmlint/fedora-legacy-licenses.toml
    /etc/xdg/rpmlint/fedora-spdx-licenses.toml
    /etc/xdg/rpmlint/fedora.toml
    /etc/xdg/rpmlint/scoring.toml
    /etc/xdg/rpmlint/users-groups.toml
    /etc/xdg/rpmlint/warn-on-functions.toml
rpmlintrc: [PosixPath('/tmp/tmpanbdolh8')]
checks: 32, packages: 4

mpv-mpris.src: E: spelling-error ('playerctl', '%description -l en_US playerctl -> player')
mpv-mpris.x86_64: E: spelling-error ('playerctl', '%description -l en_US playerctl -> player')
==================================================================================================== 4 packages and 0 specfiles checked; 2 errors, 0 warnings, 17 filtered, 2 badness; has taken 1.3 s =====================================================================================================

Rpmlint (debuginfo)
-------------------
Checking: mpv-mpris-debuginfo-1.1-2.fc41.x86_64.rpm
========================================================================================================================================== rpmlint session starts ==========================================================================================================================================
rpmlint: 2.5.0
configuration:
    /usr/lib/python3.12/site-packages/rpmlint/configdefaults.toml
    /etc/xdg/rpmlint/fedora-legacy-licenses.toml
    /etc/xdg/rpmlint/fedora-spdx-licenses.toml
    /etc/xdg/rpmlint/fedora.toml
    /etc/xdg/rpmlint/scoring.toml
    /etc/xdg/rpmlint/users-groups.toml
    /etc/xdg/rpmlint/warn-on-functions.toml
rpmlintrc: [PosixPath('/tmp/tmpm7ksyaxy')]
checks: 32, packages: 1

===================================================================================================== 1 packages and 0 specfiles checked; 0 errors, 0 warnings, 5 filtered, 0 badness; has taken 0.3 s =====================================================================================================

Rpmlint (installed packages)
----------------------------
============================ rpmlint session starts ============================
rpmlint: 2.5.0
configuration:
    /usr/lib/python3.13/site-packages/rpmlint/configdefaults.toml
    /etc/xdg/rpmlint/fedora-legacy-licenses.toml
    /etc/xdg/rpmlint/fedora-spdx-licenses.toml
    /etc/xdg/rpmlint/fedora.toml
    /etc/xdg/rpmlint/scoring.toml
    /etc/xdg/rpmlint/users-groups.toml
    /etc/xdg/rpmlint/warn-on-functions.toml
checks: 32, packages: 3

mpv-mpris.x86_64: W: unused-direct-shlib-dependency /usr/lib64/mpv/mpris.so /lib64/libgobject-2.0.so.0
mpv-mpris.x86_64: W: undefined-non-weak-symbol /usr/lib64/mpv/mpris.so mpv_get_property_string	(/usr/lib64/mpv/mpris.so)
mpv-mpris.x86_64: W: undefined-non-weak-symbol /usr/lib64/mpv/mpris.so mpv_observe_property	(/usr/lib64/mpv/mpris.so)
mpv-mpris.x86_64: W: undefined-non-weak-symbol /usr/lib64/mpv/mpris.so mpv_wait_event	(/usr/lib64/mpv/mpris.so)
mpv-mpris.x86_64: W: undefined-non-weak-symbol /usr/lib64/mpv/mpris.so mpv_get_property	(/usr/lib64/mpv/mpris.so)
mpv-mpris.x86_64: W: undefined-non-weak-symbol /usr/lib64/mpv/mpris.so mpv_free	(/usr/lib64/mpv/mpris.so)
mpv-mpris.x86_64: W: undefined-non-weak-symbol /usr/lib64/mpv/mpris.so mpv_set_wakeup_callback	(/usr/lib64/mpv/mpris.so)
mpv-mpris.x86_64: W: undefined-non-weak-symbol /usr/lib64/mpv/mpris.so mpv_set_property	(/usr/lib64/mpv/mpris.so)
mpv-mpris.x86_64: W: undefined-non-weak-symbol /usr/lib64/mpv/mpris.so mpv_command_async	(/usr/lib64/mpv/mpris.so)
mpv-mpris.x86_64: E: spelling-error ('playerctl', '%description -l en_US playerctl -> player')
 3 packages and 0 specfiles checked; 1 errors, 9 warnings, 14 filtered, 1 badness; has taken 1.2 s 

Unversioned so-files
--------------------
mpv-mpris: /etc/mpv/scripts/mpris.so
mpv-mpris: /usr/lib64/mpv/mpris.so

Source checksums
----------------
https://github.com/hoyon/mpv-mpris/archive/1.1/mpv-mpris-1.1.tar.gz :
  CHECKSUM(SHA256) this package     : 71008aa181bccf4bc7b2b5b9673e9993b1d1f5b7e2c189dc3724ab23ef1f6ebb
  CHECKSUM(SHA256) upstream package : 71008aa181bccf4bc7b2b5b9673e9993b1d1f5b7e2c189dc3724ab23ef1f6ebb


Requires
--------
mpv-mpris (rpmlib, GLIBC filtered):
    libavformat.so.60()(64bit)
    libavformat.so.60(LIBAVFORMAT_60)(64bit)
    libc.so.6()(64bit)
    libgio-2.0.so.0()(64bit)
    libglib-2.0.so.0()(64bit)
    libgobject-2.0.so.0()(64bit)
    mpv
    rtld(GNU_HASH)

mpv-mpris-debuginfo (rpmlib, GLIBC filtered):

mpv-mpris-debugsource (rpmlib, GLIBC filtered):

Provides
--------
mpv-mpris:
    mpv-mpris
    mpv-mpris(x86-64)

mpv-mpris-debuginfo:
    debuginfo(build-id)
    mpv-mpris-debuginfo
    mpv-mpris-debuginfo(x86-64)

mpv-mpris-debugsource:
    mpv-mpris-debugsource
    mpv-mpris-debugsource(x86-64)



Diff spec file in url and in SRPM
---------------------------------
--- /home/petro/rpmbuild/SPECS/2302351-mpv-mpris/srpm/mpv-mpris.spec	2024-08-08 21:18:56.237062900 +0200
+++ /home/petro/rpmbuild/SPECS/2302351-mpv-mpris/srpm-unpacked/mpv-mpris.spec	2024-02-04 01:00:00.000000000 +0100
@@ -1,5 +1,5 @@
 Name:           mpv-mpris
 Version:        1.1
-Release:        3%{?dist}
+Release:        2%{?dist}
 Summary:        MPRIS plugin for mpv
 
@@ -44,7 +44,4 @@
 
 %changelog
-* Fri Aug 02 2024 RPM Fusion Release Engineering <sergiomb> - 1.1-3
-- Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild
-
 * Sun Feb 04 2024 RPM Fusion Release Engineering <sergiomb> - 1.1-2
 - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild


Generated by fedora-review 0.10.0 (e79b66b) last change: 2023-07-24
Command line :/usr/bin/fedora-review -b 2302351
Buildroot used: fedora-rawhide-x86_64
Active plugins: Generic, Shell-api, C/C++
Disabled plugins: R, Ocaml, Haskell, SugarActivity, PHP, Python, Perl, Java, fonts
Disabled flags: EXARCH, EPEL6, EPEL7, DISTTAG, BATCH

Comment 4 Jan Drögehoff 2024-08-08 21:23:32 UTC
(In reply to Peter Lemenkov from comment #3)
> Few remarks.
> 
> * Quick question - should these two libraries go to the main mpv package?
> Looks very generic to me.
> 
> ```
> %dir %{_libdir}/mpv/
> %dir %{_sysconfdir}/mpv/scripts
> ```
> 
> Not a blocker - but please in the meantime discuss this thins with mpv
> maintainer.

This was initially done at request by leight scott
https://bugzilla.rpmfusion.org/show_bug.cgi?id=5520#c1
and has also been adopted for the only other mpv plugin in the Fedora repos
https://src.fedoraproject.org/rpms/mpv_inhibit_gnome/blob/rawhide/f/mpv_inhibit_gnome.spec

the reason its done like this is because plugins don't go into the libdir, they go into `/etc/mpv`, where the mpv systemwide-prefix is.
I can talk with the mpv maintainers if `/etc/mpv` could be turned into a symlink to the lib folder, which would make this a lot nicer and allow shared objects to stay where they should be.

> * Also it looks like your SPEC-file is different with the one from
> SRPM-file. Please take a look at this.

I linked the fail on the main branch and right after opening this the F41 rebuild happened.
https://pkgs.rpmfusion.org/cgit/free/mpv-mpris.git/plain/mpv-mpris.spec?id=9d4c3a091a5f4292a4efd69bba559995e36ec6ce has the spec prior to this

> * More worse issue is lots of "undefined-non-weak-symbol" rpmlint messages.
> Should the library be linked against mpv-libs?

I couldn't get rpmlint to create this error on my end nor could I find it in the copr build.
mpv-mpris does not link against libmpv directly since the library handles the plugin loading itself instead plugins are given a handle which they can use.

> Apart from that I don't see any other issues so here is my formal

Comment 5 Peter Lemenkov 2024-08-09 08:34:37 UTC
(In reply to Jan Drögehoff from comment #4)
> (In reply to Peter Lemenkov from comment #3)
> > Few remarks.
> > 
> > * Quick question - should these two libraries go to the main mpv package?
> > Looks very generic to me.
> > 
> > ```
> > %dir %{_libdir}/mpv/
> > %dir %{_sysconfdir}/mpv/scripts
> > ```
> > 
> > Not a blocker - but please in the meantime discuss this thins with mpv
> > maintainer.
> 
> This was initially done at request by leight scott
> https://bugzilla.rpmfusion.org/show_bug.cgi?id=5520#c1
> and has also been adopted for the only other mpv plugin in the Fedora repos
> https://src.fedoraproject.org/rpms/mpv_inhibit_gnome/blob/rawhide/f/
> mpv_inhibit_gnome.spec
> 
> the reason its done like this is because plugins don't go into the libdir,
> they go into `/etc/mpv`, where the mpv systemwide-prefix is.
> I can talk with the mpv maintainers if `/etc/mpv` could be turned into a
> symlink to the lib folder, which would make this a lot nicer and allow
> shared objects to stay where they should be.

OK, got this. Please in the future discuss it once again with others. Right now having so-links in my /etc/ folder looks quite strange to me.

> > * Also it looks like your SPEC-file is different with the one from
> > SRPM-file. Please take a look at this.
> 
> I linked the fail on the main branch and right after opening this the F41
> rebuild happened.
> https://pkgs.rpmfusion.org/cgit/free/mpv-mpris.git/plain/mpv-mpris.
> spec?id=9d4c3a091a5f4292a4efd69bba559995e36ec6ce has the spec prior to this

Just ensure the latest spec-file used  before uploading.

> > * More worse issue is lots of "undefined-non-weak-symbol" rpmlint messages.
> > Should the library be linked against mpv-libs?
> 
> I couldn't get rpmlint to create this error on my end nor could I find it in
> the copr build.
> mpv-mpris does not link against libmpv directly since the library handles
> the plugin loading itself instead plugins are given a handle which they can
> use.

Double-check that the plugin actually loads by mpv and works as expected.

I don't see any other issues so this package is

================
=== APPROVED ===
================


Note You need to log in before you can comment on or make changes to this bug.