vtun: fix compile with gcc5, don't pre-create /var/run dir
PATCH 1/1 vtun: fix compile with gcc5, don't pre-create /var/run dir
From: Denys Dmytriyenko <[email protected]>
Signed-off-by Denys Dmytriyenko <[email protected]>
--- .../vtun/vtun/08-gcc5-inline.patch | 20 ++++++++++++++++++++ .../recipes-connectivity/vtun/vtun_3.0.3.bb | 7 ++++++- 2 files changed, 26 insertions(+), 1 deletion(-) create mode 100644 meta-arago-extras/recipes-connectivity/vtun/vtun/08-gcc5-inline.patch
meta-arago-extras/recipes-connectivity/vtun/vtun/08-gcc5-inline.patch new file +20 -0
@@ -0,0 +1,20 @@ +Description: fix gcc5 build failure: + The visibility of one of the functions in the yacc grammar is increased so + the program links without error now. +Origin: vendor +Bug-Debian: https://bugs.debian.org/778164 +Author: "Potter, Tim (Cloud Services)" <[email protected]> +Reviewed-by: gregor herrmann <[email protected]> +Last-Update: 2015-07-23 + +--- a/cfg_file.y ++++ b/cfg_file.y +@@ -624,7 +624,7 @@ + } + + /* Clear the VTUN_NAT_HACK flag which are not relevant to the current operation mode */ +-inline void clear_nat_hack_flags(int svr) ++extern inline void clear_nat_hack_flags(int svr) + { + if (svr) + llist_trav(&host_list,clear_nat_hack_server,NULL);
meta-arago-extras/recipes-connectivity/vtun/vtun_3.0.3.bb +6 -1
@@ -8,7 +8,8 @@ LIC_FILES_CHKSUM = "file://vtun.h;startline=1;endline=17;md5=9ac9e7fefca60c72400 SRC_URI = "http://downloads.sourceforge.net/project/vtun/vtun/${PV}/vtun-${PV}.tar.gz" SRC_URI += "file://remove_strip.patch \ - file://Add_search_path.patch" + file://Add_search_path.patch \ + file://08-gcc5-inline.patch" SRC_URI[md5sum] = "f3becf2a0270910a841060c08d1db824" SRC_URI[sha256sum] = "69dcbe4f8c5ce7d91b4150a6309e536d03b61841169746ca5788413ac7edb9cb"
@@ -18,3 +19,7 @@ inherit autotools-brokensep do_configure() { oe_runconf --with-lzo-headers=${STAGING_INCDIR}/lzo --with-lzo-lib=${STAGING_LIBDIR} --with-ssl-headers=${STAGING_INCDIR}/openssl --with-ssl-lib=${STAGING_LIBDIR} } + +do_install_append() { + rm -rf ${D}${localstatedir}/run +}
Signature · 1 line
2.2.0