php81Extensions.tokenizer: fix build
(cherry picked from commit cf7f4c058e822ee8eeaa2120c45f04b5b460a5db)
This commit is contained in:
parent
4e9870ffa2
commit
2dbf96e7cc
2 changed files with 17 additions and 1 deletions
12
pkgs/development/interpreters/php/fix-tokenizer-php81.patch
Normal file
12
pkgs/development/interpreters/php/fix-tokenizer-php81.patch
Normal file
|
@ -0,0 +1,12 @@
|
|||
diff --git a/ext/tokenizer/Makefile.frag b/ext/tokenizer/Makefile.frag
|
||||
index 745cbfce91..07bace6022 100644
|
||||
--- a/ext/tokenizer/Makefile.frag
|
||||
+++ b/ext/tokenizer/Makefile.frag
|
||||
@@ -1,5 +1,5 @@
|
||||
-$(top_srcdir)/ext/tokenizer/tokenizer_data.c: $(top_srcdir)/Zend/zend_language_parser.y
|
||||
+$(top_srcdir)/tokenizer_data.c: $(top_srcdir)/../../Zend/zend_language_parser.y
|
||||
@if test ! -z "$(PHP)"; then \
|
||||
$(PHP) $(srcdir)/tokenizer_data_gen.php; \
|
||||
fi;
|
||||
-$(builddir)/tokenizer.lo: $(top_srcdir)/Zend/zend_language_parser.c $(top_srcdir)/Zend/zend_language_scanner.c
|
||||
+$(builddir)/tokenizer.lo: $(top_srcdir)/../../Zend/zend_language_parser.c $(top_srcdir)/../../Zend/zend_language_scanner.c
|
|
@ -543,7 +543,11 @@ lib.makeScope pkgs.newScope (self: with self; {
|
|||
{ name = "sysvsem"; }
|
||||
{ name = "sysvshm"; }
|
||||
{ name = "tidy"; configureFlags = [ "--with-tidy=${html-tidy}" ]; doCheck = false; }
|
||||
{ name = "tokenizer"; }
|
||||
{
|
||||
name = "tokenizer";
|
||||
patches = lib.optional (lib.versionAtLeast php.version "8.1")
|
||||
../development/interpreters/php/fix-tokenizer-php81.patch;
|
||||
}
|
||||
{
|
||||
name = "wddx";
|
||||
buildInputs = [ libxml2 ];
|
||||
|
|
Loading…
Reference in a new issue