Skip to contentSkip to conversation

libevdev: Add libdevdev which is a dependency for libinput

PATCH New Franklin S. Cooper Jr 1 participant 8 messages Aug 19, 2014

lore
Share & tools
lore
#0 lore raw

PATCH 1/8 libevdev: Add libdevdev which is a dependency for libinput

From: "Franklin S. Cooper Jr" <[email protected]>

---
 .../recipes-devtools/libevdev/libevdev_git.bb      |   16 ++++++++++++++++
 1 file changed, 16 insertions(+)
 create mode 100644 meta-arago-extras/recipes-devtools/libevdev/libevdev_git.bb
meta-arago-extras/recipes-devtools/libevdev/libevdev_git.bb new file +16 -0
new file mode 100644
index 0000000..508beb3
@@ -0,0 +1,16 @@
+DESCRIPTION = "libevdev is a wrapper library for evdev devices"
+HOMEPAGE = "http://www.freedesktop.org/wiki/Software/libevdev/"
+
+LICENSE = "MIT"
+LIC_FILES_CHKSUM = "file://COPYING;md5=75aae0d38feea6fda97ca381cb9132eb"
+
+inherit autotools pkgconfig
+
+PR = "r0"
+
+BRANCH = "master"
+SRCREV = "a5f150ef57a1a5c67e94163f6f5a60687049413f"
+PV = "1.2.99.901"
+SRC_URI = "git://anongit.freedesktop.org/libevdev;protocol=git;branch=${BRANCH}"
+
+S = "${WORKDIR}/git"
Signature · 1 line
1.7.9.5
#1 lore raw

PATCH 2/8 libinput: Add new library which is a optional dependency for Weston

From: "Franklin S. Cooper Jr" <[email protected]>

* Libinput separates some of the input handling from Weston.
* Also it has newer features and bug fixes that the Weston built in variant doesn't have.

---
 .../recipes-graphics/wayland/libinput_git.bb       |   22 ++++++++++++++++++++
 1 file changed, 22 insertions(+)
 create mode 100644 meta-arago-extras/recipes-graphics/wayland/libinput_git.bb
meta-arago-extras/recipes-graphics/wayland/libinput_git.bb new file +22 -0
new file mode 100644
index 0000000..a3e121e
@@ -0,0 +1,22 @@
+DESCRIPTION = "libinput is a library to handle input devices in Wayland compositors"
+HOMEPAGE = "http://www.freedesktop.org/wiki/Software/libinput/"
+
+LICENSE = "MIT"
+LIC_FILES_CHKSUM = "file://COPYING;md5=673e626420c7f859fbe2be3a9c13632d"
+
+inherit autotools pkgconfig
+
+DEPENDS = "libevdev"
+
+PR = "r0"
+
+BRANCH = "master"
+SRCREV = "bb10ec84d3704fc0fb40591bcbffe90f6c77966d"
+
+PV = "0.5.0"
+
+SRC_URI = "git://anongit.freedesktop.org/wayland/libinput;protocol=git;branch=${BRANCH}"
+
+S = "${WORKDIR}/git"
+
+
Signature · 1 line
1.7.9.5
#2 lore raw

PATCH 3/8 weston: Pull in Weston 1.5.0 from oe-core master

In reply to Franklin S. Cooper Jr

From: "Franklin S. Cooper Jr" <[email protected]>

* This version is required to fix a Qt 5 issue.

---
 .../weston/disable-wayland-scanner-pkg-check.patch |   13 +++
 .../weston/make-lcms-explicitly-configurable.patch |   43 ++++++++++
 .../make-libwebp-explicitly-configurable.patch     |   37 +++++++++
 .../recipes-graphics/wayland/weston/weston.desktop |    9 ++
 .../recipes-graphics/wayland/weston/weston.png     |  Bin 0 -> 2383 bytes
 .../recipes-graphics/wayland/weston_1.5.0.bb       |   87 ++++++++++++++++++++
 6 files changed, 189 insertions(+)
 create mode 100644 meta-arago-extras/recipes-graphics/wayland/weston/disable-wayland-scanner-pkg-check.patch
 create mode 100644 meta-arago-extras/recipes-graphics/wayland/weston/make-lcms-explicitly-configurable.patch
 create mode 100644 meta-arago-extras/recipes-graphics/wayland/weston/make-libwebp-explicitly-configurable.patch
 create mode 100644 meta-arago-extras/recipes-graphics/wayland/weston/weston.desktop
 create mode 100644 meta-arago-extras/recipes-graphics/wayland/weston/weston.png
 create mode 100644 meta-arago-extras/recipes-graphics/wayland/weston_1.5.0.bb
meta-arago-extras/recipes-graphics/wayland/weston/disable-wayland-scanner-pkg-check.patch new file +13 -0
new file mode 100644
index 0000000..062da5c
@@ -0,0 +1,13 @@
+Index: weston-1.5.0/configure.ac
+===================================================================
+--- weston-1.5.0.orig/configure.ac
++++ weston-1.5.0/configure.ac
+@@ -503,7 +503,7 @@ if test x$wayland_scanner = x; then
+ 	AC_MSG_ERROR([wayland-scanner is needed to compile weston])
+ fi
+ 
+-PKG_CHECK_MODULES(WAYLAND_SCANNER, wayland-scanner)
++#PKG_CHECK_MODULES(WAYLAND_SCANNER, wayland-scanner)
+ 
+ AC_CONFIG_FILES([Makefile src/version.h src/weston.pc])
+ 
meta-arago-extras/recipes-graphics/wayland/weston/make-lcms-explicitly-configurable.patch new file +43 -0

43 lines not on this page · raw message

meta-arago-extras/recipes-graphics/wayland/weston/make-libwebp-explicitly-configurable.patch new file +37 -0
new file mode 100644
index 0000000..ad07d4f
@@ -0,0 +1,37 @@
+
+The libwebp package is outside of openembedded-core, so make it
+explicitly configurable. Make it deterministic, so that if libwebp 
+dependencies are missing, autoconf throws a fatal error.
+
+Upstream-Status: Pending
+
+Index: weston-1.5.0/configure.ac
+===================================================================
+--- weston-1.5.0.orig/configure.ac
++++ weston-1.5.0/configure.ac
+@@ -268,9 +268,22 @@ fi
+ 
+ PKG_CHECK_MODULES(PIXMAN, [pixman-1])
+ PKG_CHECK_MODULES(PNG, [libpng])
+-PKG_CHECK_MODULES(WEBP, [libwebp], [have_webp=yes], [have_webp=no])
+-AS_IF([test "x$have_webp" = "xyes"],
+-      [AC_DEFINE([HAVE_WEBP], [1], [Have webp])])
++AC_ARG_ENABLE(webp,
++              AS_HELP_STRING([--disable-webp],
++                             [Disable libwebp support]),,
++              enable_webp=auto)
++AM_CONDITIONAL(HAVE_WEBP, [test "x$enable_webp" = xyes])
++AS_IF([test "x$enable_webp" != "xno"],
++    PKG_CHECK_MODULES(WEBP,
++                     [libwebp],
++                     [have_webp=yes],
++                     [have_webp=no])
++    AS_IF([test "x$have_webp" = "xno" -a "x$enable_webp" = "xyes"],
++        AC_MSG_ERROR([libwebp support explicitly request, but lipwebp could not be found]))
++    AS_IF([test "x$have_webp" = "xyes"],
++        [enable_webp=yes]
++        [AC_DEFINE([HAVE_WEBP], [1], [Have webp])])
++)
+ 
+ AC_ARG_ENABLE(vaapi-recorder, [  --enable-vaapi-recorder],,
+ 	      enable_vaapi_recorder=auto)
meta-arago-extras/recipes-graphics/wayland/weston/weston.desktop new file +9 -0
new file mode 100644
index 0000000..1086ae8
@@ -0,0 +1,9 @@
+[Desktop Entry]
+Encoding=UTF-8
+Type=Application
+Name=Weston
+Comment=Wayland Compostitor
+Exec=weston
+Icon=weston
+Terminal=false
+Categories=Utility;
meta-arago-extras/recipes-graphics/wayland/weston/weston.png new file binary +0 -0
new file mode 100644
index 0000000000000000000000000000000000000000..ea8b7e0e233c86301a88e5bc925f09b3de2f9dec
GIT binary patch
meta-arago-extras/recipes-graphics/wayland/weston_1.5.0.bb new file +87 -0

87 lines not on this page · raw message

Signature · 1 line
1.7.9.5
#3 lore raw

PATCH 4/8 wayland: Pull in wayland 1.5.0 from oe-core master

In reply to Franklin S. Cooper Jr

From: "Franklin S. Cooper Jr" <[email protected]>

---
 ...disable-macro-checks-not-used-for-scanner.patch |   50 ++++++++++++++++++++
 .../recipes-graphics/wayland/wayland_1.5.0.bb      |   41 ++++++++++++++++
 2 files changed, 91 insertions(+)
 create mode 100644 meta-arago-extras/recipes-graphics/wayland/wayland/disable-macro-checks-not-used-for-scanner.patch
 create mode 100644 meta-arago-extras/recipes-graphics/wayland/wayland_1.5.0.bb
meta-arago-extras/recipes-graphics/wayland/wayland/disable-macro-checks-not-used-for-scanner.patch new file +50 -0
new file mode 100644
index 0000000..cd8bc55
@@ -0,0 +1,50 @@
+disable macro checks not used for scanner
+
+We only build wayland-native for the scanner, so disable the bits we don't
+actually need. This avoid build issue on older distro such as Centos 5.x:
+| error: 'O_CLOEXEC' undeclared (first use in this function)
+| error: sys/timerfd.h: No such file or directory
+| error: 'CLOCK_MONOTONIC' undeclared (first use in this function)
+| error: 'TFD_CLOEXEC' undeclared (first use in this function)
+| error: 'SFD_CLOEXEC' undeclared (first use in this function)
+
+Upstream-Status: Pending
+
+Signed-off-by: Ting Liu <[email protected]>
+---
+ configure.ac | 20 ++++++++++----------
+ 1 file changed, 10 insertions(+), 10 deletions(-)
+
+diff --git a/configure.ac b/configure.ac
+--- a/configure.ac
++++ b/configure.ac
+@@ -41,16 +41,16 @@ AC_SUBST(GCC_CFLAGS)
+ 
+ AC_CHECK_FUNCS([accept4 mkostemp posix_fallocate])
+ 
+-AC_CHECK_DECL(SFD_CLOEXEC,[],
+-	      [AC_MSG_ERROR("SFD_CLOEXEC is needed to compile wayland")],
+-	      [[#include <sys/signalfd.h>]])
+-AC_CHECK_DECL(TFD_CLOEXEC,[],
+-	      [AC_MSG_ERROR("TFD_CLOEXEC is needed to compile wayland")],
+-	      [[#include <sys/timerfd.h>]])
+-AC_CHECK_DECL(CLOCK_MONOTONIC,[],
+-	      [AC_MSG_ERROR("CLOCK_MONOTONIC is needed to compile wayland")],
+-	      [[#include <time.h>]])
+-AC_CHECK_HEADERS([execinfo.h])
++##AC_CHECK_DECL(SFD_CLOEXEC,[],
++#	      [AC_MSG_ERROR("SFD_CLOEXEC is needed to compile wayland")],
++#	      [[#include <sys/signalfd.h>]])
++#AC_CHECK_DECL(TFD_CLOEXEC,[],
++#	      [AC_MSG_ERROR("TFD_CLOEXEC is needed to compile wayland")],
++#	      [[#include <sys/timerfd.h>]])
++#AC_CHECK_DECL(CLOCK_MONOTONIC,[],
++#	      [AC_MSG_ERROR("CLOCK_MONOTONIC is needed to compile wayland")],
++#	      [[#include <time.h>]])
++#AC_CHECK_HEADERS([execinfo.h])
+ 
+ AC_ARG_ENABLE([scanner],
+               [AC_HELP_STRING([--disable-scanner],
+-- 
+1.8.3.2
+
meta-arago-extras/recipes-graphics/wayland/wayland_1.5.0.bb new file +41 -0

41 lines not on this page · raw message

Signature · 1 line
1.7.9.5
#4 lore raw

PATCH 5/8 wayland/weston: Switch from tarball to git

In reply to Franklin S. Cooper Jr

From: "Franklin S. Cooper Jr" <[email protected]>

* Allows picking up newer commits between releases alot easier
* The current commit matches the 1.5.0 release

---
 .../recipes-graphics/wayland/wayland_1.5.0.bb      |   11 ++++++++---
 .../recipes-graphics/wayland/weston_1.5.0.bb       |    9 ++++++---
 2 files changed, 14 insertions(+), 6 deletions(-)
meta-arago-extras/recipes-graphics/wayland/wayland_1.5.0.bb +8 -3
index b1ae59e..800ba7a 100644
@@ -10,12 +10,17 @@ LICENSE = "MIT"
 LIC_FILES_CHKSUM = "file://COPYING;md5=1d4476a7d98dd5691c53d4d43a510c72 \
                     file://src/wayland-server.c;endline=21;md5=079ae21dbf98ada52ec23744851b0a5c"
 
-SRC_URI = "http://wayland.freedesktop.org/releases/${BPN}-${PV}.tar.xz"
-SRC_URI[md5sum] = "1d882776b27329b91d2d500b6d66dd1d"
-SRC_URI[sha256sum] = "0069e1e9af888b3e05384380ad8cc6c976ea3e81d08ba19b7675ce1d693a41b5"
+BRANCH = "master"
+SRCREV = "3ac62cd6b6012f40e37b1bd7fc1e8178585905ca"
+
+SRC_URI = "git://anongit.freedesktop.org/wayland/wayland;protocol=git;branch=${BRANCH}"
+
 SRC_URI_append_class-native = " \
     file://disable-macro-checks-not-used-for-scanner.patch \
     "
+
+S = "${WORKDIR}/git"
+
 EXTRA_OECONF_class-native = "--disable-documentation --enable-scanner"
 
 inherit autotools pkgconfig
meta-arago-extras/recipes-graphics/wayland/weston_1.5.0.bb +6 -3
index 4a8584f..e1ff61b 100644
@@ -5,15 +5,18 @@ LICENSE = "MIT"
 LIC_FILES_CHKSUM = "file://COPYING;md5=275efac2559a224527bd4fd593d38466 \
                     file://src/compositor.c;endline=23;md5=aa98a8db03480fe7d500d0b1f4b8850c"
 
-SRC_URI = "http://wayland.freedesktop.org/releases/${BPN}-${PV}.tar.xz \
+BRANCH = "master"
+SRCREV = "880193622024d7dc2b36421251d97b08da324570"
+
+SRC_URI = "git://anongit.freedesktop.org/wayland/weston;protocol=git;branch=${BRANCH} \
            file://weston.png \
            file://weston.desktop \
            file://disable-wayland-scanner-pkg-check.patch \
            file://make-lcms-explicitly-configurable.patch \
            file://make-libwebp-explicitly-configurable.patch \
 "
-SRC_URI[md5sum] = "8eb40d230efc2411f083c20656534780"
-SRC_URI[sha256sum] = "06388ba04ac79aa72d685cc1a8e646ddb2b8cfe11fcc742294f9addac48b7684"
+
+S = "${WORKDIR}/git"
 
 inherit autotools pkgconfig useradd
 
Signature · 1 line
1.7.9.5
#5 lore raw

PATCH 6/8 weston: Move distro specific changes to meta-arago-distro

In reply to Franklin S. Cooper Jr

From: "Franklin S. Cooper Jr" <[email protected]>

---
 .../wayland/weston}/wayland_env.sh                 |    1 +
 .../recipes-graphics/wayland/weston_1.4.0.bbappend |    6 +++---
 2 files changed, 4 insertions(+), 3 deletions(-)
 rename {meta-arago-extras/recipes-graphics/wayland/files => meta-arago-distro/recipes-graphics/wayland/weston}/wayland_env.sh (80%)
 rename {meta-arago-extras => meta-arago-distro}/recipes-graphics/wayland/weston_1.4.0.bbappend (88%)
meta-arago-distro/recipes-graphics/wayland/weston/wayland_env.sh renamed from meta-arago-extras/recipes-graphics/wayland/files/wayland_env.sh +1 -0
similarity index 80%
rename from meta-arago-extras/recipes-graphics/wayland/files/wayland_env.sh
rename to meta-arago-distro/recipes-graphics/wayland/weston/wayland_env.sh
index 201e264..788024f 100644
@@ -2,5 +2,6 @@
 
 ### Wayland Environment Variables ###
 
+export XDG_CONFIG_HOME=/etc/
 export XDG_RUNTIME_DIR=/run/user/root
 export WAYLAND_DISPLAY=wayland-0
meta-arago-distro/recipes-graphics/wayland/weston_1.4.0.bbappend renamed from meta-arago-extras/recipes-graphics/wayland/weston_1.4.0.bbappend +3 -3
similarity index 88%
rename from meta-arago-extras/recipes-graphics/wayland/weston_1.4.0.bbappend
rename to meta-arago-distro/recipes-graphics/wayland/weston_1.4.0.bbappend
index 5b499ba..e62cfa3 100644
@@ -1,9 +1,9 @@
+PR_append = "-arago2"
+
 # When configured for fbdev compositor, make it the default
 PACKAGECONFIG[fbdev] = "--enable-fbdev-compositor WESTON_NATIVE_BACKEND="fbdev-backend.so",--disable-fbdev-compositor,udev mtdev"
 
-PR_append = "-arago1"
-
-FILESEXTRAPATHS_prepend := "${THISDIR}/files:"
+FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}:"
 
 SRC_URI += "file://wayland_env.sh"
 
Signature · 1 line
1.7.9.5
#6 lore raw

PATCH 7/8 weston: Update commit used for weston 1.5.0

In reply to Franklin S. Cooper Jr

From: "Franklin S. Cooper Jr" <[email protected]>

* Update the version of Weston to pull in libinput dependency and several features and bug fixes.
* Update configure to use libinput instead of using built in input handling
* Copy changes from Weston 1.4.0 append.
* Use ini file to disable unwanted features.

---
 .../recipes-graphics/wayland/weston/weston.ini     |   10 ++++++++++
 ...weston_1.4.0.bbappend => weston_1.5.0.bbappend} |   17 +++++++++++++----
 2 files changed, 23 insertions(+), 4 deletions(-)
 create mode 100644 meta-arago-distro/recipes-graphics/wayland/weston/weston.ini
 copy meta-arago-distro/recipes-graphics/wayland/{weston_1.4.0.bbappend => weston_1.5.0.bbappend} (58%)
meta-arago-distro/recipes-graphics/wayland/weston/weston.ini new file +10 -0
new file mode 100644
index 0000000..8caa891
@@ -0,0 +1,10 @@
+[shell]
+locking=false
+animation=zoom
+panel-location=none
+startup-animation=fade
+
+[screensaver]
+# Uncomment path to disable screensaver
+#path=@libexecdir@/weston-screensaver
+
meta-arago-distro/recipes-graphics/wayland/weston_1.5.0.bbappend renamed from meta-arago-distro/recipes-graphics/wayland/weston_1.4.0.bbappend +13 -4
similarity index 58%
copy from meta-arago-distro/recipes-graphics/wayland/weston_1.4.0.bbappend
copy to meta-arago-distro/recipes-graphics/wayland/weston_1.5.0.bbappend
index e62cfa3..4a1e313 100644
@@ -1,19 +1,28 @@
-PR_append = "-arago2"
-
 # When configured for fbdev compositor, make it the default
 PACKAGECONFIG[fbdev] = "--enable-fbdev-compositor WESTON_NATIVE_BACKEND="fbdev-backend.so",--disable-fbdev-compositor,udev mtdev"
 
+PR_append = "-arago0"
+
 FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}:"
 
-SRC_URI += "file://wayland_env.sh"
+DEPENDS += "libinput"
+
+SRC_URI += "file://wayland_env.sh \
+            file://weston.ini \
+"
+
+SRCREV = "e67118c80ad411ac46b7096aae2635510c80ea6d"
+
+EXTRA_OECONF += "--enable-libinput-backend"
 
 # Add custom Arago Wayland Environment script file
 do_install_append () {
     install -d ${D}${sysconfdir}/profile.d
+    install -m 0644 ${WORKDIR}/weston.ini ${D}${sysconfdir}
     install -m 0644 ${WORKDIR}/wayland_env.sh ${D}${sysconfdir}/profile.d/
 }
 
 PACKAGES += "${PN}-conf"
 
-FILES_${PN}-conf += "${sysconfdir}/profile.d/*"
+FILES_${PN}-conf += "${sysconfdir}/profile.d/* ${sysconfdir}/weston.ini"
 RDEPENDS_${PN} += "${PN}-conf"
Signature · 1 line
1.7.9.5
#7 lore raw

PATCH 8/8 wayland: Updated commit for Wayland 1.5.0

In reply to Franklin S. Cooper Jr

From: "Franklin S. Cooper Jr" <[email protected]>

* Newer version of Weston requires newer version of Wayland

---
 .../wayland/wayland_1.5.0.bbappend                 |    3 +++
 1 file changed, 3 insertions(+)
 create mode 100644 meta-arago-distro/recipes-graphics/wayland/wayland_1.5.0.bbappend
meta-arago-distro/recipes-graphics/wayland/wayland_1.5.0.bbappend new file +3 -0
new file mode 100644
index 0000000..47ff4db
@@ -0,0 +1,3 @@
+PR_append = "-arago0"
+
+SRCREV = "b24fa4c8216e3f0f7b644c7b8c6949925f19ada9"
Signature · 1 line
1.7.9.5