git: 7224e64a73b0 - main - lang/eisl: Fix build on arm
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Tue, 19 Jul 2022 08:23:35 UTC
The branch main has been updated by yuri: URL: https://cgit.FreeBSD.org/ports/commit/?id=7224e64a73b09f1c3d760bebb4a91def3c3afb43 commit 7224e64a73b09f1c3d760bebb4a91def3c3afb43 Author: Yuri Victorovich <yuri@FreeBSD.org> AuthorDate: 2022-07-19 08:23:06 +0000 Commit: Yuri Victorovich <yuri@FreeBSD.org> CommitDate: 2022-07-19 08:23:06 +0000 lang/eisl: Fix build on arm --- lang/eisl/files/patch-extension.c | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) diff --git a/lang/eisl/files/patch-extension.c b/lang/eisl/files/patch-extension.c new file mode 100644 index 000000000000..8cd8a1c673d1 --- /dev/null +++ b/lang/eisl/files/patch-extension.c @@ -0,0 +1,31 @@ +- disable wiringPi.h to unbreak on arm until upstream fixes this for good, see https://github.com/sasagawa888/eisl/issues/180 + +--- extension.c.orig 2022-07-19 08:14:48 UTC ++++ extension.c +@@ -1,7 +1,7 @@ + #include <stdio.h> + #include <stdlib.h> + #include <math.h> +-#ifdef __arm__ ++#if 0 && defined(__arm__) + #include <wiringPi.h> + #include <wiringPiSPI.h> + #endif +@@ -47,7 +47,7 @@ initexsubr (void) + defsubr ("EISL-TEST", f_eisl_test); + + +-#ifdef __arm__ ++#if 0 && defined(__arm__) + defsubr ("WIRINGPI-SETUP-GPIO", f_wiringpi_setup_gpio); + defsubr ("WIRINGPI-SPI-SETUP-CH-SPEED", f_wiringpi_spi_setup_ch_speed); + defsubr ("PWM-SET-MODE", f_pwm_set_mode); +@@ -454,7 +454,7 @@ f_instance (int arglist) + } + + // ----------for Raspberry PI +-#ifdef __arm__ ++#if 0 && defined(__arm__) + int + f_wiringpi_setup_gpio (int arglist __unused) + {