Skip to contentSkip to conversation

cpuid: Fix build with glibc 2.28+

PATCH Superseded [email protected] 2 participants 2 messages Aug 17, 2018 1 message not in the archive

v2 of 3 Superseded Latest is v3 →

lore
Share & tools
lore
#0 lore raw

PATCH v2 1/1 cpuid: Fix build with glibc 2.28+

From: Avinash Reddy Palleti <[email protected]>

Include sys/sysmacros.h for cpuid.c

---
 meta-oe/recipes-devtools/cpuid/cpuid_20170122.bb   |  3 ++-
 ...ix-Add-sys-sysmacros.h-to-fix-build-issue.patch | 24 ++++++++++++++++++++++
 2 files changed, 26 insertions(+), 1 deletion(-)
 create mode 100644 meta-oe/recipes-devtools/cpuid/files/0001-Fix-Add-sys-sysmacros.h-to-fix-build-issue.patch
meta-oe/recipes-devtools/cpuid/cpuid_20170122.bb +2 -1
index 7a70f75..5dd1bdd 100644
@@ -6,7 +6,8 @@ UMC, NexGen, Rise, and SiS CPUs"
 LICENSE = "GPLv2"
 LIC_FILES_CHKSUM = "file://LICENSE;md5=b234ee4d69f5fce4486a80fdaf4a4263"
 
-SRC_URI = "http://www.etallen.com/${BPN}/${BP}.src.tar.gz"
+SRC_URI = "http://www.etallen.com/${BPN}/${BP}.src.tar.gz \
+           file://0001-Fix-Add-sys-sysmacros.h-to-fix-build-issue.patch"
 SRC_URI[md5sum] = "1c46a6662626c5a6eaca626f23a5a7d7"
 SRC_URI[sha256sum] = "667612aae6704341dd10844e97c84c5c5c8700817a5937a3c293b55013bc4865"
 
meta-oe/recipes-devtools/cpuid/files/0001-Fix-Add-sys-sysmacros.h-to-fix-build-issue.patch new file +24 -0
new file mode 100644
index 0000000..985182e
@@ -0,0 +1,24 @@
+From 2693a499d4eec4504962e85a9713fa6431d3025f Mon Sep 17 00:00:00 2001
+From: Avinash Reddy Palleti <[email protected]>
+Date: Thu, 16 Aug 2018 22:36:31 +0530
+Subject: [PATCH] Fix: Add sys/sysmacros.h to fix build issue
+
+---
+ cpuid.c | 1 +
+ 1 file changed, 1 insertion(+)
+
+diff --git a/cpuid.c b/cpuid.c
+index 3c94837..0a98616 100644
+--- a/cpuid.c
++++ b/cpuid.c
+@@ -31,6 +31,7 @@
+ #include <stdio.h>
+ #include <sys/types.h>
+ #include <sys/stat.h>
++#include <sys/sysmacros.h>
+ #include <fcntl.h>
+ #include <errno.h>
+ #include <unistd.h>
+-- 
+2.7.4
+
Signature · 1 line
2.7.4

A message that is not in the archive (sent off-list or not yet received): CANx9H-Bhk8TxQuDk_Y08aK6P0222t5mKd2GPuATUdM43xGekZg@mail.gmail.com

#2 lore raw
Quoted 83 lines · Tim Orling
Quoted 38 lines · On Thu, Aug 16, 2018 at 9:10 PM <[email protected]> wrote:

From: Avinash Reddy Palleti <[email protected]>

Include sys/sysmacros.h for cpuid.c

---
 meta-oe/recipes-devtools/cpuid/cpuid_20170122.bb   |  3 ++-
 ...ix-Add-sys-sysmacros.h-to-fix-build-issue.patch | 24
++++++++++++++++++++++
 2 files changed, 26 insertions(+), 1 deletion(-)
 create mode 100644

meta-oe/recipes-devtools/cpuid/files/0001-Fix-Add-sys-sysmacros.h-to-fix-build-issue.patch

meta-oe/recipes-devtools/cpuid/cpuid_20170122.bb +2 -1
index 7a70f75..5dd1bdd 100644
@@ -6,7 +6,8 @@ UMC, NexGen, Rise, and SiS CPUs"
 LICENSE = "GPLv2"
 LIC_FILES_CHKSUM = "file://LICENSE;md5=b234ee4d69f5fce4486a80fdaf4a4263"
 
-SRC_URI = "http://www.etallen.com/${BPN}/${BP}.src.tar.gz"
+SRC_URI = "http://www.etallen.com/${BPN}/${BP}.src.tar.gz \
+           file://0001-Fix-Add-sys-sysmacros.h-to-fix-build-issue.patch"
 SRC_URI[md5sum] = "1c46a6662626c5a6eaca626f23a5a7d7"
 SRC_URI[sha256sum] =

"667612aae6704341dd10844e97c84c5c5c8700817a5937a3c293b55013bc4865"

diff --git a/meta-oe/recipes-devtools/cpuid/files/0001-Fix-Add-sys-sysmacros.h-to-fix-build-issue.patch b/meta-oe/recipes-devtools/cpuid/files/0001-Fix-Add-sys-sysmacros.h-to-fix-build-issue.patch new file mode 100644
index 0000000..985182e
--- /dev/null
+++
b/meta-oe/recipes-devtools/cpuid/files/0001-Fix-Add-sys-sysmacros.h-to-fix-build-issue.patch

meta-oe/recipes-devtools/cpuid/cpuid_20170122.bb line 5

Quoted 5 lines
meta-oe/recipes-devtools/cpuid/cpuid_20170122.bb +5 -0
@@ -0,0 +1,24 @@
+From 2693a499d4eec4504962e85a9713fa6431d3025f Mon Sep 17 00:00:00 2001
+From: Avinash Reddy Palleti <[email protected]>
+Date: Thu, 16 Aug 2018 22:36:31 +0530
+Subject: [PATCH] Fix: Add sys/sysmacros.h to fix build issue
+

Needs Upstream-Status
As in should this patch also be submitted to cpuid upstream project. See http://www.openembedded.org/wiki/Commit_Patch_Message_Guidelines

Quoted 29 lines
meta-oe/recipes-devtools/cpuid/cpuid_20170122.bb +19 -1
+---
+ cpuid.c | 1 +
+ 1 file changed, 1 insertion(+)
+
+diff --git a/cpuid.c b/cpuid.c
+index 3c94837..0a98616 100644
+--- a/cpuid.c
++++ b/cpuid.c
+@@ -31,6 +31,7 @@
+ #include <stdio.h>
+ #include <sys/types.h>
+ #include <sys/stat.h>
++#include <sys/sysmacros.h>
+ #include <fcntl.h>
+ #include <errno.h>
+ #include <unistd.h>
+--
+2.7.4
+
--

2.7.4

--
_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-devel