From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.org/gmane.linux.lib.musl.general/7388 Path: news.gmane.org!not-for-mail From: Felix Janda Newsgroups: gmane.linux.lib.musl.general Subject: Re: libintl: stubs or working functions Date: Wed, 15 Apr 2015 21:18:16 +0200 Message-ID: <20150415191815.GA5045@euler> Reply-To: musl@lists.openwall.com NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Trace: ger.gmane.org 1429125657 5147 80.91.229.3 (15 Apr 2015 19:20:57 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 15 Apr 2015 19:20:57 +0000 (UTC) To: musl@lists.openwall.com Original-X-From: musl-return-7401-gllmg-musl=m.gmane.org@lists.openwall.com Wed Apr 15 21:20:52 2015 Return-path: Envelope-to: gllmg-musl@m.gmane.org Original-Received: from mother.openwall.net ([195.42.179.200]) by plane.gmane.org with smtp (Exim 4.69) (envelope-from ) id 1YiSrj-0000lV-0h for gllmg-musl@m.gmane.org; Wed, 15 Apr 2015 21:20:51 +0200 Original-Received: (qmail 17566 invoked by uid 550); 15 Apr 2015 19:20:48 -0000 Mailing-List: contact musl-help@lists.openwall.com; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: Original-Received: (qmail 17509 invoked from network); 15 Apr 2015 19:20:37 -0000 Mail-Followup-To: musl@lists.openwall.com Content-Disposition: inline User-Agent: Mutt/1.5.23 (2014-03-12) Xref: news.gmane.org gmane.linux.lib.musl.general:7388 Archived-At: On Thu, Mar 06, 2015 at 22:24:15PM GMT, Rich Felker wrote: > On Thu, Mar 05, 2015 at 04:36:49PM +0700, Рысь wrote: [snip] > > * Did I understand that right that I do not need GNU gettext anymore and > > I can use musl's interface for that? > > Yes, modulo some GNU software (coreutils for example) that probes for > glibc/gnu-libintl internals at configure time and depends on > poorly-designed and undocumented features (SYSDEP strings). These > programs will not work without either GNU libintl or patching out the > bad parts of configure and using a version of msgfmt that works around > the need for SYSDEP strings. I believe the one from sabotage > gettext-tiny does. I would like to see what it takes to fix the autoconf tests. The problem is the macro AM_GNU_GETTEXT with the check http://git.savannah.gnu.org/cgit/gettext.git/tree/gettext-runtime/m4/gettext.m4#n159 (It looks for the internal symbols _nl_msg_cat_cntr and _nl_domain_bindings instead of relying on __GNU_GETTEXT_SUPPORTED_REVISION().) debian code search suggests that quite a lot of projects use this macro. https://lists.gnu.org/archive/html/bug-gnu-utils/2006-03/msg00011.html gives some reasoning for the unportable tests: * _GNU_GETTEXT_SUPPORTED_REVISION() was only introduced in gettext 0.10.xx * _GNU_GETTEXT_SUPPORTED_REVISION() of glibc says that it does not support major revision 1 although it does I would like to ask the gettext developers for an additional test "for GNU gettext in libc", which fails if __GLIBC__ uses _GNU_GETTEXT_SUPPORTED_REVISION and can only improve the previous test result. Any comments on this or alternative approaches? Thanks, Felix