Summary: | net/rsync: fixing the ICONV option | ||||||
---|---|---|---|---|---|---|---|
Product: | Ports & Packages | Reporter: | Mathieu Arnold <mat> | ||||
Component: | Individual Port(s) | Assignee: | Emanuel Haupt <ehaupt> | ||||
Status: | Closed FIXED | ||||||
Severity: | Affects Only Me | CC: | ehaupt, tijl | ||||
Priority: | --- | Flags: | bugzilla:
maintainer-feedback?
(ehaupt) |
||||
Version: | Latest | ||||||
Hardware: | Any | ||||||
OS: | Any | ||||||
Attachments: |
|
Description
Mathieu Arnold
2016-04-21 14:50:52 UTC
There are two iconv(3) implementations, one in libc and one in converters/libiconv. The one in libc does not support translit. If you need that just change USES=iconv into USES=iconv:translit. It will make the port use libiconv. The port Makefile and Uses/iconv.mk are otherwise fine I think. Well, I do think there is something strange, on 10.1, at least, it adds a build dependency on converters/libiconv, so rsync links with it, and then, the package doesn't register a runtime dependency, and the resulting rsync is not usable. It links with libiconv because you modified the Makefile. The build dependency is to get /usr/local/include/iconv.h because /usr/include/iconv.h still contains const qualifiers on 10.1. See ports r384038. Well, maybe, but before I modified it, it was not linking with any iconv library, at all, when the ICONV option was enabled. That's because it uses the iconv(3) implementation in libc. You probably got an error because this implementation does not support //IGNORE//TRANSLIT. Actually, there is a bug in the Makefile, but it's not related to your problem. It should be: .if empty(ICONV_LIB) || ! ${PORT_OPTIONS:MICONV} CONFIGURE_ARGS+=ac_cv_search_libiconv_open=no .endif This prevents linking with libiconv on FreeBSD 9 when the ICONV option is off. The rsync configure script always adds -liconv if it finds the library. Mmm, ok, with that, it looks more consistent, but one still can't use //TRANSLIT on 10, while it works on 9. You can ask the maintainer to change USES=iconv into USES=iconv:translit. Created attachment 169562 [details]
patch
So, add a patch
(In reply to Tijl Coosemans from comment #8) I approve this patch. Please feel free to commit. A commit references this bug: Author: mat Date: Sat Apr 23 13:13:12 UTC 2016 New revision: 413870 URL: https://svnweb.freebsd.org/changeset/ports/413870 Log: Fix ICONV support. PR: 208958 Submitted by: mat Reviewed by: tijl Approved by: maintainer Sponsored by: Absolight Changes: head/net/rsync/Makefile |