Opened 16 years ago

Closed 16 years ago

Last modified 15 years ago

#15295 closed defect (fixed)

libxml2 use_parallel_build problem

Reported by: ryandesign (Ryan Carsten Schmidt) Owned by: macports-tickets@…
Priority: Normal Milestone:
Component: ports Version: 1.6.0
Keywords: Cc: 0xced (Cédric Luthi), nox@…, raimue (Rainer Müller)
Port: libxml2

Description

I couldn't upgrade from libxml2 2.6.31 to 2.6.32, and the reason is the "use_parallel_build yes" line that was added to the port in r36717. (I do have "buildmakejobs 2" in my macports.conf.) The build works fine, but the destroot phase doesn't:

$ sudo port upgrade libxml2
--->  Fetching libxml2
--->  Verifying checksum(s) for libxml2
--->  Extracting libxml2
--->  Configuring libxml2
--->  Building libxml2 with target all
--->  Staging libxml2 into destroot
Error: Target org.macports.destroot returned: shell command " cd "/opt/local/var/macports/build/_Users_rschmidt_macports_dports_textproc_libxml2/work/libxml2-2.6.32" && make -j2 install DESTDIR=/opt/local/var/macports/build/_Users_rschmidt_macports_dports_textproc_libxml2/work/destroot " returned error 2
Command output: Making install in include
Making install in libxml
make  install-exec-hook
test -z "/opt/local/include/libxml2/libxml" || ../.././install-sh -c -d "/opt/local/var/macports/build/_Users_rschmidt_macports_dports_textproc_libxml2/work/destroot/opt/local/include/libxml2/libxml"
/bin/sh ../../mkinstalldirs /opt/local/var/macports/build/_Users_rschmidt_macports_dports_textproc_libxml2/work/destroot/opt/local/include/libxml2/libxml
mkdir -p -- /opt/local/var/macports/build/_Users_rschmidt_macports_dports_textproc_libxml2/work/destroot/opt/local/include/libxml2/libxml
mkdir: /opt/local/var/macports/build/_Users_rschmidt_macports_dports_textproc_libxml2/work/destroot/opt/local/include/libxml2/libxml: File exists
make[3]: *** [install-xmlincHEADERS] Error 1
make[2]: *** [install-am] Error 2
make[1]: *** [install-recursive] Error 1
make: *** [install-recursive] Error 1

Error: Unable to upgrade port: 1
$

I had a similar problem with mysql5-devel after adding "use_parallel_build yes" to it. Maybe a similar workaround can work for libxml2, until they fix it upstream.

Attachments (1)

Portfile.diff (375 bytes) - added by ryandesign (Ryan Carsten Schmidt) 16 years ago.
This seems to work around the problem

Download all attachments as: .zip

Change History (6)

comment:1 Changed 16 years ago by raimue (Rainer Müller)

Cc: raimue@… added

As a quick workaround you can disable parallel building on the command line:

sudo port install libxml2 build.jobs=1

Changed 16 years ago by ryandesign (Ryan Carsten Schmidt)

Attachment: Portfile.diff added

This seems to work around the problem

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

Resolution: fixed
Status: newclosed

No response from maintainer in > 72 hours; committed in r37322.

comment:3 Changed 15 years ago by blb@…

This was fixed generally in r36890, correct?

comment:4 Changed 15 years ago by ryandesign (Ryan Carsten Schmidt)

Port: libxml2 added

It was fixed generally in MacPorts trunk so that only the build phase is run in parallel, and that will be in MacPorts 1.7.0, and then r37322 can be reverted.

comment:5 Changed 15 years ago by (none)

Milestone: Port Bugs

Milestone Port Bugs deleted

Note: See TracTickets for help on using tickets.