php: zlib and zip support
PATCH v2 1/1 php: zlib and zip support
Add back zlib support. Define zip support but do not enable it.
--- meta-oe/recipes-devtools/php/php.inc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-)
meta-oe/recipes-devtools/php/php.inc +3 -1
@@ -59,7 +59,7 @@ EXTRA_OECONF = "--enable-mbstring \ --enable-fpm \ --with-libdir=${baselib} \ --with-gettext=${STAGING_LIBDIR}/.. \ - --with-libzip=${STAGING_LIBDIR}/.. \ + --with-zlib=${STAGING_LIBDIR}/.. \ --with-iconv=${STAGING_LIBDIR}/.. \ --with-bz2=${STAGING_DIR_TARGET}${exec_prefix} \ --with-config-file-path=${sysconfdir}/php/apache2-php${PHP_MAJOR_VERSION} \
@@ -81,6 +81,8 @@ PACKAGECONFIG ??= "mysql sqlite3 imap opcache openssl \ " PACKAGECONFIG_class-native = "" +PACKAGECONFIG[zip] = "--enable-zip --with-libzip=${STAGING_EXECPREFIXDIR},,libzip" + PACKAGECONFIG[mysql] = "--with-mysql=${STAGING_DIR_TARGET}${prefix} \ --with-mysqli=${STAGING_BINDIR_CROSS}/mysql_config \ --with-pdo-mysql=${STAGING_BINDIR_CROSS}/mysql_config \
Signature · 1 line
2.7.4
Quoted 1 line · Joe Slater
Add back zlib support. Define zip support but do not enable it.
Can you explain what that achieves.
From the change it looks like you have duplicated the default config and added a PACKAGECONFIG. Why do you need both?
../Randy
Quoted 29 lines
Signed-off-by Joe Slater <[email protected]>--- meta-oe/recipes-devtools/php/php.inc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-)meta-oe/recipes-devtools/php/php.inc +3
-1@@ -59,7 +59,7 @@ EXTRA_OECONF = "--enable-mbstring \ --enable-fpm \ --with-libdir=${baselib} \ --with-gettext=${STAGING_LIBDIR}/.. \ - --with-libzip=${STAGING_LIBDIR}/.. \ + --with-zlib=${STAGING_LIBDIR}/.. \ --with-iconv=${STAGING_LIBDIR}/.. \ --with-bz2=${STAGING_DIR_TARGET}${exec_prefix} \ --with-config-file-path=${sysconfdir}/php/apache2-php${PHP_MAJOR_VERSION} \@@ -81,6 +81,8 @@ PACKAGECONFIG ??= "mysql sqlite3 imap opcache openssl \ " PACKAGECONFIG_class-native = "" +PACKAGECONFIG[zip] = "--enable-zip --with-libzip=${STAGING_EXECPREFIXDIR},,libzip" + PACKAGECONFIG[mysql] = "--with-mysql=${STAGING_DIR_TARGET}${prefix} \ --with-mysqli=${STAGING_BINDIR_CROSS}/mysql_config \ --with-pdo-mysql=${STAGING_BINDIR_CROSS}/mysql_config \
Signature · 2 lines
# Randy MacLeod # Wind River Linux
I think the current config does not enable either zlib or zip. It defines --with-libzip, but does not enable it with --enable-zip. It also does not define --with-zlib, so we lose that.
The original concern was that phoronix-test-suite would put out a message at runtime that it needed php zip. I think this message is wrong and all it needs is zlib. So, I decided to bring both back but not enable zip because it needs an extra package. The "old" way of supporting php zip used a bundled library. That way has been deprecated, so if we want zip, we need libzip.
This patch is aimed at helping phoronix-test-suite and easing php zip support should someone desire to add that via PACKAGECONFIG. I would be happy to put zip into the default config, but who really needs it?
Joe
-----Original Message-----
From: MacLeod, Randy <[email protected]>
Sent: Thursday, August 15, 2019 4:01 PM
To: Slater, Joseph <[email protected]>; [email protected]
Subject: Re: [meta-oe][V2][PATCH 1/1] php: zlib and zip support
Quoted 1 line · Joe Slater
Add back zlib support. Define zip support but do not enable it.
Can you explain what that achieves.
From the change it looks like you have duplicated the default config and added a PACKAGECONFIG. Why do you need both?
../Randy
Quoted 21 lines
Signed-off-by Joe Slater <[email protected]>--- meta-oe/recipes-devtools/php/php.inc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-)meta-oe/recipes-devtools/php/php.inc +1
-1@@ -59,7 +59,7 @@ EXTRA_OECONF = "--enable-mbstring \ --enable-fpm \ --with-libdir=${baselib} \ --with-gettext=${STAGING_LIBDIR}/.. \ - --with-libzip=${STAGING_LIBDIR}/.. \ + --with-zlib=${STAGING_LIBDIR}/.. \ --with-iconv=${STAGING_LIBDIR}/.. \ --with-bz2=${STAGING_DIR_TARGET}${exec_prefix} \
meta-oe/recipes-devtools/php/php.inc EXTRA_OECONF = "--enable-mbstring \
Quoted 10 lines
meta-oe/recipes-devtools/php/php.inc +2
-2--with-config-file-path=${sysconfdir}/php/apache2-php${PHP_MAJOR_VERSION} \ @@ -81,6 +81,8 @@ PACKAGECONFIG ??= "mysql sqlite3 imap opcache openssl \ " PACKAGECONFIG_class-native = "" +PACKAGECONFIG[zip] = "--enable-zip --with-libzip=${STAGING_EXECPREFIXDIR},,libzip" + PACKAGECONFIG[mysql] = "--with-mysql=${STAGING_DIR_TARGET}${prefix} \ --with-mysqli=${STAGING_BINDIR_CROSS}/mysql_config \ --with-pdo-mysql=${STAGING_BINDIR_CROSS}/mysql_config \
--
# Randy MacLeod
# Wind River Linux
Quoted 6 lines · Joseph
I think the current config does not enable either zlib or zip. It defines --with-libzip, but does not enable it with --enable-zip. It also does not define --with-zlib, so we lose that.
The original concern was that phoronix-test-suite would put out a message at runtime that it needed php zip. I think this message is wrong and all it needs is zlib. So, I decided to bring both back but not enable zip because it needs an extra package. The "old" way of supporting php zip used a bundled library. That way has been deprecated, so if we want zip, we need libzip.
This patch is aimed at helping phoronix-test-suite and easing php zip support should someone desire to add that via PACKAGECONFIG. I would be happy to put zip into the default config, but who really needs it?
The context is good to know.
I read your v2 patch too quickly so now that you have explained what's going on and I see that:
zlib !- libzip
I withdraw my request for additional long log. Sorry for the noise.
../Randy
Quoted 52 lines
Joe
-----Original Message-----
From: MacLeod, Randy <[email protected]>
Sent: Thursday, August 15, 2019 4:01 PM
To: Slater, Joseph <[email protected]>; [email protected]
Subject: Re: [meta-oe][V2][PATCH 1/1] php: zlib and zip supportQuoted 1 line · Joe Slater
Add back zlib support. Define zip support but do not enable it.
Can you explain what that achieves.
From the change it looks like you have duplicated the default config and added a PACKAGECONFIG. Why do you need both?../Randy
Quoted 21 lines
Signed-off-by Joe Slater <[email protected]>--- meta-oe/recipes-devtools/php/php.inc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-)meta-oe/recipes-devtools/php/php.inc +1
-1@@ -59,7 +59,7 @@ EXTRA_OECONF = "--enable-mbstring \ --enable-fpm \ --with-libdir=${baselib} \ --with-gettext=${STAGING_LIBDIR}/.. \ - --with-libzip=${STAGING_LIBDIR}/.. \ + --with-zlib=${STAGING_LIBDIR}/.. \ --with-iconv=${STAGING_LIBDIR}/.. \ --with-bz2=${STAGING_DIR_TARGET}${exec_prefix} \meta-oe/recipes-devtools/php/php.inc EXTRA_OECONF = "--enable-mbstring \
Quoted 10 lines
meta-oe/recipes-devtools/php/php.inc +2
-2--with-config-file-path=${sysconfdir}/php/apache2-php${PHP_MAJOR_VERSION} \ @@ -81,6 +81,8 @@ PACKAGECONFIG ??= "mysql sqlite3 imap opcache openssl \ " PACKAGECONFIG_class-native = "" +PACKAGECONFIG[zip] = "--enable-zip --with-libzip=${STAGING_EXECPREFIXDIR},,libzip" + PACKAGECONFIG[mysql] = "--with-mysql=${STAGING_DIR_TARGET}${prefix} \ --with-mysqli=${STAGING_BINDIR_CROSS}/mysql_config \ --with-pdo-mysql=${STAGING_BINDIR_CROSS}/mysql_config \--
# Randy MacLeod
# Wind River Linux
Signature · 2 lines
# Randy MacLeod # Wind River Linux