pkgsrc-Changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

CVS commit: pkgsrc/lang



Module Name:    pkgsrc
Committed By:   taca
Date:           Mon Dec 16 15:58:19 UTC 2019

Modified Files:
        pkgsrc/lang/php: phpversion.mk
        pkgsrc/lang/php72: Makefile Makefile.php distinfo
        pkgsrc/lang/php72/patches: patch-ext_phar_Makefile.frag
            patch-php.ini-development patch-php.ini-production
            patch-sapi_cgi_Makefile.frag patch-sapi_fpm_php-fpm.conf.in
        pkgsrc/lang/php73: Makefile Makefile.php distinfo
        pkgsrc/lang/php73/patches: patch-ext_phar_Makefile.frag
            patch-ext_tidy_config.m4 patch-php.ini-development
            patch-php.ini-production patch-sapi_cgi_Makefile.frag
            patch-sapi_fpm_php-fpm.conf.in
        pkgsrc/lang/php74: Makefile distinfo
Added Files:
        pkgsrc/lang/php: replace.mk
Removed Files:
        pkgsrc/lang/php72/patches: patch-ext_phar_phar_phar.php
            patch-run-tests.php
        pkgsrc/lang/php73/patches: patch-ext_phar_phar_phar.php
            patch-run-tests.php
        pkgsrc/lang/php74/patches: patch-ext_phar_phar_phar.php
            patch-run-tests.php

Log Message:
lang/php*: clean up php langauges

Clean up php languages.

* Clean up php/phpversions.mk a little.
* Add php/replace.mk to provide common shebang line replace for PHP.
* Define USE_TOOLS before including <bsd.prefs.mk>.
* Fix most warnings of pkglint.

No functional change should be done.


To generate a diff of this commit:
cvs rdiff -u -r1.278 -r1.279 pkgsrc/lang/php/phpversion.mk
cvs rdiff -u -r0 -r1.1 pkgsrc/lang/php/replace.mk
cvs rdiff -u -r1.21 -r1.22 pkgsrc/lang/php72/Makefile
cvs rdiff -u -r1.13 -r1.14 pkgsrc/lang/php72/Makefile.php
cvs rdiff -u -r1.48 -r1.49 pkgsrc/lang/php72/distinfo
cvs rdiff -u -r1.1 -r1.2 \
    pkgsrc/lang/php72/patches/patch-ext_phar_Makefile.frag \
    pkgsrc/lang/php72/patches/patch-php.ini-development \
    pkgsrc/lang/php72/patches/patch-php.ini-production \
    pkgsrc/lang/php72/patches/patch-sapi_cgi_Makefile.frag \
    pkgsrc/lang/php72/patches/patch-sapi_fpm_php-fpm.conf.in
cvs rdiff -u -r1.1 -r0 pkgsrc/lang/php72/patches/patch-ext_phar_phar_phar.php \
    pkgsrc/lang/php72/patches/patch-run-tests.php
cvs rdiff -u -r1.6 -r1.7 pkgsrc/lang/php73/Makefile
cvs rdiff -u -r1.2 -r1.3 pkgsrc/lang/php73/Makefile.php
cvs rdiff -u -r1.15 -r1.16 pkgsrc/lang/php73/distinfo
cvs rdiff -u -r1.1 -r1.2 \
    pkgsrc/lang/php73/patches/patch-ext_phar_Makefile.frag \
    pkgsrc/lang/php73/patches/patch-ext_tidy_config.m4 \
    pkgsrc/lang/php73/patches/patch-php.ini-development \
    pkgsrc/lang/php73/patches/patch-php.ini-production \
    pkgsrc/lang/php73/patches/patch-sapi_cgi_Makefile.frag \
    pkgsrc/lang/php73/patches/patch-sapi_fpm_php-fpm.conf.in
cvs rdiff -u -r1.1 -r0 pkgsrc/lang/php73/patches/patch-ext_phar_phar_phar.php \
    pkgsrc/lang/php73/patches/patch-run-tests.php
cvs rdiff -u -r1.1 -r1.2 pkgsrc/lang/php74/Makefile \
    pkgsrc/lang/php74/distinfo
cvs rdiff -u -r1.1 -r0 pkgsrc/lang/php74/patches/patch-ext_phar_phar_phar.php \
    pkgsrc/lang/php74/patches/patch-run-tests.php

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: pkgsrc/lang/php/phpversion.mk
diff -u pkgsrc/lang/php/phpversion.mk:1.278 pkgsrc/lang/php/phpversion.mk:1.279
--- pkgsrc/lang/php/phpversion.mk:1.278 Sun Dec 15 17:54:58 2019
+++ pkgsrc/lang/php/phpversion.mk       Mon Dec 16 15:58:18 2019
@@ -1,4 +1,4 @@
-# $NetBSD: phpversion.mk,v 1.278 2019/12/15 17:54:58 taca Exp $
+# $NetBSD: phpversion.mk,v 1.279 2019/12/16 15:58:18 taca Exp $
 #
 # This file selects a PHP version, based on the user's preferences and
 # the installed packages. It does not add a dependency on the PHP
@@ -206,40 +206,30 @@ PHP_VERSION_REQD:=        ${PKG_PHP_VERSION}
 # set variables for the version we decided to use:
 #
 .if ${_PHP_VERSION} == "56"
-PHPPKGSRCDIR=          ../../lang/php56
 PHP_VERSION=           ${PHP56_VERSION}
 PHP_INITIAL_TEENY=     3
-PHP_PKG_PREFIX=                php56
 PHP_EXTENSION_DIR=     lib/php/${PHP56_RELDATE}
 .elif ${_PHP_VERSION} == "71"
-PHPPKGSRCDIR=          ../../lang/php71
 PHP_VERSION=           ${PHP71_VERSION}
-PHP_INITIAL_TEENY=     0
-PHP_PKG_PREFIX=                php71
 PHP_EXTENSION_DIR=     lib/php/${PHP71_RELDATE}
 .elif ${_PHP_VERSION} == "72"
-PHPPKGSRCDIR=          ../../lang/php72
 PHP_VERSION=           ${PHP72_VERSION}
-PHP_INITIAL_TEENY=     0
-PHP_PKG_PREFIX=                php72
 PHP_EXTENSION_DIR=     lib/php/${PHP72_RELDATE}
 .elif ${_PHP_VERSION} == "73"
-PHPPKGSRCDIR=          ../../lang/php73
 PHP_VERSION=           ${PHP73_VERSION}
-PHP_INITIAL_TEENY=     0
-PHP_PKG_PREFIX=                php73
 PHP_EXTENSION_DIR=     lib/php/${PHP73_RELDATE}
 .elif ${_PHP_VERSION} == "74"
-PHPPKGSRCDIR=          ../../lang/php74
 PHP_VERSION=           ${PHP74_VERSION}
-PHP_INITIAL_TEENY=     0
-PHP_PKG_PREFIX=                php74
 PHP_EXTENSION_DIR=     lib/php/${PHP74_RELDATE}
 .else
 # force an error
 PKG_FAIL_REASON+=      "${PKG_PHP} is not a valid package"
 .endif
 
+PHP_INITIAL_TEENY?=    0
+PHPPKGSRCDIR=          ../../lang/php${PKG_PHP_VERSION}
+PHP_PKG_PREFIX=                php${PKG_PHP_VERSION}
+
 _PHP_VER_MAJOR=                ${PHP_VERSION:C/([0-9]+)\.([0-9]+)\.([0-9]+)/\1/}
 _PHP_VER_MINOR=                ${PHP_VERSION:C/([0-9]+)\.([0-9]+)\.([0-9]+)/\2/}
 

Index: pkgsrc/lang/php72/Makefile
diff -u pkgsrc/lang/php72/Makefile:1.21 pkgsrc/lang/php72/Makefile:1.22
--- pkgsrc/lang/php72/Makefile:1.21     Wed Oct  2 14:05:22 2019
+++ pkgsrc/lang/php72/Makefile  Mon Dec 16 15:58:18 2019
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.21 2019/10/02 14:05:22 taca Exp $
+# $NetBSD: Makefile,v 1.22 2019/12/16 15:58:18 taca Exp $
 
 #
 # We can't omit PKGNAME here to handle PKG_OPTIONS.
@@ -28,6 +28,8 @@ MAKE_ENV+=            INSTALL_ROOT=${DESTDIR}
 CONF_FILES=            ${EGDIR}/php.ini-production ${PKG_SYSCONFDIR}/php.ini
 PLIST_SUBST+=          PHPEXTDIR="${PHP_EXTENSION_DIR}"
 
+REPLACE_PHP=           ext/phar/phar/phar.php run-tests.php
+
 SUBST_CLASSES+=                path
 SUBST_MESSAGE.path=    Fixing common paths.
 SUBST_STAGE.path=      pre-configure
@@ -59,4 +61,5 @@ post-install:
                ${DESTDIR}${EGDIR}
        ${INSTALL_DATA} ${WRKSRC}/php.gif ${DESTDIR}${PREFIX}/share/php
 
+.include "../../lang/php/replace.mk"
 .include "../../mk/bsd.pkg.mk"

Index: pkgsrc/lang/php72/Makefile.php
diff -u pkgsrc/lang/php72/Makefile.php:1.13 pkgsrc/lang/php72/Makefile.php:1.14
--- pkgsrc/lang/php72/Makefile.php:1.13 Wed Oct  2 14:05:22 2019
+++ pkgsrc/lang/php72/Makefile.php      Mon Dec 16 15:58:18 2019
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile.php,v 1.13 2019/10/02 14:05:22 taca Exp $
+# $NetBSD: Makefile.php,v 1.14 2019/12/16 15:58:18 taca Exp $
 # used by lang/php72/Makefile
 # used by www/ap-php/Makefile
 # used by www/php-fpm/Makefile
@@ -13,17 +13,17 @@ CONFIGURE_ARGS+=    --disable-gcc-global-re
 # the binary actually needs full dep on PCRE
 BUILDLINK_DEPMETHOD.pcre=      full
 
-.include "../../lang/php72/Makefile.common"
-
-DISTINFO_FILE= ${.CURDIR}/../../lang/php72/distinfo
-PATCHDIR=      ${.CURDIR}/../../lang/php72/patches
-
 USE_LIBTOOL=           YES
 USE_LANGUAGES=         c c++
 GNU_CONFIGURE=         YES
 BUILD_DEFS+=           VARBASE
 PLIST_VARS+=           dtrace
 
+.include "../../lang/php72/Makefile.common"
+
+DISTINFO_FILE= ${.CURDIR}/../../lang/php72/distinfo
+PATCHDIR=      ${.CURDIR}/../../lang/php72/patches
+
 CONFIGURE_ENV+=                EXTENSION_DIR="${PREFIX}/${PHP_EXTENSION_DIR}"
 
 .include "../../mk/bsd.prefs.mk"

Index: pkgsrc/lang/php72/distinfo
diff -u pkgsrc/lang/php72/distinfo:1.48 pkgsrc/lang/php72/distinfo:1.49
--- pkgsrc/lang/php72/distinfo:1.48     Mon Nov 25 03:12:50 2019
+++ pkgsrc/lang/php72/distinfo  Mon Dec 16 15:58:18 2019
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.48 2019/11/25 03:12:50 taca Exp $
+$NetBSD: distinfo,v 1.49 2019/12/16 15:58:18 taca Exp $
 
 SHA1 (php-7.2.25.tar.xz) = 3ef98fe23aa61883e7d931f52822f9b7bc4cb3c7
 RMD160 (php-7.2.25.tar.xz) = 393022b9385e9e2ec399ddfd2f57a399dbfbd012
@@ -7,14 +7,12 @@ Size (php-7.2.25.tar.xz) = 12278980 byte
 SHA1 (patch-configure) = 6e66a79e691a84aa7ae461f8dec1752443ad6b61
 SHA1 (patch-disable-filter-url) = e9e92d686ddd1d1a1ece10fe4feee4e368fe510c
 SHA1 (patch-ext_gd_config.m4) = eaecfb31b18700dd642c067ed82748d4f6be2335
-SHA1 (patch-ext_phar_Makefile.frag) = 558869b60f8ed6674a3ba1d595a65f010df4c426
-SHA1 (patch-ext_phar_phar_phar.php) = f630e3946b21b76d4fe857a43e00e25c9445f2c8
+SHA1 (patch-ext_phar_Makefile.frag) = 53ea5c58b0bc27d236118d5750a74b1cba43e5dd
 SHA1 (patch-ext_recode_recode.c) = 639bf762302c7a30c88d3f3fa862494e0f847bdb
 SHA1 (patch-ext_xsl_php__xsl.h) = a9877bff7bacc77926a4541a0ac171c00ad1a627
-SHA1 (patch-php.ini-development) = dd65962000ec06439fae3c9bf252fa46be4e33fd
-SHA1 (patch-php.ini-production) = ae61dffedf574b688fe576b0b2af748b7a28cd89
-SHA1 (patch-run-tests.php) = 86c4d3f03eb8e31b5a35820f426533c9478571fb
-SHA1 (patch-sapi_cgi_Makefile.frag) = 18769900f588ff81cc34474542afa1d65c070e65
+SHA1 (patch-php.ini-development) = 3b21def5e80441c9f8a97a0723a325245bd62c44
+SHA1 (patch-php.ini-production) = 58261628364ade763e7e67f2b6226412a386afb7
+SHA1 (patch-sapi_cgi_Makefile.frag) = f4cd64d334884c49787d8854115c8cd69cc79bb8
 SHA1 (patch-sapi_cli_Makefile.frag) = 1cd29d09042863acbf5330e406410fdcf75d06b3
 SHA1 (patch-sapi_fpm_fpm_events_port.c) = b82b7caffffde1343190fae430a68eb411b5cf8a
-SHA1 (patch-sapi_fpm_php-fpm.conf.in) = b3c4fd499cbfd2dffd9176abb54e298ea542a5d7
+SHA1 (patch-sapi_fpm_php-fpm.conf.in) = acf9b4e70d4c5ea2b96e37e7bbf9005379ecc4d0

Index: pkgsrc/lang/php72/patches/patch-ext_phar_Makefile.frag
diff -u pkgsrc/lang/php72/patches/patch-ext_phar_Makefile.frag:1.1 pkgsrc/lang/php72/patches/patch-ext_phar_Makefile.frag:1.2
--- pkgsrc/lang/php72/patches/patch-ext_phar_Makefile.frag:1.1  Wed Nov 15 08:56:12 2017
+++ pkgsrc/lang/php72/patches/patch-ext_phar_Makefile.frag      Mon Dec 16 15:58:18 2019
@@ -1,4 +1,6 @@
-$NetBSD: patch-ext_phar_Makefile.frag,v 1.1 2017/11/15 08:56:12 jdolecek Exp $
+$NetBSD: patch-ext_phar_Makefile.frag,v 1.2 2019/12/16 15:58:18 taca Exp $
+
+Set shbang for phar correctly.
 
 --- ext/phar/Makefile.frag.orig        2015-06-23 17:33:33.000000000 +0000
 +++ ext/phar/Makefile.frag
Index: pkgsrc/lang/php72/patches/patch-php.ini-development
diff -u pkgsrc/lang/php72/patches/patch-php.ini-development:1.1 pkgsrc/lang/php72/patches/patch-php.ini-development:1.2
--- pkgsrc/lang/php72/patches/patch-php.ini-development:1.1     Wed Nov 15 08:56:12 2017
+++ pkgsrc/lang/php72/patches/patch-php.ini-development Mon Dec 16 15:58:18 2019
@@ -1,4 +1,6 @@
-$NetBSD: patch-php.ini-development,v 1.1 2017/11/15 08:56:12 jdolecek Exp $
+$NetBSD: patch-php.ini-development,v 1.2 2019/12/16 15:58:18 taca Exp $
+
+Set proper default configuration values.
 
 --- php.ini-development.orig   2015-06-23 17:33:33.000000000 +0000
 +++ php.ini-development
Index: pkgsrc/lang/php72/patches/patch-php.ini-production
diff -u pkgsrc/lang/php72/patches/patch-php.ini-production:1.1 pkgsrc/lang/php72/patches/patch-php.ini-production:1.2
--- pkgsrc/lang/php72/patches/patch-php.ini-production:1.1      Wed Nov 15 08:56:12 2017
+++ pkgsrc/lang/php72/patches/patch-php.ini-production  Mon Dec 16 15:58:18 2019
@@ -1,4 +1,6 @@
-$NetBSD: patch-php.ini-production,v 1.1 2017/11/15 08:56:12 jdolecek Exp $
+$NetBSD: patch-php.ini-production,v 1.2 2019/12/16 15:58:18 taca Exp $
+
+Set proper default configuration values.
 
 --- php.ini-production.orig    2015-06-23 17:33:33.000000000 +0000
 +++ php.ini-production
Index: pkgsrc/lang/php72/patches/patch-sapi_cgi_Makefile.frag
diff -u pkgsrc/lang/php72/patches/patch-sapi_cgi_Makefile.frag:1.1 pkgsrc/lang/php72/patches/patch-sapi_cgi_Makefile.frag:1.2
--- pkgsrc/lang/php72/patches/patch-sapi_cgi_Makefile.frag:1.1  Wed Nov 15 08:56:12 2017
+++ pkgsrc/lang/php72/patches/patch-sapi_cgi_Makefile.frag      Mon Dec 16 15:58:18 2019
@@ -1,4 +1,6 @@
-$NetBSD: patch-sapi_cgi_Makefile.frag,v 1.1 2017/11/15 08:56:12 jdolecek Exp $
+$NetBSD: patch-sapi_cgi_Makefile.frag,v 1.2 2019/12/16 15:58:18 taca Exp $
+
+Install to CGI directory.
 
 --- sapi/cgi/Makefile.frag.orig        2015-06-23 17:33:33.000000000 +0000
 +++ sapi/cgi/Makefile.frag
Index: pkgsrc/lang/php72/patches/patch-sapi_fpm_php-fpm.conf.in
diff -u pkgsrc/lang/php72/patches/patch-sapi_fpm_php-fpm.conf.in:1.1 pkgsrc/lang/php72/patches/patch-sapi_fpm_php-fpm.conf.in:1.2
--- pkgsrc/lang/php72/patches/patch-sapi_fpm_php-fpm.conf.in:1.1        Wed Nov 15 08:56:12 2017
+++ pkgsrc/lang/php72/patches/patch-sapi_fpm_php-fpm.conf.in    Mon Dec 16 15:58:18 2019
@@ -1,4 +1,6 @@
-$NetBSD: patch-sapi_fpm_php-fpm.conf.in,v 1.1 2017/11/15 08:56:12 jdolecek Exp $
+$NetBSD: patch-sapi_fpm_php-fpm.conf.in,v 1.2 2019/12/16 15:58:18 taca Exp $
+
+Set proper default configuration values.
 
 --- sapi/fpm/php-fpm.conf.in.orig      2015-06-23 17:33:33.000000000 +0000
 +++ sapi/fpm/php-fpm.conf.in

Index: pkgsrc/lang/php73/Makefile
diff -u pkgsrc/lang/php73/Makefile:1.6 pkgsrc/lang/php73/Makefile:1.7
--- pkgsrc/lang/php73/Makefile:1.6      Wed Oct  2 14:08:05 2019
+++ pkgsrc/lang/php73/Makefile  Mon Dec 16 15:58:19 2019
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.6 2019/10/02 14:08:05 taca Exp $
+# $NetBSD: Makefile,v 1.7 2019/12/16 15:58:19 taca Exp $
 
 #
 # We can't omit PKGNAME here to handle PKG_OPTIONS.
@@ -28,6 +28,8 @@ MAKE_ENV+=            INSTALL_ROOT=${DESTDIR}
 CONF_FILES=            ${EGDIR}/php.ini-production ${PKG_SYSCONFDIR}/php.ini
 PLIST_SUBST+=          PHPEXTDIR="${PHP_EXTENSION_DIR}"
 
+REPLACE_PHP=           ext/phar/phar/phar.php run-tests.php
+
 SUBST_CLASSES+=                path
 SUBST_MESSAGE.path=    Fixing common paths.
 SUBST_STAGE.path=      pre-configure
@@ -59,4 +61,5 @@ post-install:
                ${DESTDIR}${EGDIR}
        ${INSTALL_DATA} ${WRKSRC}/php.gif ${DESTDIR}${PREFIX}/share/php
 
+.include "../../lang/php/replace.mk"
 .include "../../mk/bsd.pkg.mk"

Index: pkgsrc/lang/php73/Makefile.php
diff -u pkgsrc/lang/php73/Makefile.php:1.2 pkgsrc/lang/php73/Makefile.php:1.3
--- pkgsrc/lang/php73/Makefile.php:1.2  Wed Oct  2 14:08:05 2019
+++ pkgsrc/lang/php73/Makefile.php      Mon Dec 16 15:58:19 2019
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile.php,v 1.2 2019/10/02 14:08:05 taca Exp $
+# $NetBSD: Makefile.php,v 1.3 2019/12/16 15:58:19 taca Exp $
 # used by lang/php73/Makefile
 # used by www/ap-php/Makefile
 # used by www/php-fpm/Makefile
@@ -13,17 +13,17 @@ CONFIGURE_ARGS+=    --disable-gcc-global-re
 # the binary actually needs full dep on PCRE
 BUILDLINK_DEPMETHOD.pcre2=     full
 
-.include "../../lang/php73/Makefile.common"
-
-DISTINFO_FILE= ${.CURDIR}/../../lang/php73/distinfo
-PATCHDIR=      ${.CURDIR}/../../lang/php73/patches
-
 USE_LIBTOOL=           YES
 USE_LANGUAGES=         c c++
 GNU_CONFIGURE=         YES
 BUILD_DEFS+=           VARBASE
 PLIST_VARS+=           dtrace
 
+.include "../../lang/php73/Makefile.common"
+
+DISTINFO_FILE= ${.CURDIR}/../../lang/php73/distinfo
+PATCHDIR=      ${.CURDIR}/../../lang/php73/patches
+
 CONFIGURE_ENV+=                EXTENSION_DIR="${PREFIX}/${PHP_EXTENSION_DIR}"
 
 .include "../../mk/bsd.prefs.mk"

Index: pkgsrc/lang/php73/distinfo
diff -u pkgsrc/lang/php73/distinfo:1.15 pkgsrc/lang/php73/distinfo:1.16
--- pkgsrc/lang/php73/distinfo:1.15     Mon Nov 25 03:12:50 2019
+++ pkgsrc/lang/php73/distinfo  Mon Dec 16 15:58:19 2019
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.15 2019/11/25 03:12:50 taca Exp $
+$NetBSD: distinfo,v 1.16 2019/12/16 15:58:19 taca Exp $
 
 SHA1 (php-7.3.12.tar.xz) = eee16ac54b148c6826c9ff29a58a114be42f1eeb
 RMD160 (php-7.3.12.tar.xz) = 236a3aa08bf7a6e69c2ca61596df04e782e496ab
@@ -7,15 +7,13 @@ Size (php-7.3.12.tar.xz) = 12095212 byte
 SHA1 (patch-configure) = 08b80528ba90c705398e8841c232382663479a3b
 SHA1 (patch-disable-filter-url) = 0a2c19c18f089448a8d842e99738b292ab9e5640
 SHA1 (patch-ext_gd_config.m4) = eaecfb31b18700dd642c067ed82748d4f6be2335
-SHA1 (patch-ext_phar_Makefile.frag) = 558869b60f8ed6674a3ba1d595a65f010df4c426
-SHA1 (patch-ext_phar_phar_phar.php) = f630e3946b21b76d4fe857a43e00e25c9445f2c8
+SHA1 (patch-ext_phar_Makefile.frag) = 53ea5c58b0bc27d236118d5750a74b1cba43e5dd
 SHA1 (patch-ext_recode_recode.c) = 639bf762302c7a30c88d3f3fa862494e0f847bdb
-SHA1 (patch-ext_tidy_config.m4) = 4d6b4bf71c606fdb244937dc8a92b49e268060e6
+SHA1 (patch-ext_tidy_config.m4) = 380f4e8927582b2781faf58b17ad81b6dc967ba7
 SHA1 (patch-ext_xsl_php__xsl.h) = a9877bff7bacc77926a4541a0ac171c00ad1a627
-SHA1 (patch-php.ini-development) = 0150deec620db99272d10bc01585a503b2fc4b86
-SHA1 (patch-php.ini-production) = 8c3451ff6253c9cd0dbf342761231c8fe54fdc52
-SHA1 (patch-run-tests.php) = 278cd99b3c5f3d2131eef564e18eb2ee9924db5a
-SHA1 (patch-sapi_cgi_Makefile.frag) = 18769900f588ff81cc34474542afa1d65c070e65
+SHA1 (patch-php.ini-development) = e6815f2774ba071baa510fd5490fb5fa377d2462
+SHA1 (patch-php.ini-production) = 3ee4d2e2e4fb4dbcb5b64df86751f7feeef0e20d
+SHA1 (patch-sapi_cgi_Makefile.frag) = f4cd64d334884c49787d8854115c8cd69cc79bb8
 SHA1 (patch-sapi_cli_Makefile.frag) = 1cd29d09042863acbf5330e406410fdcf75d06b3
 SHA1 (patch-sapi_fpm_fpm_events_port.c) = b82b7caffffde1343190fae430a68eb411b5cf8a
-SHA1 (patch-sapi_fpm_php-fpm.conf.in) = b3c4fd499cbfd2dffd9176abb54e298ea542a5d7
+SHA1 (patch-sapi_fpm_php-fpm.conf.in) = acf9b4e70d4c5ea2b96e37e7bbf9005379ecc4d0

Index: pkgsrc/lang/php73/patches/patch-ext_phar_Makefile.frag
diff -u pkgsrc/lang/php73/patches/patch-ext_phar_Makefile.frag:1.1 pkgsrc/lang/php73/patches/patch-ext_phar_Makefile.frag:1.2
--- pkgsrc/lang/php73/patches/patch-ext_phar_Makefile.frag:1.1  Sat Dec 15 17:12:44 2018
+++ pkgsrc/lang/php73/patches/patch-ext_phar_Makefile.frag      Mon Dec 16 15:58:19 2019
@@ -1,4 +1,6 @@
-$NetBSD: patch-ext_phar_Makefile.frag,v 1.1 2018/12/15 17:12:44 taca Exp $
+$NetBSD: patch-ext_phar_Makefile.frag,v 1.2 2019/12/16 15:58:19 taca Exp $
+
+Set shbang for phar correctly.
 
 --- ext/phar/Makefile.frag.orig        2015-06-23 17:33:33.000000000 +0000
 +++ ext/phar/Makefile.frag
Index: pkgsrc/lang/php73/patches/patch-ext_tidy_config.m4
diff -u pkgsrc/lang/php73/patches/patch-ext_tidy_config.m4:1.1 pkgsrc/lang/php73/patches/patch-ext_tidy_config.m4:1.2
--- pkgsrc/lang/php73/patches/patch-ext_tidy_config.m4:1.1      Sat Dec 15 17:12:44 2018
+++ pkgsrc/lang/php73/patches/patch-ext_tidy_config.m4  Mon Dec 16 15:58:19 2019
@@ -1,4 +1,6 @@
-$NetBSD: patch-ext_tidy_config.m4,v 1.1 2018/12/15 17:12:44 taca Exp $
+$NetBSD: patch-ext_tidy_config.m4,v 1.2 2019/12/16 15:58:19 taca Exp $
+
+Fix portability.
 
 --- ext/tidy/config.m4.orig    2018-12-04 16:12:28.000000000 +0000
 +++ ext/tidy/config.m4
Index: pkgsrc/lang/php73/patches/patch-php.ini-development
diff -u pkgsrc/lang/php73/patches/patch-php.ini-development:1.1 pkgsrc/lang/php73/patches/patch-php.ini-development:1.2
--- pkgsrc/lang/php73/patches/patch-php.ini-development:1.1     Sat Dec 15 17:12:44 2018
+++ pkgsrc/lang/php73/patches/patch-php.ini-development Mon Dec 16 15:58:19 2019
@@ -1,4 +1,6 @@
-$NetBSD: patch-php.ini-development,v 1.1 2018/12/15 17:12:44 taca Exp $
+$NetBSD: patch-php.ini-development,v 1.2 2019/12/16 15:58:19 taca Exp $
+
+Set proper default configuration values.
 
 --- php.ini-development.orig   2018-12-04 16:12:20.000000000 +0000
 +++ php.ini-development
Index: pkgsrc/lang/php73/patches/patch-php.ini-production
diff -u pkgsrc/lang/php73/patches/patch-php.ini-production:1.1 pkgsrc/lang/php73/patches/patch-php.ini-production:1.2
--- pkgsrc/lang/php73/patches/patch-php.ini-production:1.1      Sat Dec 15 17:12:44 2018
+++ pkgsrc/lang/php73/patches/patch-php.ini-production  Mon Dec 16 15:58:19 2019
@@ -1,4 +1,6 @@
-$NetBSD: patch-php.ini-production,v 1.1 2018/12/15 17:12:44 taca Exp $
+$NetBSD: patch-php.ini-production,v 1.2 2019/12/16 15:58:19 taca Exp $
+
+Set proper default configuration values.
 
 --- php.ini-production.orig    2018-12-04 16:12:20.000000000 +0000
 +++ php.ini-production
Index: pkgsrc/lang/php73/patches/patch-sapi_cgi_Makefile.frag
diff -u pkgsrc/lang/php73/patches/patch-sapi_cgi_Makefile.frag:1.1 pkgsrc/lang/php73/patches/patch-sapi_cgi_Makefile.frag:1.2
--- pkgsrc/lang/php73/patches/patch-sapi_cgi_Makefile.frag:1.1  Sat Dec 15 17:12:44 2018
+++ pkgsrc/lang/php73/patches/patch-sapi_cgi_Makefile.frag      Mon Dec 16 15:58:19 2019
@@ -1,4 +1,6 @@
-$NetBSD: patch-sapi_cgi_Makefile.frag,v 1.1 2018/12/15 17:12:44 taca Exp $
+$NetBSD: patch-sapi_cgi_Makefile.frag,v 1.2 2019/12/16 15:58:19 taca Exp $
+
+Install to CGI directory.
 
 --- sapi/cgi/Makefile.frag.orig        2015-06-23 17:33:33.000000000 +0000
 +++ sapi/cgi/Makefile.frag
Index: pkgsrc/lang/php73/patches/patch-sapi_fpm_php-fpm.conf.in
diff -u pkgsrc/lang/php73/patches/patch-sapi_fpm_php-fpm.conf.in:1.1 pkgsrc/lang/php73/patches/patch-sapi_fpm_php-fpm.conf.in:1.2
--- pkgsrc/lang/php73/patches/patch-sapi_fpm_php-fpm.conf.in:1.1        Sat Dec 15 17:12:44 2018
+++ pkgsrc/lang/php73/patches/patch-sapi_fpm_php-fpm.conf.in    Mon Dec 16 15:58:19 2019
@@ -1,4 +1,6 @@
-$NetBSD: patch-sapi_fpm_php-fpm.conf.in,v 1.1 2018/12/15 17:12:44 taca Exp $
+$NetBSD: patch-sapi_fpm_php-fpm.conf.in,v 1.2 2019/12/16 15:58:19 taca Exp $
+
+Set proper default configuration values.
 
 --- sapi/fpm/php-fpm.conf.in.orig      2015-06-23 17:33:33.000000000 +0000
 +++ sapi/fpm/php-fpm.conf.in

Index: pkgsrc/lang/php74/Makefile
diff -u pkgsrc/lang/php74/Makefile:1.1 pkgsrc/lang/php74/Makefile:1.2
--- pkgsrc/lang/php74/Makefile:1.1      Sun Dec 15 17:56:34 2019
+++ pkgsrc/lang/php74/Makefile  Mon Dec 16 15:58:19 2019
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.1 2019/12/15 17:56:34 taca Exp $
+# $NetBSD: Makefile,v 1.2 2019/12/16 15:58:19 taca Exp $
 
 #
 # We can't omit PKGNAME here to handle PKG_OPTIONS.
@@ -40,12 +40,13 @@ PKGCONFIG_PATHS+=   ${X11BASE}/lib/pkgconf
 
 PHP_PKGCONFIG_PATH=    ${PKGCONFIG_PATHS:ts:}
 
+REPLACE_PHP=           ext/phar/phar/phar.php run-tests.php
+
 SUBST_CLASSES+=                path
 SUBST_MESSAGE.path=    Fixing common paths.
 SUBST_STAGE.path=      pre-configure
 SUBST_FILES.path=      configure
-SUBST_FILES.path+=     ext/phar/phar/phar.php
-SUBST_FILES.path+=     php.ini-development php.ini-production run-tests.php
+SUBST_FILES.path+=     php.ini-development php.ini-production
 SUBST_FILES.path+=     sapi/cgi/Makefile.frag
 SUBST_VARS.path=       CGIDIR
 SUBST_VARS.path+=      PREFIX
@@ -72,4 +73,5 @@ post-install:
        cd ${WRKSRC}; ${INSTALL_DATA} php.ini-development php.ini-production \
                ${DESTDIR}${EGDIR}
 
+.include "../../lang/php/replace.mk"
 .include "../../mk/bsd.pkg.mk"
Index: pkgsrc/lang/php74/distinfo
diff -u pkgsrc/lang/php74/distinfo:1.1 pkgsrc/lang/php74/distinfo:1.2
--- pkgsrc/lang/php74/distinfo:1.1      Sun Dec 15 17:56:34 2019
+++ pkgsrc/lang/php74/distinfo  Mon Dec 16 15:58:19 2019
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.1 2019/12/15 17:56:34 taca Exp $
+$NetBSD: distinfo,v 1.2 2019/12/16 15:58:19 taca Exp $
 
 SHA1 (php-7.4.0.tar.xz) = 7b0c858ef0591baaceda19ce206b6a5b454dd789
 RMD160 (php-7.4.0.tar.xz) = 3b0ac010bdbe720209a80c4408f3cecbde3ccf1a
@@ -7,12 +7,10 @@ Size (php-7.4.0.tar.xz) = 10232208 bytes
 SHA1 (patch-configure) = 5e9c9c06f6d819d5ba2832d648f41363f40f3108
 SHA1 (patch-disable-filter-url) = 0a2c19c18f089448a8d842e99738b292ab9e5640
 SHA1 (patch-ext_phar_Makefile.frag) = 53ea5c58b0bc27d236118d5750a74b1cba43e5dd
-SHA1 (patch-ext_phar_phar_phar.php) = 5440a59bf24b9b805bc096a989096311746d9d71
 SHA1 (patch-ext_tidy_config.m4) = 380f4e8927582b2781faf58b17ad81b6dc967ba7
 SHA1 (patch-ext_xsl_php__xsl.h) = a9877bff7bacc77926a4541a0ac171c00ad1a627
 SHA1 (patch-php.ini-development) = e6815f2774ba071baa510fd5490fb5fa377d2462
 SHA1 (patch-php.ini-production) = 3ee4d2e2e4fb4dbcb5b64df86751f7feeef0e20d
-SHA1 (patch-run-tests.php) = ebbe6bd52ba414780e3e166cbd0c7559966258f6
 SHA1 (patch-sapi_cgi_Makefile.frag) = f4cd64d334884c49787d8854115c8cd69cc79bb8
 SHA1 (patch-sapi_cli_Makefile.frag) = 1cd29d09042863acbf5330e406410fdcf75d06b3
 SHA1 (patch-sapi_fpm_fpm_events_port.c) = b82b7caffffde1343190fae430a68eb411b5cf8a

Added files:

Index: pkgsrc/lang/php/replace.mk
diff -u /dev/null pkgsrc/lang/php/replace.mk:1.1
--- /dev/null   Mon Dec 16 15:58:19 2019
+++ pkgsrc/lang/php/replace.mk  Mon Dec 16 15:58:18 2019
@@ -0,0 +1,24 @@
+# $NetBSD: replace.mk,v 1.1 2019/12/16 15:58:18 taca Exp $
+#
+
+.if !defined(_PHP_REPLACE_MK)
+_PHP_REPLACE_MK=       # defined
+
+.include "${.PARSEDIR}/phpversion.mk"
+
+PHP_NAME=      php${PKG_PHP_VERSION}
+
+# fix shebang line.
+#
+# REPLACE_PHP          replace shebang line of specified files.
+#
+.if !empty(REPLACE_PHP)
+REPLACE_INTERPRETER+=  ${PHP_NAME}
+
+REPLACE.${PHP_NAME}.old=       .*php
+REPLACE.${PHP_NAME}.new=       ${PREFIX}/bin/php
+REPLACE_FILES.${PHP_NAME}=     ${REPLACE_PHP}
+
+.endif # defined(REPLACE_PHP)
+
+.endif # _PHP_REPLACE_MK



Home | Main Index | Thread Index | Old Index