php: update RDEPENDS
PATCH 1/1 php: update RDEPENDS
From: Changqing Li <[email protected]>
Since commit c4ffcaa2[php: split out phpdbg into a separate package], package php is empty, remove it from RDEPENDS to avoid error:
nothing provides php needed by php-cli-7.4.9-r0.corei7_64
--- meta-oe/recipes-devtools/php/php_7.4.9.bb | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-)
meta-oe/recipes-devtools/php/php_7.4.9.bb +1 -4
@@ -208,11 +208,8 @@ MODPHP_PACKAGE = "${@bb.utils.contains('PACKAGECONFIG', 'apache2', '${PN}-modphp PACKAGES = "${PN}-dbg ${PN}-cli ${PN}-phpdbg ${PN}-cgi ${PN}-fpm ${PN}-fpm-apache2 ${PN}-pear ${PN}-phar ${MODPHP_PACKAGE} ${PN}-dev ${PN}-staticdev ${PN}-doc ${PN}-opcache ${PN}" RDEPENDS_${PN} += "libgcc" -RDEPENDS_${PN}-pear = "${PN}" RDEPENDS_${PN}-phar = "${PN}-cli" -RDEPENDS_${PN}-cli = "${PN}" -RDEPENDS_${PN}-modphp = "${PN} apache2" -RDEPENDS_${PN}-opcache = "${PN}" +RDEPENDS_${PN}-modphp = "apache2" INITSCRIPT_PACKAGES = "${PN}-fpm" inherit update-rc.d
Signature · 1 line
2.17.1
Quoted 31 lines
-----Original Message-----
From: [email protected] <openembedded- [email protected]> On Behalf Of Changqing Li via lists.openembedded.org
Sent: 10 March 2021 01:54
To: [email protected]
Subject: [oe] [meta-oe][PATCH] php: update RDEPENDSFrom: Changqing Li <[email protected]>
Since commit c4ffcaa2[php: split out phpdbg into a separate package], package php is empty, remove it from RDEPENDS to avoid error:
nothing provides php needed by php-cli-7.4.9-r0.corei7_64Signed-off-by Changqing Li <[email protected]>--- meta-oe/recipes-devtools/php/php_7.4.9.bb | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-)meta-oe/recipes- renamed from meta-oe/recipes-devtools/php/php_7.4.9.bb +0
-0devtools/php/php_7.4.9.bb
indexf8a8755b9..d6df998f3100644meta-oe/recipes-devtools/php/php_7.4.9.bb +0
-0@@ -208,11 +208,8 @@ MODPHP_PACKAGE ="${@bb.utils.contains('PACKAGECONFIG', 'apache2', '${PN}-modphp PACKAGES = "${PN}-dbg ${PN}-cli ${PN}-phpdbg ${PN}-cgi ${PN}-fpm ${PN}-fpm-apache2 ${PN}-pear ${PN}-phar ${MODPHP_PACKAGE} ${PN}-dev ${PN}-staticdev ${PN}- doc ${PN}-opcache ${PN}"
RDEPENDS_${PN} += "libgcc"
meta-oe/recipes-devtools/php/php_7.4.9.bb MODPHP_PACKAGE = "${@bb.utils.contains('PACKAGECONFIG', 'apache2', '${PN}-modphp · line 212
Quoted 6 lines
meta-oe/recipes-devtools/php/php_7.4.9.bb +1
-4-RDEPENDS_${PN}-pear = "${PN}" RDEPENDS_${PN}-phar = "${PN}-cli" -RDEPENDS_${PN}-cli = "${PN}" -RDEPENDS_${PN}-modphp = "${PN} apache2" -RDEPENDS_${PN}-opcache = "${PN}" +RDEPENDS_${PN}-modphp = "apache2"
I do not think this is the correct fix. In many situations php.ini files from a bbappend will be part of the php package (that is my case and why I did not notice the above problem when I split phpdbg), are common to various SAPIs. I do not know why the current recipe does not install a php.ini file though, I thought it did. Probably the best solution is to just allow php to be an empty package with the following (it will make life easier for bbappends that need to ship a php.ini).
ALLOW_EMPTY_${PN} = "1"
Quoted 5 lines
INITSCRIPT_PACKAGES= "${PN}-fpm"
inherit update-rc.d
--
2.17.1
Signature · 3 lines
Diego Santa Cruz, PhD Technology Architect spinetix.com
Quoted 41 lines · Diego Santa Cruz
[Please note: This e-mail is from an EXTERNAL e-mail address]
Quoted 31 lines
-----Original Message-----
From: [email protected] <openembedded- [email protected]> On Behalf Of Changqing Li via lists.openembedded.org
Sent: 10 March 2021 01:54
To: [email protected]
Subject: [oe] [meta-oe][PATCH] php: update RDEPENDSFrom: Changqing Li <[email protected]>
Since commit c4ffcaa2[php: split out phpdbg into a separate package], package php is empty, remove it from RDEPENDS to avoid error:
nothing provides php needed by php-cli-7.4.9-r0.corei7_64Signed-off-by Changqing Li <[email protected]>--- meta-oe/recipes-devtools/php/php_7.4.9.bb | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-)meta-oe/recipes- renamed from meta-oe/recipes-devtools/php/php_7.4.9.bb +0
-0devtools/php/php_7.4.9.bb
indexf8a8755b9..d6df998f3100644meta-oe/recipes-devtools/php/php_7.4.9.bb +0
-0@@ -208,11 +208,8 @@ MODPHP_PACKAGE ="${@bb.utils.contains('PACKAGECONFIG', 'apache2', '${PN}-modphp PACKAGES = "${PN}-dbg ${PN}-cli ${PN}-phpdbg ${PN}-cgi ${PN}-fpm ${PN}-fpm-apache2 ${PN}-pear ${PN}-phar ${MODPHP_PACKAGE} ${PN}-dev ${PN}-staticdev ${PN}- doc ${PN}-opcache ${PN}"
RDEPENDS_${PN} += "libgcc"meta-oe/recipes-devtools/php/php_7.4.9.bb MODPHP_PACKAGE = "${@bb.utils.contains('PACKAGECONFIG', 'apache2', '${PN}-modphp · line 212
Quoted 6 lines
meta-oe/recipes-devtools/php/php_7.4.9.bb +1
-4-RDEPENDS_${PN}-pear = "${PN}" RDEPENDS_${PN}-phar = "${PN}-cli" -RDEPENDS_${PN}-cli = "${PN}" -RDEPENDS_${PN}-modphp = "${PN} apache2" -RDEPENDS_${PN}-opcache = "${PN}" +RDEPENDS_${PN}-modphp = "apache2"I do not think this is the correct fix. In many situations php.ini files from a bbappend will be part of the php package (that is my case and why I did not notice the above problem when I split phpdbg), are common to various SAPIs. I do not know why the current recipe does not install a php.ini file though, I thought it did. Probably the best solution is to just allow php to be an empty package with the following (it will make life easier for bbappends that need to ship a php.ini).
Quoted 1 line
ALLOW_EMPTY_${PN} = "1"
Thanks. I will resend the patch.
Quoted 11 lines
Quoted 5 lines
INITSCRIPT_PACKAGES= "${PN}-fpm"
inherit update-rc.d
--
2.17.1--
Diego Santa Cruz, PhD
Technology Architect
spinetix.com