mirror of
git://git.yoctoproject.org/poky.git
synced 2025-07-19 21:09:03 +02:00
libxml2: Fix a compilation error when using -D_FORTIFY_SOURCE=2 thanks Chenglan Huang
This commit is contained in:
parent
99e4fde8fc
commit
961589f1a4
13
meta/packages/libxml/files/libxml-nanohttp.patch
Normal file
13
meta/packages/libxml/files/libxml-nanohttp.patch
Normal file
|
@ -0,0 +1,13 @@
|
||||||
|
Index: libxml2-2.6.29/nanohttp.c
|
||||||
|
===================================================================
|
||||||
|
--- libxml2-2.6.29.orig/nanohttp.c 2008-10-30 10:12:11.000000000 +0800
|
||||||
|
+++ libxml2-2.6.29/nanohttp.c 2008-10-30 10:12:30.000000000 +0800
|
||||||
|
@@ -1585,7 +1585,7 @@
|
||||||
|
if (!strcmp(filename, "-"))
|
||||||
|
fd = 0;
|
||||||
|
else {
|
||||||
|
- fd = open(filename, O_CREAT | O_WRONLY);
|
||||||
|
+ fd = open(filename, O_CREAT | O_WRONLY, 0644);
|
||||||
|
if (fd < 0) {
|
||||||
|
xmlNanoHTTPClose(ctxt);
|
||||||
|
return(-1);
|
|
@ -1,6 +1,6 @@
|
||||||
require libxml2.inc
|
require libxml2.inc
|
||||||
|
|
||||||
PR = "r4"
|
PR = "r8"
|
||||||
|
|
||||||
DEPENDS += "python-native-runtime"
|
DEPENDS += "python-native-runtime"
|
||||||
|
|
||||||
|
|
|
@ -4,7 +4,8 @@ PRIORITY = "optional"
|
||||||
LICENSE = "MIT"
|
LICENSE = "MIT"
|
||||||
|
|
||||||
SRC_URI = "ftp://xmlsoft.org/libxml2/libxml2-${PV}.tar.gz \
|
SRC_URI = "ftp://xmlsoft.org/libxml2/libxml2-${PV}.tar.gz \
|
||||||
file://libxml-64bit.patch;patch=1"
|
file://libxml-64bit.patch;patch=1 \
|
||||||
|
file://libxml-nanohttp.patch;patch=1"
|
||||||
|
|
||||||
inherit autotools pkgconfig binconfig
|
inherit autotools pkgconfig binconfig
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
require libxml2.inc
|
require libxml2.inc
|
||||||
|
|
||||||
PR = "r6"
|
PR = "r7"
|
||||||
|
|
||||||
export LDFLAGS += "-ldl"
|
export LDFLAGS += "-ldl"
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user