* [PR PATCH] php: fix cross build
@ 2020-05-16 19:54 newbluemoon
2020-05-16 21:26 ` [PR PATCH] [Merged]: " jnbr
0 siblings, 1 reply; 2+ messages in thread
From: newbluemoon @ 2020-05-16 19:54 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 675 bytes --]
There is a new pull request by newbluemoon against master on the void-packages repository
https://github.com/newbluemoon/void-packages php
https://github.com/void-linux/void-packages/pull/22019
php: fix cross build
Dynamic loading of extensions was disabled,
because configure cannot determine if dlopen
is available (executes test program).
Override this test by using values taken
from a native build.
closes #21982 and #21852
Did a short test run on armv7l, extensions are now found.
The short test one-liner from #21852
`php -r 'new SQLite3("db");'`
works, too.
A patch file from https://github.com/void-linux/void-packages/pull/22019.patch is attached
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-php-22019.patch --]
[-- Type: text/x-diff, Size: 1112 bytes --]
From ed2585780340df55e312faa3bae7235c02b7f8c7 Mon Sep 17 00:00:00 2001
From: newbluemoon <blaumolch@mailbox.org>
Date: Sat, 16 May 2020 21:38:01 +0200
Subject: [PATCH] php: fix cross build
Dynamic loading of extensions was disabled,
because configure cannot determine if dlopen
is available (executes test program).
Override this test by using values taken
from a native build.
---
srcpkgs/php/template | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/srcpkgs/php/template b/srcpkgs/php/template
index 4aea307bdb6..40cd5593b5b 100644
--- a/srcpkgs/php/template
+++ b/srcpkgs/php/template
@@ -1,7 +1,7 @@
# Template file for 'php'
pkgname=php
version=7.4.6
-revision=1
+revision=2
hostmakedepends="bison pkg-config apache-devel"
makedepends="apache-devel enchant-devel freetds-devel freetype-devel gdbm-devel
gmp-devel libcurl-devel libjpeg-turbo-devel libmysqlclient-devel
@@ -23,6 +23,7 @@ replaces="php-mcrypt<7.2.0"
if [ -n "$CROSS_BUILD" ]; then
# php-pear needs php to build
hostmakedepends+=" php"
+ CFLAGS+=" -DHAVE_LIBDL -DHAVE_DLOPEN -DHAVE_DLSYM"
fi
do_build() {
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [PR PATCH] [Merged]: php: fix cross build
2020-05-16 19:54 [PR PATCH] php: fix cross build newbluemoon
@ 2020-05-16 21:26 ` jnbr
0 siblings, 0 replies; 2+ messages in thread
From: jnbr @ 2020-05-16 21:26 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 527 bytes --]
There's a merged pull request on the void-packages repository
php: fix cross build
https://github.com/void-linux/void-packages/pull/22019
Description:
Dynamic loading of extensions was disabled,
because configure cannot determine if dlopen
is available (executes test program).
Override this test by using values taken
from a native build.
closes #21982 and closes #21852
Did a short test run on armv7l, extensions are now found.
The short test one-liner from #21852
`php -r 'new SQLite3("db");'`
works, too.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2020-05-16 21:26 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-05-16 19:54 [PR PATCH] php: fix cross build newbluemoon
2020-05-16 21:26 ` [PR PATCH] [Merged]: " jnbr
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).