Skip to contentSkip to conversation

exo tweaks / add xfce4-closebutton-plugin

PATCH In review Andreas Müller 1 participant 7 messages Apr 2, 2013 – Apr 3, 2013

lore
Share & tools
lore
#0 lore raw

v3 cover exo tweaks / add xfce4-closebutton-plugin

The series consists of three parts:

* exo: fix build on perl-less machines
* exo-native: When building from xfce-git-repos exo-csource is required. I needed that several times for debugging (e.g when implementing extensions to xfce4-settings).
* xfce4-closebutton-plugin: This is a very simple panel plugin I have written. It is intended to close windows in environments with maximized and undecorated windows e.g on low resolution screens.

V1 -> V2: Add fix for perl-less machines
V2 -> V3: use class-native instead of virtclass-native

The following changes since commit af6c39379dbe6822d1457498e53747ed63bdbb65:

libnetfilter-queue: Add missing libmnl to DEPENDS (2013-04-02 08:53:13 -0400)

are available in the git repository at:
git://gitorious.org/schnitzeltony-oe-meta/meta-openembedded.git xfce-patches

Andreas Müller (5):
exo: inherit perlnative and add liburi-perl-native to DEPENDS
exo: add native build
exo: split out exo-csource to exo-dev - it is not required on target
xfce4-closebutton-plugin: initial add packagegroup-xfce-extended: add xfce4-closebutton-plugin

 .../closebutton/xfce4-closebutton-plugin_git.bb    |   22 ++++++
 .../exo/exo/reduce-build-to-exo-csource-only.patch |   80 ++++++++++++++++++++
 meta-xfce/recipes-xfce/exo/exo_0.10.2.bb           |   15 +++-
 .../packagegroups/packagegroup-xfce-extended.bb    |    3 +-
 4 files changed, 117 insertions(+), 3 deletions(-)
 create mode 100644 meta-xfce/recipes-panel-plugins/closebutton/xfce4-closebutton-plugin_git.bb
 create mode 100644 meta-xfce/recipes-xfce/exo/exo/reduce-build-to-exo-csource-only.patch
Signature · 1 line
1.7.4.4
#1 lore raw

PATCH v3 1/5 exo: inherit perlnative and add liburi-perl-native to DEPENDS

* this fixes build on perl-less machines
* perlnative.bbclass adds perl-native to DEPENDS so remove it

---
 meta-xfce/recipes-xfce/exo/exo_0.10.2.bb |    5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)
meta-xfce/recipes-xfce/exo/exo_0.10.2.bb +3 -2
index 4fdfd48..6aa1056 100644
@@ -2,9 +2,10 @@ DESCRIPTION="Application library for the Xfce desktop environment"
 SECTION = "x11"
 LICENSE = "GPLv2"
 LIC_FILES_CHKSUM = "file://COPYING;md5=b234ee4d69f5fce4486a80fdaf4a4263"
-DEPENDS = "gtk+ libxfce4util libxfce4ui virtual/libx11 perl-native cairo"
+DEPENDS = "gtk+ libxfce4util libxfce4ui virtual/libx11 liburi-perl-native cairo"
+PR = "r1"
 
-inherit xfce pythonnative
+inherit xfce pythonnative perlnative
 
 # SRC_URI must follow inherited one
 SRC_URI += " \
Signature · 1 line
1.7.4.4
#2 lore raw

PATCH v3 2/5 exo: add native build

In reply to Andreas Müller

The native build creates exo-csource only. exo-csource converts glade-files into c-header files. When building xfce projects from git repo, exo-csource is required (tarballs have the glade-headers included).

---
 .../exo/exo/reduce-build-to-exo-csource-only.patch |   80 ++++++++++++++++++++
 meta-xfce/recipes-xfce/exo/exo_0.10.2.bb           |    9 ++-
 2 files changed, 88 insertions(+), 1 deletions(-)
 create mode 100644 meta-xfce/recipes-xfce/exo/exo/reduce-build-to-exo-csource-only.patch
meta-xfce/recipes-xfce/exo/exo/reduce-build-to-exo-csource-only.patch new file +80 -0
new file mode 100644
index 0000000..84b2370
@@ -0,0 +1,80 @@
+From e710d8d4a3e3480416826c70d56ea3d2598a77e4 Mon Sep 17 00:00:00 2001
+From: =?UTF-8?q?Andreas=20M=C3=BCller?= <[email protected]>
+Date: Thu, 28 Mar 2013 23:41:03 +0100
+Subject: [PATCH] reduce build to exo-csource only
+MIME-Version: 1.0
+Content-Type: text/plain; charset=UTF-8
+Content-Transfer-Encoding: 8bit
+
+exo-csource creates c-header files from glade resource output files. When
+building xfce-packages from git instead of tarball this exo-csource-native is
+required.
+
+Upstream-Status: Inappropriate [configuration]
+
+Signed-off-by: Andreas Müller <[email protected]>
+---
+ Makefile.am  |   10 +---------
+ configure.ac |   20 --------------------
+ 2 files changed, 1 insertions(+), 29 deletions(-)
+
+diff --git a/Makefile.am b/Makefile.am
+index c2e3fff..79b0931 100644
+--- a/Makefile.am
++++ b/Makefile.am
+@@ -1,13 +1,5 @@
+ SUBDIRS =								\
+-	exo								\
+-	exo-csource							\
+-	exo-desktop-item-edit						\
+-	exo-helper							\
+-	exo-open							\
+-	docs								\
+-	icons								\
+-	pixmaps								\
+-	po
++	exo-csource
+ 
+ AUTOMAKE_OPTIONS =							\
+ 	1.9								\
+diff --git a/configure.ac b/configure.ac
+index efcd62e..aac2495 100644
+--- a/configure.ac
++++ b/configure.ac
+@@ -110,15 +110,6 @@ AC_PROG_CC()
+ AM_PROG_CC_C_O()
+ AC_PROG_INSTALL()
+ AC_PROG_INTLTOOL([0.31], [no-xml])
+-AC_CHECK_PROGS([PERL], [perl5 perl])
+-
+-dnl ***************************************
+-dnl *** Check for required Perl modules ***
+-dnl ***************************************
+-AC_PROG_PERL_MODULES([URI::Escape URI::file URI::URL], [],
+-[
+-  AC_MSG_ERROR([Atleast one of the required Perl modules (URI::Escape, URI::file and URI::URL) was not found on your system])
+-])
+ 
+ dnl ***************************************
+ dnl *** Check for standard header files ***
+@@ -165,17 +156,6 @@ dnl ***********************************
+ dnl *** Check for required packages ***
+ dnl ***********************************
+ XDT_CHECK_PACKAGE([GLIB], [glib-2.0], [2.30.0])
+-XDT_CHECK_PACKAGE([GIO], [gio-2.0], [2.30.0])
+-XDT_CHECK_PACKAGE([GTK], [gtk+-2.0], [2.24.0])
+-XDT_CHECK_PACKAGE([GTHREAD], [gthread-2.0], [2.30.0])
+-XDT_CHECK_PACKAGE([LIBXFCE4UTIL], [libxfce4util-1.0], [4.10.0])
+-XDT_CHECK_PACKAGE([LIBXFCE4UI], [libxfce4ui-1], [4.10.0])
+-XDT_CHECK_OPTIONAL_PACKAGE([GIO_UNIX], [gio-unix-2.0], [2.30.0], [gio-unix], [GIO-Unix features])
+-
+-dnl *********************
+-dnl *** Check for X11 ***
+-dnl *********************
+-XDT_CHECK_LIBX11_REQUIRE()
+ 
+ dnl *************************
+ dnl *** Check for gtk-doc ***
+-- 
+1.7.4.4
+
meta-xfce/recipes-xfce/exo/exo_0.10.2.bb +8 -1
index 6aa1056..f16d544 100644
@@ -3,7 +3,8 @@ SECTION = "x11"
 LICENSE = "GPLv2"
 LIC_FILES_CHKSUM = "file://COPYING;md5=b234ee4d69f5fce4486a80fdaf4a4263"
 DEPENDS = "gtk+ libxfce4util libxfce4ui virtual/libx11 liburi-perl-native cairo"
-PR = "r1"
+DEPENDS_class-native = "glib-2.0-native xfce4-dev-tools-native"
+PR = "r2"
 
 inherit xfce pythonnative perlnative
 
@@ -14,6 +15,10 @@ SRC_URI += " \
     file://gnome-mount \
 "
 
+SRC_URI_append_class-native = " \
+    file://reduce-build-to-exo-csource-only.patch \
+"
+
 SRC_URI[md5sum] = "c70f2a217811bfba2e62f938d4b8f748"
 SRC_URI[sha256sum] = "b385828bf8a38204da3254b57fdfa25a72694495aa189fabd5040f707eec76ce"
 
@@ -31,3 +36,5 @@ FILES_${PN} += "${datadir}/xfce4/ \
 
 FILES_${PN}-dbg += "${libdir}/gio/modules/.debug \
                    "
+
+BBCLASSEXTEND = "native"
Signature · 1 line
1.7.4.4
#3 lore raw

PATCH v3 3/5 exo: split out exo-csource to exo-dev - it is not required on target

In reply to Andreas Müller
---
 meta-xfce/recipes-xfce/exo/exo_0.10.2.bb |    5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)
meta-xfce/recipes-xfce/exo/exo_0.10.2.bb +4 -1
index f16d544..63fc7ea 100644
@@ -4,7 +4,7 @@ LICENSE = "GPLv2"
 LIC_FILES_CHKSUM = "file://COPYING;md5=b234ee4d69f5fce4486a80fdaf4a4263"
 DEPENDS = "gtk+ libxfce4util libxfce4ui virtual/libx11 liburi-perl-native cairo"
 DEPENDS_class-native = "glib-2.0-native xfce4-dev-tools-native"
-PR = "r2"
+PR = "r3"
 
 inherit xfce pythonnative perlnative
 
@@ -37,4 +37,7 @@ FILES_${PN} += "${datadir}/xfce4/ \
 FILES_${PN}-dbg += "${libdir}/gio/modules/.debug \
                    "
 
+FILES_${PN}-dev += "${bindir}/gio/exo-csource \
+                   "
+
 BBCLASSEXTEND = "native"
Signature · 1 line
1.7.4.4
#4 lore raw

Re: [meta-xfce, V3 3/5] exo: split out exo-csource to exo-dev - it is not required on target

Quoted 27 lines · Andreas Müller
---
 meta-xfce/recipes-xfce/exo/exo_0.10.2.bb |    5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)
meta-xfce/recipes-xfce/exo/exo_0.10.2.bb +4 -2
index f16d544..63fc7ea 100644
@@ -4,7 +4,7 @@ LICENSE = "GPLv2"
 LIC_FILES_CHKSUM = "file://COPYING;md5=b234ee4d69f5fce4486a80fdaf4a4263"
 DEPENDS = "gtk+ libxfce4util libxfce4ui virtual/libx11 liburi-perl-native cairo"
 DEPENDS_class-native = "glib-2.0-native xfce4-dev-tools-native"
-PR = "r2"
+PR = "r3"
 
 inherit xfce pythonnative perlnative
 
@@ -37,4 +37,7 @@ FILES_${PN} += "${datadir}/xfce4/ \
 FILES_${PN}-dbg += "${libdir}/gio/modules/.debug \
                    "
 
+FILES_${PN}-dev += "${bindir}/gio/exo-csource \
+                   "
+
 BBCLASSEXTEND = "native"
--
Quoted 2 lines

1.7.4.4

This was not properly tested - exo-csource is still installed - will send V4. That'll remove the unused gnome-mount-wrapper too.

Andreas

#5 lore raw

PATCH v3 4/5 xfce4-closebutton-plugin: initial add

In reply to Andreas Müller

I do not have the environment and the time to create a tarball, so take sources from my git repo.

---
 .../closebutton/xfce4-closebutton-plugin_git.bb    |   22 ++++++++++++++++++++
 1 files changed, 22 insertions(+), 0 deletions(-)
 create mode 100644 meta-xfce/recipes-panel-plugins/closebutton/xfce4-closebutton-plugin_git.bb
meta-xfce/recipes-panel-plugins/closebutton/xfce4-closebutton-plugin_git.bb new file +22 -0
new file mode 100644
index 0000000..879d1d6
@@ -0,0 +1,22 @@
+DESCRIPTION = "Plugin displaying close button for application currently active"
+SECTION = "x11"
+LICENSE = "GPLv2"
+LIC_FILES_CHKSUM = "file://COPYING;md5=b6952d9a47fc2ad0f315510e1290455f"
+
+inherit xfce-panel-plugin gtk-icon-cache perlnative
+
+DEPENDS += "exo-native libwnck xfconf"
+
+PV = "0.1.0+gitr${SRCPV}"
+
+SRC_URI = "git://gitorious.org/xfce/xfce4-closebutton-plugin.git;protocol=git;branch=master"
+SRCREV = "bd76154afe26ba8a5251a1887d88f9d855301850"
+S = "${WORKDIR}/git"
+
+EXTRA_OECONF += "--enable-maintainer-mode"
+
+do_configure_prepend() {
+	NOCONFIGURE=yes ./autogen.sh
+}
+
+FILES_${PN} += "${datadir}/xfce4/closebutton/themes"
Signature · 1 line
1.7.4.4
#6 lore raw

PATCH v3 5/5 packagegroup-xfce-extended: add xfce4-closebutton-plugin

In reply to Andreas Müller
---
 .../packagegroups/packagegroup-xfce-extended.bb    |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
meta-xfce/recipes-xfce/packagegroups/packagegroup-xfce-extended.bb +2 -1
index a771bc4..7ee65f6 100644
@@ -3,7 +3,7 @@ SECTION = "x11/wm"
 LICENSE = "MIT"
 LIC_FILES_CHKSUM = "file://${COREBASE}/LICENSE;md5=3f40d7994397109285ec7b81fdeb3b58"
 
-PR = "r8"
+PR = "r9"
 
 inherit packagegroup
 
@@ -41,6 +41,7 @@ RRECOMMENDS_${PN} = " \
     xfce4-battery-plugin \
     xfce4-mount-plugin \
     xfce4-brightness-plugin \
+    xfce4-closebutton-plugin \
     \
     xfce4-appfinder \
     xfce4-screenshooter \
Signature · 1 line
1.7.4.4