Skip to contentSkip to conversation

tslib: Align recipe content to better match v1.15

PATCH Superseded Niko Mauno 2 participants 3 messages Apr 9, 2018 – Apr 11, 2018

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore

Niko Mauno

author
#0 lore raw

PATCH 1/1 tslib: Align recipe content to better match v1.15

Respective changes to recipe:
- updated AUTHOR field to match current author in tslib/AUTHORS file
- updated LICENSE field to 'LGPLv2+ & GPLv2+' to reflect licenses in v1.15 (LGPLv2+ for shared library parts, GPLv2+ for command line utility parts)
- updated LIC_FILES_CHECKSUM to contain COPYING files for both license families
- dropped EXTRA_OECONF altogether as it contained just obsoleted or implied configure options
- removed commented-out detect-stylus lines (a detect-stylus recipe was apparently available in OE-Classic)

---
 meta-oe/recipes-graphics/tslib/tslib_1.15.bb | 14 ++++++--------
 1 file changed, 6 insertions(+), 8 deletions(-)
meta-oe/recipes-graphics/tslib/tslib_1.15.bb +6 -8
index e87b411a8..dca5506b6 100644
@@ -5,10 +5,13 @@ Tslib is generally used on embedded devices to provide a common user \
 space interface to touchscreen functionality."
 HOMEPAGE = "http://tslib.org/"
 
-AUTHOR = "Russell King w/ plugins by Chris Larson et. al."
+AUTHOR = "Martin Kepplinger <[email protected]>"
 SECTION = "base"
-LICENSE = "LGPLv2"
-LIC_FILES_CHKSUM = "file://COPYING;md5=fc178bcd425090939a8b634d1d6a9594"
+LICENSE = "LGPLv2+ & GPLv2+"
+LIC_FILES_CHKSUM = "\
+    file://COPYING;md5=fc178bcd425090939a8b634d1d6a9594 \
+    file://tests/COPYING;md5=a23a74b3f4caf9616230789d94217acb \
+"
 
 SRC_URI = "https://github.com/kergoth/tslib/releases/download/${PV}/tslib-${PV}.tar.xz;downloadfilename=tslib-${PV}.tar.xz \
            file://ts.conf \
@@ -21,8 +24,6 @@ UPSTREAM_CHECK_URI = "https://github.com/kergoth/tslib/releases"
 
 inherit autotools pkgconfig
 
-EXTRA_OECONF = "--enable-shared --disable-h3600 --enable-input --disable-corgi --disable-collie --disable-mk712 --disable-arctic2 --disable-ucb1x00"
-
 do_install_prepend() {
     install -m 0644 ${WORKDIR}/ts.conf ${S}/etc/ts.conf
 }
@@ -32,9 +33,6 @@ do_install_append() {
     install -m 0755 ${WORKDIR}/tslib.sh ${D}${sysconfdir}/profile.d/
 }
 
-# People should consider using udev's /dev/input/touchscreen0 symlink
-# instead of detect-stylus
-#RDEPENDS_tslib-conf_weird-machine = "detect-stylus"
 RPROVIDES_tslib-conf = "libts-0.0-conf"
 
 PACKAGES =+ "tslib-conf tslib-tests tslib-calibrate tslib-uinput"
Signature · 1 line
2.11.0
#1 lore raw
Quoted 9 lines · Niko Mauno

Respective changes to recipe:
- updated AUTHOR field to match current author in tslib/AUTHORS file
- updated LICENSE field to 'LGPLv2+ & GPLv2+' to reflect licenses in v1.15 (LGPLv2+ for shared library parts, GPLv2+ for command line utility parts)
- updated LIC_FILES_CHECKSUM to contain COPYING files for both license families
- dropped EXTRA_OECONF altogether as it contained just obsoleted or implied configure options

Perhaps a set of packageconfigs would be desired. It may not be reflecting exact set as seen here but whatever knobs currently are available.

Other parts look good.

Quoted 49 lines

- removed commented-out detect-stylus lines (a detect-stylus recipe was apparently available in OE-Classic)

---
 meta-oe/recipes-graphics/tslib/tslib_1.15.bb | 14 ++++++--------
 1 file changed, 6 insertions(+), 8 deletions(-)
meta-oe/recipes-graphics/tslib/tslib_1.15.bb +6 -8
index e87b411a8..dca5506b6 100644
@@ -5,10 +5,13 @@ Tslib is generally used on embedded devices to provide a common user \
 space interface to touchscreen functionality."
 HOMEPAGE = "http://tslib.org/"
 
-AUTHOR = "Russell King w/ plugins by Chris Larson et. al."
+AUTHOR = "Martin Kepplinger <[email protected]>"
 SECTION = "base"
-LICENSE = "LGPLv2"
-LIC_FILES_CHKSUM = "file://COPYING;md5=fc178bcd425090939a8b634d1d6a9594"
+LICENSE = "LGPLv2+ & GPLv2+"
+LIC_FILES_CHKSUM = "\
+    file://COPYING;md5=fc178bcd425090939a8b634d1d6a9594 \
+    file://tests/COPYING;md5=a23a74b3f4caf9616230789d94217acb \
+"
 
 SRC_URI = "https://github.com/kergoth/tslib/releases/download/${PV}/tslib-${PV}.tar.xz;downloadfilename=tslib-${PV}.tar.xz \
            file://ts.conf \
@@ -21,8 +24,6 @@ UPSTREAM_CHECK_URI = "https://github.com/kergoth/tslib/releases"
 
 inherit autotools pkgconfig
 
-EXTRA_OECONF = "--enable-shared --disable-h3600 --enable-input --disable-corgi --disable-collie --disable-mk712 --disable-arctic2 --disable-ucb1x00"
-
 do_install_prepend() {
     install -m 0644 ${WORKDIR}/ts.conf ${S}/etc/ts.conf
 }
@@ -32,9 +33,6 @@ do_install_append() {
     install -m 0755 ${WORKDIR}/tslib.sh ${D}${sysconfdir}/profile.d/
 }
 
-# People should consider using udev's /dev/input/touchscreen0 symlink
-# instead of detect-stylus
-#RDEPENDS_tslib-conf_weird-machine = "detect-stylus"
 RPROVIDES_tslib-conf = "libts-0.0-conf"
 
 PACKAGES =+ "tslib-conf tslib-tests tslib-calibrate tslib-uinput"
author
#2 lore raw
Quoted 7 lines · Khem Raj
Quoted 2 lines · Niko Mauno

- dropped EXTRA_OECONF altogether as it contained just obsoleted or implied configure options

Perhaps a set of packageconfigs would be desired. It may not be reflecting exact set as seen here but whatever knobs currently are available.

Submitted v2 which introduces also PACKAGECONFIG