[meta-gplv2] gnupg: Enable native build support

Submitted by Joshua Watt on July 2, 2019, 3:51 p.m. | Patch ID: 162742

Details

Message ID 20190702155105.28148-1-JPEWhacker@gmail.com
State New
Headers show

Commit Message

Joshua Watt July 2, 2019, 3:51 p.m.
Adds support for building gnupg as a -native recipe.

Signed-off-by: Joshua Watt <JPEWhacker@gmail.com>
---
 recipes-support/gnupg/gnupg_1.4.7.bb | 5 +++++
 1 file changed, 5 insertions(+)

Patch hide | download patch | download mbox

diff --git a/recipes-support/gnupg/gnupg_1.4.7.bb b/recipes-support/gnupg/gnupg_1.4.7.bb
index 85636ab..a7fbd11 100644
--- a/recipes-support/gnupg/gnupg_1.4.7.bb
+++ b/recipes-support/gnupg/gnupg_1.4.7.bb
@@ -84,6 +84,7 @@  EXTRA_OECONF = "--disable-ldap \
                "
 
 # Force gcc's traditional handling of inline to avoid issues with gcc 5
+BUILD_CFLAGS += "-fgnu89-inline"
 CFLAGS += "-fgnu89-inline"
 
 do_install () {
@@ -95,6 +96,8 @@  do_install () {
 
 # split out gpgv from main package
 RDEPENDS_${PN} = "gpgv"
+RDEPENDS_${PN}_class-native = ""
+
 PACKAGES =+ "gpgv"
 FILES_gpgv = "${bindir}/gpgv"
 
@@ -104,3 +107,5 @@  FILES_${PN} = "${bindir}/* ${datadir}/${BPN} ${libexecdir}/${BPN}/*"
 PACKAGECONFIG ??= ""
 PACKAGECONFIG[curl] = "--with-libcurl=${STAGING_LIBDIR},--without-libcurl,curl"
 PACKAGECONFIG[libusb] = "--with-libusb=${STAGING_LIBDIR},--without-libusb,libusb-compat"
+
+BBCLASSEXTEND += "native"

Comments

Ross Burton July 15, 2019, 5:51 p.m.
Merged.

Ross

On Tue, 2 Jul 2019 at 17:03, Joshua Watt <jpewhacker@gmail.com> wrote:
>
> Adds support for building gnupg as a -native recipe.
>
> Signed-off-by: Joshua Watt <JPEWhacker@gmail.com>
> ---
>  recipes-support/gnupg/gnupg_1.4.7.bb | 5 +++++
>  1 file changed, 5 insertions(+)
>
> diff --git a/recipes-support/gnupg/gnupg_1.4.7.bb b/recipes-support/gnupg/gnupg_1.4.7.bb
> index 85636ab..a7fbd11 100644
> --- a/recipes-support/gnupg/gnupg_1.4.7.bb
> +++ b/recipes-support/gnupg/gnupg_1.4.7.bb
> @@ -84,6 +84,7 @@ EXTRA_OECONF = "--disable-ldap \
>                 "
>
>  # Force gcc's traditional handling of inline to avoid issues with gcc 5
> +BUILD_CFLAGS += "-fgnu89-inline"
>  CFLAGS += "-fgnu89-inline"
>
>  do_install () {
> @@ -95,6 +96,8 @@ do_install () {
>
>  # split out gpgv from main package
>  RDEPENDS_${PN} = "gpgv"
> +RDEPENDS_${PN}_class-native = ""
> +
>  PACKAGES =+ "gpgv"
>  FILES_gpgv = "${bindir}/gpgv"
>
> @@ -104,3 +107,5 @@ FILES_${PN} = "${bindir}/* ${datadir}/${BPN} ${libexecdir}/${BPN}/*"
>  PACKAGECONFIG ??= ""
>  PACKAGECONFIG[curl] = "--with-libcurl=${STAGING_LIBDIR},--without-libcurl,curl"
>  PACKAGECONFIG[libusb] = "--with-libusb=${STAGING_LIBDIR},--without-libusb,libusb-compat"
> +
> +BBCLASSEXTEND += "native"
> --
> 2.21.0
>
> --
> _______________________________________________
> yocto mailing list
> yocto@yoctoproject.org
> https://lists.yoctoproject.org/listinfo/yocto