Opened 10 years ago

Closed 10 years ago

#42548 closed defect (fixed)

libgnome-keyring appears to depend on perl XML parser

Reported by: mcohen@… Owned by: dbevans (David B. Evans)
Priority: Normal Milestone:
Component: ports Version: 2.2.1
Keywords: Cc:
Port: libgnome-keyring

Description

I tried to do a port install of libgnome-keyring, and it halted with an error during configuration. Checking the log, I found this:

:info:configure checking for perl >= 5.8.1... 5.12.4
:info:configure checking for XML::Parser... configure: error: XML::Parser perl module is required for intltool

I did a port install p5-libxml-perl and then was able to successfully install ibgnome-keyring, so this appears to just be an undocumented dependency.

Change History (2)

comment:1 Changed 10 years ago by mf2k (Frank Schima)

Owner: changed from macports-tickets@… to devans@…

In the future, please Cc the port maintainers (port info --maintainers libgnome-keyring}).

comment:2 Changed 10 years ago by dbevans (David B. Evans)

Resolution: fixed
Status: newclosed

Actually this has to do with port intltool and perl configuration. intltool requires XML::Parser and installs a particular version based on which of its variants was asserted.

$ port info --variants intltool
variants: perl5_8, perl5_10, perl5_12, perl5_14, perl5_16, perl5_18

The recently changed default variant is now +perl5_16 instead of +perl5_12.

Same goes for perl5 itself.

In this case, it appears that you have perl5 +perl5_12 installed.

At any rate, the configuration item that you see is due to autoconf macro intltool.m4 provided by intltool. In MacPorts this has been patched to eliminate the perl check so that intltool will use whichever perl it was installed with, not neccessarily the one you have installed with perl5. Here the port needs to be reconfigured to use our version of intltool.m4 rather than the one the upstream developers used to generate configure originally.

Fixed in r117187.

You might want to look at which versions you have installed.

In my case

$ port installed intltool perl5* *-xml-parser
  intltool @0.50.2_2+perl5_16 (active)
  p5.16-xml-parser @2.400.0_4 (active)
  perl5 @5.12.4_0+perl5_16 (active)
  perl5.16 @5.16.1_3 (active)
Note: See TracTickets for help on using tickets.