X-Original-To: alpine-aports@mail.alpinelinux.org Delivered-To: alpine-aports@mail.alpinelinux.org Received: from mail.alpinelinux.org (dallas-a1.alpinelinux.org [127.0.0.1]) by mail.alpinelinux.org (Postfix) with ESMTP id 5D911DC61AA for ; Tue, 23 Feb 2016 12:05:20 +0000 (UTC) Received: from mail-lb0-f174.google.com (mail-lb0-f174.google.com [209.85.217.174]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by mail.alpinelinux.org (Postfix) with ESMTPS id EA624DC61A9 for ; Tue, 23 Feb 2016 12:05:19 +0000 (UTC) Received: by mail-lb0-f174.google.com with SMTP id x4so100279701lbm.0 for ; Tue, 23 Feb 2016 04:05:19 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:date:from:to:cc:subject:message-id:in-reply-to:references :mime-version:content-type:content-transfer-encoding; bh=i4bOrbZ93XBQHxk3vgXNFnmW55UeT+Jd3jN+oQjxdn8=; b=n98lUX0SW4WPmbVJMo2B4Px7mBne1Khj2/UUArbqYAvXmfz+1WKVAHYP0IHRtNM9ip BnsiM7/P0z/yjlFBfkbBodbLPfpxIVYqdBhxVrbjvTJuABGxYuly5joL6wry8k9fjbH/ qiOj9IkQc6uoSc8Q8ZPFN4dc3NjKPDbNgTqMahNXEo6B1je0z9DC1P3fZ1wA1beWfOHP TG5wcIS22xcYuxLFtfkbUUccKtzfd31cIkWzkFcnc8owul1l7HTS/w6/Bxb1+t1SqQfb J28BaykFKwgbAoWmfcRMbjrAdI0fBKOBhJ3B04zs98w7LGaEy5+QMzjzv0u3jTi1VN/Z kdyg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:sender:date:from:to:cc:subject:message-id :in-reply-to:references:mime-version:content-type :content-transfer-encoding; bh=i4bOrbZ93XBQHxk3vgXNFnmW55UeT+Jd3jN+oQjxdn8=; b=VQqCEF/g/JwTKlWBO7agOnEK6Dso1i5KWvsT0It21AXCRP3qjfllY8IoRbc+O2vAv2 hpmsH+MI7KV7EmCThoO6QenZZXy0mGdGRusebZ3ovQtf9yxp+i7F0uan2GIzDyfKli+J TGW8On/A5xfReKHgPXjpnIpNW7Sj8p4qg8fyo9+aHfwoh/aDaqAUkPfb9XH/zUNEcPOk YRuaIaeDGC0/pJioVqTR29trAQ0DO4izsBik+OWHHzWJ2e7ip3OhEKluiRU5cKaDcbf/ o/ungypNWehofXT2qhXuQ8gb1j1bTkR0VFzOJH0nYZKmkET5Lx3l+MaE2x3iESulNozg GNNA== X-Gm-Message-State: AG10YOT5HAVfQg9kBLFVT9/7uY744rp/OCpW1MXG8SJ9Ds5HEAqu6RX3DJ/D8G4jgoN3KA== X-Received: by 10.112.170.73 with SMTP id ak9mr12124254lbc.92.1456229117862; Tue, 23 Feb 2016 04:05:17 -0800 (PST) Received: from vostro.util.wtbts.net ([2001:1bc8:101:f402:21a:9fff:fe0c:4022]) by smtp.gmail.com with ESMTPSA id rk1sm4067961lbb.0.2016.02.23.04.05.17 (version=TLSv1/SSLv3 cipher=OTHER); Tue, 23 Feb 2016 04:05:17 -0800 (PST) Sender: =?UTF-8?Q?Timo_Ter=C3=A4s?= Date: Tue, 23 Feb 2016 14:05:15 +0200 From: Timo Teras To: Valery Kartel Cc: alpine-aports@lists.alpinelinux.org Subject: Re: [alpine-aports] [PATCH v2] main/glib: add system pcre support, bash completion moved to subpackage Message-ID: <20160223140515.45adce67@vostro.util.wtbts.net> In-Reply-To: <1453909062-16950-1-git-send-email-valery.kartel@gmail.com> References: <1453909062-16950-1-git-send-email-valery.kartel@gmail.com> X-Mailer: Claws Mail 3.13.2 (GTK+ 2.24.28; x86_64-alpine-linux-musl) X-Mailinglist: alpine-aports Precedence: list List-Id: Alpine Development List-Unsubscribe: List-Post: List-Help: List-Subscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Virus-Scanned: ClamAV using ClamSMTP Hi, Sorry for the late response on this one. We've been backlogged. On Wed, 27 Jan 2016 17:37:42 +0200 Valery Kartel wrote: > diff --git a/main/glib/APKBUILD b/main/glib/APKBUILD > index 930e54f..f73ffe5 100644 > @@ -40,41 +38,40 @@ build() { > --mandir=/usr/share/man \ > --disable-gtk-doc \ > --disable-compile-warnings \ > + --with-pcre=system \ > + --with-pic \ --with-pic is probably not required. And the system PCRE is kind of discouraged by glib. https://developer.gnome.org/glib/stable/glib-building.html sayeth: ... GRegex uses the PCRE library for regular expression matching. The default is to use the internal version of PCRE that is patched to use GLib for memory management and Unicode handling. If you prefer to use the system-supplied PCRE library you can pass the --with-pcre=system option to, but it is not recommended. ... and ... --with-pcre. Specify whether to use the internal or the system-supplied PCRE library. 'internal' means that GRegex will be compiled to use the internal PCRE library. 'system' means that GRegex will be compiled to use the system-supplied PCRE library. Using the internal PCRE is the preferred solution: System-supplied PCRE has a separated copy of the big tables used for Unicode handling. Some systems have PCRE libraries compiled without some needed features, such as UTF-8 and Unicode support. PCRE uses some global variables for memory management and other features. In the rare case of a program using both GRegex and PCRE (maybe indirectly through a library), this variables could lead to problems when they are modified. ... While generally we prefer to use system libraries. But I'm wondering is it useful in this case as upstream has modified package, and they spend lot of paragaphs explaining why it's not good idea. I suppose if our PCRE has utf8 in good condition. The real reason would be the pcre's global state. Do you know if this is fixed in pcre releases, or if the above concern is valid? All this said, the other package splitting changes and bash-completion stuff looks good. Perhaps you could send that separately first? I'm happy to apply it right away. But this --with-pcre=system probably needs comments from others and a bit more of discussion. Thanks, Timo --- Unsubscribe: alpine-aports+unsubscribe@lists.alpinelinux.org Help: alpine-aports+help@lists.alpinelinux.org ---