From mboxrd@z Thu Jan 1 00:00:00 1970 Delivery-date: Fri, 03 Sep 2021 16:11:16 +0200 Received: from metis.ext.pengutronix.de ([2001:67c:670:201:290:27ff:fe1d:cc33]) by lore.white.stw.pengutronix.de with esmtp (Exim 4.92) (envelope-from ) id 1mM9uW-000135-N2 for lore@lore.pengutronix.de; Fri, 03 Sep 2021 16:11:16 +0200 Received: from localhost ([127.0.0.1] helo=metis.ext.pengutronix.de) by metis.ext.pengutronix.de with esmtp (Exim 4.92) (envelope-from ) id 1mM9uW-0007jS-Db; Fri, 03 Sep 2021 16:11:16 +0200 Received: from drehscheibe.grey.stw.pengutronix.de ([2a0a:edc0:0:c01:1d::a2]) by metis.ext.pengutronix.de with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mM9uJ-0007j3-8N; Fri, 03 Sep 2021 16:11:03 +0200 Received: from [2a0a:edc0:0:1101:1d::39] (helo=dude03.red.stw.pengutronix.de) by drehscheibe.grey.stw.pengutronix.de with esmtp (Exim 4.92) (envelope-from ) id 1mM9uI-0008RC-Nt; Fri, 03 Sep 2021 16:11:02 +0200 Received: from mol by dude03.red.stw.pengutronix.de with local (Exim 4.92) (envelope-from ) id 1mM9uI-00Gwro-L4; Fri, 03 Sep 2021 16:11:02 +0200 Date: Fri, 3 Sep 2021 16:11:02 +0200 From: Michael Olbrich To: Juergen Borleis Message-ID: <20210903141102.GG4027748@pengutronix.de> Mail-Followup-To: Juergen Borleis , ptxdist@pengutronix.de References: <20210812104015.19563-1-jbe@pengutronix.de> <20210812104015.19563-2-jbe@pengutronix.de> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <20210812104015.19563-2-jbe@pengutronix.de> X-Sent-From: Pengutronix Hildesheim X-URL: http://www.pengutronix.de/ X-IRC: #ptxdist @freenode X-Accept-Language: de,en X-Accept-Content-Type: text/plain User-Agent: Mutt/1.10.1 (2018-07-13) Subject: Re: [ptxdist] [PATCH 2/5] php: reanimate PHP as PHP8 X-BeenThere: ptxdist@pengutronix.de X-Mailman-Version: 2.1.29 Precedence: list List-Id: PTXdist Development Mailing List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: ptxdist@pengutronix.de Cc: ptxdist@pengutronix.de Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "ptxdist" X-SA-Exim-Connect-IP: 127.0.0.1 X-SA-Exim-Mail-From: ptxdist-bounces@pengutronix.de X-SA-Exim-Scanned: No (on metis.ext.pengutronix.de); SAEximRunCond expanded to false On Thu, Aug 12, 2021 at 12:40:12PM +0200, Juergen Borleis wrote: > PHP5 is gone with commit f356f581e17a9474bdc01dbe3907f96558101609 > "php5: remove old package" > > Let's try now with PHP8 instead and a minimal feature set due to limited > test options. The remaining features can be extended on demand. > > Signed-off-by: Juergen Borleis > --- > projectroot/etc/{php5 => php8}/php.ini | 0 > rules/php8.in | 72 +++++++++++++++ > rules/php8.make | 123 +++++++++++++++++++++++++ > 3 files changed, 195 insertions(+) > rename projectroot/etc/{php5 => php8}/php.ini (100%) > create mode 100644 rules/php8.in > create mode 100644 rules/php8.make > > diff --git a/projectroot/etc/php5/php.ini b/projectroot/etc/php8/php.ini > similarity index 100% > rename from projectroot/etc/php5/php.ini > rename to projectroot/etc/php8/php.ini > diff --git a/rules/php8.in b/rules/php8.in > new file mode 100644 > index 0000000..a3b498e > --- /dev/null > +++ b/rules/php8.in > @@ -0,0 +1,72 @@ > +## SECTION=scripting_languages > +# php6 configuration > + > +menuconfig PHP8 > + tristate > + prompt "php8 " > + select GLIBC_M > + help > + PHP, which stands for "PHP: Hypertext Preprocessor" is a widely-used > + general-purpose scripting language that is especially suited for web > + development and can be embedded into HTML. > + > +if PHP8 > + > +config PHP8_INI > + bool > + prompt "install /etc/php8/php.ini" > + default y > + help > + Installs (if present) the > + "./projectroot/etc/php8/php.ini" file from your > + workspace, otherwise a generic one from the ptxdist > + directory. No option for this please. > + > +# ---------------------------------------------------------------------------- > +# SAPI Modules (add more on demand) > +# ---------------------------------------------------------------------------- > + > +choice > + prompt "SAPI Module" > + default PHP8_SAPI_NONE > + help > + Select one of the SAP (Server Application Programming) Interfaces to > + be supported at run-time. It is possible to select no SAP interface > + here, then your PHP supports a command line interface (CLI) only. > + > +config PHP8_SAPI_CGI > + bool > + prompt "cgi" > + help > + Build standard CGI version of PHP. > + > +config PHP8_SAPI_NONE > + bool > + prompt "none" > + select PHP8_SAPI_CLI > + help > + This forces a command line interface variant only. > + > +endchoice > + > +config PHP8_SESSION > + bool > + prompt "session support" > + default y > + help > + A session is a way to store information to be used across multiple > + pages. The information is stored locally only. > + > +config PHP8_SAPI_CLI > + bool > + prompt "cli" > + help > + Build command line interface (CLI) version of PHP > + > +config PHP8_DEUBG > + bool > + prompt "Build debug variant" > + help > + Enable this entry to build a debug variant (no optimization) Drop the debug option. We don't have this for other packages either. > + > +endif > diff --git a/rules/php8.make b/rules/php8.make > new file mode 100644 > index 0000000..2f0e254 > --- /dev/null > +++ b/rules/php8.make > @@ -0,0 +1,123 @@ > +# -*-makefile-*- > +# > +# Copyright (C) 2006-2008 by Robert Schwebel > +# 2009, 2012 by Marc Kleine-Budde > +# 2015 by Bruno Thomsen > +# 2021 by Juergen Borleis > +# > +# For further information about the PTXdist project and license conditions > +# see the README file. > +# > + > +# > +# We provide this package > +# > +PACKAGES-$(PTXCONF_PHP8) += php8 > + > +# > +# Paths and names > +# > +PHP8_VERSION := 8.0.9 > +PHP8_MD5 := 68a8cae879bb66425f6cfb11d94ceb02 > +PHP8 := php-$(PHP8_VERSION) > +PHP8_SUFFIX := tar.xz > +PHP8_SOURCE := $(SRCDIR)/$(PHP8).$(PHP8_SUFFIX) > +PHP8_DIR := $(BUILDDIR)/$(PHP8) > + > +# > +# Note: older releases are moved to the 'museum', but the 'de.php.net' > +# response with a HTML file instead of the archive. So, try the 'museum' > +# URL first > +# > +PHP8_URL := \ > + http://museum.php.net/php8/$(PHP8).$(PHP8_SUFFIX) \ > + http://de.php.net/distributions/$(PHP8).$(PHP8_SUFFIX) > + > +# ---------------------------------------------------------------------------- > +# Prepare > +# ---------------------------------------------------------------------------- > + > +PHP8_CONF_ENV := \ > + $(CROSS_ENV) \ > + ac_cv_prog_cc_cross=yes \ > + ac_cv_c_bigendian_php=$(call ptx/yesno, PTXCONF_ENDIAN_BIG) > + > +# > +# autoconf > +# > +PHP8_AUTOCONF := \ > + $(CROSS_AUTOCONF_USR) \ > + --with-config-file-path=/etc/php8 \ > + --without-iconv \ > + --disable-phpdbg \ > + --with-libdir=/usr/$(CROSS_LIB_DIR) \ > + --disable-opcache \ > + --disable-zend-signals > + In general, I'd like to add all options here, correctly ordered. This way, configure_helper.py can work. > +# ---------------------------------------------------------------------------- > +# Network options > +# ---------------------------------------------------------------------------- > + > +ifndef PTXCONF_GLOBAL_IPV6 > +PHP8_AUTOCONF += --disable-ipv6 > +endif Is --enable-ipv6 broken? > + > +# ---------------------------------------------------------------------------- > +# One of the "Server Application Programming Interfaces" > +# ---------------------------------------------------------------------------- > + > +ifndef PTXCONF_PHP8_SAPI_CGI > +PHP8_AUTOCONF += \ > + --disable-cgi > +endif Same here. > + > +# ---------------------------------------------------------------------------- > +# Generic configurations > +# ---------------------------------------------------------------------------- > + > +ifndef PTXCONF_PHP8_SAPI_CLI > +PHP8_AUTOCONF += --disable-cli > +endif And here. Michael > + > +ifdef PTXCONF_PHP8_DEUBG > +PHP8_AUTOCONF += --enable-debug > +endif > + > +# ---------------------------------------------------------------------------- > +# Extensions > +# ---------------------------------------------------------------------------- > + > +# Please extend on demand... > +PHP8_AUTOCONF += --disable-all \ > + --$(call ptx/endis, PTXCONF_PHP8_SESSION)-session > + > +# ---------------------------------------------------------------------------- > +# Target-Install > +# ---------------------------------------------------------------------------- > + > +$(STATEDIR)/php8.targetinstall: > + @$(call targetinfo) > + > + @$(call install_init, php8) > + @$(call install_fixup, php8,PRIORITY,optional) > + @$(call install_fixup, php8,SECTION,base) > + @$(call install_fixup, php8,AUTHOR,"Robert Schwebel ") > + @$(call install_fixup, php8,DESCRIPTION,missing) > + > +ifdef PTXCONF_PHP8_SAPI_CLI > + @$(call install_copy, php8, 0, 0, 0755, -, /usr/bin/php) > +endif > + > +ifdef PTXCONF_PHP8_SAPI_CGI > + @$(call install_copy, php8, 0, 0, 0755, -, /usr/bin/php-cgi) > +endif > + > +ifdef PTXCONF_PHP8_INI > + @$(call install_alternative, php8, 0, 0, 0644, /etc/php8/php.ini) > +endif > + > + @$(call install_finish, php8) > + > + @$(call touch) > + > +# vim: syntax=make > -- > 2.20.1 > > > _______________________________________________ > ptxdist mailing list > ptxdist@pengutronix.de > To unsubscribe, send a mail with subject "unsubscribe" to ptxdist-request@pengutronix.de > -- Pengutronix e.K. | | Steuerwalder Str. 21 | http://www.pengutronix.de/ | 31137 Hildesheim, Germany | Phone: +49-5121-206917-0 | Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 | _______________________________________________ ptxdist mailing list ptxdist@pengutronix.de To unsubscribe, send a mail with subject "unsubscribe" to ptxdist-request@pengutronix.de