Bug 4676 - Bugzilla is broken after the upgrade to bugzilla-4.2-1.mga2
Summary: Bugzilla is broken after the upgrade to bugzilla-4.2-1.mga2
Status: RESOLVED FIXED
Alias: None
Product: Mageia
Classification: Unclassified
Component: RPM Packages (show other bugs)
Version: Cauldron
Hardware: All Linux
Priority: High major
Target Milestone: Mageia 2
Assignee: Olav Vitters
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-02-24 14:53 CET by Frédéric "LpSolit" Buclin
Modified: 2012-02-25 17:34 CET (History)
1 user (show)

See Also:
Source RPM: bugzilla-4.2-1.mga2
CVE:
Status comment:


Attachments

Description Frédéric "LpSolit" Buclin 2012-02-24 14:53:37 CET
There are two severe problems with bugzilla-4.2-1.mga2 + one improvement available:

1) In Bugzilla/Constants.pm line 617, bz_locations() contains this line:

  $datadir = "$libpath/$datadir";

but $libpath is not defined at this point, because Mageia harcoded some paths and so removed the definition of $libpath. This line must simply go away; $datadir is already defined at the top of the method.

2) checksetup.pl doesn't load Bugzilla.pm and so the fake Bugzilla.pm located at /usr/lib/perl5/site_perl/5.14.2/Bugzilla.pm is not called. This prevents checksetup.pl from running. This is a regression as the previous 4.0.x RPM had this problem fixed. For checksetup.pl, you must manually fix

  use lib (. lib);

to also include /usr/share/bugzilla/lib.

3) There is an updated version of the fake Bugzilla.pm file available at https://bug679965.bugzilla.mozilla.org/attachment.cgi?id=599392 which is cleaner than the previous version (the one currently included in the RPM). Take care to fix BZ_LIB_DIR and make it point to BZ_ROOT_DIR; Mageia excluded install-module.pl from the RPM and so there is no additional lib/ directory.
Olav Vitters 2012-02-24 15:11:19 CET

Assignee: bugsquad => olav

Olav Vitters 2012-02-25 17:26:59 CET

Status: NEW => ASSIGNED

Olav Vitters 2012-02-25 17:27:09 CET

Hardware: i586 => All

Comment 1 Olav Vitters 2012-02-25 17:34:56 CET
I did make the checksetup.pl change, but didn't include it in the patch :(

Submitted bugzilla-4.2-2.mga2 will all 3 changes.

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


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