PacketFence - BTS - PacketFence
View Issue Details
0000931PacketFencepackagingpublic2010-03-16 12:132011-01-26 15:38
obilodeau 
obilodeau 
normalminoralways
closedfixed 
 
1.9.01.9.0 
cbc33d835adb167f3bb789f5b44e57a85b64211f
0000931: rpm package conflict between perl-gettext and perl-Locale-gettext
There 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.
No tags attached.
Issue History
2010-03-16 12:13obilodeauNew Issue
2010-03-16 12:13obilodeauStatusnew => assigned
2010-03-16 12:13obilodeauAssigned To => obilodeau
2010-03-16 12:13obilodeauSummaryperl-gettext vs perl-Locale-gettext => rpm package conflict between perl-gettext and perl-Locale-gettext
2010-03-16 13:06obilodeauNote Added: 0001497
2010-03-16 13:40obilodeauNote Added: 0001498
2010-03-16 13:40obilodeauReproducibilityhave not tried => always
2010-03-16 14:37obilodeauNote Added: 0001499
2010-03-16 17:33obilodeauNote Added: 0001500
2010-03-16 17:33obilodeauStatusassigned => resolved
2010-03-16 17:33obilodeauFixed in Version => 1.8.8
2010-03-16 17:33obilodeauResolutionopen => fixed
2010-03-16 17:33obilodeaumtn revision => cbc33d835adb167f3bb789f5b44e57a85b64211f
2010-04-29 13:38obilodeauFixed in Version1.8.8 => 1.9.0
2010-04-29 13:39obilodeauTarget Version1.8.8 => 1.9.0
2011-01-26 15:38obilodeauStatusresolved => closed

Notes
(0001497)
obilodeau   
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   
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   
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   
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.