From 1436cf46ebaa5e905c2ea76b9934941a302796a7 Mon Sep 17 00:00:00 2001 From: Andreas Baumann Date: Wed, 6 Jun 2018 20:30:47 +0200 Subject: extra/icewm: readded patch, so it compiles, segfault are not related --- extra/icewm/PKGBUILD | 9 +++++++++ extra/icewm/icewm-1.3.8-narrowing-casts.patch | 21 +++++++++++++++++++++ 2 files changed, 30 insertions(+) create mode 100644 extra/icewm/PKGBUILD create mode 100644 extra/icewm/icewm-1.3.8-narrowing-casts.patch diff --git a/extra/icewm/PKGBUILD b/extra/icewm/PKGBUILD new file mode 100644 index 00000000..af9cda66 --- /dev/null +++ b/extra/icewm/PKGBUILD @@ -0,0 +1,9 @@ +source+=('icewm-1.3.8-narrowing-casts.patch') +sha1sums+=('d8a296356884a3318f2436c035425e22bf94f15c') + +eval "$( + declare -f prepare | \ + sed ' + /remain_power.patch/a patch -Np1 -i ${srcdir}/icewm-1.3.8-narrowing-casts.patch + ' +)" diff --git a/extra/icewm/icewm-1.3.8-narrowing-casts.patch b/extra/icewm/icewm-1.3.8-narrowing-casts.patch new file mode 100644 index 00000000..7912d6ae --- /dev/null +++ b/extra/icewm/icewm-1.3.8-narrowing-casts.patch @@ -0,0 +1,21 @@ +diff -rauN icewm-1.3.8/src/icesh.cc icewm-1.3.8-narrowing-casts-patch/src/icesh.cc +--- icewm-1.3.8/src/icesh.cc 2013-11-17 17:54:39.000000000 +0100 ++++ icewm-1.3.8-narrowing-casts-patch/src/icesh.cc 2018-06-06 17:03:27.154963162 +0200 +@@ -245,7 +245,7 @@ + }; + + SymbolTable layers = { +- layerIdentifiers, 0, WinLayerCount - 1, WinLayerInvalid ++ layerIdentifiers, 0, WinLayerCount - 1, (long int)WinLayerInvalid + }; + + SymbolTable states = { +@@ -257,7 +257,7 @@ + }; + + SymbolTable trayOptions = { +- trayOptionIdentifiers, 0, WinTrayOptionCount - 1, WinTrayInvalid ++ trayOptionIdentifiers, 0, WinTrayOptionCount - 1, (long int)WinTrayInvalid + }; + + /******************************************************************************/ -- cgit v1.2.3-70-g09d2