Opened 15 years ago

Closed 15 years ago

Last modified 15 years ago

#22287 closed defect (fixed)

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 (2)

macsvn.diff (27.5 KB) - added by wyldfire@… 15 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 (917 bytes) - added by wyldfire@… 15 years ago.
Patch to the portfile (disable parallel build, allow building depdom by removing -L(prefix)/lib, add -b 64 on Snow Leopard)

Download all attachments as: .zip

Change History (8)

Changed 15 years ago by wyldfire@…

Attachment: Portfile-snowleopard.patch added

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

comment:1 Changed 15 years ago by jmroot (Joshua Root)

Owner: changed from macports-tickets@… to chris.ridd@…
Port: xercesc added

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

comment:2 Changed 15 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.

comment:3 Changed 15 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?

comment:4 in reply to:  3 Changed 15 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?

comment:5 in reply to:  description Changed 15 years ago by ryandesign (Ryan Carsten Schmidt)

Resolution: fixed
Status: newclosed

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.

comment:6 Changed 15 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.