New Ticket     Tickets     Wiki     Browse Source     Timeline     Roadmap     Ticket Reports     Search

Ticket #15295 (closed defect: fixed)

Opened 5 years ago

Last modified 4 years ago

libxml2 use_parallel_build problem

Reported by: ryandesign@… Owned by: macports-tickets@…
Priority: Normal Milestone:
Component: ports Version: 1.6.0
Keywords: Cc: cedric.luthi@…, nox@…, raimue@…
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

Portfile.diff (375 bytes) - added by ryandesign@… 5 years ago.
This seems to work around the problem

Change History

comment:1 Changed 5 years ago by raimue@…

  • Cc raimue@… added

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

sudo port install libxml2 build.jobs=1

Changed 5 years ago by ryandesign@…

This seems to work around the problem

comment:2 Changed 5 years ago by ryandesign@…

  • Status changed from new to closed
  • Resolution set to fixed

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

comment:3 Changed 4 years ago by blb@…

This was fixed generally in r36890, correct?

comment:4 Changed 4 years ago by ryandesign@…

  • Port set to libxml2

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 4 years ago by anonymous

  • Milestone Port Bugs deleted

Milestone Port Bugs deleted

Note: See TracTickets for help on using tickets.