PacketFence
Bug Tracking System

View Issue Details Jump to Notes ] Issue History ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0000931PacketFencepackagingpublic2010-03-16 12:132011-01-26 15:38
Reporterobilodeau 
Assigned Toobilodeau 
PrioritynormalSeverityminorReproducibilityalways
StatusclosedResolutionfixed 
PlatformOSOS Version
Product Version 
Target Version1.9.0Fixed in Version1.9.0 
Summary0000931: rpm package conflict between perl-gettext and perl-Locale-gettext
DescriptionThere seems to be a file conflict with these packages as reported by users.

I'll need to investigate a bit to nail the problem.

We might need to depend on perl-gettext instead of perl-Locale-gettext like we do right now.
TagsNo tags attached.
fixed in git revision
fixed in mtn revisioncbc33d835adb167f3bb789f5b44e57a85b64211f
Attached Files

- Relationships

-  Notes
(0001497)
obilodeau (reporter)
2010-03-16 13:06

I think I know what happened and I'll be able to reproduce:

Both perl-gettext and perl-Locale-gettext provide the same files. Before 1.8.4 we were using perl(Locale-gettext) in rpm dependencies and we changed to perl-Locale-gettext but maybe it resolved to perl-gettext.

Introduced when the package were renamed from a symbolic perl(...) to their perl-... package names counterparts. mtn rev: 0dc9c2f06792c00d279ac2af28b9abd46daa959a
(0001498)
obilodeau (reporter)
2010-03-16 13:40

Installed 1.8.4-1

[root@localhost ~]# rpm -q --whatprovides 'perl(Locale::gettext)'
perl-gettext-1.05-1.el5.rf

attempted upgrade

first workaround bug with perl-Parse-RecDescent (filed elsewhere)
rpm -e --nodeps perl-Parse-RecDescent

yum update packetfence
...
Transaction Check Error:
  file /usr/lib/perl5/vendor_perl/5.8.8/i386-linux-thread-multi/auto/Locale/gettext/gettext.so from install of perl-Locale-gettext-1.05-1.el5.rf.i386 conflicts with file from package perl-gettext-1.05-1.el5.rf.i386
(0001499)
obilodeau (reporter)
2010-03-16 14:37

built a 1.8.7-2 package here's the diff on the rpm spec file:
#
# old_revision [6ce1a531d32881274fb2a124b5e8d546aa78ded1]
#
# patch "pf/packetfence.spec"
#  from [2687bb95c03c413c538cdd8358cbbb5b668ac711]
#    to [0c5b7476280bea9fb88a1365af0129b5bc705a1c]
#
============================================================
--- pf/packetfence.spec 2687bb95c03c413c538cdd8358cbbb5b668ac711
+++ pf/packetfence.spec 0c5b7476280bea9fb88a1365af0129b5bc705a1c
@@ -37,7 +37,7 @@ Version: 1.8.7
 Name: packetfence
 Version: 1.8.7
 # Update here on each release/snapshot
-%define source_release 1
+%define source_release 2
 Release: %{source_release}%{?dist}
 License: GPL
 Group: System Environment/Daemons
@@ -83,7 +83,7 @@ Requires: perl-List-MoreUtils
 Requires: perl-LDAP
 Requires: perl-libwww-perl
 Requires: perl-List-MoreUtils
-Requires: perl-Locale-gettext
+Requires: perl(Locale-gettext)
 Requires: perl-Log-Log4perl >= 1.11
 Requires: perl-Net-Appliance-Session
 Requires: perl-Net-Frame, perl-Net-Frame-Simple
@@ -483,6 +483,11 @@ fi
 %attr(0755, root, root) %{_initrddir}/pfdetectd
 
 %changelog
+* Tue Mar 16 2010 Olivier Bilodeau <obilodeau@inverse.ca> - 1.8.7-2
+- Fix upgrade bug from 1.8.4: Changed perl-Locale-gettext dependency to use the
+  perl namespace version perl(Locale-gettext). Fixes 0000931;
+  http://www.packetfence.org/mantis/view.php?id=931 [^]
+
 * Tue Jan 05 2010 Olivier Bilodeau <obilodeau@inverse.ca> - 1.8.7-1
 - Version bump to 1.8.7
(0001500)
obilodeau (reporter)
2010-03-16 17:33

Oops, needed perl(Locale::gettext) instead of perl(Locale-gettext)

Tested package:
- upgrade from 1.8.4 worked (for those who'll just fly by from pre 1.8.5 to 1.8.7-2 or later)
- upgrade from a 1.8.5 to 1.8.7-2 worked (for those who fresh-installed in 1.8.5-1.8.7 and upgrade)

Pushed 1.8.7-2 to our yum repo.
Uploaded packages to sourceforge and updated our website.

Pushed in mtn.

- Issue History
Date Modified Username Field Change
2010-03-16 12:13 obilodeau New Issue
2010-03-16 12:13 obilodeau Status new => assigned
2010-03-16 12:13 obilodeau Assigned To => obilodeau
2010-03-16 12:13 obilodeau Summary perl-gettext vs perl-Locale-gettext => rpm package conflict between perl-gettext and perl-Locale-gettext
2010-03-16 13:06 obilodeau Note Added: 0001497
2010-03-16 13:40 obilodeau Note Added: 0001498
2010-03-16 13:40 obilodeau Reproducibility have not tried => always
2010-03-16 14:37 obilodeau Note Added: 0001499
2010-03-16 17:33 obilodeau Note Added: 0001500
2010-03-16 17:33 obilodeau Status assigned => resolved
2010-03-16 17:33 obilodeau Fixed in Version => 1.8.8
2010-03-16 17:33 obilodeau Resolution open => fixed
2010-03-16 17:33 obilodeau mtn revision => cbc33d835adb167f3bb789f5b44e57a85b64211f
2010-04-29 13:38 obilodeau Fixed in Version 1.8.8 => 1.9.0
2010-04-29 13:39 obilodeau Target Version 1.8.8 => 1.9.0
2011-01-26 15:38 obilodeau Status resolved => closed


Copyright © 2000 - 2012 MantisBT Group
Powered by Mantis Bugtracker