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 3A4A4DC28C5 for ; Sun, 27 Mar 2016 01:15:55 +0000 (UTC) Received: from mail-lf0-f66.google.com (mail-lf0-f66.google.com [209.85.215.66]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by mail.alpinelinux.org (Postfix) with ESMTPS id 9FB58DC00B6 for ; Sun, 27 Mar 2016 01:15:54 +0000 (UTC) Received: by mail-lf0-f66.google.com with SMTP id c62so5805615lfc.2 for ; Sat, 26 Mar 2016 18:15:53 -0700 (PDT) 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-transfer-encoding; bh=Fhds/BTg9iD7wWIZ/myP/lBl6L/3bWSfmX8LUbIfxsk=; b=qXcWLt1D9OIsnrfVsZRry8dKf1hi/sivFAhJ3MuCH6Ynmz+VVjQpX9Zadv1gjtM9kw LxuzNASk/qjfIP4dA+QIotlK9qoH6hY8dkjqAIOvI3KhjahX5BKCjmoCY0yQc1sWaJP3 VkUEb4GXdTa+s0t53Gzja4SU4yTU5TXiZbwxmYAp+6fuYMFofaPj/01djqi+9/K1vZT3 SmN3LAiPuolGsf0+qSvxBveZM5UkXmxwrKKoWiv9hn3wmrEvAYzjmu7AE5WU4UGZ5g+z hQppCX+5T1xKft7oanXkoSOnrPAGhoqanfClan2FC5CIWZHfcRqGVnP1AJHfub4fQ8nm XdZQ== 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-transfer-encoding; bh=Fhds/BTg9iD7wWIZ/myP/lBl6L/3bWSfmX8LUbIfxsk=; b=JX3Pa0bvnJAI7Ykd0mz9i0W1mOKNnZta2OZxKxStt+b8WfLbR7GDQdZJzMQEu7dl9s KsjXk7/ww1ffBlvRqtM0BPlKMsK92xE606+Ghkg7NC8tiKmApQnRpEwMrv/ORtS56Y5V hphAV/8ypJ6+lf8tM/8anYVUZhQeL7LknJ5PqOxiNmeF1H8/FQm2DgmG35NBihghRdul hJGmOtWqbh6UG7knXGwXQS5Aa1KRgQCPvRls11gfmxbvaczMjMJCd4+uWnDMg3XGLu1I luCLYiVdGj2gcEgTzdAvPhoIxpKOal4xI+WL87Hu1jBZVyZKdVUUjmjAuJn1ll7Ssa5r SfzA== X-Gm-Message-State: AD7BkJIRrPxI0BaE0x20EM5JcqzYItIZAnQsJ1ceZ4HrFeiORbH8wCCW/Jjx9yCm4yzjng== X-Received: by 10.25.208.143 with SMTP id h137mr4093372lfg.110.1458887383796; Thu, 24 Mar 2016 23:29:43 -0700 (PDT) Received: from vostro.util.wtbts.net ([2001:1bc8:101:f402:21a:9fff:fe0c:4022]) by smtp.gmail.com with ESMTPSA id m64sm1690170lfd.36.2016.03.24.23.29.42 (version=TLSv1/SSLv3 cipher=OTHER); Thu, 24 Mar 2016 23:29:43 -0700 (PDT) Sender: =?UTF-8?Q?Timo_Ter=C3=A4s?= Date: Fri, 25 Mar 2016 08:29:37 +0200 From: Timo Teras To: Valery Kartel Cc: alpine-aports@lists.alpinelinux.org Subject: Re: [alpine-aports] [PATCH] testing/php7: Make php7 to use it's own crypt_r implementation insteard of system one Message-ID: <20160325082937.27dea944@vostro.util.wtbts.net> In-Reply-To: <1458816588-14042-1-git-send-email-valery.kartel@gmail.com> References: <1458816588-14042-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 On Thu, 24 Mar 2016 12:49:48 +0200 Valery Kartel wrote: > Subject: PHP7 password_hash() crashes under Alpine Linux > From: Andy Pfeiffer > Date: 24/03/2016 09:17 (EET) > > Hi Valery, > sorry to contact you directly, but I don't have an account with > Alpine Linux Development neither I'm going to create one. Issue is > regarding PHP7 package using the following docker file: > > FROM alpine > > MAINTAINER xxxxx > > ENV PHP_VER "7" > > RUN apk update && \ > apk upgrade && \ > apk --no-cache --repository > http://dl-cdn.alpinelinux.org/alpine/edge/testing add \ nano \ > readline \ > php${PHP_VER} \ > php${PHP_VER}-common \. > php${PHP_VER}-fpm > > RUN echo " PASSWORD_DEFAULT).\"\n\"; ?>" >> /pw_hash.php > > CMD ["/usr/bin/php7", "/pw_hash.php"] > > The output of the docker run command is: > > PHP Fatal error: Allowed memory size of 134217728 bytes exhausted > (tried to allocate 8298485945901002016 bytes) in /pw_hash.php on line > 1 > > Using the PHP5 packages will give the (correct) result: > > $2y$10$de7p/1q2Xx/EyDpOp6ZBUOjf9gIqtrMR.r3Anh9B2lVCaJWPZSFs. > > If you can confirm the issue, please open a bug report. > > Thanks for supporting the community! > With best regards, > Andy > > btw: Would it be possible to create PHP7 packages for armhf > (raspberry, bananapi, ...) too? --- > testing/php7/APKBUILD | 12 ++++++++---- > testing/php7/use-internal-crypt_r.patch | 11 +++++++++++ > 2 files changed, 19 insertions(+), 4 deletions(-) > create mode 100644 testing/php7/use-internal-crypt_r.patch > > diff --git a/testing/php7/APKBUILD b/testing/php7/APKBUILD > index 8a56b5d..70a6c66 100644 > --- a/testing/php7/APKBUILD > +++ b/testing/php7/APKBUILD > @@ -3,7 +3,7 @@ > pkgname=php7 > _pkgreal=php > pkgver=7.0.4 > -pkgrel=0 > +pkgrel=1 > pkgdesc="The PHP language runtime engine - 7th branch" > url="http://www.php.net/" > arch="x86_64 armhf" > @@ -86,6 +86,7 @@ > source="http://php.net/distributions/$_pkgreal-$pkgver.tar.bz2 > tidy-buffio.patch includedir.patch > pid_log.patch > + use-internal-crypt_r.patch > " > > _apiver="20151012" > a/testing/php7/use-internal-crypt_r.patch > b/testing/php7/use-internal-crypt_r.patch new file mode 100644 index > 0000000..aafb48d --- /dev/null +++ > b/testing/php7/use-internal-crypt_r.patch @@ -0,0 +1,11 @@ +--- > a/configure.in ++++ b/configure.in +@@ -766,7 +766,7 @@ > + PHP_READDIR_R_TYPE > + PHP_CHECK_IN_ADDR_T > + > +-AC_CHECK_FUNCS(crypt_r, [ php_crypt_r="1" ], [ php_crypt_r="0" ]) > ++AC_CHECK_FUNCS(crypt_r, [ php_crypt_r="0" ], [ php_crypt_r="0" ]) > + if test "x$php_crypt_r" = "x1"; then > + PHP_CRYPT_R_STYLE > + fi I'd rather not break the configure script. Either remove the test, and unconditionally define php_crypt_r=0; or preferable fix the underlying cause. In fact, in the main/php package we patch php to fix the crypt issue. I can look at fixing it. --- Unsubscribe: alpine-aports+unsubscribe@lists.alpinelinux.org Help: alpine-aports+help@lists.alpinelinux.org ---