Bug 206472 - textproc/xerces-c3: Does not interoperate with Xalan when built with iconv transcoder
Summary: textproc/xerces-c3: Does not interoperate with Xalan when built with iconv tr...
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Only Me
Assignee: Po-Chuan Hsieh
URL:
Keywords: patch
Depends on:
Blocks:
 
Reported: 2016-01-21 17:00 UTC by Roger Leigh
Modified: 2016-03-27 13:14 UTC (History)
1 user (show)

See Also:
rakuco: maintainer-feedback? (sunpoet)


Attachments
patch to enable the ICU transcoder (1.22 KB, patch)
2016-01-21 17:00 UTC, Roger Leigh
rakuco: maintainer-approval? (sunpoet)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
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.