Newsgroups: php.internals,php.pecl.dev Path: news.php.net Xref: news.php.net php.internals:85837 php.pecl.dev:12823 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 87865 invoked from network); 16 Apr 2015 17:52:12 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 16 Apr 2015 17:52:12 -0000 Authentication-Results: pb1.pair.com header.from=pierre.php@gmail.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=pierre.php@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.192.43 as permitted sender) X-PHP-List-Original-Sender: pierre.php@gmail.com X-Host-Fingerprint: 209.85.192.43 mail-qg0-f43.google.com Received: from [209.85.192.43] ([209.85.192.43:33203] helo=mail-qg0-f43.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 7E/B6-39957-BC6FF255 for ; Thu, 16 Apr 2015 13:52:12 -0400 Received: by qgdy78 with SMTP id y78so9620320qgd.0; Thu, 16 Apr 2015 10:52:08 -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:content-type; bh=4OjBggAvrUiocecg/Jf/LZPMMiGmczmAbiitn9p81nc=; b=uBjyIzpBT7oipf2vm8ix8NDlB5m59Ig6TjNp4iTk5pRVe2FqT20wv/QV8PBLtkz7QI UfP/4Oto1K2i2fDjhzLm7H/N0q3SFxtcCiUTBkK5E2W1fDE9rkTbTcbg4mqK+8iiF88U f7lRmQZvNQxg0Zzthnmy/Xv0qi+Li2NCYyBxW62/afbbl3MgONkdnC8uca9n4ZYjZcnM J9gBx2piClvDQ0iS6V8ZfrtgxGf+jqSzPvY8faF/lOrmP97jFbH/cMQxKgjZUkyl2mne T58xzKMyjGiwVb2lWhUXwNW59hw++Ls3J+qMhT7M266QfoXVPq0N2SUk4A4cCeYaPs/I GDFg== MIME-Version: 1.0 X-Received: by 10.140.149.147 with SMTP id 141mr25059581qhv.17.1429206728749; Thu, 16 Apr 2015 10:52:08 -0700 (PDT) Received: by 10.96.39.195 with HTTP; Thu, 16 Apr 2015 10:52:08 -0700 (PDT) In-Reply-To: References: <552D4FD4.7070005@divbyzero.net> Date: Fri, 17 Apr 2015 00:52:08 +0700 Message-ID: To: Hannes Magnusson Cc: Ferenc Kovacs , PHP Development , PECL Dev , Martin Jansen , PHP Systems Content-Type: text/plain; charset=UTF-8 Subject: Re: PECL install no longer works out of the box From: pierre.php@gmail.com (Pierre Joye) On Fri, Apr 17, 2015 at 12:43 AM, Hannes Magnusson wrote: > On Thu, Apr 16, 2015 at 10:14 AM, Ferenc Kovacs wrote: >> >> >> On Thu, Apr 16, 2015 at 5:29 PM, Pierre Joye wrote: >>> >>> On Thu, Apr 16, 2015 at 10:02 PM, Ferenc Kovacs wrote: >>> > >>> > >>> >> >>> >> As of the uncompressed data, I see something like less 0.01% of the >>> >> requests actually requesting non compressed archives, the box he uses >>> >> must on of the 3-4. We are in the 21st century and compressed output >>> >> is quite a standard. It makes the server serves faster too as we rely >>> >> on X-SendFile, as I reportedly said on this list during the migration, >>> >> and ask for tests. >>> > >>> > >>> > hi Pierre, >>> > >>> > where do you get this 0.01%? >>> > from a quick look: >>> > root@pecl:~# grep '.tar.gz ' /var/log/apache2/pecl.php.net-access.log|wc >>> > -l >>> > 242 >>> > root@pecl:~# grep '.tar ' /var/log/apache2/pecl.php.net-access.log|wc -l >>> > 1350 >>> > so the majority of the download requests are looking for the >>> > uncompressed >>> > tar file, which is doesn't work now thanks to your changes. >>> > is there another metric or something that I'm missing? >>> > it seems that this is something which we should fix/restore even if it >>> > costs >>> > us a bit more cpu. >>> >>> I check with the whole old log, was low. >>> >>> No need to change the download code. >>> >>> I will run a script to store both tgz and tar, easier and better. And >>> changing the release code to save the uncompressed archive as well. >>> Way better than what we had before. And if we like to be the only one >>> to provide uncompressed download of our releases, why not, I do not >>> mind much ;-) >>> >>> But that's actually not a bug as of now, the SSL thing Hannes was >>> experiencing is what I was asking for, it is what I wonder what >>> happened to get the installer requesting SSL: in the 1st place and how >>> it ends up like that and failed. But Hannes seems to do not care, so I >>> will simply enable SSL again and that should be it. >>> >>> Cheers, >>> -- >>> Pierre >>> >>> @pierrejoye | http://www.libgd.org >> >> >> >> ok, after discussing with Pierre I gunzipped the release tarballs so now >> they are there, Pierre will update the release upload/delete code so that we >> also store/delete the .tar files so they can be also served via sendfile. > > $ sudo pecl install memcached > Could not download from "http://pecl.php.net/get/memcached-2.2.0.tar", > cannot download "pecl/memcached" (File > http://pecl.php.net:80/get/memcached-2.2.0.tar not valid (received: > HTTP/1.0 404 Not Found > )) > Error: cannot download "pecl/memcached" > Download failed > install failed > > > Still doesn't work... Maybe peclweb hasn't updated yet? > > >> about the ssl related changes: we should look into the cause and there is a >> chance that we will also need to fix/update the pear installer. > > > The fix would need to be BC though -- prioritize https, and issue > warning on failure. You cannot just remove http downloads without > announcing it. > > You have to be able to install pecl extensions with minimal PHP install: > ./configure --disable-all --enable-cli && pecl install foobar > > heck, currently even standard PHP-out-of-the-box ./configure is good > enough to install pecl extension because it doesn't even enable zlib > and openssl by default. > > So until the zlib and openssl extension become requirements we cannot > screw people over like that. Actually the SSL update should show a notice that the channel has been updated as well as making openssl and zlib requirements for pecl command line tools. Zlib does not have to be a requirement anymore as the tar are available. When called from the installer, the /get/ call is used, so yes, wait until peclweb is updated.The 404 commits for .tar have been reverted so everything should be fine. We may however allow http://pecl.php.net/channel.xml, and only that, so even install without openssl will get it. I will look into that in the next days, test with default pear install and enable ssl again. https is not an option to distribute software, sorry. I also reported a bug to pear about updating the default channel, and gzip, while it is not a requirement anymore but at least ppl will get smaller packages then. Cheers, -- Pierre @pierrejoye | http://www.libgd.org