Merge ~athos-ribeiro/ubuntu/+source/php8.1:merge-lp1978364-kinetic into ubuntu/+source/php8.1:debian/sid

Proposed by Athos Ribeiro
Status: Merged
Approved by: git-ubuntu bot
Approved revision: not available
Merge reported by: Athos Ribeiro
Merged at revision: b85e0eeb505855ce083f1f6c53fa2d66d24a4ff5
Proposed branch: ~athos-ribeiro/ubuntu/+source/php8.1:merge-lp1978364-kinetic
Merge into: ubuntu/+source/php8.1:debian/sid
Diff against target: 369 lines (+238/-4)
7 files modified
debian/changelog (+60/-0)
debian/control (+28/-1)
debian/control.in (+28/-1)
debian/patches/0046-Update-gcc-func-attr-macro.patch (+29/-0)
debian/patches/0047-Fix-ssl3-unexpected-eof.patch (+76/-0)
debian/patches/series (+2/-0)
debian/rules (+15/-2)
Reviewer Review Type Date Requested Status
git-ubuntu bot Approve
Bryce Harrington (community) Approve
Canonical Server Reporter Pending
Canonical Server Reporter Pending
Canonical Server Reporter Pending
Canonical Server Pending
Review via email: mp+424446@code.launchpad.net

Description of the change

Merge for php8.1 8.1.5, as per LP: #1978364.

This also includes the patch needed to fix LP: #1975626.

Do note that php 8.1.7 was already released upstream and the package will soon be pushed to Debian unstable.

PPA: https://launchpad.net/~athos-ribeiro/+archive/ubuntu/lp1978364-merge-php-kinetic/+packages

Local dep8 test suite run result summary:

autopkgtest [01:22:43]: @@@@@@@@@@@@@@@@@@@@ summary
cli PASS
cgi PASS
mod-php PASS
fpm PASS

To post a comment you must log in.
Revision history for this message
Bryce Harrington (bryce) wrote :
Download full text (3.4 KiB)

LGTM, +1

It looks like it builds fine in the PPA. I attempted to build locally in an LXC container but it hit a CPU spin in one of the test cases and eventually tripped the OOM killer:

    ...
    PASS gmp_setbit() basic tests [ext/gmp/tests/gmp_setbit.phpt]
    TEST 6423/15617 [ext/gmp/tests/gmp_setbit_long.php1]
    Error: websocket: close 1006 (abnormal closure): unexpected EOF

When my system came back, top was showing CPU usage up over 600! OOM killer did its job:

    [3615086.331225] oom-kill:constraint=CONSTRAINT_NONE,nodemask=(null),cpuset=lxc.payload.triage-kinetic,mems_allowed=0,global_oom,task_memcg=/user.slice/user-1000.slice/session-c2.scope,task=steamwebhelper,pid=859039,uid=1000
    [3615086.331260] Out of memory: Killed process 859039 (steamwebhelper) total-vm:612740kB, anon-rss:60872kB, file-rss:0kB, shmem-rss:12956kB, UID:1000 pgtables:816kB oom_score_adj:200
    [3615086.334708] oom_reaper: reaped process 859039 (steamwebhelper), now anon-rss:0kB, file-rss:0kB, shmem-rss:12952kB

I've built php many times and haven't seen a behavior like this. So I wouldn't rule it out as a fluke, esp. since the PPA seems to have built fine. But can you do a local build and autopkgtest run in an LXC container and see if anything similar happens for you? If it does, maybe file a bug report and/or disable the test.

I also triggered autopkgtests to run on launchpad and those look fine at least:

Results from https://autopkgtest.ubuntu.com/results/autopkgtest-kinetic-athos-ribeiro-lp1978364-merge-php-kinetic/?format=plain:
  php8.1 @ amd64:
    13.06.22 22:28:46 Log πŸ—’οΈ βœ… Triggers: ['php8.1/8.1.5-1ubuntu1~ppa1']
      cli PASS βœ…
      cgi PASS βœ…
      mod-php PASS βœ…
      fpm PASS βœ…
  php8.1 @ armhf:
    13.06.22 22:38:08 Log πŸ—’οΈ βœ… Triggers: ['php8.1/8.1.5-1ubuntu1~ppa1']
      cli PASS βœ…
      cgi PASS βœ…
      mod-php PASS βœ…
      fpm PASS βœ…
  php8.1 @ ppc64el:
    13.06.22 22:31:21 Log πŸ—’οΈ βœ… Triggers: ['php8.1/8.1.5-1ubuntu1~ppa1']
      cli PASS βœ…
      cgi PASS βœ…
      mod-php PASS βœ…
      fpm PASS βœ…
  php8.1 @ s390x:
    13.06.22 22:30:09 Log πŸ—’οΈ βœ… Triggers: ['php8.1/8.1.5-1ubuntu1~ppa1']
      cli PASS βœ…
      cgi PASS βœ…
      mod-php PASS βœ…
      fpm PASS βœ…
Running:
    time pkg release arch ppa trigger
    0:24:32 php8.1 kinetic arm64 athos-ribeiro/lp1978364-merge-php-kinetic php8.1/8.1.5-1ubuntu1~ppa1
Waiting:

The merge its...

Read more...

review: Approve
Revision history for this message
Athos Ribeiro (athos-ribeiro) wrote :

Thanks Bryce!

My local builds (and tests) are fine... I just uploaded this. Let's see how migration goes.

Revision history for this message
git-ubuntu bot (git-ubuntu-bot) wrote :

Approvers: athos-ribeiro, bryce
Uploaders: athos-ribeiro, bryce
MP auto-approved

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
diff --git a/debian/changelog b/debian/changelog
index d5273e1..6686b2c 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,25 @@
1php8.1 (8.1.5-1ubuntu1) kinetic; urgency=medium
2
3 * Merge with Debian unstable (LP: #1978364). Remaining changes:
4 - Force upgrade from earlier mod-php's to version 8.1 (LP #1890263):
5 + d/control: add transitional packages and Breaks/Replaces.
6 + d/rules: exclude transitional packages in dh_install.
7 - d/rules: Don't fill up build log with pedantic warnings.
8 - d/p/0046-Update-gcc-func-attr-macro.patch: fix detection of unknown gcc
9 function attributes. (LP #1882279)
10 - d/rules: document garbage collection in ini files. (LP #1772915)
11 * Dropped changes:
12 - SECURITY UPDATE: use-after-free in php_filter_float()
13 + debian/patches/CVE-2021-21708.patch: fix int handling in
14 ext/filter/logical_filters.c, ext/filter/tests/bug81708.phpt.
15 + CVE-2021-21708
16 [ Fixed in 8.1.3-1 ]
17 * New changes:
18 - d/p/0047-Fix-ssl3-unexpected-eof.patch: fix OpenSSL3 related
19 unexpected EOF failure. (LP: #1975626)
20
21 -- Athos Ribeiro <athos.ribeiro@canonical.com> Sat, 11 Jun 2022 00:08:45 -0300
22
1php8.1 (8.1.5-1) unstable; urgency=medium23php8.1 (8.1.5-1) unstable; urgency=medium
224
3 * New upstream version 8.1.525 * New upstream version 8.1.5
@@ -18,6 +40,44 @@ php8.1 (8.1.3-1) unstable; urgency=medium
1840
19 -- OndΕ™ej SurΓ½ <ondrej@debian.org> Mon, 21 Feb 2022 15:47:42 +010041 -- OndΕ™ej SurΓ½ <ondrej@debian.org> Mon, 21 Feb 2022 15:47:42 +0100
2042
43php8.1 (8.1.2-1ubuntu4) kinetic; urgency=medium
44
45 * d/p/0046-Update-gcc-func-attr-macro.patch: fix detection of unknown gcc
46 function attributes. (LP: #1882279)
47 * d/rules: document garbage collection in ini files. (LP: #1772915)
48
49 -- Athos Ribeiro <athos.ribeiro@canonical.com> Mon, 02 May 2022 19:54:49 -0300
50
51php8.1 (8.1.2-1ubuntu3) kinetic; urgency=medium
52
53 * No-change rebuild against libicu71
54
55 -- Steve Langasek <steve.langasek@ubuntu.com> Sat, 30 Apr 2022 02:06:04 +0000
56
57php8.1 (8.1.2-1ubuntu2) jammy; urgency=medium
58
59 * d/control: Add transitional packages and Breaks/Replaces to force
60 upgrade from earlier mod-php's to version 8.1.
61 (LP: #1890263)
62 * d/rules: Don't fill up build log with pedantic warnings.
63
64 -- Bryce Harrington <bryce@canonical.com> Thu, 07 Apr 2022 17:46:26 +0000
65
66php8.1 (8.1.2-1ubuntu1) jammy; urgency=medium
67
68 * SECURITY UPDATE: use-after-free in php_filter_float()
69 - debian/patches/CVE-2021-21708.patch: fix int handling in
70 ext/filter/logical_filters.c, ext/filter/tests/bug81708.phpt.
71 - CVE-2021-21708
72
73 -- Marc Deslauriers <marc.deslauriers@ubuntu.com> Fri, 04 Mar 2022 13:13:46 -0500
74
75php8.1 (8.1.2-1build1) jammy; urgency=medium
76
77 * No-change rebuild for icu soname change.
78
79 -- Matthias Klose <doko@ubuntu.com> Wed, 09 Feb 2022 09:18:22 +0100
80
21php8.1 (8.1.2-1) unstable; urgency=medium81php8.1 (8.1.2-1) unstable; urgency=medium
2282
23 * New upstream version 8.1.283 * New upstream version 8.1.2
diff --git a/debian/control b/debian/control
index e7e70f9..1c8b195 100644
--- a/debian/control
+++ b/debian/control
@@ -1,7 +1,8 @@
1Source: php8.11Source: php8.1
2Section: php2Section: php
3Priority: optional3Priority: optional
4Maintainer: Debian PHP Maintainers <team+pkg-php@tracker.debian.org>4Maintainer: Ubuntu Developers <ubuntu-devel-discuss@lists.ubuntu.com>
5XSBC-Original-Maintainer: Debian PHP Maintainers <team+pkg-php@tracker.debian.org>
5Uploaders: OndΕ™ej SurΓ½ <ondrej@debian.org>,6Uploaders: OndΕ™ej SurΓ½ <ondrej@debian.org>,
6 Lior Kaplan <kaplan@debian.org>7 Lior Kaplan <kaplan@debian.org>
7Build-Depends: apache2-dev (>= 2.4),8Build-Depends: apache2-dev (>= 2.4),
@@ -93,6 +94,8 @@ Depends: libmagic1,
93Provides: libapache2-mod-php,94Provides: libapache2-mod-php,
94 php8.1-json,95 php8.1-json,
95 ${php:Provides}96 ${php:Provides}
97Replaces: libapache2-mod-php7.4 (>> 8.1.2-1~),
98 libapache2-mod-php8.0 (>> 8.1.2-1~)
96Recommends: apache299Recommends: apache2
97Suggests: php-pear100Suggests: php-pear
98Description: server-side, HTML-embedded scripting language (Apache 2 module)101Description: server-side, HTML-embedded scripting language (Apache 2 module)
@@ -106,6 +109,30 @@ Description: server-side, HTML-embedded scripting language (Apache 2 module)
106 open source general-purpose scripting language that is especially suited109 open source general-purpose scripting language that is especially suited
107 for web development and can be embedded into HTML.110 for web development and can be embedded into HTML.
108111
112Package: libapache2-mod-php7.4
113Section: httpd
114Architecture: any
115Replaces: libapache2-mod-php7.4 (<< 7.4.3-5~)
116Breaks: libapache2-mod-php7.4 (<< 7.4.3-5~)
117Depends: libapache2-mod-php,
118 ${misc:Depends},
119 ${shlibs:Depends}
120Description: Transitional package
121 This is a transitional dummy package to libapache2-mod-php8.1. It can
122 be safely removed and libapache2-mod-php installed instead.
123
124Package: libapache2-mod-php8.0
125Section: httpd
126Architecture: any
127Replaces: libapache2-mod-php8.0 (<< 8.0.8-2~)
128Breaks: libapache2-mod-php8.0 (<< 8.0.8-2~)
129Depends: libapache2-mod-php,
130 ${misc:Depends},
131 ${shlibs:Depends}
132Description: Transitional package
133 This is a transitional dummy package to libapache2-mod-php8.1. It can
134 be safely removed and libapache2-mod-php installed instead.
135
109Package: libphp8.1-embed136Package: libphp8.1-embed
110Architecture: any137Architecture: any
111Depends: libmagic1,138Depends: libmagic1,
diff --git a/debian/control.in b/debian/control.in
index 11a4d60..60be50d 100644
--- a/debian/control.in
+++ b/debian/control.in
@@ -1,7 +1,8 @@
1Source: php@PHP_VERSION@1Source: php@PHP_VERSION@
2Section: php2Section: php
3Priority: optional3Priority: optional
4Maintainer: Debian PHP Maintainers <team+pkg-php@tracker.debian.org>4Maintainer: Ubuntu Developers <ubuntu-devel-discuss@lists.ubuntu.com>
5XSBC-Original-Maintainer: Debian PHP Maintainers <team+pkg-php@tracker.debian.org>
5Uploaders: OndΕ™ej SurΓ½ <ondrej@debian.org>,6Uploaders: OndΕ™ej SurΓ½ <ondrej@debian.org>,
6 Lior Kaplan <kaplan@debian.org>7 Lior Kaplan <kaplan@debian.org>
7Build-Depends: apache2-dev (>= 2.4),8Build-Depends: apache2-dev (>= 2.4),
@@ -93,6 +94,8 @@ Depends: libmagic1,
93Provides: libapache2-mod-php,94Provides: libapache2-mod-php,
94 php@PHP_VERSION@-json,95 php@PHP_VERSION@-json,
95 ${php:Provides}96 ${php:Provides}
97Replaces: libapache2-mod-php7.4 (>> 8.1.2-1~),
98 libapache2-mod-php8.0 (>> 8.1.2-1~)
96Recommends: apache299Recommends: apache2
97Suggests: php-pear100Suggests: php-pear
98Description: server-side, HTML-embedded scripting language (Apache 2 module)101Description: server-side, HTML-embedded scripting language (Apache 2 module)
@@ -106,6 +109,30 @@ Description: server-side, HTML-embedded scripting language (Apache 2 module)
106 open source general-purpose scripting language that is especially suited109 open source general-purpose scripting language that is especially suited
107 for web development and can be embedded into HTML.110 for web development and can be embedded into HTML.
108111
112Package: libapache2-mod-php7.4
113Section: httpd
114Architecture: any
115Replaces: libapache2-mod-php7.4 (<< 7.4.3-5~)
116Breaks: libapache2-mod-php7.4 (<< 7.4.3-5~)
117Depends: libapache2-mod-php,
118 ${misc:Depends},
119 ${shlibs:Depends}
120Description: Transitional package
121 This is a transitional dummy package to libapache2-mod-php8.1. It can
122 be safely removed and libapache2-mod-php installed instead.
123
124Package: libapache2-mod-php8.0
125Section: httpd
126Architecture: any
127Replaces: libapache2-mod-php8.0 (<< 8.0.8-2~)
128Breaks: libapache2-mod-php8.0 (<< 8.0.8-2~)
129Depends: libapache2-mod-php,
130 ${misc:Depends},
131 ${shlibs:Depends}
132Description: Transitional package
133 This is a transitional dummy package to libapache2-mod-php8.1. It can
134 be safely removed and libapache2-mod-php installed instead.
135
109Package: libphp@PHP_VERSION@-embed136Package: libphp@PHP_VERSION@-embed
110Architecture: any137Architecture: any
111Depends: libmagic1,138Depends: libmagic1,
diff --git a/debian/patches/0046-Update-gcc-func-attr-macro.patch b/debian/patches/0046-Update-gcc-func-attr-macro.patch
112new file mode 100644139new file mode 100644
index 0000000..cb8ea57
--- /dev/null
+++ b/debian/patches/0046-Update-gcc-func-attr-macro.patch
@@ -0,0 +1,29 @@
1From df0894ad1a8195df67a52108b931e07d708cec9a Mon Sep 17 00:00:00 2001
2From: Ming Chen <ming.chen1986@gmail.com>
3Date: Mon, 2 Mar 2020 09:40:36 +0800
4Subject: ax_gcc_func_attribute: Revise the detection of unknown attributes
5
6GCC outputs a warning when Wstrict-prototypes is on, in such case the
7attribute detection always fails even if the attribute is actually
8supported. This change checks for the "-Wattributes" warning in
9conftest.err instead of the existence of the file.
10
11Bug-Ubuntu: https://bugs.launchpad.net/ubuntu/+source/php8.1/+bug/1882279
12Forwarded: https://github.com/php/php-src/pull/8483
13Origin: http://git.savannah.gnu.org/gitweb/?p=autoconf-archive.git;a=commitdiff;h=df0894ad1a8195df67a52108b931e07d708cec9a
14Last-Update: 2022-05-02
15---
16 build/ax_gcc_func_attribute.m4 | 2 +-
17 1 file changed, 1 insertion(+), 1 deletion(-)
18
19--- a/build/ax_gcc_func_attribute.m4
20+++ b/build/ax_gcc_func_attribute.m4
21@@ -227,7 +227,7 @@
22 dnl GCC doesn't exit with an error if an unknown attribute is
23 dnl provided but only outputs a warning, so accept the attribute
24 dnl only if no warning were issued.
25- [AS_IF([test -s conftest.err],
26+ [AS_IF([grep -- -Wattributes conftest.err],
27 [AS_VAR_SET([ac_var], [no])],
28 [AS_VAR_SET([ac_var], [yes])])],
29 [AS_VAR_SET([ac_var], [no])])
diff --git a/debian/patches/0047-Fix-ssl3-unexpected-eof.patch b/debian/patches/0047-Fix-ssl3-unexpected-eof.patch
0new file mode 10064430new file mode 100644
index 0000000..257ee76
--- /dev/null
+++ b/debian/patches/0047-Fix-ssl3-unexpected-eof.patch
@@ -0,0 +1,76 @@
1From 74f75db0c3665677ec006cd379fd561feacffdc6 Mon Sep 17 00:00:00 2001
2From: Jakub Zelenka <bukka@php.net>
3Date: Sun, 15 May 2022 13:49:17 +0100
4Subject: Fix bug #79589: ssl3_read_n:unexpected eof while reading
5
6The unexpected EOF failure was introduced in OpenSSL 3.0 to prevent
7truncation attack. However there are many non complaint servers and
8it is causing break for many users including potential majority
9of those where the truncation attack is not applicable. For that reason
10we try to keep behavior consitent with older OpenSSL versions which is
11also the path chosen by some other languages and web servers.
12
13Closes GH-8369
14
15Bug: https://github.com/php/php-src/issues/8369
16Bug-Ubuntu: https://bugs.launchpad.net/ubuntu/+source/php8.1/+bug/1975626
17Last-Update: 2022-06-11
18Origin: upstream, https://github.com/php/php-src/commit/74f75db0c3665677ec006cd379fd561feacffdc6
19---
20 NEWS | 4 ++++
21 ext/openssl/tests/bug79589.phpt | 21 +++++++++++++++++++++
22 ext/openssl/xp_ssl.c | 5 +++++
23 3 files changed, 30 insertions(+)
24 create mode 100644 ext/openssl/tests/bug79589.phpt
25
26--- a/NEWS
27+++ b/NEWS
28@@ -37,6 +37,10 @@
29 - Sockets:
30 . Fixed Solaris builds. (David Carlier)
31
32+- OpenSSL:
33+ . Fixed bug #79589 (error:14095126:SSL routines:ssl3_read_n:unexpected eof
34+ while reading). (Jakub Zelenka)
35+
36 - SPL:
37 . Fixed bug GH-8121 (SplFileObject - seek and key with csv file inconsistent).
38 (cmb)
39--- /dev/null
40+++ b/ext/openssl/tests/bug79589.phpt
41@@ -0,0 +1,21 @@
42+--TEST--
43+Bug #65538: TLS unexpected EOF failure
44+--EXTENSIONS--
45+openssl
46+--SKIPIF--
47+<?php
48+if (getenv("SKIP_ONLINE_TESTS")) die("skip online test");
49+?>
50+--FILE--
51+<?php
52+
53+$release = file_get_contents(
54+ 'https://chromedriver.storage.googleapis.com/LATEST_RELEASE',
55+ false,
56+ stream_context_create(['ssl' => ['verify_peer'=> false]])
57+);
58+echo gettype($release);
59+
60+?>
61+--EXPECT--
62+string
63--- a/ext/openssl/xp_ssl.c
64+++ b/ext/openssl/xp_ssl.c
65@@ -1648,6 +1648,11 @@
66
67 ssl_ctx_options &= ~SSL_OP_DONT_INSERT_EMPTY_FRAGMENTS;
68
69+#ifdef SSL_OP_IGNORE_UNEXPECTED_EOF
70+ /* Only for OpenSSL 3+ to keep OpenSSL 1.1.1 behavior */
71+ ssl_ctx_options |= SSL_OP_IGNORE_UNEXPECTED_EOF;
72+#endif
73+
74 if (!GET_VER_OPT("disable_compression") || zend_is_true(val)) {
75 ssl_ctx_options |= SSL_OP_NO_COMPRESSION;
76 }
diff --git a/debian/patches/series b/debian/patches/series
index 51a1c37..5e997e9 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -43,3 +43,5 @@
430043-Lower-the-OpenSSL-requirement-to-1.0.1.patch430043-Lower-the-OpenSSL-requirement-to-1.0.1.patch
440044-Fail-the-build-when-the-dtrace-call-fails.patch440044-Fail-the-build-when-the-dtrace-call-fails.patch
450045-Override-result-of-AC_PROG_LN_S-to-fix-FTBFS-on-ppc6.patch450045-Override-result-of-AC_PROG_LN_S-to-fix-FTBFS-on-ppc6.patch
460046-Update-gcc-func-attr-macro.patch
470047-Fix-ssl3-unexpected-eof.patch
diff --git a/debian/rules b/debian/rules
index e2bcac1..c81f742 100755
--- a/debian/rules
+++ b/debian/rules
@@ -138,7 +138,7 @@ ifeq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
138else138else
139 DEB_CFLAGS_MAINT_APPEND += -O0139 DEB_CFLAGS_MAINT_APPEND += -O0
140endif140endif
141DEB_CFLAGS_MAINT_APPEND += -Wall -pedantic -fsigned-char -fno-strict-aliasing 141DEB_CFLAGS_MAINT_APPEND += -Wall -fsigned-char -fno-strict-aliasing
142DEB_CFLAGS_MAINT_APPEND += $(shell getconf LFS_CFLAGS)142DEB_CFLAGS_MAINT_APPEND += $(shell getconf LFS_CFLAGS)
143143
144# OpenSSL 3.0 support144# OpenSSL 3.0 support
@@ -260,6 +260,16 @@ BUILTIN_EXTENSION_CHECK=$$e=get_loaded_extensions(); natcasesort($$e); \
260 foreach($$e as $$i) { $$s .= " $$i"; } \260 foreach($$e as $$i) { $$s .= " $$i"; } \
261 echo("php:Extensions=" . wordwrap($$s . ".\n", 75, "\$${Newline}"));261 echo("php:Extensions=" . wordwrap($$s . ".\n", 75, "\$${Newline}"));
262262
263# Document garbage collection procedure
264define GC_PROBABILITY_DOC
265; Debian Default Value: 1\n;\
266This is disabled in the Debian packages due to the strict permissions\n;\
267on /var/lib/php. Instead, GC is performed through /etc/cron.d/php,\n;\
268which uses the session.gc_maxlifetime setting. Please, check\n;\
269/usr/share/doc/$(PHP_COMMON)/README.Debian.gz for further reference.
270endef
271export GC_PROBABILITY_DOC
272
263include $(CURDIR)/debian/rules.d/*.mk273include $(CURDIR)/debian/rules.d/*.mk
264274
265#extensions275#extensions
@@ -502,7 +512,7 @@ override_dh_install-arch: remove-files-stamp prepare-fpm-pools
502 install -d -m 755 debian/tmp/usr/lib/cgi-bin/512 install -d -m 755 debian/tmp/usr/lib/cgi-bin/
503 ln debian/tmp/usr/bin/php-cgi$(PHP_NAME_VERSION) debian/tmp/usr/lib/cgi-bin/php$(PHP_NAME_VERSION)513 ln debian/tmp/usr/bin/php-cgi$(PHP_NAME_VERSION) debian/tmp/usr/lib/cgi-bin/php$(PHP_NAME_VERSION)
504514
505 dh_install --fail-missing515 dh_install --fail-missing --exclude=libapache2-mod-php7.4 --exclude=libapache2-mod-php8.0
506516
507# Install a helper script for checking PHP FPM configuration517# Install a helper script for checking PHP FPM configuration
508 mkdir -p debian/$(PHP_FPM)/usr/lib/php/518 mkdir -p debian/$(PHP_FPM)/usr/lib/php/
@@ -512,6 +522,7 @@ override_dh_install-arch: remove-files-stamp prepare-fpm-pools
512 mkdir -p debian/$(PHP_COMMON)/usr/lib/php/$(PHP_NAME_VERSION)/522 mkdir -p debian/$(PHP_COMMON)/usr/lib/php/$(PHP_NAME_VERSION)/
513 cat php.ini-production | tr "\t" " " | \523 cat php.ini-production | tr "\t" " " | \
514 $(SED) -e'/session.gc_probability =/ s/1/0/g;' \524 $(SED) -e'/session.gc_probability =/ s/1/0/g;' \
525 -e"/session.gc_probability =/i $${GC_PROBABILITY_DOC}" \
515 -e'/disable_functions =/ s/$$/ $(PCNTL_FUNCTIONS)/g;' \526 -e'/disable_functions =/ s/$$/ $(PCNTL_FUNCTIONS)/g;' \
516 -e'/expose_php =/ s/On/Off/g;' \527 -e'/expose_php =/ s/On/Off/g;' \
517 > debian/$(PHP_COMMON)/usr/lib/php/$(PHP_NAME_VERSION)/php.ini-production528 > debian/$(PHP_COMMON)/usr/lib/php/$(PHP_NAME_VERSION)/php.ini-production
@@ -519,10 +530,12 @@ override_dh_install-arch: remove-files-stamp prepare-fpm-pools
519 cat php.ini-production | tr "\t" " " | \530 cat php.ini-production | tr "\t" " " | \
520 $(SED) -e'/memory_limit =/ s/128M/-1/g;' \531 $(SED) -e'/memory_limit =/ s/128M/-1/g;' \
521 -e'/session.gc_probability =/ s/1/0/g' \532 -e'/session.gc_probability =/ s/1/0/g' \
533 -e"/session.gc_probability =/i $${GC_PROBABILITY_DOC}" \
522 > debian/$(PHP_COMMON)/usr/lib/php/$(PHP_NAME_VERSION)/php.ini-production.cli534 > debian/$(PHP_COMMON)/usr/lib/php/$(PHP_NAME_VERSION)/php.ini-production.cli
523535
524 cat php.ini-development | tr "\t" " " | \536 cat php.ini-development | tr "\t" " " | \
525 $(SED) -e'/session.gc_probability =/ s/1/0/g;' \537 $(SED) -e'/session.gc_probability =/ s/1/0/g;' \
538 -e"/session.gc_probability =/i $${GC_PROBABILITY_DOC}" \
526 -e'/disable_functions =/ s/$$/ $(PCNTL_FUNCTIONS)/g;' \539 -e'/disable_functions =/ s/$$/ $(PCNTL_FUNCTIONS)/g;' \
527 > debian/$(PHP_COMMON)/usr/lib/php/$(PHP_NAME_VERSION)/php.ini-development540 > debian/$(PHP_COMMON)/usr/lib/php/$(PHP_NAME_VERSION)/php.ini-development
528541

Subscribers

People subscribed via source and target branches