NetBSD Problem Report #55591
From www@netbsd.org Wed Aug 19 22:31:56 2020
Return-Path: <www@netbsd.org>
Received: from mail.netbsd.org (mail.netbsd.org [199.233.217.200])
(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))
(Client CN "mail.NetBSD.org", Issuer "mail.NetBSD.org CA" (not verified))
by mollari.NetBSD.org (Postfix) with ESMTPS id 80BB61A9217
for <gnats-bugs@gnats.NetBSD.org>; Wed, 19 Aug 2020 22:31:56 +0000 (UTC)
Message-Id: <20200819223155.3D4131A9239@mollari.NetBSD.org>
Date: Wed, 19 Aug 2020 22:31:55 +0000 (UTC)
From: nervoso@k1.com.br
Reply-To: nervoso@k1.com.br
To: gnats-bugs@NetBSD.org
Subject: xscanimage aborts, dumps core
X-Send-Pr-Version: www-1.0
>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:/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
(Contact us)
$NetBSD: query-full-pr,v 1.46 2020/01/03 16:35:01 leot Exp $
$NetBSD: gnats_config.sh,v 1.9 2014/08/02 14:16:04 spz Exp $
Copyright © 1994-2020
The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.