You are not logged in.

#1 2012-06-15 04:07:32

gee
Member
Registered: 2006-11-29
Posts: 313

makepkg dependency issue related to cpanp

Hi,

I am using cpanp to install some perl dependencies, and have configured it to use pacman to install the modules.
I have some modules that fail to install.
After investigation it seems related to makepkg not finding the dependencies installed on my system.

Example:

makepkg --asroot -f
==> Making package: perl-moosex-types-datetime 0.07-1 (Thu Jun 14 21:03:33 PDT 2012)
==> Checking runtime dependencies...
==> Missing Dependencies:
  -> perl-datetime>=0.4302
  -> perl-datetime-locale>=0.4001
==> Checking buildtime dependencies...
==> ERROR: Could not resolve all dependencies.

pacman -Qi perl-datetime
Name           : perl-datetime
Version        : 0.75-1
URL            : http://search.cpan.org/dist/DateTime
Licenses       : PerlArtistic  GPL
Groups         : None
Provides       : None
Depends On     : perl>=5.8.1  perl-datetime-locale>=0.41  perl-datetime-timezone>=1.09  perl-math-round  perl-params-validate>=0.76
Optional Deps  : None
Required By    : perl-datetime-event-ical  perl-datetime-event-recurrence  perl-datetime-format-builder  perl-datetime-format-flexible
                 perl-datetime-format-http  perl-datetime-format-ical  perl-datetime-format-iso8601  perl-datetime-format-natural  perl-datetime-format-pg
                 perl-datetime-format-strptime  perl-datetime-format-w3cdtf  perl-datetime-set  perl-datetimex-easy  perl-html-formhandler
Conflicts With : None
Replaces       : None
Installed Size : 228.00 KiB
Packager       : Unknown Packager
Architecture   : any
Build Date     : Wed 13 Jun 2012 08:51:06 PM PDT
Install Date   : Wed 13 Jun 2012 08:51:07 PM PDT
Install Reason : Installed as a dependency for another package
Install Script : No
Description    : A complete, easy to use date and time object

I do not understand why makepkg cannot see that the dependency is installed...
My understanding is that it does not query only the packages installed from the repositories (if that was the case I could not build aur PKGBUILDs depending on each others). Is there anything wrong with the package installed? It was also installed through cpanp.


Thanks!

Offline

#2 2012-06-15 04:25:43

ewaller
Administrator
From: Pasadena, CA
Registered: 2009-07-13
Posts: 20,701

Re: makepkg dependency issue related to cpanp

makepkg does not resolve dependencies.  It just detects them.

You have to install perl-datetime and perl-datetime-locale first.  The good news is they can be installed by pacman as they are in community.

I am pleased that you are using makepkg.  Every Arch user should know how to use it.  Others may disagree with me, but this is where the use of a makepkg 'helper' is nice.  I like Packer myself.  It integrates nicely with pacman and handles dependencies for AUR stuff.



Edit:  Unless I misunderstood.  Are those packages installed and makepkg is missing them?
Edit2:  Yeah, I get it now.  What versions are installed?

Last edited by ewaller (2012-06-15 04:27:51)


Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
The shortest way to ruin a country is to give power to demagogues.— Dionysius of Halicarnassus
---
How to Ask Questions the Smart Way

Offline

#3 2012-06-15 04:42:01

gee
Member
Registered: 2006-11-29
Posts: 313

Re: makepkg dependency issue related to cpanp

Yes they are installed smile
And they have been installed by cpanp, which I am guessing is why makepkg is not seeing them.
Now why? no clue.

As for the versions they seem good, but I could be wrong.

pacman -Qi perl-datetime
Name           : perl-datetime
Version        : 0.75-1

pacman -Qi perl-datetime-locale
Name           : perl-datetime-locale
Version        : 0.45-2

Thanks!

Last edited by gee (2012-06-15 04:42:12)

Offline

#4 2012-06-15 05:32:41

progandy
Member
Registered: 2012-05-17
Posts: 5,321

Re: makepkg dependency issue related to cpanp

This could be an incompatibility in the version check: Version 0.4302 is required, while version 0.75 is available. If compared as decimal numbers 0.75 is greater than 0.4302. I suppose makepkg uses the default version compare: 0 >= 0, 75 >= 4302 ?. This produces an error.

Edit: Try to add a dot to the version in your PKGBUILD: 0.43.02 Maybe not the best solution but it should work

Last edited by progandy (2012-06-15 05:36:24)


| alias CUTF='LANG=en_XX.UTF-8@POSIX ' | alias ENGLISH='LANG=C.UTF-8 ' |

Offline

#5 2012-06-15 06:14:12

gee
Member
Registered: 2006-11-29
Posts: 313

Re: makepkg dependency issue related to cpanp

Good guess progandy, that worked!
What do you think is the issue the one at fault here?

Offline

Board footer

Powered by FluxBB