From b91fb0d153269e0ffeb94ab149db4539656f3355 Mon Sep 17 00:00:00 2001 From: dsainty Date: Thu, 15 May 2014 21:40:11 +0000 Subject: The icon-theme-installer tool makes use of a GNU sed extension, and so behaves incorrectly on many platforms (E.g. NetBSD) https://bugs.launchpad.net/geda/+bug/1319785 Fixes build on Linux, corrects icon file names on NetBSD and others. Bump PKGREVISION. Discussed with dmcmahill@ - but as we're both right-thinking people that understand that desktop icons are for pussies, strictly speaking this has been build-tested and brain-tested only. --- .../patches/patch-build-tools_icon-theme-installer | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 cad/geda/patches/patch-build-tools_icon-theme-installer (limited to 'cad/geda/patches') diff --git a/cad/geda/patches/patch-build-tools_icon-theme-installer b/cad/geda/patches/patch-build-tools_icon-theme-installer new file mode 100644 index 00000000000..a5375ad7348 --- /dev/null +++ b/cad/geda/patches/patch-build-tools_icon-theme-installer @@ -0,0 +1,18 @@ +$NetBSD: patch-build-tools_icon-theme-installer,v 1.3 2014/05/15 21:40:11 dsainty Exp $ + +The icon-theme-installer tool makes use of a GNU sed extension, and so +behaves incorrectly on many platforms (E.g. NetBSD) + +https://bugs.launchpad.net/geda/+bug/1319785 + +--- build-tools/icon-theme-installer.orig 2012-12-18 00:04:20.000000000 +1300 ++++ build-tools/icon-theme-installer 2014-05-15 23:14:31.969393769 +1200 +@@ -121,7 +121,7 @@ + size=`echo $icon | sed -n 's/.*-\([0-9]*\).*/\1/p'` + category=`echo $icon | cut -d, -f1` + build_name=`echo $icon | cut -d, -f2` +- install_name=`echo $build_name | sed 's/-[0-9]\+//g'` ++ install_name=`echo $build_name | sed 's/-[0-9][0-9]*//g'` + install_name=`basename $install_name` + + if test -z $size; then -- cgit v1.2.3