From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.org/gmane.linux.lib.musl.general/9853 Path: news.gmane.org!not-for-mail From: Masanori Ogino Newsgroups: gmane.linux.lib.musl.general Subject: Re: Re: [bug-gettext] AM_GNU_GETTEXT without referring internal symbols? Date: Thu, 7 Apr 2016 14:34:01 +0900 Message-ID: References: Reply-To: musl@lists.openwall.com NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 X-Trace: ger.gmane.org 1460007258 21557 80.91.229.3 (7 Apr 2016 05:34:18 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 7 Apr 2016 05:34:18 +0000 (UTC) Cc: bug-gnu-gettext@gnu.org To: musl@lists.openwall.com Original-X-From: musl-return-9866-gllmg-musl=m.gmane.org@lists.openwall.com Thu Apr 07 07:34:18 2016 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 1ao2a9-00033N-Av for gllmg-musl@m.gmane.org; Thu, 07 Apr 2016 07:34:17 +0200 Original-Received: (qmail 15550 invoked by uid 550); 7 Apr 2016 05:34:14 -0000 Mailing-List: contact musl-help@lists.openwall.com; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-ID: Original-Received: (qmail 15525 invoked from network); 7 Apr 2016 05:34:13 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:date:message-id:subject :from:to:cc; bh=vHYVYEm8cqw82xhPkwjrG5sl210Ud+Dba7Lp6bF7AdY=; b=LIaVMJugVTtWiEvnXVxfbay8idn9TIf7H1QFzmVmlc9IJzgUljHVQeF1ltOXKni7ra EVc36WV9ge+T4qiVWE//RWOGoxJu94yQOEBRts8yrM1AdZvBm4bYw8+pRZepeasWhvlI RdQF4uGkjynl6iDAcqS1B/dhbFQpVeuSUh9YHpz8ZFFdlht/6YF2qCArTY5fV2B1ePrp i1apOIdf7ntAWrj0TLcRoVVf094czBgSQrfLgUG+DKYEPNiqxlIUvwguztGQpA+5tXbM lpFkQFCCKsGCHHYyJZCqGLG5BIMujHuZp/BTaUlplLpBbGZnMrs6ta44IEL7rwm4n70j WXFw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:sender:in-reply-to:references:date :message-id:subject:from:to:cc; bh=vHYVYEm8cqw82xhPkwjrG5sl210Ud+Dba7Lp6bF7AdY=; b=Upw4yC6aM/BJeeZ3MBItMCthrZmNd+z2VJXijT1YuGi3qZrEXF5QBGfb6+A6fiOVu1 LGEfVnB4nZ9vHjeuMVfjYM1KwiAlNZYRCyaqcOSrercNb9csIJDX14RuXhUwv04AXDJh bTAvFt8zjFR0ID3Ua9UVqmW2rNL6tp2F21kfNOo8ullmUHBbUh5ioXtxlc3SAP+sjI/8 Xl65sJlSJ2m8fRrPm3Mkr+/YSA2Yv01TSk4CQjnMvkGAoLlbrsqAYV2QDxRyWSSDKdQw zOEnu45AQuHkP8I6TEwprfRfz6nWFfWPUUrJiXaqapHozYSPRRPzeZFwkuilsAkoBXY/ Xz6Q== X-Gm-Message-State: AD7BkJI6Gf/SWrCAjK7jP2Az/eBz1KtOb9opJN6L3xeih/U+Fp9WiTEJ44ASyUAuDhTWbmu6ifcLmjuwm6l98A== X-Received: by 10.60.96.74 with SMTP id dq10mr524097oeb.48.1460007241306; Wed, 06 Apr 2016 22:34:01 -0700 (PDT) Original-Sender: masanoriogino@gmail.com In-Reply-To: X-Google-Sender-Auth: Bn26y6BMHxGX-h15RLPNI7eJ5f4 Xref: news.gmane.org gmane.linux.lib.musl.general:9853 Archived-At: 2016-04-07 11:26 GMT+09:00 Daiki Ueno : > Masanori Ogino writes: >> That is why I proposed to have a blacklist of "broken" implementations >> as an option. >> >> AFAIK there have already been some blacklisting in autotools e.g. >> checking the version of glibc to reject specific broken implementation >> of a function. Thus, I think it's acceptable to use a blacklist. What >> do you think about it? > > Yes, that sounds like a good idea. But I guess we then need to collect > information about incompatible implementations. In this regard I'm > actually not sure if the gettext-tools test coverage can be used as an > indicator of compatibility. Indeed. > By the way, musl defines __GNU_GETTEXT_SUPPORTED_REVISION in the same > way as glibc: > > #define __GNU_GETTEXT_SUPPORTED_REVISION(major) ((major) == 0 ? 1 : -1) > > Is major = 1 + minor = 1 actually supported in musl? musl doesn't support "%Id" (major 1) IIRC. I suspect that musl actually supports "system dependent segment" (minor 1) as the GNU implementation does. On the other hand, glibc's definition is questionable too since it seems that glibc's gettext implements major 1. > After briefly checking Solaris 11 variants have: > > #define __GNU_GETTEXT_SUPPORTED_REVISION(m) \ > ((((m) == 0) || ((m) == 1)) ? 1 : -1) -- Masanori Ogino