Ticket #15295 (closed defect: fixed)
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
Change History
Changed 5 years ago by ryandesign@…
- Attachment Portfile.diff added
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.
Note: See
TracTickets for help on using
tickets.


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