Bug 4087

Summary: Update mpg123 to 1.23.4
Product: Fedora Reporter: Igor Gnatenko <igor.raits>
Component: mpg123Assignee: Hans de Goede <hans>
Status: RESOLVED WONTFIX    
Severity: normal CC: leigh123linux, sergio
Priority: P5    
Version: unspecified   
Hardware: All   
OS: GNU/Linux   
namespace:
Attachments: [PATCH] Update to 1.23.4; fixes in packaging
Readd plugins-extras and review
0001-configure-with-with-module-suffix-.so.patch
0002-Readd-plugins-extras.patch
0003-Add-scripts-to-usr-libexec-mpg123.patch

Description Igor Gnatenko 2016-06-27 16:33:52 CEST
Created attachment 1578 [details]
[PATCH] Update to 1.23.4; fixes in packaging

patch attached
Comment 1 Hans de Goede 2016-06-28 12:37:42 CEST
Thanks for the patch.

1.23.x is quite a big change from 1.22.x, and likely also contains a few new bugs (as is shown by the recent 1.23.5 release) so it likely is better to let the dust settle first a bit.

Also I'm not 100% sure that 1.23.x is an ABI compatible drop in for 1.22.x, this is something which I will need to check.

Note I'll prepare an update to 1.23.x for at least rawhide eventually but this may take some time.
Comment 2 Sérgio Basto 2016-07-09 18:36:57 CEST
Just to mention that we also have DavidVa rpm spec for Fedora in UnitedRPMs :)

https://github.com/UnitedRPMs/mpg123/blob/master/mpg123.spec
Comment 3 Sérgio Basto 2016-07-21 05:24:08 CEST
in https://pkgs.rpmfusion.org/cgit/free/mpg123.git/ we got the patch mention here and update to 1.23.4 , should we build it for rawhide ? 
and for F24 ?
Comment 4 Sérgio Basto 2016-07-26 02:36:06 CEST
https://pkgs.rpmfusion.org/cgit/free/mpg123.git/commit/?id=2c1d777d9c3980dafb83ed8ba15dbc7615283486

with rename libmpg123 to mpg123-libs, mpg123 stopped provide libmpg123-devel , what should I do ? 
I think mpg123 should provide old package name , like I did in mpv [1],  
at least. I'm going commit it in rawhide soon ...

-%package -n libmpv
+%package libs
 Summary: Dynamic library for Mpv frontends 
+Provides: libmpv = %{version}-%{release}
+Obsoletes: libmpv < %{version}-%{release}


Packages that Buildrequires libmpg123-devel :  
dnf repoquery --arch=src --disablerepo='*'  --enablerepo='rpmfusion*source' --whatrequires libmpg123-devel --qf="%{name} %{version} %{release} %{repoid}"

gstreamer1-plugins-bad-freeworld
mplayer
openmw
qmmp-plugin-pack-freeworld
terminatorX

I was trying compile qmmp-plugin-pack-freeworld in rawhide .
After we should replace buildrequires in each package ? 
Thanks
Comment 5 Hans de Goede 2016-07-26 12:51:57 CEST
Hi,

I see that 1.23.6 already has been built for F25, thanks. As said since this is a big update I believe we should stay with 1.22.x for F24 for now.

Igor, do you want to take over rpmfusion mpg123 maintenance in general ?

There are still 2 issues wrt alternatives:

Now that we've stopped using alternatives we are leaving 3 dead symlinks behind in /etc/alternatives:

/etc/alternatives/mpg321_binlink
/etc/alternatives/mpg321_manlink
/etc/alternatives/mpg321_mp3cmdline

I suggest adding a %post which does "rm -f" on these.

While checking this I noticed that there also is a :

/etc/alternatives/mp3-cmdline

Which is put there by the rpmfusion madplay pkg and the mpg123 pkg used to provide a /usr/bin/mp3-cmdline alternative as well. So maybe we should start providing that again (see the madplay spec file to make sure we integrate properly), or drop the mp3-cmdline alternative from the madplay spec as well ?

Regards,

Hans
Comment 6 Igor Gnatenko 2016-07-26 13:02:24 CEST
(In reply to comment #5)
> Hi,
> 
> I see that 1.23.6 already has been built for F25, thanks. As said since this is
> a big update I believe we should stay with 1.22.x for F24 for now.
> 
> Igor, do you want to take over rpmfusion mpg123 maintenance in general ?
yes, but PkgDB didn't allow me to request ACLs at that time.
> 
> There are still 2 issues wrt alternatives:
> 
> Now that we've stopped using alternatives we are leaving 3 dead symlinks behind
> in /etc/alternatives:
> 
> /etc/alternatives/mpg321_binlink
> /etc/alternatives/mpg321_manlink
> /etc/alternatives/mpg321_mp3cmdline
> 
> I suggest adding a %post which does "rm -f" on these.
not sure if it's good idea to do...
> 
> While checking this I noticed that there also is a :
> 
> /etc/alternatives/mp3-cmdline
> 
> Which is put there by the rpmfusion madplay pkg and the mpg123 pkg used to
> provide a /usr/bin/mp3-cmdline alternative as well. So maybe we should start
> providing that again (see the madplay spec file to make sure we integrate
> properly), or drop the mp3-cmdline alternative from the madplay spec as well ?
I will check it.
> 
> Regards,
> 
> Hans
Comment 7 Hans de Goede 2016-07-26 13:06:16 CEST
(In reply to comment #6)
> (In reply to comment #5)
> > Now that we've stopped using alternatives we are leaving 3 dead symlinks behind
> > in /etc/alternatives:
> > 
> > /etc/alternatives/mpg321_binlink
> > /etc/alternatives/mpg321_manlink
> > /etc/alternatives/mpg321_mp3cmdline
> > 
> > I suggest adding a %post which does "rm -f" on these.
> not sure if it's good idea to do...

The package put those files there (by calling the alternatives command from %post) so now that we no longer do that and no longer use those files (/usr/bin/mpg123 used to be a symlink to /etc/alternatives/mpg321_binlink) we should remove them.
Comment 8 Sérgio Basto 2016-07-26 20:12:18 CEST
Hello ! 

I could build qmmp-plugin-pack-freeworld on rawhide without modification .

After we should replace buildrequires ( from libmpg123-devel to mpg123-libs-devel)  in each package ? I or should we wait one or two releases ? 

Third point, you may change owners like in https://bugzilla.rpmfusion.org/show_bug.cgi?id=4006
Comment 9 Sérgio Basto 2016-07-26 20:23:36 CEST
one better example to change / modify owner of one package : 
https://bugzilla.rpmfusion.org/show_bug.cgi?id=2608
Comment 10 Sérgio Basto 2016-08-04 04:19:39 CEST
Created attachment 1597 [details]
Readd plugins-extras and review

Patch for review , I don't know if you remove plugins-extras intentionally.

* Thu Aug 04 2016 Sérgio Basto <sergio@serjux.com> - 1.23.6-3
- Readd plugins-extras
- Add scripts to /usr/libexec/mpg123/
- configure with --with-module-suffix=.so 

I add my review based on DavidVa work https://github.com/UnitedRPMs/mpg123/blob/master/mpg123.spec , at the end, I just found that we miss plugins-extras sub-package ... And I add scripts dir, looks cool stuff.
Comment 11 Sérgio Basto 2016-08-09 19:21:06 CEST
(In reply to comment #10)
> Created attachment 1597 [details]

I will go commit this patch, in new few hour ok ? 

Summary of changes: 

- Readd plugins-extras
- Add contrib scripts to /usr/libexec/mpg123/
- configure with --with-module-suffix=.so
Comment 12 Igor Gnatenko 2016-08-09 19:22:24 CEST
(In reply to comment #11)
> (In reply to comment #10)
> > Created attachment 1597 [details]
> 
> I will go commit this patch, in new few hour ok ? 
> 
> Summary of changes: 
> 
> - Readd plugins-extras
> - Add contrib scripts to /usr/libexec/mpg123/
> - configure with --with-module-suffix=.so

I don't agree. Don't push yet
Comment 13 Sérgio Basto 2016-08-09 19:38:46 CEST
(In reply to comment #12)
> (In reply to comment #11)
> > (In reply to comment #10)
> > > Created attachment 1597 [details]
> > 
> > I will go commit this patch, in new few hour ok ? 
> > 
> > Summary of changes: 
> > 
> > - Readd plugins-extras
> > - Add contrib scripts to /usr/libexec/mpg123/
> > - configure with --with-module-suffix=.so
> 
> I don't agree. Don't push yet

what points you don't agree 1, 2 or 3 ?
Comment 14 Sérgio Basto 2016-08-10 00:00:31 CEST
Created attachment 1600 [details]
0001-configure-with-with-module-suffix-.so.patch
Comment 15 Sérgio Basto 2016-08-10 00:00:59 CEST
Created attachment 1601 [details]
0002-Readd-plugins-extras.patch
Comment 16 Sérgio Basto 2016-08-10 00:02:38 CEST
Created attachment 1602 [details]
0003-Add-scripts-to-usr-libexec-mpg123.patch

The 3 proposed modifications, which one you don't approve ? 

Thanks
Comment 17 Igor Gnatenko 2016-08-10 12:38:16 CEST
Comment on attachment 1600 [details]
0001-configure-with-with-module-suffix-.so.patch

* .so is already by default there.
* you dropped all external plugins here.

I'm not going to push this patch.
Comment 18 Igor Gnatenko 2016-08-10 12:39:59 CEST
Comment on attachment 1601 [details]
0002-Readd-plugins-extras.patch

Though I agree to enable OpenAL plugin (should be in different subpackage), others doesn't make sense.

SDL1 is deprecated, NAS is some shit from 80's.
Also looks like you copy-pasted things from old spec which doesn't have proper requirements and etc.

not going to accept in current state.
Comment 19 Igor Gnatenko 2016-08-10 12:40:21 CEST
Comment on attachment 1602 [details]
0003-Add-scripts-to-usr-libexec-mpg123.patch

Why would we do that?
Comment 20 Igor Gnatenko 2016-08-10 12:41:15 CEST
(In reply to comment #7)
> (In reply to comment #6)
> > (In reply to comment #5)
> > > Now that we've stopped using alternatives we are leaving 3 dead symlinks behind
> > > in /etc/alternatives:
> > > 
> > > /etc/alternatives/mpg321_binlink
> > > /etc/alternatives/mpg321_manlink
> > > /etc/alternatives/mpg321_mp3cmdline
> > > 
> > > I suggest adding a %post which does "rm -f" on these.
> > not sure if it's good idea to do...
> 
> The package put those files there (by calling the alternatives command from
> %post) so now that we no longer do that and no longer use those files
> (/usr/bin/mpg123 used to be a symlink to /etc/alternatives/mpg321_binlink) we
> should remove them.
argh yes, I will add it.
Comment 21 Sérgio Basto 2016-08-11 18:08:40 CEST
(In reply to comment #17)
> Comment on attachment 1600 [details]
> 0001-configure-with-with-module-suffix-.so.patch
> 
> * .so is already by default there.

no default is la IIRC 

> * you dropped all external plugins here.

IIRC they are enable by default , don't need add it in configure ...

> I'm not going to push this patch.
petty
Comment 22 Sérgio Basto 2016-08-11 18:12:53 CEST
(In reply to comment #19)
> Comment on attachment 1602 [details]
> 0003-Add-scripts-to-usr-libexec-mpg123.patch
> 
> Why would we do that?

cd mpg123-1.23.6/
ls scripts/
benchmark-cpu.pl  conplay  mpg123info  tag_lyrics.py

add these useful scripts to libexec
Comment 23 leigh scott 2017-06-27 13:28:09 CEST
Package is retired as it's been moved to fedora repo