From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.org/gmane.linux.lib.musl.general/4044 Path: news.gmane.org!not-for-mail From: Justin Cormack Newsgroups: gmane.linux.lib.musl.general Subject: Re: GLOB_BRACE Date: Mon, 16 Sep 2013 14:47:09 +0100 Message-ID: References: <20130916125049.GG20515@brightrain.aerifal.cx> Reply-To: musl@lists.openwall.com NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=047d7b41c74ad2d8c904e6807099 X-Trace: ger.gmane.org 1379339238 31316 80.91.229.3 (16 Sep 2013 13:47:18 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 16 Sep 2013 13:47:18 +0000 (UTC) To: musl@lists.openwall.com Original-X-From: musl-return-4048-gllmg-musl=m.gmane.org@lists.openwall.com Mon Sep 16 15:47:23 2013 Return-path: Envelope-to: gllmg-musl@plane.gmane.org Original-Received: from mother.openwall.net ([195.42.179.200]) by plane.gmane.org with smtp (Exim 4.69) (envelope-from ) id 1VLZ99-0007fa-4I for gllmg-musl@plane.gmane.org; Mon, 16 Sep 2013 15:47:23 +0200 Original-Received: (qmail 13517 invoked by uid 550); 16 Sep 2013 13:47:22 -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 13507 invoked from network); 16 Sep 2013 13:47:22 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=specialbusservice.com; s=google; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=XICCQYHw+YVkPNFxyXJNOc3S9vGsV9yYbyNy9Y+IAiw=; b=kPS02dbGp0o/ik5sOUbayK/3Q9WWC1Wyn32RYdbuyq3KUS4i91RPXBhxqhw+MmFi1q ER0HmuzZNNtVbMK6rBy87MIUledPYeMLjMjVeo3QZHAi65g5KhVOjsTuyRByePMHvXg1 c4/h8GJZqISlJ9SsTMSPP8ZSvGaTVrXC7yqO4= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:date :message-id:subject:from:to:content-type; bh=XICCQYHw+YVkPNFxyXJNOc3S9vGsV9yYbyNy9Y+IAiw=; b=TnsBsnqA1ZNajpAobXocx3h0ERrtoVTybejM1452yP3sWzcjgnwVzbXho8YsKoBQIE Jjyb0El/3QN0OTFDBGD9pLxKZKeN9BIkXHfuIqQCr8hJ3qvWfNcm22yDp65iuDAykfd+ 2cZBAJaDOOdLFs0q2L/B6BqsuwyKWeL4tacCujSznwhnsf+PTarjRiGF0M5UP+ftSIoZ yjURoNb+I8HzuM3HcVuqkdbZXZdE3+fi7ClFaJDd97SO0Komh1SSzSTXuCyzd2V6v80o iSBGoCYX88J+8TF2KIWanCYVYNYTUGdlHQ8OXFMQM8uD8souFhSYxW1nDtDkwTuLv3+2 rFQg== X-Gm-Message-State: ALoCoQkVQyuFsxq/RWN5F/AJdEpmJordLJYAF50g8r8LvLNJ7qL9CK+ZduCDY/PhIkXYfU4GyCIM X-Received: by 10.66.122.9 with SMTP id lo9mr1981667pab.161.1379339229904; Mon, 16 Sep 2013 06:47:09 -0700 (PDT) In-Reply-To: Xref: news.gmane.org gmane.linux.lib.musl.general:4044 Archived-At: --047d7b41c74ad2d8c904e6807099 Content-Type: text/plain; charset=UTF-8 On 16 Sep 2013 14:41, "Paul Schutte" wrote: > > Hi Rich, > > Thanks. Just wanted to get confirmation in case I missed something. > > I guess systemd was written with only linux in mind and therefore used a lot of glibc specific stuff. > > I found a lot of other portability problems since sending this message. > > It won't be easy to make systemd work (To me in any case). Given that portability is a stated non goal getting anything upstream may be difficult for this project... > Regards > Paul > > > > On Mon, Sep 16, 2013 at 2:50 PM, Rich Felker wrote: >> >> On Sun, Sep 15, 2013 at 10:57:20PM +0200, Paul Schutte wrote: >> > Hi, >> > >> > I have hit the next stumbling block (show stopper): >> > >> > src/shared/util.c: In function 'glob_exists': >> > src/shared/util.c:4376:36: error: 'GLOB_BRACE' undeclared (first use in >> > this function) >> > src/shared/util.c:4376:36: note: each undeclared identifier is reported >> > only once for each function it appears in >> > >> > >> > I see this is and non-standard posix extension. I guess that is it for >> > systemd for now then. >> >> The correct action for programs that need GNU functionality like this >> is to include their own copy of the GNU function (usually as part of >> gnulib) and use it if the system does not have it. >> >> In the case of GLOB_BRACE and the other GNU extensions to >> glob/fnmatch, it's not clear to me that they admit an efficient >> in-place implementation, and I doubt they do. That's why musl does not >> support them. >> >> Rich > > --047d7b41c74ad2d8c904e6807099 Content-Type: text/html; charset=UTF-8


On 16 Sep 2013 14:41, "Paul Schutte" <sjpschutte@gmail.com> wrote:
>
> Hi Rich,
>
> Thanks. Just wanted to get confirmation in case I missed something.
>
> I guess systemd was written with only linux in mind and therefore used a lot of glibc specific stuff.
>
> I found a lot of other portability problems since sending this message.
>
> It won't be easy to make systemd work (To me in any case).

Given that portability is a stated non goal getting anything upstream may be difficult for this project...

> Regards
> Paul
>
>
>
> On Mon, Sep 16, 2013 at 2:50 PM, Rich Felker <dalias@aerifal.cx> wrote:
>>
>> On Sun, Sep 15, 2013 at 10:57:20PM +0200, Paul Schutte wrote:
>> > Hi,
>> >
>> > I have hit the next stumbling block (show stopper):
>> >
>> > src/shared/util.c: In function 'glob_exists':
>> > src/shared/util.c:4376:36: error: 'GLOB_BRACE' undeclared (first use in
>> > this function)
>> > src/shared/util.c:4376:36: note: each undeclared identifier is reported
>> > only once for each function it appears in
>> >
>> >
>> > I see this is and non-standard posix extension. I guess that is it for
>> > systemd for now then.
>>
>> The correct action for programs that need GNU functionality like this
>> is to include their own copy of the GNU function (usually as part of
>> gnulib) and use it if the system does not have it.
>>
>> In the case of GLOB_BRACE and the other GNU extensions to
>> glob/fnmatch, it's not clear to me that they admit an efficient
>> in-place implementation, and I doubt they do. That's why musl does not
>> support them.
>>
>> Rich
>
>

--047d7b41c74ad2d8c904e6807099--