-
Notifications
You must be signed in to change notification settings - Fork 2k
Rename config0.m4 to config.m4 to avoid phpize failure #89
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
These look related: |
I think with the bugs linked by @md5, I would be hesitant to change what is a "bug in |
@yosifkit Another possibility would be to add all the ones that use |
Are there other instances besides just "config0" ? They seem to allude to
"config9", etc being possible too.
|
I had assumed that |
"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.
|
Not a typo 👍 |
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. |
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 |
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... |
@xuhdev 👍 |
That looks great to me 👍. |
I may check this myself later if I have some time, but are |
@md5 I think if you didn't add the option |
Thanks @xuhdev 👍 |
Looks like
|
@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
@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. |
LGTM |
1 similar comment
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.