Bug 206472

Summary: textproc/xerces-c3: Does not interoperate with Xalan when built with iconv transcoder
Product: Ports & Packages Reporter: Roger Leigh <rleigh>
Component: Individual Port(s)Assignee: Po-Chuan Hsieh <sunpoet>
Status: Closed FIXED    
Severity: Affects Only Me CC: sunpoet
Priority: --- Keywords: patch
Version: LatestFlags: rakuco: maintainer-feedback? (sunpoet)
Hardware: Any   
OS: Any   
Attachments:
Description Flags
patch to enable the ICU transcoder rakuco: maintainer-approval? (sunpoet)

Description Roger Leigh 2016-01-21 17:00:06 UTC
Created attachment 165922 [details]
patch to enable the ICU transcoder

Xerces can be built with different transcoders.  The FreeBSD ports are using iconv, but it can also link with ICU.

The xalan-c port depends upon Xerces-C, but it appears that it is not fully functional unless Xalan was build with ICU support.  I'm still investigating exactly why.  See:

http://xerces-c-users.markmail.org/search/?q=#query:+page:1+mid:6mfruqsaw3iiheeh+state:results
http://xerces-c-users.markmail.org/search/?q=#query:+page:1+mid:pcjulkarusich5he+state:results

Because it's a bit of an odd interaction between the projects, I don't know for sure if this is actually a Xerces bug or a Xalan bug.  The attached patch certainly "fixes" the problem by building Xerces against ICU instead of iconv.  However, MacOS X homebrew and Debian/Ubuntu seem to make a working library without ICU, so not sure why it seems to be required on FreeBSD.  Applying this patch would make the issue go away, but I hope that there's a better alternative.


Regards,
Roger
Comment 1 Raphael Kubo da Costa freebsd_committer freebsd_triage 2016-03-05 20:49:08 UTC
Fix title and assign to maintainer.
Comment 2 Po-Chuan Hsieh freebsd_committer freebsd_triage 2016-03-13 15:04:57 UTC
I'm not sure if it's related. I've add missing USES=iconv to textproc/xerces-c3 in r410250. Could you please try again if it fixes your problem? Thanks.
Comment 3 Roger Leigh 2016-03-13 22:33:40 UTC
Hi,

I've run portsnap fetch updated to get the latest ports tree, and rebuilt xerces-c3 and then xylan-c.  The problem reported seems to be fixed with this change, so I think that the issue as reported is corrected, thanks.

(I'm now hitting a failed assertion in xylan, but that looks like a new problem to solve separately.)

Thanks again,
Roger
Comment 4 Po-Chuan Hsieh freebsd_committer freebsd_triage 2016-03-27 13:11:56 UTC
Not sure if it's related. I've added missing iconv dependency to textproc/xerces-c3 in r410250. Please check again. Thanks!
Comment 5 Po-Chuan Hsieh freebsd_committer freebsd_triage 2016-03-27 13:14:41 UTC
I overlooked my previous comment. Submitter verified it's fixed.