From 61928384b91f7328aaa72c6d1299d8598c24574d Mon Sep 17 00:00:00 2001 From: Xiaofeng Yan Date: Thu, 17 Nov 2011 19:03:21 +0800 Subject: tslib: Set open mode for ts_calibate.c Get patch from: http://permalink.gmane.org/gmane.comp.lib.uclibc.buildroot/27614 There is a potentially "unsafe" use of open(). Ubuntu 8.10+, for instance, by default enables the compiler flag -D_FORTIFY_SOURCE=2 \ which throws an error of ts_calibrate.c. To fix this, \ set a mode in the open() call, patch patched ts_calibrate.c \ to set 0644 (S_IRUSR | S_IWUSR | S_IRGRP | S_IROTH) and it compiles fine Signed-off-by: Xiaofeng Yan --- meta/recipes-graphics/tslib/tslib_1.0.bb | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'meta/recipes-graphics/tslib/tslib_1.0.bb') diff --git a/meta/recipes-graphics/tslib/tslib_1.0.bb b/meta/recipes-graphics/tslib/tslib_1.0.bb index dbabce02c..f47116f59 100644 --- a/meta/recipes-graphics/tslib/tslib_1.0.bb +++ b/meta/recipes-graphics/tslib/tslib_1.0.bb @@ -10,13 +10,14 @@ SECTION = "base" LICENSE = "LGPLv2" LIC_FILES_CHKSUM = "file://COPYING;md5=f30a9716ef3762e3467a2f62bf790f0a" -PR = "r19" +PR = "r20" SRC_URI = "http://download.berlios.de/tslib/tslib-${PV}.tar.bz2 \ file://fix_version.patch \ file://0001-Link-plugins-against-libts.patch \ file://ts.conf \ - file://tslib.sh" + file://tslib.sh \ + file://set-open-mode-for-ts_calibrate_c.patch" SRC_URI[md5sum] = "92b2eb55b1e4ef7e2c0347069389390e" SRC_URI[sha256sum] = "9c40d914e4f6fe00bdd77137d671c7ce4f211686228f2eb8b2d3c2360bc249c8" -- cgit v1.2.3