vala-stub: add a stub for vala-native
PATCH 1/1 vala-stub: add a stub for vala-native
Some packages have optional support for Vala but require vala.m4 to provide VALA_PROG_VAPIGEN so that autoreconf works.
vala-stub provides a dummy VALA_PROG_VAPIGEN which doesn't do anything, so the configure script runs and believes that vala isn't present.
Signed-off-by Ross Burton <[email protected]>
--- meta/recipes-devtools/vala/files/vala.m4 | 2 ++ meta/recipes-devtools/vala/vala-stub.bb | 16 ++++++++++++++++ 2 files changed, 18 insertions(+) create mode 100644 meta/recipes-devtools/vala/files/vala.m4 create mode 100644 meta/recipes-devtools/vala/vala-stub.bb
meta/recipes-devtools/vala/files/vala.m4 new file +2 -0
@@ -0,0 +1,2 @@ +# A stub defintion that does nothing +AC_DEFUN([VALA_PROG_VAPIGEN],[])
meta/recipes-devtools/vala/vala-stub.bb new file +16 -0
@@ -0,0 +1,16 @@ +SUMMARY = "Stub vala.m4 for building without vala support" +LICENSE = "GPLv2" +LIC_FILES_CHKSUM = "file://vala.m4;md5=f38dd167c10adc458a1bcbc96443cdfa" +PROVIDES = "vala" + +SRC_URI = "file://vala.m4" +inherit allarch + +S = "${WORKDIR}" + +do_install() { + install -d ${D}${datadir}/aclocal + install -m 0644 ${WORKDIR}/vala.m4 ${D}${datadir}/aclocal/ +} + +BBCLASSEXTEND = "native"
Signature · 1 line
1.7.10
Quoted 5 lines · Ross Burton
Some packages have optional support for Vala but require vala.m4 to provide
VALA_PROG_VAPIGENso that autoreconf works.vala-stub provides a dummy
VALA_PROG_VAPIGENwhich doesn't do anything, so the configure script runs and believes that vala isn't present.
Doesn't this conflict with real vala-native?
Quoted 46 lines
Signed-off-by Ross Burton <[email protected]>--- meta/recipes-devtools/vala/files/vala.m4 | 2 ++ meta/recipes-devtools/vala/vala-stub.bb | 16 ++++++++++++++++ 2 files changed, 18 insertions(+) create mode 100644 meta/recipes-devtools/vala/files/vala.m4 create mode 100644 meta/recipes-devtools/vala/vala-stub.bbmeta/recipes-devtools/vala/files/vala.m4 new file +2
-0@@ -0,0 +1,2 @@ +# A stub defintion that does nothing +AC_DEFUN([VALA_PROG_VAPIGEN],[])meta/recipes-devtools/vala/vala-stub.bb new file +16
-0@@ -0,0 +1,16 @@ +SUMMARY = "Stub vala.m4 for building without vala support" +LICENSE = "GPLv2" +LIC_FILES_CHKSUM = "file://vala.m4;md5=f38dd167c10adc458a1bcbc96443cdfa" +PROVIDES = "vala" + +SRC_URI = "file://vala.m4" +inherit allarch + +S = "${WORKDIR}" + +do_install() { + install -d ${D}${datadir}/aclocal + install -m 0644 ${WORKDIR}/vala.m4 ${D}${datadir}/aclocal/ +} + +BBCLASSEXTEND = "native"Signature · 7 lines
1.7.10 _______________________________________________ Openembedded-core mailing list [email protected] http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-core
Signature · 1 line
Martin 'JaMa' Jansa jabber: [email protected]
Quoted 1 line · Martin Jansa
Doesn't this conflict with real vala-native?
Discussed with Martin, retracting this patch.
Ross