Uh oh!
There was an error while loading. Please reload this page.
Rename config0.m4 to config.m4 to avoid phpize failure - #89
Conversation
md5
commented
Apr 13, 2015
These look related: |
yosifkit
commented
Apr 14, 2015
I think with the bugs linked by @md5, I would be hesitant to change what is a "bug in |
md5
commented
Apr 14, 2015
@yosifkit Another possibility would be to add all the ones that use |
tianon
commented
Apr 14, 2015
via email
Are there other instances besides just "config0" ? They seem to allude to
"config9", etc being possible too. |
md5
commented
Apr 14, 2015
I had assumed that |
tianon
commented
Apr 14, 2015
via email
"The name actually is part of a simple dependency mechanism for building
extensions in the right order." is the part that makes me think it might
have been deliberate. Worth trying the "find -name 'config*.m4'" to find
out for sure, though. |
md5
commented
Apr 14, 2015
Not a typo 👍 |
xuhdev
commented
Apr 15, 2015
Ideally if those extensions are configured during php installation, maybe you wanna see the size? I think some of them (sqlite3, pcre, date) are really important. |
yosifkit
commented
Apr 15, 2015
A size difference would be great. Could you make a comparison of enabling the ones we don't already have, that are unable to be |
xuhdev
commented
Apr 16, 2015
I applied this patch to the 5.6 CLI version diff --git a/5.6/Dockerfile b/5.6/Dockerfile
index c8976b3ed5c6..fb3ea3134f8c 100644
--- a/5.6/Dockerfile+++ b/5.6/Dockerfile@@ -1,7 +1,7 @@
FROM debian:jessie
# persistent / runtime deps
-RUN apt-get update && apt-get install -y ca-certificates curl libxml2 --no-install-recommends && rm -r /var/lib/apt/lists/*+RUN apt-get update && apt-get install -y ca-certificates curl libpcre3 libxml2 librecode0 --no-install-recommends && rm -r /var/lib/apt/lists/*
# phpize deps
RUN apt-get update && apt-get install -y autoconf file gcc libc-dev make pkg-config re2c --no-install-recommends && rm -r /var/lib/apt/lists/*
@@ -21,7 +21,9 @@ RUN buildDeps=" \
$PHP_EXTRA_BUILD_DEPS \
bzip2 \
libcurl4-openssl-dev \
+ libpcre3-dev \
libreadline6-dev \
+ librecode-dev \
libssl-dev \
libxml2-dev \
" \
@@ -42,7 +44,9 @@ RUN buildDeps=" \
--enable-mysqlnd \
--with-curl \
--with-openssl \
+ --with-pcre \
--with-readline \
+ --with-recode \
--with-zlib \
&& make -j"$(nproc)" \
&& make install \
Sizes:
test 406.9 MB
php 405.1 MB
I don't think it's really a problem... |
md5
commented
Apr 16, 2015
@xuhdev 👍 |
yosifkit
commented
Apr 16, 2015
That looks great to me 👍. |
md5
commented
Apr 16, 2015
I may check this myself later if I have some time, but are |
xuhdev
commented
Apr 16, 2015
@md5 I think if you didn't add the option |
md5
commented
Apr 16, 2015
Thanks @xuhdev 👍 |
md5
commented
Apr 16, 2015
Looks like |
yosifkit
commented
Apr 17, 2015
@xuhdev, want to just swap this PR or make a new one to just enabling the couple extensions? 1.8MB is a reasonable amount to me (and won't require changing the source files). |
Extensions added: pcre, recode, sqlite3
xuhdev
commented
Apr 18, 2015
@yosifkit Updated the commit. Note that I added the sqlite3 development files (otherwise the sqlite3 extension will not be built) and the size difference increases to 2.7M. |
yosifkit
commented
Apr 21, 2015
LGTM |
1 similar comment
tianon
commented
Apr 21, 2015
LGTM |
Rename config0.m4 to config.m4 to avoid phpize failure
phpize in docker-php-ext-install would fail if it cannot find config.m4. Some modules, such as zlib, sqlite3 use the name cnofig0.m4 instead of config.m4. This commit performs auto renaming after php is installed.