tech-pkg archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
make php to multi packages
Hi,
More than two years ago, I propsed make lang/php?? installable at the
same time.
In message <20221111.004349.1566861194397253063.taca%back-street.net@localhost>
on Fri, 11 Nov 2022 00:43:49 +0900 (JST),
Takahiro Kambe <taca%back-street.net@localhost> wrote:
> Currently, lang/php{56,74,80,81} packages cannot be installed at the
> same time. It was reasonable when using PHP as apache http server's
> loadble module (ap-php).
>
> But using php-fpm, multiple version of PHP could be usable at the same
> time.
>
> I modified lang/php's frameworks to make php as multi-packages.
Now I've almost finished this work with these versions.
lang/php56 => php56-5.6.40.tgz
lang/php74 => php74-7.4.33.tgz
lang/php81 => php81-8.1.31.tgz
lang/php82 => php82-8.2.27.tgz
lang/php83 => php83-8.3.16.tgz
And basic runtime test's result here.
test.php:
<?php
echo PHP_VERSION . "\n";
taca@edge[85]$ curl http://php56.example.jp/test.php
5.6.40
taca@edge[86]$ curl http://php74.example.jp/test.php
7.4.33
taca@edge[87]$ curl http://php81.example.jp/test.php
8.1.31
taca@edge[88]$ curl http://php82.example.jp/test.php
8.2.27
taca@edge[89]$ curl http://php83.example.jp/test.php
8.3.16
taca@edge[90]$ ps ax | egrep php-fpm
141 ? S 0:00.01 php-fpm82: pool www
245 ? Ss 0:00.01 php-fpm56: master process (/usr/pkg/etc/php56/php-
5591 ? I 0:00.00 php-fpm56: pool www
10595 ? I 0:00.00 php-fpm56: pool www
13726 ? Ss 0:00.02 php-fpm81: master process (/usr/pkg/etc/php81/php-
14796 ? I 0:00.01 php-fpm74: pool www
15122 ? S 0:00.28 php-fpm82: pool www
15874 ? Ss 0:00.05 php-fpm82: master process (/usr/pkg/etc/php82/php-
16031 ? I 0:01.52 php-fpm74: pool www
18112 ? I 0:00.00 php-fpm81: pool www
18324 ? Ss 0:00.07 php-fpm74: master process (/usr/pkg/etc/php74/php-
22230 ? Ss 0:00.02 php-fpm83: master process (/usr/pkg/etc/php83/php-
26794 ? S 0:00.00 php-fpm83: pool www
28146 ? S 0:00.00 php-fpm83: pool www
28248 ? I 0:00.00 php-fpm81: pool www
Here is patch:
ftp://www.back-street.net/pub/pkgsrc/pkgsrc-php-2025012000.diff.xz
I know that it require several items of improvement; clean up of
make's variable and structure of *.mk.
I've tested building of these PHP (and might related) pacakges.
archivers/php-pecl-zip
audio/ampache
benchmarks/phoronix-test-suite
databases/adodb
databases/pear-DB
databases/pear-MDB2
databases/pear-MDB2_Driver_mysql
databases/pear-MDB2_Driver_mysqli
databases/pear-MDB2_Driver_pgsql
databases/php-dbx
databases/php-mongo
databases/php-mongodb
databases/php-redis
databases/php-redis4
databases/php-rrd
databases/php-rrd1
databases/php-sqlrelay
databases/phpldapadmin
databases/phpmyadmin
databases/phpmyadmin5
databases/phppgadmin
devel/arcanist
devel/kcachegrind
devel/libphutil
devel/mantis
devel/pear-Console_CommandLine
devel/phabricator
devel/php-base58
devel/php-composer
devel/php-gearman
devel/php-igbinary
devel/php-libawl
devel/php-memcache
devel/php-memcache2
devel/php-memcache4
devel/php-memcached
devel/php-msgpack
devel/php-psr
devel/php-pthreads
devel/php-raphf
devel/php-raphf2
devel/php-xcache
devel/php-xdebug
finance/magento
graphics/pear-Image_Canvas
graphics/pear-Image_Color
graphics/pear-Image_Graph
graphics/php-imagick
graphics/php-jpgraph
lang/pear
mail/imp
mail/ingo
mail/mimp
mail/pear-Auth_SASL
mail/pear-Mail
mail/pear-Mail_Mime
mail/pear-Mail_mimeDecode
mail/php-dmarc-srg
mail/php-mailparse
mail/roundcube
mail/roundcube-plugin-carddav
mail/roundcube-plugin-enigma
mail/roundcube-plugin-password
mail/roundcube-plugin-zipdownload
mail/squirrelmail
mail/squirrelmail-decode
mail/squirrelmail-locales
mail/turba
math/pear-Math_BigInteger
math/pear-Numbers_Roman
math/pear-Numbers_Words
math/php-stats
meta-pkgs/php56-extensions
meta-pkgs/php74-extensions
meta-pkgs/php81-extensions
meta-pkgs/php82-extensions
meta-pkgs/php83-extensions
misc/php-orangehrm
multimedia/php-ming
net/cacti
net/icinga-base
net/nagios-base
net/nagios-nrpe
net/nagios-nsca
net/nagios-plugin-apachecerts
net/nagios-plugin-dnsmaster
net/nagios-plugin-dnsrbl
net/nagios-plugin-dotpid
net/nagios-plugin-dumpdates
net/nagios-plugin-fstab
net/nagios-plugin-gfbricks
net/nagios-plugin-ldap
net/nagios-plugin-lpd
net/nagios-plugin-milter
net/nagios-plugin-mqueue
net/nagios-plugin-mysql
net/nagios-plugin-mysqlslave
net/nagios-plugin-pgsql
net/nagios-plugin-printer
net/nagios-plugin-radius
net/nagios-plugin-raidctl
net/nagios-plugin-snmp
net/nagios-plugin-snmp_environment
net/nagios-plugin-spamd
net/nagios-plugin-syncrepl
net/nagios-plugin-x509
net/nagios-plugins
net/pear-Net_DIME
net/pear-Net_IDNA2
net/pear-Net_LDAP2
net/pear-Net_LDAP3
net/pear-Net_SMTP
net/pear-Net_Sieve
net/pear-Net_Socket
net/pear-Net_URL
net/pear-Net_URL2
net/pear-SOAP
net/php-baikal
net/php-geoip
net/php-yaz
print/php-pdflib
security/pear-Crypt_GPG
security/php-gnupg
security/php-oauth
security/php-oauth1
security/php-pecl-mcrypt
security/php-ssdeep
security/php-ssh2
security/php-ssh2-0
security/php-suhosin
security/zoneminder
sysutils/collectd-CGP
sysutils/pear-Log
sysutils/zabbix-frontend
sysutils/zabbix50-frontend
sysutils/zabbix60-frontend
textproc/pear-Console_Table
textproc/pear-File_Find
textproc/php-excel
textproc/php-mecab
textproc/php-sphinx
textproc/php-xapian
textproc/php-yaml
time/kronolith
time/pear-Date
time/php-mrbs
www/ap2-upload
www/blur6ex
www/davical
www/drupal7
www/fengoffice
www/gallery
www/gallery2
www/ganglia-webfrontend
www/geeklog
www/horde
www/matcha-sns
www/mediawiki
www/moodle
www/mserv-php
www/pear-HTML_Common
www/pear-HTML_Select
www/pear-HTML_TreeMenu
www/pear-HTTP
www/pear-HTTP_Request
www/pear-HTTP_Request2
www/php-apcu
www/php-apcu4
www/php-apcu_bc
www/php-basercms
www/php-concrete-cms
www/php-contao-manager
www/php-dotclear
www/php-glpi
www/php-http3
www/php-http4
www/php-ja-wordpress
www/php-nextcloud
www/php-nextcloud29
www/php-owncloud
www/php-phalcon
www/php-phalcon4
www/php-piwigo
www/php-propro
www/php-propro2
www/php-soycms
www/php-tiki6
www/php-tt-rss
www/php-tt-rss-fever-plugin
www/php-uploadprogress
www/phraseanet
www/typo3_62
www/unit-php
www/websvn
www/wordpress
www/z-push
--
Takahiro Kambe <taca%NetBSD.org@localhost>
Home |
Main Index |
Thread Index |
Old Index