NetBSD Problem Report #26523

From (1.212-2003-09-23-exp) on dustpuppy.kawo2.rwth-aachen.de
Received: (qmail 16019 invoked by uid 605); 2 Aug 2004 22:14:08 -0000
Message-Id: <200408022213.i72MDtXK019000@abc.kawo2.rwth-aachen.de>
Date: Tue, 03 Aug 2004 00:13:55 +0200 (CEST)
From: Alexander Becher <abecher@kawo2.rwth-aachen.de>
Sender: gnats-bugs-owner@NetBSD.org
To: gnats-bugs@gnats.netbsd.org
Subject: xosview-1.8.1 does not start if called with -name option
X-Send-Pr-Version: 3.95

>Number:         26523
>Category:       pkg
>Synopsis:       xosview-1.8.1 does not start if called with -name option
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    pkg-manager
>State:          closed
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Mon Aug 02 22:15:00 +0000 2004
>Closed-Date:    Tue Aug 03 07:44:14 +0000 2004
>Last-Modified:  Tue Aug 03 07:44:14 +0000 2004
>Originator:     Alexander Becher
>Release:        NetBSD 2.0_BETA
>Organization:
>Environment:


System: NetBSD abc 2.0_BETA NetBSD 2.0_BETA (MYKERNEL-2-0) #0: Tue Jul 27 21:26:58 CEST 2004 alex@abc:/usr/local/obj/obj/sys/arch/i386/compile/MYKERNEL-2-0 i386
Architecture: i386
Machine: i386
>Description:
    xosview has buggy pointer arithmetic in the file Xrm.cc which causes
    it to exit with the following error when called with a -name
    parameter:

    Error:  Couldn't find 'samplesPerSec' resource in the resource database!

    This does not happen when xosview is called without the -name option.
    The same problem is mentioned in
    http://bugs.debian.org/182281

>How-To-Repeat:
    cd /usr/pkgsrc/sysutils/xosview
    make install
    xosview -name FvwmXosview

>Fix:
--- Xrm.cc.orig 2004-08-03 00:04:30.000000000 +0200
+++ Xrm.cc      2004-08-03 00:04:57.000000000 +0200
@@ -98,7 +98,7 @@
     char fcn_lower[1024];
     strncpy(fcn_lower, className(), 1024);
     char* p = fcn_lower;
-    while (p && *p)  *p++ = tolower(*p);
+    while (p && *p)  { *p = tolower(*p); p++; }
     snprintf(fcn, 1024, "%s.%s", fcn_lower, rname);
     XrmGetResource(_db, frn, fcn, &type, &val);
   }



>Release-Note:
>Audit-Trail:

From: Quentin Garnier <cube@netbsd.org>
To: gnats-bugs@gnats.NetBSD.org
Cc:  
Subject: pr/26523 CVS commit: pkgsrc/sysutils/xosview
Date: Tue,  3 Aug 2004 07:33:05 +0000 (UTC)

 Module Name:	pkgsrc
 Committed By:	cube
 Date:		Tue Aug  3 07:33:05 UTC 2004

 Modified Files:
 	pkgsrc/sysutils/xosview: Makefile distinfo

 Log Message:
 Update to version 1.8.2 and apply patch from PR 26523 by Alexander Becher.

 Changes since xosview-1.8.1
  - Applied sourceforge patch 927112 from Russell Reed which fixes
    the swapmeter when USESYSCALLS is defined.
  - Applied sourceforge patch 959433 which adds acpi support to
    the linux battery meter.
  - Applied a patch similar to the sourceforge patch 586184 submitted
    by Mark Guertin.
  - Linux diskmeter now uses vmstat and thus works with 2.6.
    But the units problem (block size) probably still remains.
  - Linux pagemeter should now work with 2.6 kernels
  - Merge in the fedora-2 nfs patch.
  - Merge in the fedora-2 strip patch.
  - Merge in the fedora-2 proc patch.
  - Merge in the fedora-2 s390 patch.
  - Merge in the fedora-2 non-i386 patch.
  - Merge in the fedora-2 linux-2.6 kernel (related) patch.
  - Add an autogen.sh script.  This script runs autoconf to create
    the configure script.


 To generate a diff of this commit:
 cvs rdiff -r1.50 -r1.51 pkgsrc/sysutils/xosview/Makefile
 cvs rdiff -r1.11 -r1.12 pkgsrc/sysutils/xosview/distinfo

 Please note that diffs are not public domain; they are subject to the
 copyright notices on the relevant files.

State-Changed-From-To: open->closed 
State-Changed-By: cube 
State-Changed-When: Tue Aug 3 07:43:50 UTC 2004 
State-Changed-Why:  
Patch applied.  Thanks! 
>Unformatted:

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.51 2026/08/10 02:28:17 riastradh Exp $
$NetBSD: gnats_config.sh,v 1.10 2026/05/13 22:00:09 riastradh Exp $
Copyright © 1994-2026 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.