Bug 17128 - perl-Plack should not depend on apache-mod_perl
Summary: perl-Plack should not depend on apache-mod_perl
Status: RESOLVED FIXED
Alias: None
Product: Mageia
Classification: Unclassified
Component: RPM Packages (show other bugs)
Version: 5
Hardware: i586 Linux
Priority: Normal normal
Target Milestone: ---
Assignee: QA Team
QA Contact:
URL:
Whiteboard: MGA5-64-OK MGA5-32-OK advisory
Keywords: validated_update
Depends on:
Blocks:
 
Reported: 2015-11-11 17:28 CET by Frédéric "LpSolit" Buclin
Modified: 2016-01-20 19:29 CET (History)
6 users (show)

See Also:
Source RPM:
CVE:
Status comment:


Attachments

Description Frédéric "LpSolit" Buclin 2015-11-11 17:28:59 CET
I patched Bugzilla upstream to work as a PSGI application. This means that I no longer need the heavy Apache server but can use the lighter and faster nginx server instead. But the problem is that Bugzilla depends on JSON::RPC which depends on Plack (nothing wrong so far) which depends on... mod_perl (huh?) which depends on Apache. This means that on Mageia 5, there is no way to run Bugzilla without having Apache installed too.

I know I can stop the Apache daemon, but that's not the problem. The point is that I shouldn't have to install the Apache and mod_perl RPM in order to run Bugzilla, especially because mod_perl is currently broken, see bug 16505.
Frédéric "LpSolit" Buclin 2015-11-11 17:29:50 CET

Summary: perl-Plack should not depend on perl-mod_perl => perl-Plack should not depend on apache-mod_perl

Comment 1 Samuel Verschelde 2015-11-16 11:22:51 CET
Assigning to maintainer.

CC: (none) => anaselli, mageia
Assignee: bugsquad => jquelin

Frédéric "LpSolit" Buclin 2016-01-16 13:54:15 CET

CC: (none) => shlomif

Comment 2 Shlomi Fish 2016-01-16 14:56:48 CET
This should be fixed in Cauldron in perl-Plack-1.3.900-2.mga6 . Does it warrant an update on Mageia 5?
Comment 3 Frédéric "LpSolit" Buclin 2016-01-16 15:52:31 CET
(In reply to Shlomi Fish from comment #2)
> This should be fixed in Cauldron in perl-Plack-1.3.900-2.mga6 . Does it
> warrant an update on Mageia 5?

This would be great. Once infra is upgraded to mga5, you will be able to upgrade Mageia Bugzilla to Bugzilla 5.x, and I think you don't want to be forced to install mod_perl despite you don't need it. And I would be able to do the same on my machine (as a Bugzilla developer, this would be nice ;)).
Comment 4 Shlomi Fish 2016-01-16 16:53:52 CET
(In reply to Frédéric Buclin from comment #3)
> (In reply to Shlomi Fish from comment #2)
> > This should be fixed in Cauldron in perl-Plack-1.3.900-2.mga6 . Does it
> > warrant an update on Mageia 5?
> 
> This would be great. Once infra is upgraded to mga5, you will be able to
> upgrade Mageia Bugzilla to Bugzilla 5.x, and I think you don't want to be
> forced to install mod_perl despite you don't need it. And I would be able to
> do the same on my machine (as a Bugzilla developer, this would be nice ;)).

An update of perl-Plack (%mkrel 3) was submitted to the mageia 5 updates_testing queue. Someone should test it now. Assigning to QA. The advisory follows:

Advisory:
========================

Updated perl-Plack package removes a dependency on apache-mod_perl (and ergo apache).

Frédéric Buclin discovered that perl-Plack had a hard dependency on apache-mod_perl and as a result apache, while it can be used without them.

References:
https://bugs.mageia.org/show_bug.cgi?id=17128
========================

Updated packages in {core,tainted}/updates_testing:
========================
perl-Plack-1.3.100-4.mga5.noarch.rpm
Source RPMs:
perl-Plack-1.3.100-4.mga5.src.rpm

Assignee: jquelin => qa-bugs

Comment 5 Len Lawrence 2016-01-19 22:55:03 CET
[lcl@belexeuli ~]$ sudo urpmi perl-Plack
To satisfy dependencies, the following packages are going to be installed:
  Package                        Version      Release       Arch    
(medium "Core Release (distrib1)")
  apache-mod_perl                2.0.7        17.20130221s> x86_64  
  perl-Apache-LogFormat-Compiler 0.320.0      3.mga5        noarch  
  perl-Apache-Test               1.380.0      6.mga5        noarch  
  perl-BSD-Resource              1.290.700    6.mga5        x86_64  
  perl-CGI-Compile               0.170.0      3.mga5        noarch  
  perl-CGI-Emulate-PSGI          0.200.0      5.mga5        noarch  
  perl-Class-Inspector           1.280.0      6.mga5        noarch  
  perl-Data-Flow                 1.20.0       5.mga5        noarch  
  perl-Devel-StackTrace-AsHTML   0.140.0      6.mga5        noarch  
  perl-FCGI                      0.770.0      4.mga5        x86_64  
  perl-File-ShareDir             1.102.0      4.mga5        noarch  
  perl-File-pushd                1.9.0        3.mga5        noarch  
  perl-HTTP-Body                 1.190.0      4.mga5        noarch  
  perl-Hash-MultiValue           0.150.0      5.mga5        noarch  
  perl-Linux-Pid                 0.40.0       8.mga5        x86_64  
  perl-POSIX-strftime-Compiler   0.400.0      3.mga5        noarch  
  perl-Plack                     1.3.100      3.mga5        noarch  
  perl-Stream-Buffered           0.30.0       3.mga5        noarch  
  perl-Test-SharedFork           0.280.0      4.mga5        noarch  
  perl-Test-TCP                  2.60.0       3.mga5        noarch  
  webserver-base                 2.0          8.mga5        x86_64  
(medium "Core Updates (distrib3)")
  apache                         2.4.10       16.3.mga5     x86_64  

[root@belexeuli lcl]# ecupdt
Enabling Core Updates Testing
[root@belexeuli lcl]# MageiaUpdate
[root@belexeuli lcl]# urpme apache-mod-perl
unknown package: apache-mod-perl
[root@belexeuli lcl]# urpme apache-mod_perl
To satisfy dependencies, the following 2 packages will be removed (3.6MB):
  apache-mod_perl-2.0.7-17.20130221svn1448245.mga5.x86_64
  perl-Plack-1.3.100-3.mga5.noarch
   (due to missing perl(APR::Table),
    due to missing perl(Apache2::Const),
    due to missing perl(Apache2::Log),
    due to missing perl(Apache2::RequestIO),
    due to missing perl(Apache2::RequestRec),
    due to missing perl(Apache2::RequestUtil),
    due to missing perl(Apache2::Response))
Remove 2 packages? (y/N) y
removing apache-mod_perl-2.0.7-17.20130221svn1448245.mga5.x86_64 perl-Plack-1.3.100-3.mga5.noarch
removing package perl-Plack-1.3.100-3.mga5.noarch
      1/2: removing perl-Plack-1.3.100-3.mga5.noarch
                                 #############################################
removing package apache-mod_perl-1:2.0.7-17.20130221svn1448245.mga5.x86_64
      2/2: removing apache-mod_perl-1:2.0.7-17.20130221svn1448245.mga5.x86_64
                                 #############################################
[root@belexeuli lcl]# urpmi perl-Plack
To satisfy dependencies, the following packages are going to be installed:
  Package                        Version      Release       Arch    
(medium "Core Release (distrib1)")
  perl-Filesys-Notify-Simple     0.120.0      6.mga5        noarch  
(medium "Core Updates Testing (distrib5)")
  perl-Plack                     1.3.100      4.mga5        noarch  
668KB of additional disk space will be used.
301KB of packages will be retrieved.

Clean install.
The dependency on apache-mod_perl has gone.
As it is noarch is there a need to test this on i586 architecture?

CC: (none) => tarazed25

Len Lawrence 2016-01-19 22:55:24 CET

Whiteboard: (none) => MGA-64-OK

Comment 6 Len Lawrence 2016-01-19 23:03:38 CET
Comment #5 refers to testing on real hardware, x86_64.  Performed the same actions on an i586 virtual machine and confirmed that the update does not depend on apache-mod_perl.
Len Lawrence 2016-01-19 23:04:16 CET

Whiteboard: MGA-64-OK => MGA5-64-OK MGA5-32-OK

Len Lawrence 2016-01-19 23:04:35 CET

Keywords: (none) => validated_update
CC: (none) => sysadmin-bugs

Dave Hodgins 2016-01-19 23:50:13 CET

CC: (none) => davidwhodgins
Whiteboard: MGA5-64-OK MGA5-32-OK => MGA5-64-OK MGA5-32-OK advisory

Comment 7 Frédéric "LpSolit" Buclin 2016-01-20 02:26:54 CET
It looks like the problem has been moved elsewhere. If I try to uninstall apache-mod_perl, it still complains that I must also remove perl-JSON-RPC-1.60.0-1.mga6.noarch. So unless I miss something, the JSON::RPC -> Plack -> mod_perl dependency chain is now JSON::RPC -> mod_perl, which is not an improvement to install Bugzilla 5.1.
Comment 8 Mageia Robot 2016-01-20 18:54:14 CET
An update for this issue has been pushed to Mageia Updates repository.

http://advisories.mageia.org/MGAA-2016-0011.html

Status: NEW => RESOLVED
Resolution: (none) => FIXED

Comment 9 Shlomi Fish 2016-01-20 19:29:02 CET
(In reply to Frédéric Buclin from comment #7)
> It looks like the problem has been moved elsewhere. If I try to uninstall
> apache-mod_perl, it still complains that I must also remove
> perl-JSON-RPC-1.60.0-1.mga6.noarch. So unless I miss something, the
> JSON::RPC -> Plack -> mod_perl dependency chain is now JSON::RPC ->
> mod_perl, which is not an improvement to install Bugzilla 5.1.

Please file a new bug, and I can try handling it there as well.

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