From 2bd5270fd809d53ff41ea5cf5016be1418b5c643 Mon Sep 17 00:00:00 2001 From: Gerasim Troeglazov <3dEyes@gmail.com> Date: Tue, 29 Sep 2020 12:08:40 +1000 Subject: [PATCH] gputils: fix build for gcc2 --- dev-embedded/gputils/gputils-1.5.0.recipe | 3 ++- .../gputils/patches/gputils-1.5.0.patchset | 26 +++++++++++++++++++ 2 files changed, 28 insertions(+), 1 deletion(-) create mode 100644 dev-embedded/gputils/patches/gputils-1.5.0.patchset diff --git a/dev-embedded/gputils/gputils-1.5.0.recipe b/dev-embedded/gputils/gputils-1.5.0.recipe index 44c3a27c5..924181ca1 100644 --- a/dev-embedded/gputils/gputils-1.5.0.recipe +++ b/dev-embedded/gputils/gputils-1.5.0.recipe @@ -5,9 +5,10 @@ cense. There are other GNU PIC tools available such as gpsim, a gputils compatib HOMEPAGE="https://gputils.sourceforge.io/" COPYRIGHT="Craig Franklin, James Bowman" LICENSE="GNU GPL v2" -REVISION="1" +REVISION="2" SOURCE_URI="https://sourceforge.net/projects/gputils/files/gputils/$portVersion/gputils-$portVersion-1.tar.bz2" CHECKSUM_SHA256="6f88a018e85717b57a22f27a0ca41b2157633a82351f7755be92e2d7dc40bb14" +PATCHES="gputils-$portVersion.patchset" ARCHITECTURES="x86_gcc2 x86_64" diff --git a/dev-embedded/gputils/patches/gputils-1.5.0.patchset b/dev-embedded/gputils/patches/gputils-1.5.0.patchset new file mode 100644 index 000000000..6c0774582 --- /dev/null +++ b/dev-embedded/gputils/patches/gputils-1.5.0.patchset @@ -0,0 +1,26 @@ +From 8ba28190405b021068abd156914a63e63a3f8612 Mon Sep 17 00:00:00 2001 +From: Gerasim Troeglazov <3dEyes@gmail.com> +Date: Tue, 29 Sep 2020 12:02:02 +1000 +Subject: va_copy, gcc2 fix + + +diff --git a/gpasm/gpmsg.c b/gpasm/gpmsg.c +index 92e3a8a..6d32f00 100644 +--- a/gpasm/gpmsg.c ++++ b/gpasm/gpmsg.c +@@ -29,6 +29,12 @@ Boston, MA 02111-1307, USA. */ + #include "gpmsg.h" + #include "lst.h" + ++#ifdef __HAIKU__ ++#if __GNUC__ < 3 ++#define va_copy __va_copy ++#endif ++#endif ++ + typedef struct message_code { + enum { + ERR_CODE_NUM, +-- +2.28.0 +