Here is a fix I found for Gourmet. Because of changes to Python since
Slack 14.1, the ability to enter and edit recipes was broken. Like with
pokerth, I tried to email the maintainer in the .info file, but have
never received a response. So I am posting the diff here in the hope
you can use it. This is only needed with 14.2 and later.
----------------------------------- begin
-------------------------------------------
diff -Naur gourmet/gourmet.SlackBuild gourmet-patched/gourmet.SlackBuild
--- gourmet/gourmet.SlackBuild 2016-05-25 20:29:41.000000000 -0400
+++ gourmet-patched/gourmet.SlackBuild 2016-11-13 10:19:16.595150351
-0500
@@ -24,7 +24,7 @@
PRGNAM=gourmet
VERSION=${VERSION:-0.17.4}
-BUILD=${BUILD:-1}
+BUILD=${BUILD:-2}
TAG=${TAG:-_SBo}
if [ -z "$ARCH" ]; then
@@ -69,6 +69,9 @@
\( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \
-o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
+# Patch to replace removed tostring() with tobytes()
+patch -p1 < $CWD/tostring-to-tobytes.patch
+
python setup.py install --root=$PKG
find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared
object" | grep ELF \
diff -Naur gourmet/gourmet.info gourmet-patched/gourmet.info
--- gourmet/gourmet.info 2016-05-25 20:29:41.000000000 -0400
+++ gourmet-patched/gourmet.info 2016-11-13 10:56:56.131303754 -0500
@@ -5,6 +5,6 @@
MD5SUM="937334364abc3093709a604c1d473e9f"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""
-REQUIRES="SQLAlchemy python-distutils-extra reportlab pygtkspell
gst0-python python-elib.intl"
+REQUIRES="SQLAlchemy lxml python-distutils-extra reportlab pygtkspell
gst0-python python-elib.intl"
MAINTAINER="Erwin van Zanten"
EMAIL="e.van.zanten....@gmail.com"
diff -Naur gourmet/tostring-to-tobytes.patch
gourmet-patched/tostring-to-tobytes.patch
--- gourmet/tostring-to-tobytes.patch 1969-12-31 19:00:00.000000000 -0500
+++ gourmet-patched/tostring-to-tobytes.patch 2016-11-13
10:09:20.452109878 -0500
@@ -0,0 +1,26 @@
+diff --git a/gourmet/gtk_extras/ratingWidget.py
b/gourmet/gtk_extras/ratingWidget.py
+index 0e01735..efa6463 100644
+--- a/gourmet/gtk_extras/ratingWidget.py
++++ b/gourmet/gtk_extras/ratingWidget.py
+@@ -135,7 +135,7 @@ class StarGenerator:
+ if is_rgba: rowstride = 4
+ else: rowstride = 3
+ pb=gtk.gdk.pixbuf_new_from_data(
+- image.tostring(),
++ image.tobytes(),
+ gtk.gdk.COLORSPACE_RGB,
+ is_rgba,
+ 8,
+diff --git a/gourmet/plugins/browse_recipes/icon_helpers.py
b/gourmet/plugins/browse_recipes/icon_helpers.py
+index 61c772c..2e7b08b 100644
+--- a/gourmet/plugins/browse_recipes/icon_helpers.py
++++ b/gourmet/plugins/browse_recipes/icon_helpers.py
+@@ -38,7 +38,7 @@ def get_pixbuf_from_image (image):
+ if is_rgba: rowstride = 4
+ else: rowstride = 3
+ pb=gtk.gdk.pixbuf_new_from_data(
+- image.tostring(),
++ image.tobytes(),
+ gtk.gdk.COLORSPACE_RGB,
+ is_rgba,
+ 8,
------------------------------------ end
--------------------------------------------
_______________________________________________
SlackBuilds-users mailing list
SlackBuilds-users@slackbuilds.org
http://lists.slackbuilds.org/mailman/listinfo/slackbuilds-users
Archives - https://lists.slackbuilds.org/pipermail/slackbuilds-users/
FAQ - https://slackbuilds.org/faq/