Skip to contentSkip to conversation

tslib: fix missing headers

PATCH New Baruch Siach 3 participants 9 messages Jan 14, 2017 – Jan 16, 2017

lore
Share & tools
lore
#0 lore raw

PATCH 1/3 tslib: fix missing headers

Add a patch adding missing headers.

Fixes:
http://autobuild.buildroot.net/results/cb8/cb81abe996b0fb0070ddcd01c0d695bcc0570548/
http://autobuild.buildroot.net/results/88a/88add491e10f2f7edeb15e0def8843f1321ac7af/
http://autobuild.buildroot.net/results/9db/9db1d64fd08c8763a1648e78d7b9155777de6cae/

---
 ...01-tests-ts_calibrate-add-missing-headers.patch | 35 ++++++++++++++++++++++
 1 file changed, 35 insertions(+)
 create mode 100644 package/tslib/0001-tests-ts_calibrate-add-missing-headers.patch
package/tslib/0001-tests-ts_calibrate-add-missing-headers.patch new file +35 -0
new file mode 100644
index 000000000000..97cd4beacaba
@@ -0,0 +1,35 @@
+From 54b66bfe405d8b70c703684e60bedbad5c7d4213 Mon Sep 17 00:00:00 2001
+From: Baruch Siach <[email protected]>
+Date: Sat, 14 Jan 2017 21:35:53 +0200
+Subject: [PATCH] tests/ts_calibrate: add missing headers
+
+The open(2) system call requires sys/types.h and sys/stat.h. Fix the following
+build failure under uClibc-ng:
+
+ts_calibrate.c: In function ?main?:
+ts_calibrate.c:248:19: error: ?S_IRUSR? undeclared (first use in this function)
+                   S_IRUSR | S_IWUSR | S_IRGRP | S_IROTH);
+                   ^
+
+Signed-off-by: Baruch Siach <[email protected]>
+---
+Upstream status: https://github.com/kergoth/tslib/pull/59
+ tests/ts_calibrate.c | 2 ++
+ 1 file changed, 2 insertions(+)
+
+diff --git a/tests/ts_calibrate.c b/tests/ts_calibrate.c
+index c6652e479d4b..9a98d1f86205 100644
+--- a/tests/ts_calibrate.c
++++ b/tests/ts_calibrate.c
+@@ -17,6 +17,8 @@
+ #include <string.h>
+ #include <unistd.h>
+ #include <sys/time.h>
++#include <sys/types.h>
++#include <sys/stat.h>
+ 
+ #ifdef __ANDROID__
+ #include <fcntl.h>
+-- 
+2.11.0
+
Signature · 1 line
2.11.0
#1 lore raw

PATCH 2/3 tslib: disable raw input plugin under kernel < v3.12

The SYN_CNT input code was added in kernel v3.12.

Fixes:
http://autobuild.buildroot.net/results/5cd/5cdb9d22092e9222cc7e8fe8dd3936305a5d371d/
http://autobuild.buildroot.net/results/211/2115038caff1e036cbc9dcb5cb6905abe643552a/
http://autobuild.buildroot.net/results/c79/c79de6fdd5cfe406979941790276296b6d1ec0b8/

---
 package/tslib/tslib.mk | 4 ++++
 1 file changed, 4 insertions(+)
package/tslib/tslib.mk +4 -0
index d6e66b723955..7f74ca5fed04 100644
@@ -13,4 +13,8 @@ TSLIB_AUTORECONF = YES
 TSLIB_INSTALL_STAGING = YES
 TSLIB_INSTALL_STAGING_OPTS = DESTDIR=$(STAGING_DIR) LDFLAGS=-L$(STAGING_DIR)/usr/lib install
 
+ifeq ($(BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_12),)
+TSLIB_CONF_OPTS += --disable-input
+endif
+
 $(eval $(autotools-package))
Signature · 1 line
2.11.0
#2 lore raw

PATCH 2/3 tslib: disable raw input plugin under kernel < v3.12

Baruch, All,

On 2017-01-14 22:17 +0200, Baruch Siach spake thusly:

Quoted 8 lines

The SYN_CNT input code was added in kernel v3.12.

Fixes:
http://autobuild.buildroot.net/results/5cd/5cdb9d22092e9222cc7e8fe8dd3936305a5d371d/
http://autobuild.buildroot.net/results/211/2115038caff1e036cbc9dcb5cb6905abe643552a/
http://autobuild.buildroot.net/results/c79/c79de6fdd5cfe406979941790276296b6d1ec0b8/

Again, you beat me to it. ;-)

Regards,
Yann E. MORIN.

Quoted 24 lines
---
 package/tslib/tslib.mk | 4 ++++
 1 file changed, 4 insertions(+)
package/tslib/tslib.mk +4 -0
index d6e66b723955..7f74ca5fed04 100644
@@ -13,4 +13,8 @@ TSLIB_AUTORECONF = YES
 TSLIB_INSTALL_STAGING = YES
 TSLIB_INSTALL_STAGING_OPTS = DESTDIR=$(STAGING_DIR) LDFLAGS=-L$(STAGING_DIR)/usr/lib install
 
+ifeq ($(BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_12),)
+TSLIB_CONF_OPTS += --disable-input
+endif
+
 $(eval $(autotools-package))
Signature · 6 lines
2.11.0

_______________________________________________
buildroot mailing list
buildroot at busybox.net
http://lists.busybox.net/mailman/listinfo/buildroot
Signature · 6 lines
.-----------------.--------------------.------------------.--------------------.
|  Yann E. MORIN  | Real-Time Embedded | /"\ ASCII RIBBON | Erics' conspiracy: |
| +33 662 376 056 | Software  Designer | \ / CAMPAIGN     |  ___               |
| +33 223 225 172 `------------.-------:  X  AGAINST      |  \e/  There is no  |
| http://ymorin.is-a-geek.org/ | _/*\_ | / \ HTML MAIL    |   v   conspiracy.  |
'------------------------------^-------^------------------^--------------------'
#3 lore raw

PATCH 2/3 tslib: disable raw input plugin under kernel < v3.12

In reply to Baruch Siach
Quoted 9 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

"Baruch" == Baruch Siach <[email protected]> writes:

The SYN_CNT input code was added in kernel v3.12.
Fixes:
http://autobuild.buildroot.net/results/5cd/5cdb9d22092e9222cc7e8fe8dd3936305a5d371d/
http://autobuild.buildroot.net/results/211/2115038caff1e036cbc9dcb5cb6905abe643552a/
http://autobuild.buildroot.net/results/c79/c79de6fdd5cfe406979941790276296b6d1ec0b8/

Committed, thanks.

Signature · 1 line
Bye, Peter Korsgaard
#4 lore raw

PATCH 3/3 tslib: use upstream .tar.xz archive

In reply to Baruch Siach

Save some network bandwidth.

---
 package/tslib/tslib.hash | 2 +-
 package/tslib/tslib.mk   | 1 +
 2 files changed, 2 insertions(+), 1 deletion(-)
package/tslib/tslib.hash +1 -1
index a80944c2174c..cdbe0d2cbed3 100644
@@ -1,2 +1,2 @@
 # Locally generated
-sha256  599f51c265158e7801b166e879e19759e8d3e5fdf2fa99c630698fe162a41d56  tslib-1.3.tar.gz
+sha256  e935101adca980a14d1a13362796222575f99e6a41db585e8358fffddb98d92c  tslib-1.3.tar.xz
package/tslib/tslib.mk +1 -0
index 7f74ca5fed04..df3de25a1b3a 100644
@@ -6,6 +6,7 @@
 
 TSLIB_VERSION = 1.3
 TSLIB_SITE = https://github.com/kergoth/tslib/releases/download/$(TSLIB_VERSION)
+TSLIB_SOURCE = tslib-1.3.tar.xz
 TSLIB_LICENSE = GPL, LGPL
 TSLIB_LICENSE_FILES = COPYING
 
Signature · 1 line
2.11.0
#5 lore raw

PATCH 3/3 tslib: use upstream .tar.xz archive

Baruch, All,

On 2017-01-14 22:17 +0200, Baruch Siach spake thusly:

Quoted 1 line

Save some network bandwidth.

It indeed saves a mere 151KiB...

Quoted 1 line

Tested that the sha256 sum does match.

Regards,
Yann E. MORIN.

Quoted 32 lines
---
 package/tslib/tslib.hash | 2 +-
 package/tslib/tslib.mk   | 1 +
 2 files changed, 2 insertions(+), 1 deletion(-)
package/tslib/tslib.hash +1 -1
index a80944c2174c..cdbe0d2cbed3 100644
@@ -1,2 +1,2 @@
 # Locally generated
-sha256  599f51c265158e7801b166e879e19759e8d3e5fdf2fa99c630698fe162a41d56  tslib-1.3.tar.gz
+sha256  e935101adca980a14d1a13362796222575f99e6a41db585e8358fffddb98d92c  tslib-1.3.tar.xz
package/tslib/tslib.mk +1 -0
index 7f74ca5fed04..df3de25a1b3a 100644
@@ -6,6 +6,7 @@
 
 TSLIB_VERSION = 1.3
 TSLIB_SITE = https://github.com/kergoth/tslib/releases/download/$(TSLIB_VERSION)
+TSLIB_SOURCE = tslib-1.3.tar.xz
 TSLIB_LICENSE = GPL, LGPL
 TSLIB_LICENSE_FILES = COPYING
 
Signature · 6 lines
2.11.0

_______________________________________________
buildroot mailing list
buildroot at busybox.net
http://lists.busybox.net/mailman/listinfo/buildroot
Signature · 6 lines
.-----------------.--------------------.------------------.--------------------.
|  Yann E. MORIN  | Real-Time Embedded | /"\ ASCII RIBBON | Erics' conspiracy: |
| +33 662 376 056 | Software  Designer | \ / CAMPAIGN     |  ___               |
| +33 223 225 172 `------------.-------:  X  AGAINST      |  \e/  There is no  |
| http://ymorin.is-a-geek.org/ | _/*\_ | / \ HTML MAIL    |   v   conspiracy.  |
'------------------------------^-------^------------------^--------------------'
#6 lore raw

PATCH 3/3 tslib: use upstream .tar.xz archive

In reply to Baruch Siach
Quoted 22 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

"Baruch" == Baruch Siach <[email protected]> writes:

Save some network bandwidth.

---
 package/tslib/tslib.hash | 2 +-
 package/tslib/tslib.mk   | 1 +
 2 files changed, 2 insertions(+), 1 deletion(-)
package/tslib/tslib.hash +1 -1
index a80944c2174c..cdbe0d2cbed3 100644
@@ -1,2 +1,2 @@
 # Locally generated
-sha256  599f51c265158e7801b166e879e19759e8d3e5fdf2fa99c630698fe162a41d56  tslib-1.3.tar.gz
+sha256  e935101adca980a14d1a13362796222575f99e6a41db585e8358fffddb98d92c  tslib-1.3.tar.xz
package/tslib/tslib.mk +0 -0
index 7f74ca5fed04..df3de25a1b3a 100644

package/tslib/tslib.mk line 9

Quoted 4 lines
package/tslib/tslib.mk +1 -0
@@ -6,6 +6,7 @@
 
 TSLIB_VERSION = 1.3
 TSLIB_SITE = https://github.com/kergoth/tslib/releases/download/$(TSLIB_VERSION)
+TSLIB_SOURCE = tslib-1.3.tar.xz

Committed after changing this to use $(TSLIB_VERSION) instead of hardcoding 1.3, thanks.

Signature · 1 line
Bye, Peter Korsgaard
#7 lore raw

PATCH 1/3 tslib: fix missing headers

In reply to Baruch Siach

Baruch, All,

On 2017-01-14 22:17 +0200, Baruch Siach spake thusly:

Quoted 8 lines

Add a patch adding missing headers.

Fixes:
http://autobuild.buildroot.net/results/cb8/cb81abe996b0fb0070ddcd01c0d695bcc0570548/
http://autobuild.buildroot.net/results/88a/88add491e10f2f7edeb15e0def8843f1321ac7af/
http://autobuild.buildroot.net/results/9db/9db1d64fd08c8763a1648e78d7b9155777de6cae/

Damned, I did the patch for nothing... ;-)

Regards,
Yann E. MORIN.

Quoted 53 lines
---
 ...01-tests-ts_calibrate-add-missing-headers.patch | 35 ++++++++++++++++++++++
 1 file changed, 35 insertions(+)
 create mode 100644 package/tslib/0001-tests-ts_calibrate-add-missing-headers.patch
package/tslib/0001-tests-ts_calibrate-add-missing-headers.patch new file +35 -0
new file mode 100644
index 000000000000..97cd4beacaba
@@ -0,0 +1,35 @@
+From 54b66bfe405d8b70c703684e60bedbad5c7d4213 Mon Sep 17 00:00:00 2001
+From: Baruch Siach <[email protected]>
+Date: Sat, 14 Jan 2017 21:35:53 +0200
+Subject: [PATCH] tests/ts_calibrate: add missing headers
+
+The open(2) system call requires sys/types.h and sys/stat.h. Fix the following
+build failure under uClibc-ng:
+
+ts_calibrate.c: In function ?main?:
+ts_calibrate.c:248:19: error: ?S_IRUSR? undeclared (first use in this function)
+                   S_IRUSR | S_IWUSR | S_IRGRP | S_IROTH);
+                   ^
+
+Signed-off-by: Baruch Siach <[email protected]>
+---
+Upstream status: https://github.com/kergoth/tslib/pull/59
+ tests/ts_calibrate.c | 2 ++
+ 1 file changed, 2 insertions(+)
+
+diff --git a/tests/ts_calibrate.c b/tests/ts_calibrate.c
+index c6652e479d4b..9a98d1f86205 100644
+--- a/tests/ts_calibrate.c
++++ b/tests/ts_calibrate.c
+@@ -17,6 +17,8 @@
+ #include <string.h>
+ #include <unistd.h>
+ #include <sys/time.h>
++#include <sys/types.h>
++#include <sys/stat.h>
+ 
+ #ifdef __ANDROID__
+ #include <fcntl.h>
+-- 
+2.11.0
+
Signature · 6 lines
2.11.0

_______________________________________________
buildroot mailing list
buildroot at busybox.net
http://lists.busybox.net/mailman/listinfo/buildroot
Signature · 6 lines
.-----------------.--------------------.------------------.--------------------.
|  Yann E. MORIN  | Real-Time Embedded | /"\ ASCII RIBBON | Erics' conspiracy: |
| +33 662 376 056 | Software  Designer | \ / CAMPAIGN     |  ___               |
| +33 223 225 172 `------------.-------:  X  AGAINST      |  \e/  There is no  |
| http://ymorin.is-a-geek.org/ | _/*\_ | / \ HTML MAIL    |   v   conspiracy.  |
'------------------------------^-------^------------------^--------------------'
#8 lore raw

PATCH 1/3 tslib: fix missing headers

In reply to Baruch Siach
Quoted 9 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

"Baruch" == Baruch Siach <[email protected]> writes:

Add a patch adding missing headers.
Fixes:
http://autobuild.buildroot.net/results/cb8/cb81abe996b0fb0070ddcd01c0d695bcc0570548/
http://autobuild.buildroot.net/results/88a/88add491e10f2f7edeb15e0def8843f1321ac7af/
http://autobuild.buildroot.net/results/9db/9db1d64fd08c8763a1648e78d7b9155777de6cae/

Committed, thanks.

Signature · 1 line
Bye, Peter Korsgaard