Koozali.org: home of the SME Server

dependency perl-DateTime

Offline dz00te

  • *
  • 6
  • +0/-0
dependency perl-DateTime
« on: September 11, 2009, 09:40:01 AM »
Hi,

about two weeks ago I started to have the following error when updating sme:

Resolving Dependencies
--> Populating transaction set with selected packages. Please wait.
---> Package perl-DateTime.i386 1:0.41-1.el4 set to be updated
--> Running transaction check
--> Processing Dependency: perl(DateTime) >= 0.1705 for package: perl-DateTime-Format-Mail
--> Finished Dependency Resolution
Error: Missing Dependency: perl(DateTime) >= 0.1705 is needed by package perl-DateTime-Format-Mail

but perl(DateTime) seems already installed:
rpm -qa | grep perl-DateTime
perl-DateTime-Format-Mail-0.3001-1.el4.rf
perl-DateTime-Locale-0.4001-1.el4.rf
perl-DateTime-Format-W3CDTF-0.04-1.el4.rf
perl-DateTime-TimeZone-0.8301-1.el4.rf
perl-DateTime-0.4305-1.el4.rf
 
any idea? tnx
z

Offline soprom

  • *
  • 589
  • +0/-0
    • www.logiciel-libre.org
Re: dependency perl-DateTime
« Reply #1 on: September 11, 2009, 02:39:16 PM »
See this:
http://groups.google.fr/group/alt.e-smith.fr/browse_thread/thread/e086a675d8c14203/1f6e9b6f77582560?show_docid=1f6e9b6f77582560

It says that a solution goes like this:
Code: [Select]
yum --enablerepo=smecontribs update --exclude=perl-DateTime

It also talks about dag's repo. So I tested this:
yum --enablerepo=dag update perl-DateTime

... but it was not needed in my case.

From what I understand, this is a problem with the repository.
« Last Edit: September 11, 2009, 02:41:01 PM by soprom »
Sophie from Montréal

Offline cactus

  • *
  • 4,880
  • +3/-0
    • http://www.snetram.nl
Re: dependency perl-DateTime
« Reply #2 on: September 11, 2009, 03:14:43 PM »
Error: Missing Dependency: perl(DateTime) >= 0.1705 is needed by package perl-DateTime-Format-Mail
the message is clear enough AFAICT. It seems perl-DateTime-Format-Mail requires a version of perl(DateTime) >= 0.1705 which seems unavailable in the repositories you have enabled. AFAIK this is not a package part of the SME Server base installation, so you need to find out what is requiring that package:
Code: [Select]
rpm -q perl-DateTime-Format-Mail
And if you can not work around it where to find it, for instance using http://rpm.pbone.net
Be careful whose advice you buy, but be patient with those who supply it. Advice is a form of nostalgia, dispensing it is a way of fishing the past from the disposal, wiping it off, painting over the ugly parts and recycling it for more than its worth ~ Baz Luhrmann - Everybody's Free (To Wear Sunscreen)

Offline Normando

  • *
  • 841
  • +2/-1
    • Unixlan
Re: dependency perl-DateTime
« Reply #3 on: September 13, 2009, 07:59:00 AM »
I have the same issue.

I run this command to see what require the package, but there are no packages.

Code: [Select]
rpm -q --whatrequires perl-DateTime-Format-Mail
When I run yum remove perl-DateTime-Format-Mail I get:

Quote
Removing:
 perl-DateTime-Format-Mail  noarch     0.3001-1.el4.rf  installed          46 k
Removing for dependencies:
 perl-Template-Toolkit   i386       2.14-10.el4.at   installed         3.1 M
 perl-XML-RSS            noarch     1.44-1.el4.rf    installed         172 k

So I suspect there is one software need for template-toolkit. Anyway I have performed the remove, and wait a few day what happens :)

Offline cactus

  • *
  • 4,880
  • +3/-0
    • http://www.snetram.nl
Re: dependency perl-DateTime
« Reply #4 on: September 13, 2009, 11:26:26 AM »
Code: [Select]
rpm -q --whatrequires perl-DateTime-Format-Mail
It could be that you need to run it like this:
Code: [Select]
rpm -q --whatrequires 'perl(DateTime::Format::Mail)'
« Last Edit: September 13, 2009, 11:28:02 AM by cactus »
Be careful whose advice you buy, but be patient with those who supply it. Advice is a form of nostalgia, dispensing it is a way of fishing the past from the disposal, wiping it off, painting over the ugly parts and recycling it for more than its worth ~ Baz Luhrmann - Everybody's Free (To Wear Sunscreen)

Offline bunkobugsy

  • *
  • 306
  • +4/-0
Re: dependency perl-DateTime
« Reply #5 on: September 13, 2009, 11:36:16 AM »
I think it rather is a versioning problem, it actually would be a downgrade:
> Marking perl-DateTime-0.41-1.el4.i386.rpm as an update to perl-DateTime - 0.4305-1.el4.rf.i386

but yum can't remove the never version (to be replaced by the older) because:
>perl(DateTime) >= 0.1705 is needed by package perl-DateTime-Format-Mail

Or am I wrong? Anyway I'm just going to ignore this for a while.

Offline cactus

  • *
  • 4,880
  • +3/-0
    • http://www.snetram.nl
Re: dependency perl-DateTime
« Reply #6 on: September 13, 2009, 11:41:57 AM »
but yum can't remove the never version (to be replaced by the older) because:
>perl(DateTime) >= 0.1705 is needed by package perl-DateTime-Format-Mail

Or am I wrong? Anyway I'm just going to ignore this for a while.
You can, but it might raise other problems as requirements are made like this for a reason:
Code: [Select]
rpm -e --nodeps package-nameMost likely one package really needs a functionality that was removed in a later version, where another package needs something the newer function implemented, therefore you have a race condition that would be hard to fix.
Be careful whose advice you buy, but be patient with those who supply it. Advice is a form of nostalgia, dispensing it is a way of fishing the past from the disposal, wiping it off, painting over the ugly parts and recycling it for more than its worth ~ Baz Luhrmann - Everybody's Free (To Wear Sunscreen)

Offline dz00te

  • *
  • 6
  • +0/-0
Re: dependency perl-DateTime
« Reply #7 on: September 20, 2009, 09:43:25 AM »
tnx for the answer i'v just uninstalled as Normando says with an
yum remove perl-DateTime-Format-Mail

and now today with a yum --enablerepo=smecontribs update:

Updating:
 perl-DateTime           i386       1:0.41-1.el4     smecontribs       589 k
 smeserver-mailsorting   noarch     1.2-35.el4.sme   smecontribs        49 k
 smeserver-remoteuseraccess  noarch     1.2-33.el4.sme   smecontribs        43 k
 smeserver-vacation      noarch     1.0-36.el4.sme   smecontribs        46 k

and now seems all ok...

z

Offline bloodshoteye

  • *****
  • 232
  • +0/-0
  • Grateful thanks to SME devs
Re: dependency perl-DateTime
« Reply #8 on: September 24, 2009, 09:16:44 PM »
normando,

Quote
So I suspect there is one software need for template-toolkit. Anyway I have performed the remove, and wait a few day what happens
so did anything happen?

I have exactly the same issue when I try to update contribs:
Quote
# rpm -q --whatrequires 'perl(DateTime::Format::Mail)'
perl-XML-RSS-1.32-1.el4.rf

I want to do the same removal as you, but always wonder at the consequences...
SME Server is a fantastic product - thank you!

Offline soprom

  • *
  • 589
  • +0/-0
    • www.logiciel-libre.org
Re: dependency perl-DateTime
« Reply #9 on: September 24, 2009, 09:59:03 PM »

In my case, it had a side effect on sql-ledger (which is in perl).
So you might be well advised to be causious...
Sophie from Montréal

Offline bloodshoteye

  • *****
  • 232
  • +0/-0
  • Grateful thanks to SME devs
Re: dependency perl-DateTime
« Reply #10 on: September 24, 2009, 10:19:31 PM »
soprom,
Quote
So you might be well advised to be causious...
mmm, but to find out which contrib needs this is beyond me. But I do know I need the updates to other contribs. Our Affa box will just update with no dependency issue, although not all our contribs are installed on it.

I'm tending to think like normando and dz00te on this one - just do a yum remove perl-DateTime-Format-Mail and see what happens - they have not reported any dire consequences (not that that means nothing happened...)
Rather gung-ho, and I usually wouldn't do this but life goes on, so here goes :-P

Edit: 17 packages successfully updated. I can also confirm perl-DateTime-Format-Mail downgraded to 1:0.41-1.el4 The server is back up. If something fails I'll report back here for the benefit of others.
« Last Edit: September 24, 2009, 10:49:55 PM by ardugh »
SME Server is a fantastic product - thank you!

Offline Normando

  • *
  • 841
  • +2/-1
    • Unixlan
Re: dependency perl-DateTime
« Reply #11 on: September 25, 2009, 01:47:29 AM »
normando,
so did anything happen?

I have exactly the same issue when I try to update contribs:
I want to do the same removal as you, but always wonder at the consequences...

No concecuences and all runing OK! Anyway, I was take a note about what packages I was uninstalled in case I will get an issue with SME.