samba: move RDEPENDS of perl from samba to samba-pidl
PATCH 1/1 samba: move RDEPENDS of perl from samba to samba-pidl
samba-pidl is the package containing the perl-extension, so RDEPENDS must include perl for samba-pidl, not for samba.
--- meta-networking/recipes-connectivity/samba/samba_4.1.12.bb | 3 +++ 1 file changed, 3 insertions(+)
meta-networking/recipes-connectivity/samba/samba_4.1.12.bb +3 -0
@@ -39,6 +39,8 @@ SRC_URI[md5sum] = "232016d7581a1ba11e991ec2674553c4" SRC_URI[sha256sum] = "033604674936bf5c77d7df299b0626052b84a41505a6a6afe902f6274fc29898" inherit systemd waf-samba cpan-base perlnative +# remove default added RDEPENDS on perl +RDEPENDS_${PN}_remove = "perl" DEPENDS += "readline virtual/libiconv zlib popt libtalloc libtdb libtevent libldb krb5 ctdb libbsd"
@@ -319,4 +321,5 @@ FILES_${PN}-python-dbg = "${libdir}/python${PYTHON_BASEVERSION}/site-packages/.d ${libdir}/python${PYTHON_BASEVERSION}/site-packages/samba/dcerpc/.debug/* \ " +RDEPENDS_${PN}-pidl_append = " perl " FILES_${PN}-pidl = "${bindir}/pidl ${PERL_VERNDORLIB}/*"
--
1.9.1
--
Jens Rehsack - [email protected]
Quoted 22 lines · Jens Rehsack
samba-pidl is the package containing the perl-extension, so RDEPENDS must include perl for samba-pidl, not for samba.
Signed-off-by Jens Rehsack <[email protected]>--- meta-networking/recipes-connectivity/samba/samba_4.1.12.bb | 3 +++ 1 file changed, 3 insertions(+)meta-networking/recipes-connectivity/samba/samba_4.1.12.bb +2
-0@@ -39,6 +39,8 @@ SRC_URI[md5sum] = "232016d7581a1ba11e991ec2674553c4" SRC_URI[sha256sum] = "033604674936bf5c77d7df299b0626052b84a41505a6a6afe902f6274fc29898" inherit systemd waf-samba cpan-base perlnative +# remove default added RDEPENDS on perl +RDEPENDS_${PN}_remove = "perl" DEPENDS += "readline virtual/libiconv zlib popt libtalloc libtdb libtevent libldb krb5 ctdb libbsd"
meta-networking/recipes-connectivity/samba/samba_4.1.12.bb FILES_${PN}-python-dbg = "${libdir}/python${PYTHON_BASEVERSION}/site-packages/.d · line 324
Quoted 4 lines
meta-networking/recipes-connectivity/samba/samba_4.1.12.bb +1
-0@@ -319,4 +321,5 @@ FILES_${PN}-python-dbg = "${libdir}/python${PYTHON_BASEVERSION}/site-packages/.d ${libdir}/python${PYTHON_BASEVERSION}/site-packages/samba/dcerpc/.debug/* \ " +RDEPENDS_${PN}-pidl_append = " perl "
You don't need the trailing space (only the leading space is needed for append).
Quoted 15 lines
meta-networking/recipes-connectivity/samba/samba_4.1.12.bb +0
-1FILES_${PN}-pidl = "${bindir}/pidl ${PERL_VERNDORLIB}/*" --1.9.1
--
Jens Rehsack - [email protected]Signature · 4 lines
_______________________________________________ Openembedded-devel mailing list [email protected] http://lists.openembedded.org/mailman/listinfo/openembedded-devel
Signature · 1 line
Martin 'JaMa' Jansa jabber: [email protected]
Quoted 13 lines · Jens Rehsack
samba-pidl is the package containing the perl-extension, so RDEPENDS must include perl for samba-pidl, not for samba.
Signed-off-by Jens Rehsack <[email protected]>--- meta-networking/recipes-connectivity/samba/samba_4.1.12.bb | 3 +++ 1 file changed, 3 insertions(+)meta-networking/recipes-connectivity/samba/samba_4.1.12.bb +0
-0
meta-networking/recipes-connectivity/samba/samba_4.1.12.bb SRC_URI[md5sum] = "232016d7581a1ba11e991ec2674553c4" · line 43
Quoted 5 lines
meta-networking/recipes-connectivity/samba/samba_4.1.12.bb +2
-0@@ -39,6 +39,8 @@ SRC_URI[md5sum] = "232016d7581a1ba11e991ec2674553c4" SRC_URI[sha256sum] = "033604674936bf5c77d7df299b0626052b84a41505a6a6afe902f6274fc29898" inherit systemd waf-samba cpan-base perlnative +# remove default added RDEPENDS on perl +RDEPENDS_${PN}_remove = "perl"
This is a hack, not a solution.
Better to fix this at its core: cpan-base.bbclass forces both DEPENDS_${PN} and RDEPENDS_${PN} to contain "perl".
All that the recipe really wants to have is the perl version. It does not need a perl for the target, regardless of whether you'd want to install samba-pidl.
Fixing this at the proper level will considerably reduce compilation time for samba, which is already excessively long because of parallel build issues (the patch that fixes that isn't integrated).
Quoted 12 lines
meta-networking/recipes-connectivity/samba/samba_4.1.12.bb +1
-1DEPENDS += "readline virtual/libiconv zlib popt libtalloc libtdb libtevent libldb krb5 ctdb libbsd"@@ -319,4 +321,5 @@ FILES_${PN}-python-dbg = "${libdir}/python${PYTHON_BASEVERSION}/site-packages/.d ${libdir}/python${PYTHON_BASEVERSION}/site-packages/samba/dcerpc/.debug/* \ " +RDEPENDS_${PN}-pidl_append = " perl " FILES_${PN}-pidl = "${bindir}/pidl ${PERL_VERNDORLIB}/*" --1.9.1
Quoted 3 lines
--
Jens Rehsack - [email protected]
Kind regards,
Mike Looijmans
System Expert
TOPIC Embedded Products Eindhovenseweg 32-C, NL-5683 KH Best Postbus 440, NL-5680 AK Best
Telefoon: +31 (0) 499 33 69 79
Telefax: +31 (0) 499 33 69 70
E-mail: [email protected]
Website: www.topicproducts.com
Please consider the environment before printing this e-mail
Quoted 19 lines
Am 05.01.2016 um 12:32 schrieb Mike Looijmans <[email protected]>:
Quoted 15 lines · Jens Rehsack
samba-pidl is the package containing the perl-extension, so RDEPENDS must include perl for samba-pidl, not for samba.
Signed-off-by Jens Rehsack <[email protected]>--- meta-networking/recipes-connectivity/samba/samba_4.1.12.bb | 3 +++ 1 file changed, 3 insertions(+)meta-networking/recipes-connectivity/samba/samba_4.1.12.bb +0
-0@@ -39,6 +39,8 @@ SRC_URI[md5sum] = "232016d7581a1ba11e991ec2674553c4" SRC_URI[sha256sum] = "033604674936bf5c77d7df299b0626052b84a41505a6a6afe902f6274fc29898"
Quoted 5 lines
meta-networking/recipes-connectivity/samba/samba_4.1.12.bb SRC_URI[md5sum] = "232016d7581a1ba11e991ec2674553c4" · line 43
Quoted 3 lines
meta-networking/recipes-connectivity/samba/samba_4.1.12.bb +2
-0inherit systemd waf-samba cpan-base perlnative +# remove default added RDEPENDS on perl +RDEPENDS_${PN}_remove = "perl"This is a hack, not a solution.
Neither, nor.
Quoted 1 line
Better to fix this at its core: cpan-base.bbclass forces both DEPENDS_${PN} and RDEPENDS_${PN} to contain "perl".
That's an API / behavior change to cpan-base.bbclass.
Since other recipes rely on that, it's not an easy solution to remove the dependency injection from cpab-base.bbclass.
Quoted 1 line
All that the recipe really wants to have is the perl version. It does not need a perl for the target, regardless of whether you'd want to install samba-pidl.
Wrong. The recipe wants the perl paths, too.
Quoted 9 lines
Fixing this at the proper level will considerably reduce compilation time for samba, which is already excessively long because of parallel build issues (the patch that fixes that isn't integrated).
Quoted 7 lines
meta-networking/recipes-connectivity/samba/samba_4.1.12.bb +0
-0DEPENDS += "readline virtual/libiconv zlib popt libtalloc libtdb libtevent libldb krb5 ctdb libbsd"@@ -319,4 +321,5 @@ FILES_${PN}-python-dbg = "${libdir}/python${PYTHON_BASEVERSION}/site-packages/.d ${libdir}/python${PYTHON_BASEVERSION}/site-packages/samba/dcerpc/.debug/* \ "
Quoted 8 lines
Quoted 8 lines
meta-networking/recipes-connectivity/samba/samba_4.1.12.bb +1
-1+RDEPENDS_${PN}-pidl_append = " perl " FILES_${PN}-pidl = "${bindir}/pidl ${PERL_VERNDORLIB}/*" --1.9.1
--
Jens Rehsack - [email protected]
Best regards
--
Jens Rehsack - [email protected]