pkgsrc-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

pkg/55591: xscanimage aborts, dumps core



>Number:         55591
>Category:       pkg
>Synopsis:       xscanimage aborts, dumps core
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Wed Aug 19 22:35:00 +0000 2020
>Originator:     sergio lenzi
>Release:        pkgsrc-2020Q2
>Organization:
k1 sistemas
>Environment:
NetBSD desktop64.lenzicasa 9.99.71 NetBSD 9.99.71 (LZT64HEAD) #0: Mon Aug 17 21:51:48 -03 2020  NetBSD%betasoftsp.com.br@localhost:/var/ftp/NetBSD/BUILD/HEAD/amd64/OBJ/sys/arch/amd64/compile/GENERIC amd64
>Description:
When you execut xscanimage, it finds the scanner, but when clicked the <scan>  the program aborts.. the same problem on the scan preview
>How-To-Repeat:
execute xscanimage and than click <scan>,  the program aborts
>Fix:
change the patch file (only one) for the following (encoded as a shar archive)



# This is a shell archive.  Save it in a file, remove anything before
# this line, and then unpack it by entering "sh file".  Note, it may
# create directories; files and directories will be owned by you and
# have default permissions.
#
# This archive contains:
#
#       patch-src_gtkglue.c
#
echo x - patch-src_gtkglue.c
sed 's/^X//' >patch-src_gtkglue.c << 'END-of-patch-src_gtkglue.c'
X$NetBSD: patch-src_gtkglue.c,v 1.1 2015/12/15 12:20:12 wiz Exp $
X
XSANE_CAP_ALWAYS_SETTABLE was removed from the sane-backends API.
X
X--- src/gtkglue.c.orig 2005-04-16 13:12:07.000000000 +0000
X+++ src/gtkglue.c
X@@ -1421,6 +1421,8 @@ gsg_sync (GSGDialog * dialog)
X       optval = alloca (optlen * sizeof (optval[0]));
X       vector = alloca (optlen * sizeof (vector[0]));
X 
X+      if (dialog->element[i].widget == NULL)
X+      break;
X       curve = GTK_GAMMA_CURVE (dialog->element[i].widget)->curve;
X       gtk_curve_get_vector (GTK_CURVE (curve), optlen, vector);
X       for (j = 0; j < optlen; ++j)
X@@ -1475,9 +1477,7 @@ gsg_set_sensitivity (GSGDialog * dialog,
X       if (!SANE_OPTION_IS_ACTIVE (opt->cap)
X         || opt->type == SANE_TYPE_GROUP || !dialog->element[i].widget)
X       continue;
X-
X-      if (!(opt->cap & SANE_CAP_ALWAYS_SETTABLE))
X-      gtk_widget_set_sensitive (dialog->element[i].widget, sensitive);
X+      gtk_widget_set_sensitive (dialog->element[i].widget, sensitive);
X     }
X }
X 
END-of-patch-src_gtkglue.c
exit


Home | Main Index | Thread Index | Old Index