Patchwork [meta-browser,v2] nss: change shebang line for smime script

login
register
mail settings
Submitter Laurentiu Palcu
Date March 26, 2013, 11:11 a.m.
Message ID <1364296289-23374-1-git-send-email-laurentiu.palcu@intel.com>
Download mbox | patch
Permalink /patch/46917/
State Accepted, archived
Headers show

Comments

Laurentiu Palcu - March 26, 2013, 11:11 a.m.
This patch fixes the shebang line of the smime script and also adds a
'perl' RDEPENDS for the main package since smime needs perl to run.

Also, this patch fixes some do_rootfs failures when using RPM backend
because RPM automatically scans the files and, if perl scripts are
found, adds dependency on the file found in the shebang line (i.e.
/usr/local/bin/perl).

Signed-off-by: Laurentiu Palcu <laurentiu.palcu@intel.com>
---
Changes in v2:
 * moved the RDEPENDS line at the end to conform with the style guide;

Thanks,
Laurentiu

 recipes-support/nss/nss_3.13.3.bb |    3 +++
 1 file changed, 3 insertions(+)
Laurentiu Palcu - April 29, 2013, 6:51 a.m.
Ping!

On 03/26/2013 01:11 PM, Laurentiu Palcu wrote:
> This patch fixes the shebang line of the smime script and also adds a
> 'perl' RDEPENDS for the main package since smime needs perl to run.
> 
> Also, this patch fixes some do_rootfs failures when using RPM backend
> because RPM automatically scans the files and, if perl scripts are
> found, adds dependency on the file found in the shebang line (i.e.
> /usr/local/bin/perl).
> 
> Signed-off-by: Laurentiu Palcu <laurentiu.palcu@intel.com>
> ---
> Changes in v2:
>  * moved the RDEPENDS line at the end to conform with the style guide;
> 
> Thanks,
> Laurentiu
> 
>  recipes-support/nss/nss_3.13.3.bb |    3 +++
>  1 file changed, 3 insertions(+)
> 
> diff --git a/recipes-support/nss/nss_3.13.3.bb b/recipes-support/nss/nss_3.13.3.bb
> index 59c16e8..fbab6ee 100644
> --- a/recipes-support/nss/nss_3.13.3.bb
> +++ b/recipes-support/nss/nss_3.13.3.bb
> @@ -105,7 +105,10 @@ do_install() {
>  	sed -i s:OELIBDIR:${libdir}:g ${D}${libdir}/pkgconfig/nss.pc
>  	sed -i s:OEINCDIR:${includedir}:g ${D}${libdir}/pkgconfig/nss.pc
>  	sed -i s:OEEXECPREFIX:${exec_prefix}:g ${D}${libdir}/pkgconfig/nss.pc
> +
> +	sed -i s:/usr/local/bin/perl:${bindir}/perl:g ${D}${bindir}/smime
>  }
>  
>  FILES_SOLIBSDEV := ""
>  FILES_${PN} += "${base_libdir}/lib*${SOLIBSDEV} ${libdir}/lib*${SOLIBSDEV}"
> +RDEPENDS_${PN} += "perl"
>
Eric BENARD - April 29, 2013, 7:05 a.m.
Hi Laurentiu,

Le Mon, 29 Apr 2013 09:51:58 +0300,
Laurentiu Palcu <laurentiu.palcu@intel.com> a écrit :

> Ping!
> 
> On 03/26/2013 01:11 PM, Laurentiu Palcu wrote:
> > This patch fixes the shebang line of the smime script and also adds a
> > 'perl' RDEPENDS for the main package since smime needs perl to run.
> > 
> > Also, this patch fixes some do_rootfs failures when using RPM backend
> > because RPM automatically scans the files and, if perl scripts are
> > found, adds dependency on the file found in the shebang line (i.e.
> > /usr/local/bin/perl).
> > 
> > Signed-off-by: Laurentiu Palcu <laurentiu.palcu@intel.com>
> > ---
> > Changes in v2:
> >  * moved the RDEPENDS line at the end to conform with the style guide;
> > 
pushed to master & dylan.

Thanks,
Eric

Patch

diff --git a/recipes-support/nss/nss_3.13.3.bb b/recipes-support/nss/nss_3.13.3.bb
index 59c16e8..fbab6ee 100644
--- a/recipes-support/nss/nss_3.13.3.bb
+++ b/recipes-support/nss/nss_3.13.3.bb
@@ -105,7 +105,10 @@  do_install() {
 	sed -i s:OELIBDIR:${libdir}:g ${D}${libdir}/pkgconfig/nss.pc
 	sed -i s:OEINCDIR:${includedir}:g ${D}${libdir}/pkgconfig/nss.pc
 	sed -i s:OEEXECPREFIX:${exec_prefix}:g ${D}${libdir}/pkgconfig/nss.pc
+
+	sed -i s:/usr/local/bin/perl:${bindir}/perl:g ${D}${bindir}/smime
 }
 
 FILES_SOLIBSDEV := ""
 FILES_${PN} += "${base_libdir}/lib*${SOLIBSDEV} ${libdir}/lib*${SOLIBSDEV}"
+RDEPENDS_${PN} += "perl"