mirror of
https://github.com/gentoo-mirror/guru.git
synced 2026-07-10 15:45:15 -04:00
dev-embedded/qdl: Fix gcc-14 compile errors
Bug: https://bugs.gentoo.org/927801 Signed-off-by: Quincy Fleming <quincyf467@protonmail.com>
This commit is contained in:
23
dev-embedded/qdl/files/include_stdlib-1.0.patch
Normal file
23
dev-embedded/qdl/files/include_stdlib-1.0.patch
Normal file
@@ -0,0 +1,23 @@
|
||||
#Created by Quincy Fleming
|
||||
#Failure to compile without include "<stdlib.h>"
|
||||
#Bug: https://bugs.gentoo.org/927801
|
||||
--- a/patch.c
|
||||
+++ b/patch.c
|
||||
@@ -30,6 +30,7 @@
|
||||
*/
|
||||
#include <errno.h>
|
||||
#include <string.h>
|
||||
+#include <stdlib.h>
|
||||
#include <libxml/parser.h>
|
||||
#include <libxml/tree.h>
|
||||
|
||||
--- a/program.c
|
||||
+++ b/program.c
|
||||
@@ -31,6 +31,7 @@
|
||||
#include <errno.h>
|
||||
#include <fcntl.h>
|
||||
#include <string.h>
|
||||
+#include <stdlib.h>
|
||||
#include <unistd.h>
|
||||
#include <libxml/parser.h>
|
||||
#include <libxml/tree.h>
|
||||
33
dev-embedded/qdl/files/include_stdlib-9999.patch
Normal file
33
dev-embedded/qdl/files/include_stdlib-9999.patch
Normal file
@@ -0,0 +1,33 @@
|
||||
#Created by Quincy Fleming
|
||||
#Failure to compile without include "<stdlib.h>"
|
||||
#Bug: https://bugs.gentoo.org/927801
|
||||
--- a/patch.c
|
||||
+++ b/patch.c
|
||||
@@ -30,6 +30,7 @@
|
||||
*/
|
||||
#include <errno.h>
|
||||
#include <string.h>
|
||||
+#include <stdlib.h>
|
||||
#include <libxml/parser.h>
|
||||
#include <libxml/tree.h>
|
||||
|
||||
--- a/program.c
|
||||
+++ b/program.c
|
||||
@@ -31,6 +31,7 @@
|
||||
#include <errno.h>
|
||||
#include <fcntl.h>
|
||||
#include <string.h>
|
||||
+#include <stdlib.h>
|
||||
#include <unistd.h>
|
||||
#include <libxml/parser.h>
|
||||
#include <libxml/tree.h>
|
||||
--- a/util.c
|
||||
+++ b/util.c
|
||||
@@ -31,6 +31,7 @@
|
||||
#include <ctype.h>
|
||||
#include <stdint.h>
|
||||
#include <stdio.h>
|
||||
+#include <stdlib.h>
|
||||
#include <string.h>
|
||||
#include <libxml/parser.h>
|
||||
#include <libxml/tree.h>
|
||||
@@ -18,7 +18,10 @@ BDEPEND="virtual/libudev
|
||||
dev-libs/libxml2
|
||||
"
|
||||
|
||||
PATCHES=( "${FILESDIR}/${P}-makefile.patch" )
|
||||
PATCHES=(
|
||||
"${FILESDIR}/${P}-makefile.patch"
|
||||
"${FILESDIR}/include_stdlib-${PV}.patch"
|
||||
)
|
||||
|
||||
src_compile() {
|
||||
emake CC=$(tc-getCC) PKG_CONFIG=$(tc-getPKG_CONFIG)
|
||||
|
||||
@@ -17,7 +17,10 @@ BDEPEND="virtual/libudev
|
||||
dev-libs/libxml2
|
||||
"
|
||||
|
||||
PATCHES=( "${FILESDIR}/${P}-makefile.patch" )
|
||||
PATCHES=(
|
||||
"${FILESDIR}/${P}-makefile.patch"
|
||||
"${FILESDIR}/include_stdlib-${PV}.patch"
|
||||
)
|
||||
|
||||
src_compile() {
|
||||
emake CC=$(tc-getCC) PKG_CONFIG=$(tc-getPKG_CONFIG)
|
||||
|
||||
Reference in New Issue
Block a user