Skip to contentSkip to conversation

samba: fix shebang for pidl

PATCH New Yi Zhao 1 participant 2 messages Jul 1, 2021

lore
Share & tools
lore

Yi Zhao

author
#0 lore raw

PATCH 1/2 samba: fix shebang for pidl

The shebang in pidl points to wrong location:

$ pidl
-sh: /usr/bin/pidl: /buildarea/build/tmp-glibc/hosttools/env: bad interpreter: No such file or directory
---
 meta-networking/recipes-connectivity/samba/samba_4.14.5.bb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
meta-networking/recipes-connectivity/samba/samba_4.14.5.bb +1 -1
index 018bbf163..49259c7e2 100644
@@ -211,7 +211,7 @@ do_install_append() {
     oe_runmake -C ${S}/pidl DESTDIR=${D} install_vendor
     find ${D}${libdir}/ -type f -name "perllocal.pod" | xargs rm -f
     rm -rf ${D}${libdir}/perl5/vendor_perl/${PERLVERSION}/${BUILD_SYS}/auto/Parse/Pidl/.packlist
-    
+    sed -i -e '1s,#!.*perl,#!${bindir}/env perl,' ${D}${bindir}/pidl
 }
 
 PACKAGES =+ "${PN}-python3 ${PN}-pidl \
Signature · 1 line
2.25.1
author
#1 lore raw

PATCH 2/2 samba: add missing runtime dependency for pidl

Add libparse-yapp-perl to RDEPENDS for pidl.

Fixes:

$ pidl
Can't locate Parse/Yapp/Driver.pm in @INC (you may need to install the Parse::Yapp::Driver module)
---
 meta-networking/recipes-connectivity/samba/samba_4.14.5.bb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
meta-networking/recipes-connectivity/samba/samba_4.14.5.bb +1 -1
index 49259c7e2..5c5ce3670 100644
@@ -316,7 +316,7 @@ FILES_smbclient = "${bindir}/cifsdd \
                    ${bindir}/smbtree \
                    ${libdir}/samba/smbspool_krb5_wrapper"
 
-RDEPENDS_${PN}-pidl_append = " perl"
+RDEPENDS_${PN}-pidl_append = " perl libparse-yapp-perl"
 FILES_${PN}-pidl = "${bindir}/pidl \
                     ${libdir}/perl5 \
                    "
Signature · 1 line
2.25.1