diff options
author | Daniel Nyström <daniel.nystrom@timeterminal.se> | 2010-12-21 19:06:55 +0100 |
---|---|---|
committer | Peter Korsgaard <jacmet@sunsite.dk> | 2010-12-22 22:25:57 +0100 |
commit | 36f33bc00f95b27702e07bacac8047f0d1882b62 (patch) | |
tree | 5641f844d3ac4071811bfe4eb4d1bb7f8622bca2 /package/tslib/tslib-1.0-open-with-O_CREAT-needs-3-arguments.patch | |
parent | e88704dfba3209b093c7f4767d272972c3b911e1 (diff) | |
download | buildroot-novena-36f33bc00f95b27702e07bacac8047f0d1882b62.tar.gz buildroot-novena-36f33bc00f95b27702e07bacac8047f0d1882b62.zip |
tslib: bump version to current git head
Due to missing official releases, fetch directly from GitHub
repository. Many bugfixes since 1.0 and all previous patches in
Buildroot are either applied or obsoleted.
Signed-off-by: Daniel Nyström <daniel.nystrom@timeterminal.se>
Acked-by: Paulius Zaleckas <paulius.zaleckas@gmail.com>
Acked-by: Luca Ceresoli <luca@lucaceresoli.net>
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
Diffstat (limited to 'package/tslib/tslib-1.0-open-with-O_CREAT-needs-3-arguments.patch')
-rw-r--r-- | package/tslib/tslib-1.0-open-with-O_CREAT-needs-3-arguments.patch | 53 |
1 files changed, 0 insertions, 53 deletions
diff --git a/package/tslib/tslib-1.0-open-with-O_CREAT-needs-3-arguments.patch b/package/tslib/tslib-1.0-open-with-O_CREAT-needs-3-arguments.patch deleted file mode 100644 index 5b23dd028..000000000 --- a/package/tslib/tslib-1.0-open-with-O_CREAT-needs-3-arguments.patch +++ /dev/null @@ -1,53 +0,0 @@ -From 4769d044fad6033053ee39c1fcd5ccc7693c6f71 Mon Sep 17 00:00:00 2001 -From: kergoth <kergoth@a933c7a4-9bf7-0310-9141-a2e45189604d> -Date: Tue, 24 Mar 2009 17:42:34 +0000 -Subject: [PATCH] tslib fails to compile on Ubuntu 8.10+, easy patch - -I noticed that gcc fails to compile the latest svn copy of tslib due -to 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 on lines 253 and 255 of ts_calibrate.c. This is a pretty -minor issue, but could potentially stop some people using Ubuntu from -compiling unless they realize what's going on. - -To fix this, all you need to do is set a mode in the open() call. I -patched ts_calibrate.c to set 0644 (S_IRUSR | S_IWUSR | S_IRGRP | -S_IROTH) and it compiles fine. See below. - -Signed-off-by: Daniel Jabbour <daniel@laptouchinc.com> -Signed-off-by: Chris Larson <clarson@kergoth.com> - -git-svn-id: svn://svn.berlios.de/tslib/trunk/tslib@72 a933c7a4-9bf7-0310-9141-a2e45189604d ---- - tests/ts_calibrate.c | 7 +++++-- - 1 files changed, 5 insertions(+), 2 deletions(-) - -diff --git a/tests/ts_calibrate.c b/tests/ts_calibrate.c -index 04c75dc..00e9580 100644 ---- a/tests/ts_calibrate.c -+++ b/tests/ts_calibrate.c -@@ -21,6 +21,7 @@ - #include <sys/ioctl.h> - #include <sys/mman.h> - #include <sys/time.h> -+#include <sys/stat.h> - #include <linux/kd.h> - #include <linux/vt.h> - #include <linux/fb.h> -@@ -250,9 +251,11 @@ int main() - for (i = 0; i < 7; i++) printf("%d ", cal.a [i]); - printf("\n"); - if ((calfile = getenv("TSLIB_CALIBFILE")) != NULL) { -- cal_fd = open (calfile, O_CREAT | O_RDWR); -+ cal_fd = open (calfile, O_CREAT | O_RDWR, -+ S_IRUSR | S_IWUSR | S_IRGRP | S_IROTH); - } else { -- cal_fd = open ("/etc/pointercal", O_CREAT | O_RDWR); -+ cal_fd = open ("/etc/pointercal", O_CREAT | O_RDWR, -+ S_IRUSR | S_IWUSR | S_IRGRP | S_IROTH); - } - sprintf (cal_buffer,"%d %d %d %d %d %d %d", - cal.a[1], cal.a[2], cal.a[0], --- -1.7.0 - |