Package: gtkdialog Version: 2:0.7.20-2 Severity: minor Tags: patch User: [EMAIL PROTECTED] Usertags: origin-ubuntu hardy ubuntu-patch
gtkdialog has a bashism in system with /bin/sh linked to /bin/dash which causes weird errors: sh: source: not found ** ERROR **: GtkDialog: Could not find the dialog description in the environment variable 'MAIN_DIALOG'. aborting... Aborted (core dumped) In Ubuntu, we've applied the attached patch to achieve the following: * debian/patches/01_bashism.dpatch: - Replace 'source' with '.' to be compatible with dash (LP: #177093) Even if Debian is not directly affected, we thought you might be interested in doing the same for compatibility purposes. See https://launchpad.net/bugs/177093 for additional informations. -- System Information: Debian Release: lenny/sid APT prefers gutsy-updates APT policy: (500, 'gutsy-updates'), (500, 'gutsy-security'), (500, 'gutsy-backports'), (500, 'gutsy') Architecture: i386 (i686) Kernel: Linux 2.6.22-14-generic (SMP w/1 CPU core) Locale: LANG=it_IT.UTF-8, LC_CTYPE=it_IT.UTF-8 (charmap=UTF-8) Shell: /bin/sh linked to /bin/dash
--- gtkdialog-0.7.20.orig/debian/patches/01_bashism.dpatch +++ gtkdialog-0.7.20/debian/patches/01_bashism.dpatch @@ -0,0 +1,41 @@ +#! /bin/sh /usr/share/dpatch/dpatch-run +## 01_bashism.dpatch by Luca Falavigna <[EMAIL PROTECTED]> +## DP: Replace 'source' with '.' to be compatible with dash. + [EMAIL PROTECTED]@ +diff -urNad gtkdialog-0.7.20~/src/actions.c gtkdialog-0.7.20/src/actions.c +--- gtkdialog-0.7.20~/src/actions.c 2007-03-16 15:25:49.000000000 +0100 ++++ gtkdialog-0.7.20/src/actions.c 2007-12-19 21:49:56.000000000 +0100 +@@ -347,7 +347,7 @@ + return (0); + } + +- command = g_strdup_printf("source %s; %s", ++ command = g_strdup_printf(". %s; %s", + option_include_file, string); + system(command); + g_free(command); +diff -urNad gtkdialog-0.7.20~/src/main.c gtkdialog-0.7.20/src/main.c +--- gtkdialog-0.7.20~/src/main.c 2007-04-09 14:11:42.000000000 +0200 ++++ gtkdialog-0.7.20/src/main.c 2007-12-19 21:47:49.000000000 +0100 +@@ -448,7 +448,7 @@ + if (option_event_file != NULL) { + gchar *command; + command = g_strdup_printf( +- "source %s; " ++ ". %s; " + "gtkdialog %s%s%s%s%s%s -i %s", + option_event_file, + option_debug ? "-d " : "", +diff -urNad gtkdialog-0.7.20~/src/widgets.c gtkdialog-0.7.20/src/widgets.c +--- gtkdialog-0.7.20~/src/widgets.c 2007-04-09 12:26:13.000000000 +0200 ++++ gtkdialog-0.7.20/src/widgets.c 2007-12-19 21:49:29.000000000 +0100 +@@ -727,7 +727,7 @@ + PIP_DEBUG("Opening command: '%s'", command); + + if (option_include_file != NULL) { +- the_line = g_strdup_printf("source %s; %s", ++ the_line = g_strdup_printf(". %s; %s", + option_include_file, command); + infile = popen(the_line, "r"); + g_free(the_line);