mirror of
git://git.yoctoproject.org/meta-raspberrypi.git
synced 2025-07-19 21:09:03 +02:00
pi-blaster: Fix build with glibc 2.28
Licesnse-Update: Limit the check to license text alone and not until end of file and point to correct lines otherwise license is unchanged Signed-off-by: Khem Raj <raj.khem@gmail.com>
This commit is contained in:
parent
2f7e6e9b0e
commit
40a9a11794
|
@ -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"
|
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user