diff options
Diffstat (limited to 'meta-raspberrypi/recipes-devtools/pi-blaster')
-rw-r--r-- | meta-raspberrypi/recipes-devtools/pi-blaster/files/0001-pi-blaster-Include-sys-sysmacros.h-for-makedev.patch | 32 | ||||
-rw-r--r-- | meta-raspberrypi/recipes-devtools/pi-blaster/pi-blaster_git.bb | 7 |
2 files changed, 36 insertions, 3 deletions
diff --git a/meta-raspberrypi/recipes-devtools/pi-blaster/files/0001-pi-blaster-Include-sys-sysmacros.h-for-makedev.patch b/meta-raspberrypi/recipes-devtools/pi-blaster/files/0001-pi-blaster-Include-sys-sysmacros.h-for-makedev.patch new file mode 100644 index 0000000000..b4bc4b289a --- /dev/null +++ b/meta-raspberrypi/recipes-devtools/pi-blaster/files/0001-pi-blaster-Include-sys-sysmacros.h-for-makedev.patch @@ -0,0 +1,32 @@ +From 6a6b705ff5cba960c54bdb4d4bcdaa3b00a854a2 Mon Sep 17 00:00:00 2001 +From: Khem Raj <raj.khem@gmail.com> +Date: Sat, 11 Aug 2018 10:24:24 -0700 +Subject: [PATCH] pi-blaster: Include sys/sysmacros.h for makedev() + +In glibc 2.28+ this header is not included indirectly anymore + +fixes + +ld: pi-blaster.o: in function `mbox_open': +pi-blaster.c:(.text+0x28): undefined reference to `makedev' +collect2: error: ld returned 1 exit status + +Upstream-Status: Submitted [https://github.com/sarfata/pi-blaster/pull/100] + +Signed-off-by: Khem Raj <raj.khem@gmail.com> +--- + pi-blaster.c | 1 + + 1 file changed, 1 insertion(+) + +diff --git a/pi-blaster.c b/pi-blaster.c +index 6cfd010..fc4e686 100644 +--- a/pi-blaster.c ++++ b/pi-blaster.c +@@ -41,6 +41,7 @@ static char VERSION[] = "SNAPSHOT"; + #include <sys/time.h> + #include <sys/types.h> + #include <sys/stat.h> ++#include <sys/sysmacros.h> + #include <fcntl.h> + #include <sys/mman.h> + #include "mailbox.h" diff --git a/meta-raspberrypi/recipes-devtools/pi-blaster/pi-blaster_git.bb b/meta-raspberrypi/recipes-devtools/pi-blaster/pi-blaster_git.bb index 2748459855..9cedf5ec88 100644 --- a/meta-raspberrypi/recipes-devtools/pi-blaster/pi-blaster_git.bb +++ b/meta-raspberrypi/recipes-devtools/pi-blaster/pi-blaster_git.bb @@ -2,15 +2,16 @@ DESCRIPTION = "This project enables PWM on the GPIO pins you request of a Raspbe HOMEPAGE = "https://github.com/sarfata/pi-blaster/" SECTION = "devel/libs" LICENSE = "MIT" -LIC_FILES_CHKSUM = "file://README.md;beginline=225;endline=252;md5=a012868ef5f83b9f257af253d7cb07a3" +LIC_FILES_CHKSUM = "file://README.md;beginline=244;endline=268;md5=86d10e4bcf4b4014d306dde7c1d2a80d" SRC_URI = "git://github.com/sarfata/pi-blaster \ file://remove-initscript-lsb-dependency.patch \ -" + file://0001-pi-blaster-Include-sys-sysmacros.h-for-makedev.patch \ + " S = "${WORKDIR}/git" -SRCREV = "1035ad7dffb270c40eec1bb3a654171a755fba98" +SRCREV = "e981aa5d7624c75a4d4afcddcbd235f25e32ffe4" inherit update-rc.d autotools |