mailarchive of the ptxdist mailing list
 help / color / mirror / Atom feed
From: webmaster@zutroll.de
To: ptxdist@pengutronix.de
Subject: Re: [ptxdist] PHP7.3 support? Since 5.6.x is End Of Life
Date: Fri, 22 Feb 2019 09:59:54 +0100	[thread overview]
Message-ID: <80140a59fe48047a27f36c2b07dfd093@zutroll.de> (raw)
In-Reply-To: <20190222082812.r6lnqjwh4uov4ez2@pengutronix.de>

[-- Attachment #1: Type: text/plain, Size: 1386 bytes --]

Hello,

PHP 7.3.2 seems to work well with sqlite, since it uses its own bundeled 
sqlite3.
I use with --with-sqlite3, so not specifing any special src.

I have attached my modified php make file.
I kept the naming php5.make due limited time, but the target file is now 
named php instead of php5.

Hope this helps to getting this working again with ptxdist builded 
sqlite3.so

Regards



Am 2019-02-22 09:28, schrieb Michael Olbrich:
> Hi,
> 
> On Mon, Feb 11, 2019 at 03:31:38PM +0100, Simon Agostini wrote:
>>      is PHP 7.3 suppot planned?
> 
> I'd be happy to accept patches for this, but I currently don't have 
> plans
> to do this myself.
> 
>>      I tried to adapt the PHP5 make file but I get:
>>      /build-target/php-7.3.2/ext/pdo_sqlite/libsqlite/sqlite3.c', 
>> needed by
>>      'ext/pdo_sqlite/libsqlite/sqlite3.lo'.  Stop.
>> 
>>      with --with-sqlite3=$(PTXDIST_SYSROOT_TARGET)/usr
>> 
>>      if I remove the dir path it works, but I think this shall not be 
>> the
>>      optimal build!?
> 
> The php5 package is not maintained very well. It has no priority for me 
> and
> other than the occasional minor version bump, nobody else seems to care
> either.
> 
> I'm guessing, that the php build system is broken and there is some 
> mixup
> about internal vs. system sqlite. Do you get sqlite support at all if 
> you
> remove --with-sqlite3=...?
> 
> Michael

[-- Attachment #2: php5.make --]
[-- Type: text/plain, Size: 6748 bytes --]

# -*-makefile-*-
#
# Copyright (C) 2006-2008 by Robert Schwebel
#               2009, 2012 by Marc Kleine-Budde <mkl@pengutronix.de>
#
# See CREDITS for details about who has contributed to this project.
#
# For further information about the PTXdist project and license conditions
# see the README file.
#

#
# We provide this package
#
PACKAGES-$(PTXCONF_PHP5) += php5

#
# Paths and names
#
PHP5_VERSION	:= 7.3.2
PHP5_MD5	:= 92a237d2f4075eb00dd2b1f36e71ae4c
PHP5		:= php-$(PHP5_VERSION)
PHP5_SUFFIX	:= tar.xz
PHP5_SOURCE	:= $(SRCDIR)/$(PHP5).$(PHP5_SUFFIX)
PHP5_DIR	:= $(BUILDDIR)/$(PHP5)
PHP5_LICENSE	:= PHP

#
# 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
#
PHP5_URL := \
	http://museum.php.net/php7/$(PHP5).$(PHP5_SUFFIX) \
	http://php.net/distributions/$(PHP5).$(PHP5_SUFFIX)

# ----------------------------------------------------------------------------
# Prepare
# ----------------------------------------------------------------------------

PHP5_CONF_ENV := \
	$(CROSS_ENV) \
	ac_cv_prog_cc_cross=yes \
	ac_cv_c_bigendian_php=$(call ptx/ifdef, PTXCONF_ENDIAN_BIG, yes, no)
	
# autoconf
#
PHP5_AUTOCONF := \
	$(CROSS_AUTOCONF_USR) \
	--disable-phar \
	--with-config-file-path=/etc/php \
	--enable-opcache=no \
	--without-iconv

# FIXME: php5 doesn't interprete "with_foo=no" correctly, so we cannot
# give --without-foo options. Should be fixed in php5's configure.in.

# ------------
# SAPI Modules
# ------------

ifdef PTXCONF_PHP5_SAPI_AOLSERVER
PHP5_AUTOCONF += --with-aolserver=FIXME
else
#PHP5_AUTOCONF += --without-aolserver
endif

ifdef PTXCONF_PHP5_SAPI_APXS2FILTER
PHP5_AUTOCONF += --with-apxs2filter=$(PTXDIST_SYSROOT_TARGET)/usr/bin/apxs
else
#PHP5_AUTOCONF += --without-apxs2filter
endif

ifdef PTXCONF_PHP5_SAPI_APXS2
PHP5_AUTOCONF += --with-apxs2=$(PTXDIST_SYSROOT_TARGET)/usr/bin/apxs
else
# PHP5_AUTOCONF += --without-apxs2
endif

ifdef PTXCONF_PHP5_SAPI_CAUDIUM
PHP5_AUTOCONF += --with-caudium
else
# PHP5_AUTOCONF += --without-caudium
endif

ifdef PTXCONF_PHP5_SAPI_CLI
PHP5_AUTOCONF += --enable-cli
else
PHP5_AUTOCONF += --disable-cli
endif

ifdef PTXCONF_PHP5_SAPI_CONTINUITY
PHP5_AUTOCONF += --with-continuity
else
#PHP5_AUTOCONF += --without-continuity
endif

ifdef PTXCONF_PHP5_SAPI_EMBEDDED
PHP5_AUTOCONF += --enable-embed
else
#PHP5_AUTOCONF += --disable-embed
endif

ifdef PTXCONF_PHP5_SAPI_ISAPI
PHP5_AUTOCONF += --with-isapi
else
#PHP5_AUTOCONF += --without-isapi
endif

ifdef PTXCONF_PHP5_SAPI_MILTER
PHP5_AUTOCONF += --with-milter
else
#PHP5_AUTOCONF += --without-milter
endif

ifdef PTXCONF_PHP5_SAPI_NSAPI
PHP5_AUTOCONF += --with-nsapi
else
#PHP5_AUTOCONF += --without-nsapi
endif

ifdef PTXCONF_PHP5_SAPI_PHTTPD
PHP5_AUTOCONF += --with-phttpd
else
#PHP5_AUTOCONF += --without-phttpd
endif

ifdef PTXCONF_PHP5_SAPI_PI3WEB
PHP5_AUTOCONF += --with-pi3web
else
#PHP5_AUTOCONF += --without-pi3web
endif

ifdef PTXCONF_PHP5_SAPI_ROXEN
PHP5_AUTOCONF += --with-roxen
else
#PHP5_AUTOCONF += --without-roxen
endif

ifdef PTXCONF_PHP5_SAPI_ROXEN_ZTS
PHP5_AUTOCONF += --with-roxen-zts
else
#PHP5_AUTOCONF += --without-roxen-zts
endif

ifdef PTXCONF_PHP5_SAPI_THTTPD
PHP5_AUTOCONF += --with-thttpd
else
#PHP5_AUTOCONF += --without-thttpd
endif

ifdef PTXCONF_PHP5_SAPI_TUX
PHP5_AUTOCONF += --with-tux
else
#PHP5_AUTOCONF += --without-tux
endif

ifdef PTXCONF_PHP5_SAPI_CGI
PHP5_AUTOCONF += --enable-cgi
else
PHP5_AUTOCONF += --disable-cgi
endif

# ---------------
# General Options
# ---------------

ifdef PTXCONF_PHP5_XML
PHP5_AUTOCONF += --enable-xml
else
PHP5_AUTOCONF += --disable-xml
endif

ifdef PTXCONF_PHP5_XML_LIBXML2
PHP5_AUTOCONF += \
	--enable-libxml \
	--with-libxml-dir=$(SYSROOT)/usr
else
PHP5_AUTOCONF += --disable-libxml
endif

ifdef PTXCONF_PHP5_XML_LIBXML2_READER
PHP5_AUTOCONF += --enable-xmlreader
else
PHP5_AUTOCONF += --disable-xmlreader
endif

ifdef PTXCONF_PHP5_XML_LIBXML2_WRITER
PHP5_AUTOCONF += --enable-xmlwriter
else
PHP5_AUTOCONF += --disable-xmlwriter
endif

ifdef PTXCONF_PHP5_XML_LIBXML2_DOM
PHP5_AUTOCONF += --enable-dom
else
PHP5_AUTOCONF += --disable-dom
endif

ifdef PTXCONF_PHP5_XML_LIBXML2_XSLT
PHP5_AUTOCONF += --with-xsl=$(SYSROOT)/usr
else
PHP5_AUTOCONF += --without-xsl
endif

ifdef PTXCONF_PHP5_XML_LIBXML2_SIMPLEXML
PHP5_AUTOCONF += --enable-simplexml
else
PHP5_AUTOCONF += --disable-simplexml
endif

ifdef PTXCONF_PHP5_XML_LIBXML2_XMLRPC
PHP5_AUTOCONF += --with-xmlrpc
else
PHP5_AUTOCONF += --without-xmlrpc
endif

ifdef PTXCONF_PHP5_EXT_ZLIB
PHP5_AUTOCONF += --with-zlib=$(SYSROOT)/usr
else
PHP5_AUTOCONF += --without-zlib
endif

ifdef PTXCONF_PHP5_EXT_OPENSSL
PHP5_AUTOCONF += --with-openssl=$(SYSROOT)/usr
else
PHP5_AUTOCONF += --without-openssl
endif

ifdef PTXCONF_PHP5_EXT_CURL
PHP5_AUTOCONF += \
	--with-curl=$(SYSROOT)/usr
else
PHP5_AUTOCONF += --without-curl
endif

ifdef PTXCONF_PHP5_EXT_MYSQL
PHP5_AUTOCONF += \
	--with-mysql=$(SYSROOT)/usr \
	--with-pdo-mysql=$(SYSROOT)/usr
else
#PHP5_AUTOCONF += --without-mysql
endif

ifdef PTXCONF_PHP5_EXT_SOAP
PHP5_AUTOCONF += --enable-soap
else
PHP5_AUTOCONF += --disable-soap
endif

ifdef PTXCONF_PHP5_EXT_SOCKETS
PHP5_AUTOCONF += --enable-sockets
else
PHP5_AUTOCONF += --disable-sockets
endif

ifdef PTXCONF_PHP5_EXT_SQLITE3
PHP5_AUTOCONF += --with-sqlite3 --with-pdo-sqlite
# PATH removed for PHP7 since it breaks the build PHP5_AUTOCONF += --with-sqlite3=$(PTXDIST_SYSROOT_TARGET)/usr --with-pdo-sqlite
# broken config system: sqlite3 (local copy) uses it
# but it is only linked to if used by external dependencies
PHP5_CONF_ENV += PHP_LDFLAGS=-ldl
else
PHP5_AUTOCONF += --without-sqlite3 --without-pdo-sqlite
endif

ifdef PTXCONF_PHP5_EXT_PEAR
PHP5_AUTOCONF += --with-pear=FIXME
else
PHP5_AUTOCONF += --without-pear
endif

# ----------------------------------------------------------------------------
# Target-Install
# ----------------------------------------------------------------------------

$(STATEDIR)/php5.targetinstall:
	@$(call targetinfo)

	@$(call install_init, php5)
	@$(call install_fixup, php5,PRIORITY,optional)
	@$(call install_fixup, php5,SECTION,base)
	@$(call install_fixup, php5,AUTHOR,"Robert Schwebel <r.schwebel@pengutronix.de>")
	@$(call install_fixup, php5,DESCRIPTION,missing)

ifdef PTXCONF_PHP5_SAPI_APXS2
	@$(call install_copy, php5, 0, 0, 0644, -, \
		/usr/modules/libphp7.so)
endif

ifdef PTXCONF_PHP5_SAPI_CLI
	@$(call install_copy, php5, 0, 0, 0755, $(PHP5_PKGDIR)/usr/bin/php, \
		/usr/bin/php)
endif

ifdef PTXCONF_PHP5_SAPI_CGI
	@$(call install_copy, php5, 0, 0, 0755, -, /usr/bin/php-cgi)
endif

ifdef PTXCONF_PHP5_INI
	@$(call install_alternative, php5, 0, 0, 0644, /etc/php/php.ini)
endif

	@$(call install_finish, php5)

	@$(call touch)

# vim: syntax=make

[-- Attachment #3: Type: text/plain, Size: 91 bytes --]

_______________________________________________
ptxdist mailing list
ptxdist@pengutronix.de

  reply	other threads:[~2019-02-22  8:59 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <d548c3cbcb30e579ec8938218ff79876@zutroll.de>
2019-02-11 14:31 ` Simon Agostini
2019-02-22  8:28   ` Michael Olbrich
2019-02-22  8:59     ` webmaster [this message]
2019-02-22  9:24 Thorsten LIEPERT
2019-02-22 11:39 ` webmaster
2019-02-22 11:50 Thorsten LIEPERT

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=80140a59fe48047a27f36c2b07dfd093@zutroll.de \
    --to=webmaster@zutroll.de \
    --cc=ptxdist@pengutronix.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox