Skip to contentSkip to conversation

icewm: add recipe

PATCH Superseded Naveen Saini 3 participants 5 messages Jul 29, 2019 – Jul 30, 2019

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 icewm: add recipe

From: "Yong, Jonathan" <[email protected]>

IceWM is a window manager for the X Window System.

The goal of IceWM is to provide speed and simplicity.

It comes with a taskbar with pager, global and per-window keybindings and a dynamic menu system.

Website:
https://ice-wm.org/

Manual:
https://ice-wm.org/manual/

Themes Howto
https://ice-wm.org/themes/

---
 ...p-running-test-program-when-cross-co.patch | 39 ++++++++++++++++++
 meta-oe/recipes-extended/icewm/icewm_1.5.5.bb | 40 +++++++++++++++++++
 2 files changed, 79 insertions(+)
 create mode 100644 meta-oe/recipes-extended/icewm/icewm/0001-configure.ac-skip-running-test-program-when-cross-co.patch
 create mode 100644 meta-oe/recipes-extended/icewm/icewm_1.5.5.bb
meta-oe/recipes-extended/icewm/icewm/0001-configure.ac-skip-running-test-program-when-cross-co.patch new file +39 -0
new file mode 100644
index 000000000..98fd78c5c
@@ -0,0 +1,39 @@
+From 84620376d568c2c5e3ebd4f33de9793c68a36463 Mon Sep 17 00:00:00 2001
+From: Naveen Saini <[email protected]>
+Date: Mon, 22 Jul 2019 16:17:19 +0800
+Subject: [PATCH] configure.ac: skip running test program when cross-compiling
+
+Modified patch from Yong, Jonathan.
+
+Upstream-Status: Inappropriate [OE-Specific]
+
+Signed-off-by: Yong, Jonathan <[email protected]>
+Signed-off-by: Naveen Saini <[email protected]>
+---
+ configure.ac | 3 ++-
+ 1 file changed, 2 insertions(+), 1 deletion(-)
+
+diff --git a/configure.ac b/configure.ac
+index c5e3ca03..61d2d5a0 100644
+--- a/configure.ac
++++ b/configure.ac
+@@ -139,6 +139,7 @@ AC_CHECK_FUNCS([sysctl sysctlbyname sysinfo uname wordexp])
+ AC_CHECK_FUNC([getloadavg],[AC_DEFINE([HAVE_GETLOADAVG2], 1, [getloadavg() is available])])
+ AC_FUNC_SELECT_ARGTYPES
+ 
++if test "$cross_compiling" = no ; then
+ AC_MSG_CHECKING([for strlcpy])
+ AC_RUN_IFELSE([AC_LANG_PROGRAM([[#include <string.h>]],[[
+                char a[2];
+@@ -170,7 +171,7 @@ AC_RUN_IFELSE([AC_LANG_PROGRAM([[#include <string.h>]],[[
+                AH_TEMPLATE([HAVE_STRLCAT],
+                            [Define to 1 if you have the strlcat function.])
+               ])
+-
++fi
+ 
+ PKG_CHECK_MODULES([CORE],[fontconfig xext x11])
+ AC_SUBST([CORE_CFLAGS])
+-- 
+2.17.1
+
meta-oe/recipes-extended/icewm/icewm_1.5.5.bb new file +40 -0
new file mode 100644
index 000000000..db81021d0
@@ -0,0 +1,40 @@
+DESCRIPTION = "Ice Window Manager (IceWM)"
+LICENSE = "GPLv2"
+LIC_FILES_CHKSUM = "file://COPYING;md5=4a26952467ef79a7efca4a9cf52d417b"
+
+SRC_URI = "https://github.com/ice-wm/${BPN}/releases/download/${PV}/${BPN}-${PV}.tar.xz \
+           file://0001-configure.ac-skip-running-test-program-when-cross-co.patch \
+           "
+SRC_URI[md5sum] = "6eba94a7935a0531d2c14eeb1426aeef"
+SRC_URI[sha256sum] = "f1c1344b20a9e8635143f70ee27930b55f813c15ca61f84d77584d311b6ac027"
+
+inherit autotools pkgconfig gettext perlnative distro_features_check qemu
+REQUIRED_DISTRO_FEATURES = "x11"
+
+EXTRA_OECONF += "--with-libdir=${datadir}/icewm \
+                --with-cfgdir=${sysconfdir}/icewm \
+                --with-docdir=${docdir}/icewm \
+                --enable-fribidi \
+                --enable-xinerama \
+                --enable-shape"
+
+DEPENDS = "asciidoc-native gdk-pixbuf libxft libxpm libxrandr libxinerama"
+DEPENDS_append = " qemu-native"
+RDEPENDS_${PN} = "perl"
+
+do_compile_prepend_class-target() {
+
+    cd ${B}
+    oe_runmake -C src genpref
+
+    qemu_binary="${@qemu_wrapper_cmdline(d, '${STAGING_DIR_TARGET}',['$PWD/src/.libs','$STAGING_DIR_HOST/${libdir}','$STAGING_DIR_HOST/${base_libdir}'])}"
+    cat >qemuwrapper <<EOF
+#!/bin/sh
+${qemu_binary} src/genpref "\$@"
+EOF
+    chmod +x qemuwrapper
+    ./qemuwrapper > src/preferences
+}
+
+
+FILES_${PN} += "${datadir}/xsessions"
Signature · 1 line
2.17.1
#1 lore raw

Add multiple Signed-off. Please ignore.

I will send another version.

Quoted 121 lines · Naveen Saini

From: "Yong, Jonathan" <[email protected]>

IceWM is a window manager for the X Window System.

The goal of IceWM is to provide speed and simplicity.

It comes with a taskbar with pager, global and per-window keybindings and a dynamic menu system.

Website:
https://ice-wm.org/

Manual:
https://ice-wm.org/manual/

Themes Howto
https://ice-wm.org/themes/

---
  ...p-running-test-program-when-cross-co.patch | 39 ++++++++++++++++++
  meta-oe/recipes-extended/icewm/icewm_1.5.5.bb | 40 +++++++++++++++++++
  2 files changed, 79 insertions(+)

create mode 100644 meta-oe/recipes-extended/icewm/icewm/0001-configure.ac-skip-running-test-program-when-cross-co.patch create mode 100644 meta-oe/recipes-extended/icewm/icewm_1.5.5.bb

meta-oe/recipes-extended/icewm/icewm/0001-configure.ac-skip-running-test-program-when-cross-co.patch new file +39 -0
new file mode 100644
index 000000000..98fd78c5c
@@ -0,0 +1,39 @@
+From 84620376d568c2c5e3ebd4f33de9793c68a36463 Mon Sep 17 00:00:00 2001
+From: Naveen Saini <[email protected]>
+Date: Mon, 22 Jul 2019 16:17:19 +0800
+Subject: [PATCH] configure.ac: skip running test program when cross-compiling
+
+Modified patch from Yong, Jonathan.
+
+Upstream-Status: Inappropriate [OE-Specific]
+
+Signed-off-by: Yong, Jonathan <[email protected]>
+Signed-off-by: Naveen Saini <[email protected]>
+---
+ configure.ac | 3 ++-
+ 1 file changed, 2 insertions(+), 1 deletion(-)
+
+diff --git a/configure.ac b/configure.ac
+index c5e3ca03..61d2d5a0 100644
+--- a/configure.ac
++++ b/configure.ac
+@@ -139,6 +139,7 @@ AC_CHECK_FUNCS([sysctl sysctlbyname sysinfo uname wordexp])
+ AC_CHECK_FUNC([getloadavg],[AC_DEFINE([HAVE_GETLOADAVG2], 1, [getloadavg() is available])])
+ AC_FUNC_SELECT_ARGTYPES
+
++if test "$cross_compiling" = no ; then
+ AC_MSG_CHECKING([for strlcpy])
+ AC_RUN_IFELSE([AC_LANG_PROGRAM([[#include <string.h>]],[[
+                char a[2];
+@@ -170,7 +171,7 @@ AC_RUN_IFELSE([AC_LANG_PROGRAM([[#include <string.h>]],[[
+                AH_TEMPLATE([HAVE_STRLCAT],
+                            [Define to 1 if you have the strlcat function.])
+               ])
+-
++fi
+
+ PKG_CHECK_MODULES([CORE],[fontconfig xext x11])
+ AC_SUBST([CORE_CFLAGS])
+--
+2.17.1
+
meta-oe/recipes-extended/icewm/icewm_1.5.5.bb new file +40 -0
new file mode 100644
index 000000000..db81021d0
@@ -0,0 +1,40 @@
+DESCRIPTION = "Ice Window Manager (IceWM)"
+LICENSE = "GPLv2"
+LIC_FILES_CHKSUM = "file://COPYING;md5=4a26952467ef79a7efca4a9cf52d417b"
+
+SRC_URI = "https://github.com/ice-wm/${BPN}/releases/download/${PV}/${BPN}-${PV}.tar.xz \
+           file://0001-configure.ac-skip-running-test-program-when-cross-co.patch \
+           "
+SRC_URI[md5sum] = "6eba94a7935a0531d2c14eeb1426aeef"
+SRC_URI[sha256sum] = "f1c1344b20a9e8635143f70ee27930b55f813c15ca61f84d77584d311b6ac027"
+
+inherit autotools pkgconfig gettext perlnative distro_features_check qemu
+REQUIRED_DISTRO_FEATURES = "x11"
+
+EXTRA_OECONF += "--with-libdir=${datadir}/icewm \
+                --with-cfgdir=${sysconfdir}/icewm \
+                --with-docdir=${docdir}/icewm \
+                --enable-fribidi \
+                --enable-xinerama \
+                --enable-shape"
+
+DEPENDS = "asciidoc-native gdk-pixbuf libxft libxpm libxrandr libxinerama"
+DEPENDS_append = " qemu-native"
+RDEPENDS_${PN} = "perl"
+
+do_compile_prepend_class-target() {
+
+    cd ${B}
+    oe_runmake -C src genpref
+
+    qemu_binary="${@qemu_wrapper_cmdline(d, '${STAGING_DIR_TARGET}',['$PWD/src/.libs','$STAGING_DIR_HOST/${libdir}','$STAGING_DIR_HOST/${base_libdir}'])}"
+    cat >qemuwrapper <<EOF
+#!/bin/sh
+${qemu_binary} src/genpref "\$@"
+EOF
+    chmod +x qemuwrapper
+    ./qemuwrapper > src/preferences
+}
+
+
+FILES_${PN} += "${datadir}/xsessions"
#2 lore raw
In reply to Naveen Saini
Quoted 88 lines · Naveen Saini

From: "Yong, Jonathan" <[email protected]>

IceWM is a window manager for the X Window System.

The goal of IceWM is to provide speed and simplicity.

It comes with a taskbar with pager, global and per-window keybindings and a dynamic menu system.

Website:
https://ice-wm.org/

Manual:
https://ice-wm.org/manual/

Themes Howto
https://ice-wm.org/themes/

---
 ...p-running-test-program-when-cross-co.patch | 39 ++++++++++++++++++
 meta-oe/recipes-extended/icewm/icewm_1.5.5.bb | 40 +++++++++++++++++++
 2 files changed, 79 insertions(+)
 create mode 100644 meta-oe/recipes-extended/icewm/icewm/0001-configure.ac-skip-running-test-program-when-cross-co.patch
 create mode 100644 meta-oe/recipes-extended/icewm/icewm_1.5.5.bb
meta-oe/recipes-extended/icewm/icewm/0001-configure.ac-skip-running-test-program-when-cross-co.patch new file +39 -0
new file mode 100644
index 000000000..98fd78c5c
@@ -0,0 +1,39 @@
+From 84620376d568c2c5e3ebd4f33de9793c68a36463 Mon Sep 17 00:00:00 2001
+From: Naveen Saini <[email protected]>
+Date: Mon, 22 Jul 2019 16:17:19 +0800
+Subject: [PATCH] configure.ac: skip running test program when cross-compiling
+
+Modified patch from Yong, Jonathan.
+
+Upstream-Status: Inappropriate [OE-Specific]
+
+Signed-off-by: Yong, Jonathan <[email protected]>
+Signed-off-by: Naveen Saini <[email protected]>
+---
+ configure.ac | 3 ++-
+ 1 file changed, 2 insertions(+), 1 deletion(-)
+
+diff --git a/configure.ac b/configure.ac
+index c5e3ca03..61d2d5a0 100644
+--- a/configure.ac
++++ b/configure.ac
+@@ -139,6 +139,7 @@ AC_CHECK_FUNCS([sysctl sysctlbyname sysinfo uname wordexp])
+ AC_CHECK_FUNC([getloadavg],[AC_DEFINE([HAVE_GETLOADAVG2], 1, [getloadavg() is available])])
+ AC_FUNC_SELECT_ARGTYPES
+
++if test "$cross_compiling" = no ; then
+ AC_MSG_CHECKING([for strlcpy])
+ AC_RUN_IFELSE([AC_LANG_PROGRAM([[#include <string.h>]],[[
+                char a[2];
+@@ -170,7 +171,7 @@ AC_RUN_IFELSE([AC_LANG_PROGRAM([[#include <string.h>]],[[
+                AH_TEMPLATE([HAVE_STRLCAT],
+                            [Define to 1 if you have the strlcat function.])
+               ])
+-
++fi
+
+ PKG_CHECK_MODULES([CORE],[fontconfig xext x11])
+ AC_SUBST([CORE_CFLAGS])
+--
+2.17.1
+
meta-oe/recipes-extended/icewm/icewm_1.5.5.bb new file +7 -0
new file mode 100644
index 000000000..db81021d0
@@ -0,0 +1,40 @@
+DESCRIPTION = "Ice Window Manager (IceWM)"
+LICENSE = "GPLv2"
+LIC_FILES_CHKSUM = "file://COPYING;md5=4a26952467ef79a7efca4a9cf52d417b"
+
+SRC_URI = "https://github.com/ice-wm/${BPN}/releases/download/${PV}/${BPN}-${PV}.tar.xz \
+           file://0001-configure.ac-skip-running-test-program-when-cross-co.patch \
+           "

meta-oe/recipes-extended/icewm/icewm_1.5.5.bb line 17

Quoted 10 lines
meta-oe/recipes-extended/icewm/icewm_1.5.5.bb new file +10 -0
+SRC_URI[md5sum] = "6eba94a7935a0531d2c14eeb1426aeef"
+SRC_URI[sha256sum] = "f1c1344b20a9e8635143f70ee27930b55f813c15ca61f84d77584d311b6ac027"
+
+inherit autotools pkgconfig gettext perlnative distro_features_check qemu
+REQUIRED_DISTRO_FEATURES = "x11"
+
+EXTRA_OECONF += "--with-libdir=${datadir}/icewm \
+                --with-cfgdir=${sysconfdir}/icewm \
+                --with-docdir=${docdir}/icewm \
+                --enable-fribidi \

libfribidi is not in rdeps, so I wonder if this will fail during runtime.

meta-oe/recipes-extended/icewm/icewm_1.5.5.bb line 30

Quoted 13 lines
meta-oe/recipes-extended/icewm/icewm_1.5.5.bb new file +13 -0
+                --enable-xinerama \
+                --enable-shape"
+
+DEPENDS = "asciidoc-native gdk-pixbuf libxft libxpm libxrandr libxinerama"
+DEPENDS_append = " qemu-native"
+RDEPENDS_${PN} = "perl"
+
+do_compile_prepend_class-target() {
+
+    cd ${B}
+    oe_runmake -C src genpref
+
+    qemu_binary="${@qemu_wrapper_cmdline(d, '${STAGING_DIR_TARGET}',['$PWD/src/.libs','$STAGING_DIR_HOST/${libdir}','$STAGING_DIR_HOST/${base_libdir}'])}"

using PWD is not advised, probably you can construct it by using S or B

Quoted 18 lines
meta-oe/recipes-extended/icewm/icewm_1.5.5.bb new file +10 -1
+    cat >qemuwrapper <<EOF
+#!/bin/sh
+${qemu_binary} src/genpref "\$@"
+EOF
+    chmod +x qemuwrapper
+    ./qemuwrapper > src/preferences
+}
+
+
+FILES_${PN} += "${datadir}/xsessions"
--

2.17.1

--
_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-devel

#3 lore raw

fails to build with aarch64/musl see

https://errors.yoctoproject.org/Errors/Details/255459/

Quoted 138 lines · Khem Raj
Quoted 88 lines · Naveen Saini

From: "Yong, Jonathan" <[email protected]>

IceWM is a window manager for the X Window System.

The goal of IceWM is to provide speed and simplicity.

It comes with a taskbar with pager, global and per-window keybindings and a dynamic menu system.

Website:
https://ice-wm.org/

Manual:
https://ice-wm.org/manual/

Themes Howto
https://ice-wm.org/themes/

---
 ...p-running-test-program-when-cross-co.patch | 39 ++++++++++++++++++
 meta-oe/recipes-extended/icewm/icewm_1.5.5.bb | 40 +++++++++++++++++++
 2 files changed, 79 insertions(+)
 create mode 100644 meta-oe/recipes-extended/icewm/icewm/0001-configure.ac-skip-running-test-program-when-cross-co.patch
 create mode 100644 meta-oe/recipes-extended/icewm/icewm_1.5.5.bb
meta-oe/recipes-extended/icewm/icewm/0001-configure.ac-skip-running-test-program-when-cross-co.patch new file +39 -0
new file mode 100644
index 000000000..98fd78c5c
@@ -0,0 +1,39 @@
+From 84620376d568c2c5e3ebd4f33de9793c68a36463 Mon Sep 17 00:00:00 2001
+From: Naveen Saini <[email protected]>
+Date: Mon, 22 Jul 2019 16:17:19 +0800
+Subject: [PATCH] configure.ac: skip running test program when cross-compiling
+
+Modified patch from Yong, Jonathan.
+
+Upstream-Status: Inappropriate [OE-Specific]
+
+Signed-off-by: Yong, Jonathan <[email protected]>
+Signed-off-by: Naveen Saini <[email protected]>
+---
+ configure.ac | 3 ++-
+ 1 file changed, 2 insertions(+), 1 deletion(-)
+
+diff --git a/configure.ac b/configure.ac
+index c5e3ca03..61d2d5a0 100644
+--- a/configure.ac
++++ b/configure.ac
+@@ -139,6 +139,7 @@ AC_CHECK_FUNCS([sysctl sysctlbyname sysinfo uname wordexp])
+ AC_CHECK_FUNC([getloadavg],[AC_DEFINE([HAVE_GETLOADAVG2], 1, [getloadavg() is available])])
+ AC_FUNC_SELECT_ARGTYPES
+
++if test "$cross_compiling" = no ; then
+ AC_MSG_CHECKING([for strlcpy])
+ AC_RUN_IFELSE([AC_LANG_PROGRAM([[#include <string.h>]],[[
+                char a[2];
+@@ -170,7 +171,7 @@ AC_RUN_IFELSE([AC_LANG_PROGRAM([[#include <string.h>]],[[
+                AH_TEMPLATE([HAVE_STRLCAT],
+                            [Define to 1 if you have the strlcat function.])
+               ])
+-
++fi
+
+ PKG_CHECK_MODULES([CORE],[fontconfig xext x11])
+ AC_SUBST([CORE_CFLAGS])
+--
+2.17.1
+
meta-oe/recipes-extended/icewm/icewm_1.5.5.bb new file +7 -0
new file mode 100644
index 000000000..db81021d0
@@ -0,0 +1,40 @@
+DESCRIPTION = "Ice Window Manager (IceWM)"
+LICENSE = "GPLv2"
+LIC_FILES_CHKSUM = "file://COPYING;md5=4a26952467ef79a7efca4a9cf52d417b"
+
+SRC_URI = "https://github.com/ice-wm/${BPN}/releases/download/${PV}/${BPN}-${PV}.tar.xz \
+           file://0001-configure.ac-skip-running-test-program-when-cross-co.patch \
+           "

meta-oe/recipes-extended/icewm/icewm_1.5.5.bb line 17

Quoted 10 lines
meta-oe/recipes-extended/icewm/icewm_1.5.5.bb new file +10 -0
+SRC_URI[md5sum] = "6eba94a7935a0531d2c14eeb1426aeef"
+SRC_URI[sha256sum] = "f1c1344b20a9e8635143f70ee27930b55f813c15ca61f84d77584d311b6ac027"
+
+inherit autotools pkgconfig gettext perlnative distro_features_check qemu
+REQUIRED_DISTRO_FEATURES = "x11"
+
+EXTRA_OECONF += "--with-libdir=${datadir}/icewm \
+                --with-cfgdir=${sysconfdir}/icewm \
+                --with-docdir=${docdir}/icewm \
+                --enable-fribidi \

libfribidi is not in rdeps, so I wonder if this will fail during runtime.

meta-oe/recipes-extended/icewm/icewm_1.5.5.bb line 30

Quoted 13 lines
meta-oe/recipes-extended/icewm/icewm_1.5.5.bb new file +13 -0
+                --enable-xinerama \
+                --enable-shape"
+
+DEPENDS = "asciidoc-native gdk-pixbuf libxft libxpm libxrandr libxinerama"
+DEPENDS_append = " qemu-native"
+RDEPENDS_${PN} = "perl"
+
+do_compile_prepend_class-target() {
+
+    cd ${B}
+    oe_runmake -C src genpref
+
+    qemu_binary="${@qemu_wrapper_cmdline(d, '${STAGING_DIR_TARGET}',['$PWD/src/.libs','$STAGING_DIR_HOST/${libdir}','$STAGING_DIR_HOST/${base_libdir}'])}"

using PWD is not advised, probably you can construct it by using S or B

Quoted 18 lines
meta-oe/recipes-extended/icewm/icewm_1.5.5.bb new file +10 -1
+    cat >qemuwrapper <<EOF
+#!/bin/sh
+${qemu_binary} src/genpref "\$@"
+EOF
+    chmod +x qemuwrapper
+    ./qemuwrapper > src/preferences
+}
+
+
+FILES_${PN} += "${datadir}/xsessions"
--

2.17.1

--
_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-devel

#4 lore raw

Probably better to reduce it to a compile and link test instead of outright skipping the strlcat runtime test.

-----Original Message-----
From: [email protected] [mailto:[email protected]] On Behalf Of Khem Raj
Sent: Monday, July 29, 2019 22:39
To: Saini, Naveen Kumar <[email protected]>
Cc: openembeded-devel <[email protected]>
Subject: Re: [oe] [PATCH] icewm: add recipe

fails to build with aarch64/musl see

https://errors.yoctoproject.org/Errors/Details/255459/