X-Original-To: alpine-devel@mail.alpinelinux.org Delivered-To: alpine-devel@mail.alpinelinux.org Received: from mail.alpinelinux.org (dallas-a1.alpinelinux.org [127.0.0.1]) by mail.alpinelinux.org (Postfix) with ESMTP id 2B682DC1167 for ; Mon, 4 Apr 2016 07:00:57 +0000 (UTC) Received: from mail-lb0-f177.google.com (mail-lb0-f177.google.com [209.85.217.177]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by mail.alpinelinux.org (Postfix) with ESMTPS id 33FFCDC0501 for ; Mon, 4 Apr 2016 07:00:55 +0000 (UTC) Received: by mail-lb0-f177.google.com with SMTP id vo2so145831278lbb.1 for ; Mon, 04 Apr 2016 00:00:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc; bh=odJ89gA36W52m4gN5q9+k8kZoCBnTKvtS7XkpT11IjU=; b=v6mNHrtkd8ozgiUtScmKhxA0mIGtn+iXXdt/5ECWmo9TTuZ459G3opna6pFFf4Bs1P Si8Icyycf5MCND16rC4JbYMwtiXuwSXRlXzUXx2rMx4+PS2chAy6rKGfAQyAdiPbs8Qf f7Bi+Ws0mfNYYqVEhbXfM6S4vNMExE7dtJXEGsi/ZTXHl3uGQ3y62cOYwMDCoyFH2Mva lpKSgjXpks9XFrhNztRBtvU2GXbv6s5joZjVEsOiQcDF0gsD+DL07dq5BIzCM/58bVdk iNrQJXeZTItiScFWipRY1EyNrsL4GzC+R8Se6FlFZB5tKCUifkbm30pRg4XVo3HoD03t Q9/w== 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:cc; bh=odJ89gA36W52m4gN5q9+k8kZoCBnTKvtS7XkpT11IjU=; b=XE23Xm9dstn9XQs0UTQGpjIYn8dctQo5CBpKKqWWDdxT05JDNyK7gZqkp3533NA3/R Pfwqk2N1UREcg4vFSrMEGP4yKzMP/m7NDhxQzWOTUdO8O6a/LcjxSo8BmtVYOXsepn/4 8KVdbrq8GCtygTzVbjeKN9E+Uvaxw4yFWdWG/vs8VyGdj2JRcrzhuLv+I1hHtlfNj9eE u67dE3F+AERp+emUAQ688sOrgj29BgfoQfOYHyEC/G3dsxVJXrUze7nXyFGvLOd+dn7y ipc3c+ID6KpJAJ5tMH0dl6GAFB+jmSVKGK7hh63gK+fPDo3vus/eYdb/v/kito+hn45Z zznQ== X-Gm-Message-State: AD7BkJJZSU0SqB65PoRsim3FC5DPDk1SrHRJ2liHCA+NWLzaU2kaNBySKf92Tp/7k7bxJdygl6XvUDSbWiQrRA== X-Mailinglist: alpine-devel Precedence: list List-Id: Alpine Development List-Unsubscribe: List-Post: List-Help: List-Subscribe: MIME-Version: 1.0 X-Received: by 10.112.235.195 with SMTP id uo3mr5399783lbc.18.1459753252368; Mon, 04 Apr 2016 00:00:52 -0700 (PDT) Received: by 10.25.3.215 with HTTP; Mon, 4 Apr 2016 00:00:52 -0700 (PDT) In-Reply-To: <20160404083503.485886bb@vostro.util.wtbts.net> References: <20160403220435.3702f5be@vostro> <20160404083503.485886bb@vostro.util.wtbts.net> Date: Mon, 4 Apr 2016 10:00:52 +0300 Message-ID: Subject: [alpine-devel] Re: php7 in alpine From: Valery Kartel To: Timo Teras Cc: alpine-devel@lists.alpinelinux.org, Fabio da Silva Ribeiro , Andy Blyler , IT Developer Content-Type: multipart/alternative; boundary=001a11c3193a113789052fa34a74 X-Virus-Scanned: ClamAV using ClamSMTP --001a11c3193a113789052fa34a74 Content-Type: text/plain; charset=UTF-8 > I don't like: > + elo=$(echo $2 | wc -w | awk '{printf "%02d", $1}') Think it easier not to count number of dependencies and just set elo to 01 if any dependency exists. + elo=01 2016-04-04 8:35 GMT+03:00 Timo Teras : > On Mon, 4 Apr 2016 00:31:32 +0300 > Valery Kartel wrote: > > > And about extension loading order. I know how it done in FreeBSD - > > it's like a shuffle a deck of cards in one ini file. In other distros > > its resolved by renaming of ini files to make right alphabetical > > loading order ... and in alpine too (main/php - wddx extension). I > > introduced clean and simple workaround to solve loading order for > > bundled extensions and for 3rd party extensions. If anybody made it > > simpler, it would be great because I don't like any leading numbers > > in ini filenames but I see it's the only way to solve it. > > I don't like: > + elo=$(echo $2 | wc -w | awk '{printf "%02d", $1}') > > That requires multiple forks to get a simple number, and which is > called multiple times. > > Alternatives: > > 1) Add global counter that is used as the prefix. Increment it > every time _mv_ext is called. Order the split functions in > dependency order (not alphabetical like currently). > > 2) Add parameter to _mv_ext that specifies the prefix, and manually add > it to all _mv_ext calls. > > 3) Copy what the main/php package does - make session extension static, > and special case wddx (xml_ prefix), and opcache (use zend_extensions > directive). > > Any other ideas? > --001a11c3193a113789052fa34a74 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
> I don't like:
> +=C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0elo=3D$(echo $2 | wc -w | awk = '{printf "%02d", $1}')

=C2=A0Think it easier= not to count number of dependencies and just set elo to 01 if any dependen= cy exists.

+=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0=C2=A0 e= lo=3D01


2016-= 04-04 8:35 GMT+03:00 Timo Teras <timo.teras@iki.fi>:
On Mon, 4 Apr 2016 00:31:32 +03= 00
Valery Kartel <valery.kartel@= gmail.com> wrote:

> And about extension loading order. I know how it done in FreeBSD -
> it's like a shuffle a deck of cards in one ini file. In other dist= ros
> its resolved by renaming of ini files to make right alphabetical
> loading order ... and in alpine too (main/php - wddx extension). I
> introduced clean and simple workaround to solve loading order for
> bundled extensions and for 3rd party extensions. If anybody made it > simpler, it would be great because I don't like any leading number= s
> in ini filenames but I see it's the only way to solve it.

I don't like:
+=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0elo=3D$(echo $2 | w= c -w | awk '{printf "%02d", $1}')

That requires multiple forks to get a simple number, and which is
called multiple times.

Alternatives:

1) Add global counter that is used as the prefix. Increment it
=C2=A0 =C2=A0every time _mv_ext is called. Order the split functions in
=C2=A0 =C2=A0dependency order (not alphabetical like currently).

2) Add parameter to _mv_ext that specifies the prefix, and manually add
=C2=A0 =C2=A0it to all _mv_ext calls.

3) Copy what the main/php package does - make session extension static,
=C2=A0 =C2=A0and special case wddx (xml_ prefix), and opcache (use zend_ext= ensions
=C2=A0 =C2=A0directive).

Any other ideas?

--001a11c3193a113789052fa34a74-- --- Unsubscribe: alpine-devel+unsubscribe@lists.alpinelinux.org Help: alpine-devel+help@lists.alpinelinux.org ---