mirror of
https://github.com/Ponce/slackbuilds
synced 2024-11-18 22:06:04 +01:00
development/gtkdialog: Updated for version 0.7.20
This commit is contained in:
parent
8d9e7eff31
commit
ebe06dfc07
3 changed files with 30 additions and 2 deletions
|
@ -0,0 +1,22 @@
|
|||
Submitted By: David B. Cortarello (Nomius) <nomius at users dot berlios dot de>
|
||||
Date: 13-08-2008
|
||||
Initial Package Version: 0.7.20
|
||||
Description: The patch was created from the original mpd package
|
||||
This patch provides the following features:
|
||||
* Fix infinite loop caused by continue sentence out of frame.
|
||||
|
||||
diff -Naur gtkdialog-0.7.20.orig/src/variables.c gtkdialog-0.7.20/src/variables.c
|
||||
--- gtkdialog-0.7.20.orig/src/variables.c 2007-03-16 11:25:48.000000000 -0300
|
||||
+++ gtkdialog-0.7.20/src/variables.c 2008-08-13 23:13:32.000000000 -0300
|
||||
@@ -627,9 +627,10 @@
|
||||
itemlist = GTK_LIST(actual->Widget)->children;
|
||||
n = 0;
|
||||
while (itemlist != NULL) {
|
||||
- if (itemlist->data == NULL)
|
||||
+ if (itemlist->data == NULL) {
|
||||
itemlist = itemlist->next;
|
||||
continue;
|
||||
+ }
|
||||
text = gtk_object_get_user_data(itemlist->data);
|
||||
if (n == 0)
|
||||
tmp = g_strconcat(line, "'", text, "'", NULL);
|
|
@ -7,7 +7,7 @@
|
|||
PRGNAM=gtkdialog
|
||||
VERSION=0.7.20
|
||||
ARCH=${ARCH:-i486}
|
||||
BUILD=${BUILD:-1}
|
||||
BUILD=${BUILD:-2}
|
||||
TAG=${TAG:-_SBo}
|
||||
|
||||
CWD=$(pwd)
|
||||
|
@ -19,6 +19,8 @@ if [ "$ARCH" = "i486" ]; then
|
|||
SLKCFLAGS="-O2 -march=i486 -mtune=i686"
|
||||
elif [ "$ARCH" = "i686" ]; then
|
||||
SLKCFLAGS="-O2 -march=i686 -mtune=i686"
|
||||
elif [ "$ARCH" = "x86_64" ]; then
|
||||
SLKCFLAGS="-O2 -fPIC"
|
||||
fi
|
||||
|
||||
set -e
|
||||
|
@ -36,6 +38,10 @@ find . \
|
|||
\( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 \
|
||||
-o -perm 400 \) -exec chmod 644 {} \;
|
||||
|
||||
# Fix an infinite loop caused by a pair of statements not being contained in
|
||||
# braces. Thanks to David B. Cortarello
|
||||
patch -p1 < $CWD/gtkdialog-0.7.20-variables-export-fix.patch
|
||||
|
||||
CFLAGS="$SLKCFLAGS" CXXFLAGS="$SLKCFLAGS" ./configure --prefix=/usr
|
||||
make
|
||||
make DESTDIR=$PKG install-strip
|
||||
|
|
|
@ -5,4 +5,4 @@ DOWNLOAD="ftp://linux.pte.hu/pub/gtkdialog/gtkdialog-0.7.20.tar.gz"
|
|||
MD5SUM="597103b3ec575dd7af9e84931a62c532"
|
||||
MAINTAINER="slakmagik"
|
||||
EMAIL="jsun@freeshell.org"
|
||||
APPROVED="rworkman"
|
||||
APPROVED="David Somero"
|
Loading…
Reference in a new issue