New Ticket     Wiki     Browse Source     Timeline     Roadmap     Ticket Reports     Search

Ticket #22287 (closed defect: fixed)

Opened 3 years ago

Last modified 2 years ago

Updated portfile for xercesc 2.8.0 on Snow Leopard 64 bit

Reported by: wyldfire@… Owned by: chris.ridd@…
Priority: Normal Milestone:
Component: ports Version: 1.8.1
Keywords: Cc:
Port: xercesc

Description

Currently xercesc 2.8.0 does not build using macports on Snow Leopard.

I have changed the portfile to include a patch posted at the Xerces issue tracker ( https://issues.apache.org/jira/browse/XERCESC-1772?page=com.atlassian.jira.plugin.system.issuetabpanels%3Aall-tabpanel) and changed a few parameters allowing it to build on Snow Leopard. I hope that is also builds well on older systems.

I am using "darwin 10" as an indicator to build xerces in 64bit mode. This is probably not the best choice, but I do not know how to detect in the port file if the build is actually targetting 64bit,

Attachments

macsvn.diff Download (27.5 KB) - added by wyldfire@… 3 years ago.
Patch taken from Apache issue tracker ( https://issues.apache.org/jira/browse/XERCESC-1772?page=com.atlassian.jira.plugin.system.issuetabpanels%3Aall-tabpanel)
Portfile-snowleopard.patch Download (0.9 KB) - added by wyldfire@… 3 years ago.
Patch to the portfile (disable parallel build, allow building depdom by removing -L(prefix)/lib, add -b 64 on Snow Leopard)

Change History

Changed 3 years ago by wyldfire@…

Patch to the portfile (disable parallel build, allow building depdom by removing -L(prefix)/lib, add -b 64 on Snow Leopard)

  Changed 3 years ago by jmr@…

  • owner changed from macports-tickets@… to chris.ridd@…
  • port set to xercesc

The way to tell which architecture you should be building for is to look at the $build_arch variable.

  Changed 3 years ago by hauns@…

i am trying to build xerces 2.8.0 in 64bit one on sl. the standard port install comes with the unpatched portfile - has the patch not been integrated? hence i patched the portfile manually. next problem is that macsvn.diff cannot be found on any of the servers:

--->  Fetching xercesc
--->  Attempting to fetch macsvn.diff from http://distfiles.macports.org/xercesc
--->  Attempting to fetch macsvn.diff from http://arn.se.distfiles.macports.org/xercesc
--->  Attempting to fetch macsvn.diff from http://aarnet.au.distfiles.macports.org/pub/macports/mpdistfiles/xercesc
--->  Attempting to fetch macsvn.diff from http://svn.macports.org/repository/macports/distfiles/xercesc
--->  Attempting to fetch macsvn.diff from http://svn.macports.org/repository/macports/distfiles/general/
--->  Attempting to fetch macsvn.diff from http://svn.macports.org/repository/macports/downloads/xercesc
Error: Target org.macports.fetch returned: fetch failed

alright, i manually add it to the dist area. now, it complains about missing checksums:

Error: No checksum set for macsvn.diff
Error: No checksum set for xerces-c-src_2_8_0.tar.gz
Error: Target org.macports.checksum returned: Unable to verify file checksums
Error: Status 1 encountered during processing.

i give up. any clews welcomed.

follow-up: ↓ 4   Changed 3 years ago by wyldfire@…

The patch should update the following file:

/opt/local/var/macports/sources/rsync.macports.org/release/ports/textproc/xercesc/Portfile

Additionally download macsvn.diff and place it at.

/opt/local/var/macports/sources/rsync.macports.org/release/ports/textproc/xercesc/files/macsvn.diff

With those files I was able to clean xerces (to remove any previous build data) and install it. I had no messages about checksums. According to the Guide ( http://guide.macports.org/#development.introduction) the checksum in the Portfile applies only to the xerces tarball. I don't know why it is complaining about a missing checksum. Are you sure your Portfile is still intact?

in reply to: ↑ 3   Changed 3 years ago by hauns@…

i had the diff file in /opt/local/var/macports/distfiles/xercesc/. moving it to your suggested location solved the issue. thanks for the quick feedback.

any idea when this fix becomes a default? (i used to think patches are automatically integrated, here i had to patch manually)

Replying to wyldfire@…:

The patch should update the following file: /opt/local/var/macports/sources/rsync.macports.org/release/ports/textproc/xercesc/Portfile Additionally download macsvn.diff and place it at. /opt/local/var/macports/sources/rsync.macports.org/release/ports/textproc/xercesc/files/macsvn.diff With those files I was able to clean xerces (to remove any previous build data) and install it. I had no messages about checksums. According to the Guide ( http://guide.macports.org/#development.introduction) the checksum in the Portfile applies only to the xerces tarball. I don't know why it is complaining about a missing checksum. Are you sure your Portfile is still intact?

in reply to: ↑ description   Changed 2 years ago by ryandesign@…

  • status changed from new to closed
  • resolution set to fixed

Thank you for the patch. I committed it in r62017. I also included your disabling of the parallel build, because the build failed when I did not.

I did not use your platform darwin 10 section to enable the 64-bit build, because I implemented that more generally in r62014.

I did not add the line configure.ldflags-delete -L${prefix}/lib because I did not understand why you had added it.

#20979 is a duplicate.

  Changed 2 years ago by wyldfire@…

Thanks for integrating the patch. I don't remember why I added the ldflags-delete line - likely something did not work and this fixed it for me, but that might also just have been an artifact of me trying to get the stuff compiling. If it worked for you without this, I suppose it's just fine.

Note: See TracTickets for help on using tickets.