Opened 13 years ago

Closed 13 years ago

#31209 closed defect (invalid)

policykit @0.102 +docs fails to upgrade from @0.101

Reported by: ferdy (Giuseppe `ferdy` Miceli) Owned by: dbevans (David B. Evans)
Priority: Normal Milestone:
Component: ports Version: 2.0.3
Keywords: Cc:
Port: policykit

Description

policykit fails to upgrade, buid logs:

giotto:~ root# port -vnR upgrade policykit
--->  Computing dependencies for policykit.
--->  Configuring policykit
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
<omissis>
checking for perl... /opt/local/bin/perl
checking for perl >= 5.8.1... 5.12.3
checking for XML::Parser... configure: error: XML::Parser perl module is required for intltool

my system:

giotto:~ root# port version
Version: 2.0.3
giotto:~ root# uname -a
Darwin giotto.feryd.lan 10.8.0 Darwin Kernel Version 10.8.0: Tue Jun  7 16:32:41 PDT 2011; root:xnu-1504.15.3~1/RELEASE_X86_64 x86_64 i386 MacBookPro8,1 Darwin

Xcode Version 3.2.6 (1761)

Attachments (3)

main.log (13.2 KB) - added by ferdy (Giuseppe `ferdy` Miceli) 13 years ago.
main.log after port -vnR upgrade policykit
config.log (55.3 KB) - added by ferdy (Giuseppe `ferdy` Miceli) 13 years ago.
config.log right after failure
main.2.log (284.8 KB) - added by ferdy (Giuseppe `ferdy` Miceli) 13 years ago.
main.log right after build fail

Download all attachments as: .zip

Change History (19)

comment:1 Changed 13 years ago by ferdy (Giuseppe `ferdy` Miceli)

Cc: ferdy@… added

Cc Me!

comment:2 Changed 13 years ago by ryandesign (Ryan Carsten Schmidt)

Cc: devans@… ferdy@… removed
Owner: changed from macports-tickets@… to devans@…
Type: updatedefect

comment:3 Changed 13 years ago by dbevans (David B. Evans)

Status: newassigned

XML::Parser is provided by port p5-xml-parser, a dependency of intltool which is in turn declared as a build dependency of policykit. It should be installed.

Please make sure that it is and install if necessary.

If you have further problems please attach the full build log.

Changed 13 years ago by ferdy (Giuseppe `ferdy` Miceli)

Attachment: main.log added

main.log after port -vnR upgrade policykit

comment:4 Changed 13 years ago by ferdy (Giuseppe `ferdy` Miceli)

thanks for your reply. i installed by hand p5.12-xml

giotto:~ root# port installed | grep xml | grep p5
  p5-xml-namespacesupport @1.11_2
  p5-xml-parser @2.40_1
  p5-xml-parser @2.400.0_2 (active)
  p5-xml-sax @0.96_2
  p5-xml-sax-expat @0.40_2
  p5.12-xml-namespacesupport @1.110.0_3 (active)
  p5.12-xml-parser @2.400.0_2 (active)
  p5.12-xml-sax @0.960.0_3 (active)
  p5.12-xml-sax-expat @0.400.0_3 (active)
giotto:~ root#

but unfortunately i got the same build failure (please find the attached log file).

(yet i still miss to understand why port -nR does not force the installation of the dependencies)

tia, -- ferdy

comment:5 Changed 13 years ago by dbevans (David B. Evans)

Try just using

sudo port upgrade policykit

port option -n suppresses updating of recursive dependents and option -R updates only the immediate dependencies of the port, not their dependencies. Not sure what the combination does.

comment:6 Changed 13 years ago by dbevans (David B. Evans)

I misspoke above. Instead of dependents, I meant dependencies. -n updates the port without updating any dependencies at all.

comment:7 Changed 13 years ago by dbevans (David B. Evans)

Something is not right with your installation.

If I execute the same command that you did, I only get the p5.12 versions of the perl ports not the old names. So it says you have two different version installed p5-xml-parser and p5.12-xml-parser and both are active. You might want to uninstall the extraneous ones.

devans% port installed | grep xml | grep p5
  p5.12-gtk2-gladexml @1.7.0_3 (active)
  p5.12-xml-namespacesupport @1.110.0_3 (active)
  p5.12-xml-parser @2.400.0_2+universal (active)
  p5.12-xml-sax @0.960.0_3 (active)
  p5.12-xml-sax-expat @0.400.0_3 (active)
  p5.12-xml-twig @3.320.0_2 (active)

Also note that the following command does the same thing

port installed p5\*xml\*

comment:8 Changed 13 years ago by ferdy (Giuseppe `ferdy` Miceli)

i misspoke above as well: it's port -vR upgrade policykit the command i issued, not port -nR .... :(

i also tried using sudo without luck (even tho' i use to run port from root).

cheers, -- ferdy

comment:9 Changed 13 years ago by ferdy (Giuseppe `ferdy` Miceli)

giotto:~ root# port installed p5\*xml\*
The following ports are currently installed:
  p5-xml-namespacesupport @1.11_2
  p5-xml-parser @2.40_1
  p5-xml-parser @2.400.0_2 (active)
  p5-xml-sax @0.96_2
  p5-xml-sax-expat @0.40_2
  p5.12-xml-namespacesupport @1.110.0_3 (active)
  p5.12-xml-parser @2.400.0_2 (active)
  p5.12-xml-sax @0.960.0_3 (active)
  p5.12-xml-sax-expat @0.400.0_3 (active)
giotto:~ root# port -vf uninstall p5-xml-parser @2.40_1 
Error: Target org.macports.uninstall returned: Registry error: p5-xml-parser @2.400.0_1 not registered as installed
Warning: the following items did not execute (for p5-xml-parser): org.macports.uninstall
Log for p5-xml-parser is at: /opt/local/var/macports/logs/_opt_local_var_macports_registry_portfiles_p5-xml-parser_2.40_1/p5-xml-parser/main.log
Warning: Failed to execute portfile from registry for p5-xml-parser @2.40_1
--->  Uninstalling p5-xml-parser @2.40_1
giotto:~ root# port clean p5-xml-parser @2.40_1
--->  Cleaning p5-xml-parser
giotto:~ root# port -vf uninstall p5-xml-parser @2.400.0_2 
--->  Unable to uninstall p5-xml-parser @2.400.0_2, the following ports depend on it:
--->  	p5-xml-sax-expat @0.40_2
Warning: Uninstall forced.  Proceeding despite dependencies.
--->  Deactivating p5-xml-parser @2.400.0_2
--->  Cleaning p5-xml-parser
--->  Removing work directory for p5-xml-parser
--->  Uninstalling p5-xml-parser @2.400.0_2
--->  Cleaning p5-xml-parser
--->  Removing work directory for p5-xml-parser
giotto:~ root# port -vf uninstall p5.12-xml-parser         
--->  Unable to uninstall p5.12-xml-parser @2.400.0_2, the following ports depend on it:
--->  	docbook2X @0.8.8_3
--->  	intltool @0.40.6_1
--->  	p5.12-xml-sax-expat @0.400.0_3
Warning: Uninstall forced.  Proceeding despite dependencies.
--->  Deactivating p5.12-xml-parser @2.400.0_2
--->  Unable to deactivate p5.12-xml-parser @2.400.0_2, the following ports depend on it:
--->  	docbook2X @0.8.8_3
--->  	intltool @0.40.6_1
--->  	p5.12-xml-sax-expat @0.400.0_3
Warning: Deactivate forced.  Proceeding despite dependencies.
--->  Cleaning p5.12-xml-parser
--->  Removing work directory for p5.12-xml-parser
--->  Uninstalling p5.12-xml-parser @2.400.0_2
--->  Cleaning p5.12-xml-parser
--->  Removing work directory for p5.12-xml-parser
giotto:~ root# port -v install p5.12-xml-parser
--->  Computing dependencies for p5.12-xml-parser.
--->  Fetching archive for p5.12-xml-parser
--->  p5.12-xml-parser-2.400.0_2.darwin_10.x86_64.tbz2 doesn't seem to exist in /opt/local/var/macports/software/p5.12-xml-parser
--->  Attempting to fetch p5.12-xml-parser-2.400.0_2.darwin_10.x86_64.tbz2 from http://packages.macports.org/p5.12-xml-parser
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100  186k  100  186k    0     0  64914      0  0:00:02  0:00:02 --:--:-- 71194
--->  Attempting to fetch p5.12-xml-parser-2.400.0_2.darwin_10.x86_64.tbz2.rmd160 from http://packages.macports.org/p5.12-xml-parser
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
102   512  102   512    0     0    949      0 --:--:-- --:--:-- --:--:--  2015
--->  Installing p5.12-xml-parser @2.400.0_2
--->  Activating p5.12-xml-parser @2.400.0_2
x ./
x ./+COMMENT
x ./+CONTENTS
x ./+DESC
x ./+PORTFILE
x ./+STATE
x ./opt/
x ./opt/local/
x ./opt/local/lib/
x ./opt/local/share/
x ./opt/local/share/man/
x ./opt/local/share/man/man3/
x ./opt/local/share/man/man3/XML::Parser.3pm.gz
x ./opt/local/share/man/man3/XML::Parser::Expat.3pm.gz
x ./opt/local/share/man/man3/XML::Parser::Style::Debug.3pm.gz
x ./opt/local/share/man/man3/XML::Parser::Style::Objects.3pm.gz
x ./opt/local/share/man/man3/XML::Parser::Style::Stream.3pm.gz
x ./opt/local/share/man/man3/XML::Parser::Style::Subs.3pm.gz
x ./opt/local/share/man/man3/XML::Parser::Style::Tree.3pm.gz
x ./opt/local/lib/perl5/
x ./opt/local/lib/perl5/vendor_perl/
x ./opt/local/lib/perl5/vendor_perl/5.12.3/
x ./opt/local/lib/perl5/vendor_perl/5.12.3/darwin-multi-2level/
x ./opt/local/lib/perl5/vendor_perl/5.12.3/darwin-multi-2level/XML/
x ./opt/local/lib/perl5/vendor_perl/5.12.3/darwin-multi-2level/auto/
x ./opt/local/lib/perl5/vendor_perl/5.12.3/darwin-multi-2level/auto/XML/
x ./opt/local/lib/perl5/vendor_perl/5.12.3/darwin-multi-2level/auto/XML/Parser/
x ./opt/local/lib/perl5/vendor_perl/5.12.3/darwin-multi-2level/auto/XML/Parser/.packlist
x ./opt/local/lib/perl5/vendor_perl/5.12.3/darwin-multi-2level/auto/XML/Parser/Expat/
x ./opt/local/lib/perl5/vendor_perl/5.12.3/darwin-multi-2level/auto/XML/Parser/Expat/Expat.bs
x ./opt/local/lib/perl5/vendor_perl/5.12.3/darwin-multi-2level/auto/XML/Parser/Expat/Expat.bundle
x ./opt/local/lib/perl5/vendor_perl/5.12.3/darwin-multi-2level/XML/Parser/
x ./opt/local/lib/perl5/vendor_perl/5.12.3/darwin-multi-2level/XML/Parser.pm
x ./opt/local/lib/perl5/vendor_perl/5.12.3/darwin-multi-2level/XML/Parser/Encodings/
x ./opt/local/lib/perl5/vendor_perl/5.12.3/darwin-multi-2level/XML/Parser/Expat.pm
x ./opt/local/lib/perl5/vendor_perl/5.12.3/darwin-multi-2level/XML/Parser/LWPExternEnt.pl
x ./opt/local/lib/perl5/vendor_perl/5.12.3/darwin-multi-2level/XML/Parser/Style/
x ./opt/local/lib/perl5/vendor_perl/5.12.3/darwin-multi-2level/XML/Parser/Style/Debug.pm
x ./opt/local/lib/perl5/vendor_perl/5.12.3/darwin-multi-2level/XML/Parser/Style/Objects.pm
x ./opt/local/lib/perl5/vendor_perl/5.12.3/darwin-multi-2level/XML/Parser/Style/Stream.pm
x ./opt/local/lib/perl5/vendor_perl/5.12.3/darwin-multi-2level/XML/Parser/Style/Subs.pm
x ./opt/local/lib/perl5/vendor_perl/5.12.3/darwin-multi-2level/XML/Parser/Style/Tree.pm
x ./opt/local/lib/perl5/vendor_perl/5.12.3/darwin-multi-2level/XML/Parser/Encodings/Japanese_Encodings.msg
x ./opt/local/lib/perl5/vendor_perl/5.12.3/darwin-multi-2level/XML/Parser/Encodings/README
x ./opt/local/lib/perl5/vendor_perl/5.12.3/darwin-multi-2level/XML/Parser/Encodings/big5.enc
x ./opt/local/lib/perl5/vendor_perl/5.12.3/darwin-multi-2level/XML/Parser/Encodings/euc-kr.enc
x ./opt/local/lib/perl5/vendor_perl/5.12.3/darwin-multi-2level/XML/Parser/Encodings/ibm866.enc
x ./opt/local/lib/perl5/vendor_perl/5.12.3/darwin-multi-2level/XML/Parser/Encodings/iso-8859-2.enc
x ./opt/local/lib/perl5/vendor_perl/5.12.3/darwin-multi-2level/XML/Parser/Encodings/iso-8859-3.enc
x ./opt/local/lib/perl5/vendor_perl/5.12.3/darwin-multi-2level/XML/Parser/Encodings/iso-8859-4.enc
x ./opt/local/lib/perl5/vendor_perl/5.12.3/darwin-multi-2level/XML/Parser/Encodings/iso-8859-5.enc
x ./opt/local/lib/perl5/vendor_perl/5.12.3/darwin-multi-2level/XML/Parser/Encodings/iso-8859-7.enc
x ./opt/local/lib/perl5/vendor_perl/5.12.3/darwin-multi-2level/XML/Parser/Encodings/iso-8859-8.enc
x ./opt/local/lib/perl5/vendor_perl/5.12.3/darwin-multi-2level/XML/Parser/Encodings/iso-8859-9.enc
x ./opt/local/lib/perl5/vendor_perl/5.12.3/darwin-multi-2level/XML/Parser/Encodings/koi8-r.enc
x ./opt/local/lib/perl5/vendor_perl/5.12.3/darwin-multi-2level/XML/Parser/Encodings/windows-1250.enc
x ./opt/local/lib/perl5/vendor_perl/5.12.3/darwin-multi-2level/XML/Parser/Encodings/windows-1251.enc
x ./opt/local/lib/perl5/vendor_perl/5.12.3/darwin-multi-2level/XML/Parser/Encodings/windows-1252.enc
x ./opt/local/lib/perl5/vendor_perl/5.12.3/darwin-multi-2level/XML/Parser/Encodings/windows-1255.enc
x ./opt/local/lib/perl5/vendor_perl/5.12.3/darwin-multi-2level/XML/Parser/Encodings/x-euc-jp-jisx0221.enc
x ./opt/local/lib/perl5/vendor_perl/5.12.3/darwin-multi-2level/XML/Parser/Encodings/x-euc-jp-unicode.enc
x ./opt/local/lib/perl5/vendor_perl/5.12.3/darwin-multi-2level/XML/Parser/Encodings/x-sjis-cp932.enc
x ./opt/local/lib/perl5/vendor_perl/5.12.3/darwin-multi-2level/XML/Parser/Encodings/x-sjis-jdk117.enc
x ./opt/local/lib/perl5/vendor_perl/5.12.3/darwin-multi-2level/XML/Parser/Encodings/x-sjis-jisx0221.enc
x ./opt/local/lib/perl5/vendor_perl/5.12.3/darwin-multi-2level/XML/Parser/Encodings/x-sjis-unicode.enc
--->  Cleaning p5.12-xml-parser
--->  Removing work directory for p5.12-xml-parser
giotto:~ root# port installed p5\*xml\*
The following ports are currently installed:
  p5-xml-namespacesupport @1.11_2
  p5-xml-sax @0.96_2
  p5-xml-sax-expat @0.40_2
  p5.12-xml-namespacesupport @1.110.0_3 (active)
  p5.12-xml-parser @2.400.0_2 (active)
  p5.12-xml-sax @0.960.0_3 (active)
  p5.12-xml-sax-expat @0.400.0_3 (active)

which should be ok, but i still get the same error trying to upgrade policykit

giotto:~ root# port -vR upgrade policykit 
--->  Computing dependencies for policykit.
--->  Configuring policykit
checking for a BSD-compatible install... /usr/bin/install -c
<omissis>
checking for perl >= 5.8.1... 5.12.3
checking for XML::Parser... configure: error: XML::Parser perl module is required for intltool
shell command " cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_security_policykit/policykit/work/polkit-0.102" && ./configure --prefix=/opt/local --with-authfw=pam --with-pam-prefix=/etc/pam.d --with-pam-module-dir=/usr/lib/pam --disable-introspection --disable-silent-rules --enable-man-pages " returned error 2
Error: Target org.macports.configure returned: configure failure: shell command failed (see log for details)
Warning: the following items did not execute (for policykit): org.macports.install org.macports.configure org.macports.build org.macports.destroot
Log for policykit is at: /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_ports_security_policykit/policykit/main.log
Error: Unable to upgrade port: 1
To report a bug, see <http://guide.macports.org/#project.tickets>
giotto:~ root# 

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

Again if you use the -R option for port upgrade then only the immediate dependencies will be checked (i.e. not p5-xml-parser).

Assuming that there really is a registry problem, try this:

sudo port selfupdate
sudo port -f uninstall policykit
sudo port -f uninstall intltool
sudo port -f uninstall p5-xml-parser
sudo port install policykit

Hopefully this will clean things up for you.

comment:11 Changed 13 years ago by ferdy (Giuseppe `ferdy` Miceli)

apologies for the misunderstanding, i am quite new to macports and not much acquainted with options/features/etc. etc.

just tried to clean up the way you suggested, but still no luck.

giotto:~ root#  sudo port selfupdate
--->  Updating MacPorts base sources using rsync
MacPorts base version 2.0.3 installed,
MacPorts base version 2.0.3 downloaded.
--->  Updating the ports tree
--->  MacPorts base is already the latest version

The ports tree has been updated. To upgrade your installed ports, you should run
  port upgrade outdated
giotto:~ root#  sudo port -f uninstall policykit
--->  Unable to uninstall policykit @0.101_0+docs, the following ports depend on it:
--->  	gconf @2.28.1_2
Warning: Uninstall forced.  Proceeding despite dependencies.
--->  Deactivating policykit @0.101_0+docs
--->  Unable to deactivate policykit @0.101_0+docs, the following ports depend on it:
--->  	gconf @2.28.1_2
Warning: Deactivate forced.  Proceeding despite dependencies.
--->  Cleaning policykit
--->  Uninstalling policykit @0.101_0+docs
--->  Cleaning policykit
giotto:~ root#  sudo port -f uninstall intltool
--->  Deactivating intltool @0.40.6_1
--->  Cleaning intltool
--->  Uninstalling intltool @0.40.6_1
--->  Cleaning intltool
giotto:~ root#  sudo port -f uninstall p5-xml-parser
giotto:~ root#  sudo port install policykit
--->  Computing dependencies for policykit
--->  Dependencies to be installed: intltool
--->  Fetching archive for intltool
--->  Attempting to fetch intltool-0.40.6_1.darwin_10.noarch.tbz2 from http://packages.macports.org/intltool
--->  Attempting to fetch intltool-0.40.6_1.darwin_10.noarch.tbz2.rmd160 from http://packages.macports.org/intltool
--->  Installing intltool @0.40.6_1
--->  Activating intltool @0.40.6_1
--->  Cleaning intltool
--->  Configuring policykit
Error: Target org.macports.configure returned: configure failure: shell command failed (see log for details)
Log for policykit is at: /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_ports_security_policykit/policykit/main.log
Error: Status 1 encountered during processing.
To report a bug, see <http://guide.macports.org/#project.tickets>
giotto:~ root# 

where the last like is always:

checking for XML::Parser... configure: error: XML::Parser perl module is required for intltool

comment:12 Changed 13 years ago by dbevans (David B. Evans)

You need to provide all the details:

  • the build log file main.log
  • the configure log config.log which will be in the ports build directory the path to which is given by the command
    echo `port work policykit`/*
    

immediately after the failure occurs.

comment:13 Changed 13 years ago by ferdy (Giuseppe `ferdy` Miceli)

please, find in attach the main.log and the config.log as per your kindly request. thanks again for you help, cheers, -- ferdy

giotto:~ root# port installed p5\*xml\*
The following ports are currently installed:
  p5-xml-namespacesupport @1.11_2
  p5-xml-sax @0.96_2
  p5-xml-sax-expat @0.40_2
  p5.12-xml-namespacesupport @1.110.0_3 (active)
  p5.12-xml-parser @2.400.0_2 (active)
  p5.12-xml-sax @0.960.0_3 (active)
  p5.12-xml-sax-expat @0.400.0_3 (active)
giotto:~ root# sudo port install policykit
--->  Computing dependencies for policykit
--->  Fetching archive for policykit
--->  Attempting to fetch policykit-0.102_0+docs.darwin_10.x86_64.tbz2 from http://packages.macports.org/policykit
--->  Fetching policykit
--->  Verifying checksum(s) for policykit
--->  Extracting policykit
--->  Applying patches to policykit
--->  Configuring policykit
Error: Target org.macports.configure returned: configure failure: shell command failed (see log for details)
Log for policykit is at: /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_ports_security_policykit/policykit/main.log
Error: Status 1 encountered during processing.
To report a bug, see <http://guide.macports.org/#project.tickets>
giotto:~ root# ls -la  `port work policykit`/*/config.log
-rw-r--r-- 1 macports admin 56663 Sep 14 08:20 /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_security_policykit/policykit/work/polkit-0.102/config.log
giotto:~ root# 

Changed 13 years ago by ferdy (Giuseppe `ferdy` Miceli)

Attachment: config.log added

config.log right after failure

Changed 13 years ago by ferdy (Giuseppe `ferdy` Miceli)

Attachment: main.2.log added

main.log right after build fail

comment:14 Changed 13 years ago by dbevans (David B. Evans)

There seems to be an inconsistency as follows:

main.log shows that port believes that p5.12-xml-parser is installed

:debug:main p5.12-xml-parser 2.400.0_2 exists in the ports tree
:debug:main p5.12-xml-parser 2.400.0_2  is the latest installed
:debug:main p5.12-xml-parser 2.400.0_2  is active

config.log indeed shows that configure finds perl installed at /opt/local/bin/perl but perl fails to find XML::Parser in its search path

configure:15064: found /opt/local/bin/perl
configure:15076: result: /opt/local/bin/perl
configure:15087: checking for perl >= 5.8.1
configure:15094: result: 5.12.3
configure:15098: checking for XML::Parser
configure:15104: error: XML::Parser perl module is required for intltool

The command used to check for XML::Parser (configure line 15099) is

/opt/local/bin/perl -e "require XML::Parser"

You can run this command manually to verify the result. Normally the command will execute quietly and return. Otherwise it will return an error message showing perl's search path.

You can confirm where p5.12-xml-parser is installed as follows (showing result from my system)

devans% port contents p5.12-xml-parser
Port p5.12-xml-parser contains:
  /opt/local/lib/perl5/vendor_perl/5.12.3/darwin-multi-2level/XML/Parser.pm
  /opt/local/lib/perl5/vendor_perl/5.12.3/darwin-multi-2level/XML/Parser/Encodings/Japanese_Encodings.msg
  /opt/local/lib/perl5/vendor_perl/5.12.3/darwin-multi-2level/XML/Parser/Encodings/README
  /opt/local/lib/perl5/vendor_perl/5.12.3/darwin-multi-2level/XML/Parser/Encodings/big5.enc
  /opt/local/lib/perl5/vendor_perl/5.12.3/darwin-multi-2level/XML/Parser/Encodings/euc-kr.enc
  /opt/local/lib/perl5/vendor_perl/5.12.3/darwin-multi-2level/XML/Parser/Encodings/ibm866.enc
  /opt/local/lib/perl5/vendor_perl/5.12.3/darwin-multi-2level/XML/Parser/Encodings/iso-8859-2.enc
  /opt/local/lib/perl5/vendor_perl/5.12.3/darwin-multi-2level/XML/Parser/Encodings/iso-8859-3.enc
  /opt/local/lib/perl5/vendor_perl/5.12.3/darwin-multi-2level/XML/Parser/Encodings/iso-8859-4.enc
  /opt/local/lib/perl5/vendor_perl/5.12.3/darwin-multi-2level/XML/Parser/Encodings/iso-8859-5.enc
  /opt/local/lib/perl5/vendor_perl/5.12.3/darwin-multi-2level/XML/Parser/Encodings/iso-8859-7.enc
  /opt/local/lib/perl5/vendor_perl/5.12.3/darwin-multi-2level/XML/Parser/Encodings/iso-8859-8.enc
  /opt/local/lib/perl5/vendor_perl/5.12.3/darwin-multi-2level/XML/Parser/Encodings/iso-8859-9.enc
  /opt/local/lib/perl5/vendor_perl/5.12.3/darwin-multi-2level/XML/Parser/Encodings/koi8-r.enc
  /opt/local/lib/perl5/vendor_perl/5.12.3/darwin-multi-2level/XML/Parser/Encodings/windows-1250.enc
  /opt/local/lib/perl5/vendor_perl/5.12.3/darwin-multi-2level/XML/Parser/Encodings/windows-1251.enc
  /opt/local/lib/perl5/vendor_perl/5.12.3/darwin-multi-2level/XML/Parser/Encodings/windows-1252.enc
  /opt/local/lib/perl5/vendor_perl/5.12.3/darwin-multi-2level/XML/Parser/Encodings/windows-1255.enc
  /opt/local/lib/perl5/vendor_perl/5.12.3/darwin-multi-2level/XML/Parser/Encodings/x-euc-jp-jisx0221.enc
  /opt/local/lib/perl5/vendor_perl/5.12.3/darwin-multi-2level/XML/Parser/Encodings/x-euc-jp-unicode.enc
  /opt/local/lib/perl5/vendor_perl/5.12.3/darwin-multi-2level/XML/Parser/Encodings/x-sjis-cp932.enc
  /opt/local/lib/perl5/vendor_perl/5.12.3/darwin-multi-2level/XML/Parser/Encodings/x-sjis-jdk117.enc
  /opt/local/lib/perl5/vendor_perl/5.12.3/darwin-multi-2level/XML/Parser/Encodings/x-sjis-jisx0221.enc
  /opt/local/lib/perl5/vendor_perl/5.12.3/darwin-multi-2level/XML/Parser/Encodings/x-sjis-unicode.enc
  /opt/local/lib/perl5/vendor_perl/5.12.3/darwin-multi-2level/XML/Parser/Expat.pm
  /opt/local/lib/perl5/vendor_perl/5.12.3/darwin-multi-2level/XML/Parser/LWPExternEnt.pl
  /opt/local/lib/perl5/vendor_perl/5.12.3/darwin-multi-2level/XML/Parser/Style/Debug.pm
  /opt/local/lib/perl5/vendor_perl/5.12.3/darwin-multi-2level/XML/Parser/Style/Objects.pm
  /opt/local/lib/perl5/vendor_perl/5.12.3/darwin-multi-2level/XML/Parser/Style/Stream.pm
  /opt/local/lib/perl5/vendor_perl/5.12.3/darwin-multi-2level/XML/Parser/Style/Subs.pm
  /opt/local/lib/perl5/vendor_perl/5.12.3/darwin-multi-2level/XML/Parser/Style/Tree.pm
  /opt/local/lib/perl5/vendor_perl/5.12.3/darwin-multi-2level/auto/XML/Parser/.packlist
  /opt/local/lib/perl5/vendor_perl/5.12.3/darwin-multi-2level/auto/XML/Parser/Expat/Expat.bs
  /opt/local/lib/perl5/vendor_perl/5.12.3/darwin-multi-2level/auto/XML/Parser/Expat/Expat.bundle
  /opt/local/share/man/man3/XML::Parser.3pm.gz
  /opt/local/share/man/man3/XML::Parser::Expat.3pm.gz
  /opt/local/share/man/man3/XML::Parser::Style::Debug.3pm.gz
  /opt/local/share/man/man3/XML::Parser::Style::Objects.3pm.gz
  /opt/local/share/man/man3/XML::Parser::Style::Stream.3pm.gz
  /opt/local/share/man/man3/XML::Parser::Style::Subs.3pm.gz
  /opt/local/share/man/man3/XML::Parser::Style::Tree.3pm.gz

As you can see it should be installed under

/opt/local/lib/perl5/vendor_perl/5.12.3/darwin-multi-2level

If any of this doesn't look correct then p5.12-xml-parser is not installed correctly and should be uninstalled and reinstalled

sudo port uninstall p5.12-xml-parser
sudo port install p5.12-xml-parser

then try the checks above again

if this looks ok then you can clean and retry upgrading policykit

sudo port clean policykit
sudo port upgrade policykit

Hope this helps

comment:15 Changed 13 years ago by ferdy (Giuseppe `ferdy` Miceli)

hi,

as you write, looks like my perl installation fail to find the parser:

giotto:~ root# /opt/local/bin/perl -e "require XML::Parser"
Can't locate XML/Parser.pm in @INC (@INC contains: /opt/local/lib/perl5/site_perl/5.12.3/darwin-thread-multi-2level /opt/local/lib/perl5/site_perl/5.12.3 /opt/local/lib/perl5/vendor_perl/5.12.3/darwin-thread-multi-2level /opt/local/lib/perl5/vendor_perl/5.12.3 /opt/local/lib/perl5/5.12.3/darwin-thread-multi-2level /opt/local/lib/perl5/5.12.3 /opt/local/lib/perl5/site_perl /opt/local/lib/perl5/vendor_perl .) at -e line 1.
giotto:~ root# 

weird thing is the parser is correctly installed in /opt/local/lib/perl5/site_perl/5.12.3/darwin-thread-multi-2level and perl @INC contains it!

so i guess, my problem doen't lay in p5.12-xml-parser installation. it's my perl installation faulty, aint it?

giotto:~ root# perl -V
Summary of my perl5 (revision 5 version 12 subversion 3) configuration:
   
  Platform:
    osname=darwin, osvers=10.8.0, archname=darwin-thread-multi-2level
    uname='darwin giotto.homenet.telecomitalia.it 10.8.0 darwin kernel version 10.8.0: tue jun 7 16:32:41 pdt 2011; root:xnu-1504.15.3~1release_x86_64 x86_64 '
    config_args='-D inc_version_list=5.12.2/darwin-thread-multi-2level 5.12.2 5.12.1/darwin-thread-multi-2level 5.12.1 5.12.0/darwin-thread-multi-2level 5.12.0 -Dusethreads -des -Dprefix=/opt/local -Dscriptdir=/opt/local/bin -Dcppflags=-I/opt/local/include -Dccflags=-pipe -O2 -arch x86_64 -Dldflags=-L/opt/local/lib -arch x86_64 -Dvendorprefix=/opt/local -Dusemultiplicity=y -D cc=/usr/bin/gcc-4.2 -D ld=/usr/bin/gcc-4.2 -D man1ext=1pm -D man3ext=3pm -D man1dir=/opt/local/share/man/man1p -D man3dir=/opt/local/share/man/man3p -D siteman1dir=/opt/local/share/man/man1 -D siteman3dir=/opt/local/share/man/man3 -D vendorman1dir=/opt/local/share/man/man1 -D vendorman3dir=/opt/local/share/man/man3 -D pager=/usr/bin/less -sR'
    hint=recommended, useposix=true, d_sigaction=define
    useithreads=define, usemultiplicity=define
    useperlio=define, d_sfio=undef, uselargefiles=define, usesocks=undef
    use64bitint=define, use64bitall=define, uselongdouble=undef
    usemymalloc=n, bincompat5005=undef
  Compiler:
    cc='/usr/bin/gcc-4.2', ccflags ='-pipe -O2 -arch x86_64 -fno-common -DPERL_DARWIN -I/opt/local/include -no-cpp-precomp -fno-strict-aliasing -fstack-protector -I/opt/local/include',
    optimize='-O3',
    cppflags='-I/opt/local/include -no-cpp-precomp -pipe -O2 -arch x86_64 -fno-common -DPERL_DARWIN -I/opt/local/include -no-cpp-precomp -fno-strict-aliasing -fstack-protector -I/opt/local/include'
    ccversion='', gccversion='4.2.1 (Apple Inc. build 5666) (dot 3)', gccosandvers=''
    intsize=4, longsize=8, ptrsize=8, doublesize=8, byteorder=12345678
    d_longlong=define, longlongsize=8, d_longdbl=define, longdblsize=16
    ivtype='long', ivsize=8, nvtype='double', nvsize=8, Off_t='off_t', lseeksize=8
    alignbytes=8, prototype=define
  Linker and Libraries:
    ld='env MACOSX_DEPLOYMENT_TARGET=10.6 /usr/bin/gcc-4.2', ldflags ='-L/opt/local/lib -arch x86_64 -fstack-protector'
    libpth=/opt/local/lib /usr/lib
    libs=-lgdbm -ldbm -ldl -lm -lutil -lc
    perllibs=-ldl -lm -lutil -lc
    libc=, so=dylib, useshrplib=false, libperl=libperl.a
    gnulibc_version=''
  Dynamic Linking:
    dlsrc=dl_dlopen.xs, dlext=bundle, d_dlsymun=undef, ccdlflags=' '
    cccdlflags=' ', lddlflags='-L/opt/local/lib -arch x86_64 -bundle -undefined dynamic_lookup -fstack-protector'


Characteristics of this binary (from libperl): 
  Compile-time options: MULTIPLICITY PERL_DONT_CREATE_GVSV
                        PERL_IMPLICIT_CONTEXT PERL_MALLOC_WRAP USE_64_BIT_ALL
                        USE_64_BIT_INT USE_ITHREADS USE_LARGE_FILES
                        USE_PERLIO USE_PERL_ATOF USE_REENTRANT_API
  Built under darwin
  Compiled at Aug 29 2011 21:46:19
  @INC:
    /opt/local/lib/perl5/site_perl/5.12.3/darwin-thread-multi-2level
    /opt/local/lib/perl5/site_perl/5.12.3
    /opt/local/lib/perl5/vendor_perl/5.12.3/darwin-thread-multi-2level
    /opt/local/lib/perl5/vendor_perl/5.12.3
    /opt/local/lib/perl5/5.12.3/darwin-thread-multi-2level
    /opt/local/lib/perl5/5.12.3
    /opt/local/lib/perl5/site_perl
    /opt/local/lib/perl5/vendor_perl
    .
giotto:~ root# 

}}} giotto:~ root# port contents p5.12-xml-parser Port p5.12-xml-parser contains:

/opt/local/lib/perl5/vendor_perl/5.12.3/darwin-multi-2level/XML/Parser.pm /opt/local/lib/perl5/vendor_perl/5.12.3/darwin-multi-2level/XML/Parser/Encodings/Japanese_Encodings.msg /opt/local/lib/perl5/vendor_perl/5.12.3/darwin-multi-2level/XML/Parser/Encodings/README /opt/local/lib/perl5/vendor_perl/5.12.3/darwin-multi-2level/XML/Parser/Encodings/big5.enc /opt/local/lib/perl5/vendor_perl/5.12.3/darwin-multi-2level/XML/Parser/Encodings/euc-kr.enc /opt/local/lib/perl5/vendor_perl/5.12.3/darwin-multi-2level/XML/Parser/Encodings/ibm866.enc /opt/local/lib/perl5/vendor_perl/5.12.3/darwin-multi-2level/XML/Parser/Encodings/iso-8859-2.enc /opt/local/lib/perl5/vendor_perl/5.12.3/darwin-multi-2level/XML/Parser/Encodings/iso-8859-3.enc /opt/local/lib/perl5/vendor_perl/5.12.3/darwin-multi-2level/XML/Parser/Encodings/iso-8859-4.enc /opt/local/lib/perl5/vendor_perl/5.12.3/darwin-multi-2level/XML/Parser/Encodings/iso-8859-5.enc /opt/local/lib/perl5/vendor_perl/5.12.3/darwin-multi-2level/XML/Parser/Encodings/iso-8859-7.enc /opt/local/lib/perl5/vendor_perl/5.12.3/darwin-multi-2level/XML/Parser/Encodings/iso-8859-8.enc /opt/local/lib/perl5/vendor_perl/5.12.3/darwin-multi-2level/XML/Parser/Encodings/iso-8859-9.enc /opt/local/lib/perl5/vendor_perl/5.12.3/darwin-multi-2level/XML/Parser/Encodings/koi8-r.enc /opt/local/lib/perl5/vendor_perl/5.12.3/darwin-multi-2level/XML/Parser/Encodings/windows-1250.enc /opt/local/lib/perl5/vendor_perl/5.12.3/darwin-multi-2level/XML/Parser/Encodings/windows-1251.enc /opt/local/lib/perl5/vendor_perl/5.12.3/darwin-multi-2level/XML/Parser/Encodings/windows-1252.enc /opt/local/lib/perl5/vendor_perl/5.12.3/darwin-multi-2level/XML/Parser/Encodings/windows-1255.enc /opt/local/lib/perl5/vendor_perl/5.12.3/darwin-multi-2level/XML/Parser/Encodings/x-euc-jp-jisx0221.enc /opt/local/lib/perl5/vendor_perl/5.12.3/darwin-multi-2level/XML/Parser/Encodings/x-euc-jp-unicode.enc /opt/local/lib/perl5/vendor_perl/5.12.3/darwin-multi-2level/XML/Parser/Encodings/x-sjis-cp932.enc /opt/local/lib/perl5/vendor_perl/5.12.3/darwin-multi-2level/XML/Parser/Encodings/x-sjis-jdk117.enc /opt/local/lib/perl5/vendor_perl/5.12.3/darwin-multi-2level/XML/Parser/Encodings/x-sjis-jisx0221.enc /opt/local/lib/perl5/vendor_perl/5.12.3/darwin-multi-2level/XML/Parser/Encodings/x-sjis-unicode.enc /opt/local/lib/perl5/vendor_perl/5.12.3/darwin-multi-2level/XML/Parser/Expat.pm /opt/local/lib/perl5/vendor_perl/5.12.3/darwin-multi-2level/XML/Parser/LWPExternEnt.pl /opt/local/lib/perl5/vendor_perl/5.12.3/darwin-multi-2level/XML/Parser/Style/Debug.pm /opt/local/lib/perl5/vendor_perl/5.12.3/darwin-multi-2level/XML/Parser/Style/Objects.pm /opt/local/lib/perl5/vendor_perl/5.12.3/darwin-multi-2level/XML/Parser/Style/Stream.pm /opt/local/lib/perl5/vendor_perl/5.12.3/darwin-multi-2level/XML/Parser/Style/Subs.pm /opt/local/lib/perl5/vendor_perl/5.12.3/darwin-multi-2level/XML/Parser/Style/Tree.pm /opt/local/lib/perl5/vendor_perl/5.12.3/darwin-multi-2level/auto/XML/Parser/.packlist /opt/local/lib/perl5/vendor_perl/5.12.3/darwin-multi-2level/auto/XML/Parser/Expat/Expat.bs /opt/local/lib/perl5/vendor_perl/5.12.3/darwin-multi-2level/auto/XML/Parser/Expat/Expat.bundle /opt/local/share/man/man3/XML::Parser.3pm.gz /opt/local/share/man/man3/XML::Parser::Expat.3pm.gz /opt/local/share/man/man3/XML::Parser::Style::Debug.3pm.gz /opt/local/share/man/man3/XML::Parser::Style::Objects.3pm.gz /opt/local/share/man/man3/XML::Parser::Style::Stream.3pm.gz /opt/local/share/man/man3/XML::Parser::Style::Subs.3pm.gz /opt/local/share/man/man3/XML::Parser::Style::Tree.3pm.gz

giotto:~ root# }}}

comment:16 Changed 13 years ago by dbevans (David B. Evans)

Resolution: invalid
Status: assignedclosed

Or the installation of MacPorts itself. The fact that you have both p5-* and p5.12-* versions of several perl modules installed and both are active makes me think there is a problem with the port registry, possibly a problem when upgrading to version 2.0.3 which uses a different registry mechanism. The upgrade is supposed to convert your existing registry to the new style but there are reports of this not working correctly. I suspect you may have a similar problem with other perl modules.

This command should show only p5.12 modules

port installed p5\*

In addition to the things you've already tried, you might look directly at the directory where where the parser is supposed to be installed (as reported by port contents) and see if it really is there.

find /opt/local/lib/perl5/vendor_perl/5.12.3/darwin-multi-2level/XML/Parser* -print

You may just have to remove your entire MacPorts installation and reinstall if nothing else helps.

At any rate, I think it's evident that your problem is not with policykit itself and I'm not sure what else to do and so I will close this ticket for now and suggest that you might find more help on the MacPorts Users email list.

Sorry I can't be of more help.

Note: See TracTickets for help on using tickets.