diff options
author | Eugene Lamskoy | 2022-02-18 14:02:15 +0200 |
---|---|---|
committer | Eugene Lamskoy | 2022-02-18 14:02:15 +0200 |
commit | 9b2747c1cd3ec04c1a68b96b4d615196b94031ee (patch) | |
tree | 565c2f4bd2f6f65aaea6d6896e8be8f1d6976886 | |
parent | 022812fa41ddc6e6a2c665f7961eade3c4ffe846 (diff) | |
download | aur-9b2747c1cd3ec04c1a68b96b4d615196b94031ee.tar.gz |
Test environment vars patch. Litespeed
-rw-r--r-- | .SRCINFO | 12 | ||||
-rw-r--r-- | .gitignore | 9 | ||||
-rw-r--r-- | PKGBUILD | 54 | ||||
-rw-r--r-- | make-tests.patch | 11 |
4 files changed, 82 insertions, 4 deletions
@@ -1,5 +1,5 @@ # Generated by makepkg 6.0.1 -# Thu Feb 3 18:42:06 UTC 2022 +# Fri Feb 18 10:57:32 UTC 2022 pkgbase = php71 pkgdesc = PHP 7.1.33 compiled as to not conflict with mainline php pkgver = 7.1.33 @@ -64,6 +64,7 @@ pkgbase = php71 makedepends = pam makedepends = libmcrypt options = !lto + source = make-tests.patch source = pear-config-patcher.php source = php-makefile-patcher.php source = php-apache.conf @@ -81,6 +82,7 @@ pkgbase = php71 source = php-phpinfo.patch source = timezonedb-guess.patch source = timezonedb-php7.1.patch + sha256sums = e6b8530d747000eebb0089249ec70a3b14add7b501337046700544883f62b17b sha256sums = 0b7e98dca9c996ec10cb9b3f6296bb7547c68797fd5f35006fdfd3e97700672d sha256sums = ba72fc64f77822755a469314160d5889d5298f4eb5758dd7939dac9b811afe52 sha256sums = 6d0ad9becb5470ce8e5929d7d45660b0f32579038978496317544c5310281a91 @@ -162,6 +164,14 @@ pkgname = php71-apache backup = etc/httpd/conf/extra/ backup = etc/php71/php.ini +pkgname = php71-litespeed + pkgdesc = LiteSpeed SAPI for php71 + depends = php71=7.1.33 + depends = libxml2 + depends = pcre2 + depends = libedit + backup = etc/php71/php.ini + pkgname = php71-pear pkgdesc = PHP Extension and Application Repository (PEAR) for php71 depends = php71=7.1.33 diff --git a/.gitignore b/.gitignore new file mode 100644 index 000000000000..f6f5173c4dba --- /dev/null +++ b/.gitignore @@ -0,0 +1,9 @@ +*.tar.xz +*.tar.xz.asc +*.gz +src/ +pkg/ +*.tar.* +*.t?z +*.log + @@ -1,16 +1,17 @@ ############################################################################### # Generated by arch-phpbs: https://github.com/lamskoy/arch-phpbs # -# My packages on AUR: php81 php74 php72 php55 php54 -# Co-maintaining on AUR: php73 php71 php70 +# Maintaining/co-maintaining on AUR: php81 php80 php74 php73 php72 php71 php70 php55 php54 php53 # # Thanks to: # +# AUR php80 Co-maintainer: Timo Sarawinski # AUR php70 and php71 Co-maintainer: William Gathoye <william@gathoye.be> # AUR php74 Co-maintainer: Tomasz Gruszka <tompear79@gmail.com> # AUR php73 Co-maintainer: Matt Harrison <matt@harrison.us.com> # AUR php73 Contirubutor: Pierre Schmitz <pierre@archlinux.de> # AUR php55 Original maintainer: Raphaƫl Doursenaud <rdoursenaud@gmail.com> +# AUR php53 Original maintainer: Felix Yan <felixonmars@archlinux.org> ############################################################################### _phpbase="71" _suffix="" @@ -36,7 +37,9 @@ _build_sapi_ini_cgi="etc/php71" _build_sapi_ini_cli="etc/php71" _build_sapi_ini_embed="etc/php71" _build_sapi_ini_fpm="etc/php71" +_build_sapi_ini_litespeed="etc/php71" _build_sapi_ini_phpdbg="etc/php71" +_build_sapi_litespeed="--with-litespeed" _build_shared_gd="1" _build_shared_json="1" _build_shared_libedit="0" @@ -66,6 +69,7 @@ pkgname=( "php71-fpm" "php71-embed" "php71-apache" + "php71-litespeed" "php71-pear" "php71-pecl" "php71-phpdbg" @@ -123,6 +127,7 @@ pkgname=( "php71-opcache" ) source=( + "make-tests.patch" "pear-config-patcher.php" "php-makefile-patcher.php" "php-apache.conf" @@ -499,6 +504,7 @@ _build_sapi() { pushd "build-${_sapi}" ./configure ${_phpconfig} ${_commands} + patch -p1 -i "${srcdir}/make-tests.patch" if (($_sapi != "cli")); then make clean @@ -611,6 +617,22 @@ build() { --disable-phpdbg \ " + # litespeed + _cflags="${CFLAGS}" + export CFLAGS="${CFLAGS} -Wno-error=format-security" + _build_sapi "litespeed" "\ + --sysconfdir=/${_build_sapi_ini_litespeed} \ + --with-config-file-path=/${_build_sapi_ini_litespeed} \ + --disable-all \ + --disable-cgi \ + --disable-cli \ + --disable-fpm \ + --disable-embed \ + --disable-phpdbg \ + ${_build_sapi_litespeed} \ + " + export CFLAGS="${_cflags}" + # fpm _build_sapi "fpm" "\ --sysconfdir=/${_build_sapi_ini_fpm} \ @@ -640,6 +662,7 @@ build() { --enable-embed=shared \ --enable-fpm \ ${_phpextensions_fpm} \ + ${_build_sapi_litespeed} \ " fi @@ -947,6 +970,30 @@ package_php71-phpdbg() { } # phpdbg sapi end +# litespeed sapi +package_php71-litespeed() { + _sapi="litespeed" + pkgdesc="LiteSpeed SAPI for ${pkgbase}" + depends=("${pkgbase}=${pkgver}") + depends+=("${_sapi_depends[@]}") + if ((_build_ini_per_sapi || _build_per_sapi)); then + pushd "build-${_sapi}" + else + pushd "build-cli" + fi + if ((_build_ini_per_sapi)); then + install -D -m644 "../php-${pkgver}/php.ini-production" "${pkgdir}/${_build_sapi_ini_cgi}/php.ini" + backup=("${_build_sapi_ini_cgi}/php.ini") + fi + case "${_phpbase}" in + *) + install -D -m755 sapi/litespeed/php "${pkgdir}/usr/bin/ls${pkgbase}" + ;; + esac + popd +} +# litespeed sapi end + ############################################################################### # PEAR + PECL ############################################################################### @@ -1491,7 +1538,8 @@ package_php71-readline() { } -sha256sums=('0b7e98dca9c996ec10cb9b3f6296bb7547c68797fd5f35006fdfd3e97700672d' +sha256sums=('e6b8530d747000eebb0089249ec70a3b14add7b501337046700544883f62b17b' + '0b7e98dca9c996ec10cb9b3f6296bb7547c68797fd5f35006fdfd3e97700672d' 'ba72fc64f77822755a469314160d5889d5298f4eb5758dd7939dac9b811afe52' '6d0ad9becb5470ce8e5929d7d45660b0f32579038978496317544c5310281a91' 'bd7c0a9bd5433289ee01fd440af3715309faf583f75832b64fe169c100d52968' diff --git a/make-tests.patch b/make-tests.patch new file mode 100644 index 000000000000..fe7d21ea5aab --- /dev/null +++ b/make-tests.patch @@ -0,0 +1,11 @@ +--- a/Makefile ++++ b/Makefile +@@ -213,7 +213,7 @@ + fi; \ + TEST_PHP_EXECUTABLE=$(PHP_EXECUTABLE) \ + TEST_PHP_SRCDIR=$(top_srcdir) \ +- CC="$(CC)" \ ++ REPORT_EXIT_STATUS=1 NO_INTERACTION=1 SKIP_ONLINE_TESTS=1 SKIP_SLOW_TESTS=1 CC="$(CC)" \ + $(PHP_EXECUTABLE) -n -c $(top_builddir)/tmp-php.ini $(PHP_TEST_SETTINGS) $(top_srcdir)/run-tests.php -n -c $(top_builddir)/tmp-php.ini -d extension_dir=$(top_builddir)/modules/ $(PHP_TEST_SHARED_EXTENSIONS) $(TESTS); \ + TEST_RESULT_EXIT_CODE=$$?; \ + rm $(top_builddir)/tmp-php.ini; \ |