Opened 19 years ago

Closed 19 years ago

#4323 closed defect (fixed)

BUG: selfupdate of perl caused XML::Parser problem

Reported by: bportmann@… Owned by: olegb@…
Priority: Normal Milestone:
Component: ports Version: 1.0
Keywords: DarwinPorts Cc:
Port:

Description

I had a working darwinports system until I did a selfupdate recently and now I repeatedly get the following error (a more complete example is at the bottom):

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

I've gotten by tons of ports so many that I'm not sure I could list them all. The selfupdate did a minor update of perl (5.8.6_1 to 5.8.7_0) and I guess this caused the problem. I have not been able to fix it by re-installing p5-xml-parser because of dependency problems (which will not let me do anything). (It should be possible to force reinstall one package with worrying about dependencies).

Any ideas (except a total re-install which is all I can think of).

Thanks, Bob

ps Here is a more complete example (note that they all look a bit different but XML::parser is always involved):

---> Configuring libgda Error: Target com.apple.configure returned: configure failure: shell command "cd "/opt/local/var/db/dports/build/file._opt_local_var_db_dports_sources_rsync.rsync.opendarwin.org_dpupdate_dports_gnome_libgda/work/libgda-1.2.2" && CPPFLAGS="-I/opt/local/include -I/opt/local/include/db4" CFLAGS="-no-cpp-precomp -flat_namespace -undefined suppress" LDFLAGS="-L/opt/local/lib" ./configure --prefix=/opt/local --mandir=/opt/local/share/man" returned error 1 Command output: checking for a BSD-compatible install... /usr/bin/install -c checking whether build environment is sane... yes checking for gawk... no checking for mawk... no checking for nawk... no checking for awk... awk checking whether make sets $(MAKE)... yes checking for intltool >= 0.30... 0.33 found checking for perl... /opt/local/bin/perl checking for XML::Parser... configure: error: XML::Parser perl module is required for intltool

Change History (7)

comment:1 Changed 19 years ago by kevin@…

Component: darwinbuilddports
Keywords: DarwinPorts added; darwinbuild removed
product: darwinbuildDarwinPorts
Version: current1.0

Sounds like a DarwinPorts issue.

comment:2 Changed 19 years ago by olegb@…

Owner: changed from kevin@… to olegb@…

This is *not* due to "selfupdate" - but to "upgrade" !

You have upgraded the darwinports perl, and now some (all?) perlmodules doesn't work. Due to the modules being "registred with the old perl" => reinstall the perlmodules and you should be fine...

This is a problem with the "upgrade" target .. assigning to me.

comment:3 Changed 19 years ago by bportmann@…

(In reply to comment #2)

Yes, you are correct. I did both a selfupdate and then upgrade (-a) and perl was updated. I guessed that perl modules were at fault but I cannot figure out how to re-build them without getting into dependency hell. For example:

prompt> sudo port install p5-xml-parser Password: ---> Unpacking tgz archive for p5-xml-parser 2.34_3 ---> Installing p5-xml-parser 2.34_3 Error: Target com.apple.install returned: Registry error: p5-xml-parser 2.34_3 already registered as installed. Please uninstall it first. prompt> sudo port uninstall p5-xml-parser ---> Unable to uninstall p5-xml-parser 2.34_3, the following ports depend on it: ---> libgda ---> intltool port uninstall failed: Please uninstall the ports that depend on p5-xml-parser first.

If I try to unistall either of these then it wants to uninstall tons of stuff! And using force (-f) doesn't help either.

How can I force a re-build the perl modules without uninstalling other stuff? Also, how can I get a list of perl modules to re-build.

Thanks, Bob

comment:4 Changed 19 years ago by olegb@…

follow these steps:

port -d selfupdate port -d upgrade perl5.8 (you might have done the above) port -df uninstall p5-xml-parser port -d clean --all p5-xml-parser port -d install p5-xml-parser

comment:5 Changed 19 years ago by bportmann@…

(In reply to comment #4)

OK, I was able to get darwinports working again.

Thanks, Bob

comment:6 Changed 19 years ago by mww@…

Summary: selfupdate of perl caused XML::Parser problemBUG: selfupdate of perl caused XML::Parser problem

comment:7 Changed 19 years ago by olegb@…

Resolution: fixed
Status: newclosed

Since it is possible to do -R (dependents) and -f (rebuild) with upgrade in HEAD this should be fix0red.

Note: See TracTickets for help on using tickets.