Debian Bug report logs - #142815
gpm: Can't set -S commands in /etc/gpm.conf

version graph

Package: gpm; Maintainer for gpm is Axel Beckert <abe@debian.org>; Source for gpm is src:gpm (PTS, buildd, popcon).

Reported by: Glyn <glyn.kennington@hertford.oxford.ac.uk>

Date: Sun, 14 Apr 2002 10:03:02 UTC

Severity: minor

Found in versions 1.19.6-11, gpm/1.20.4-3.3

Done: Jason D Cormie <jason@wormwood666.demon.co.uk>

Bug is archived. No further changes may be made.

Toggle useless messages

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to debian-bugs-dist@lists.debian.org, warp@debian.org (Zephaniah E. Hull), gpm@packages.qa.debian.org:
Bug#142815; Package gpm. (full text, mbox, link).


Acknowledgement sent to Glyn <glyn.kennington@hertford.oxford.ac.uk>:
New Bug report received and forwarded. Copy sent to warp@debian.org (Zephaniah E. Hull), gpm@packages.qa.debian.org. (full text, mbox, link).


Message #5 received at submit@bugs.debian.org (full text, mbox, reply):

From: Glyn <glyn.kennington@hertford.oxford.ac.uk>
To: submit@bugs.debian.org
Subject: gpm: Can't set -S commands in /etc/gpm.conf
Date: Sun, 14 Apr 2002 10:49:08 +0100
Package: gpm
Version: 1.19.6-11
Severity: minor

As far as I can work out, this is a problem with the /etc/init.d/gpm
script.  When it calls start-stop-daemon on line 40, and appends the
values read in from /etc/gpm.conf, and I am trying to set the -S command
in the "append" section, then the values following -S aren't passed on
correctly, and the default behaviour (shutdown) still occurs when a
special command is later invoked.  The problem seems to be with quoting
quote-marks, because when I set the $append variable in /etc/gpm.conf
with

append="-S \"echo l:echo m:echo r\""

these commands are not passed along, but if I change /etc/init.d/gpm so
that line 28 (the line that appends $append to $cmdln) is commented out,
and line 40 instead reads:

  start-stop-daemon --start --quiet --exec $GPM -- $cmdln -S "echo l:echo m:echo r"

then I get the results that I want.  However, this will break whenever
an upgrade wants to change /etc/init.d/gpm .  I have tried a number of
different methods for quoting the quotemarks in gpm.conf, with no
success.

-- System Information
Debian Release: 3.0
Kernel Version: Linux corrosive 2.4.18 #1 Wed Mar 6 21:49:14 GMT 2002 i586 unknown

Versions of the packages gpm depends on:
ii  debianutils    1.16           Miscellaneous utilities specific to Debian.
ii  libc6          2.2.5-4        GNU C Library: Shared libraries and Timezone
ii  libncurses5    5.2.20020112a- Shared libraries for terminal handling



Information forwarded to debian-bugs-dist@lists.debian.org, Debian GPM Team <pkg-gpm-devel@lists.alioth.debian.org>:
Bug#142815; Package gpm. (Wed, 22 Dec 2010 22:24:03 GMT) (full text, mbox, link).


Acknowledgement sent to Jason Cormie <jason@wormwood666.demon.co.uk>:
Extra info received and forwarded to list. Copy sent to Debian GPM Team <pkg-gpm-devel@lists.alioth.debian.org>. (Wed, 22 Dec 2010 22:24:03 GMT) (full text, mbox, link).


Message #10 received at 142815@bugs.debian.org (full text, mbox, reply):

From: Jason Cormie <jason@wormwood666.demon.co.uk>
To: 142815@bugs.debian.org
Subject: [gpm] Use single, not double quotes
Date: Wed, 22 Dec 2010 22:21:09 +0000
Package: gpm
Version: 1.20.4-3.3

--- Please enter the report below this line. ---

in gpm.conf specify the -S option with single quotes.
You then don't need to escape the double quotes and it works.


append='-S "echo l:echo m:echo r"'

This bug report should be closed


--- System information. ---
Architecture: amd64
Kernel:       Linux 2.6.32-5-amd64

Debian Release: squeeze/sid
  900 testing         ftp.debian.org
  850 unstable        ftp.debian.org
  800 stable          www.debian-multimedia.org
  800 stable          security.debian.org
  800 stable          ftp.debian.org
  700 experimental    ftp.debian.org

--- Package information. ---
Depends             (Version) | Installed
=============================-+-=============
libc6                (>= 2.7) | 2.11.2-7
libgpm2           (>= 1.20.4) | 1.20.4-3.3
debconf             (>= 0.5)  | 1.5.36
 OR debconf-2.0               |
dpkg             (>= 1.15.4)  | 1.15.8.5
 OR install-info              | 4.13a.dfsg.1-6
debianutils          (>= 1.7) | 3.4
ucf                 (>= 0.28) | 3.0025+nmu1
lsb-base                      | 3.2-23.1


Package's Recommends field is empty.

Package's Suggests field is empty.







Bug closed, send any further explanations to Glyn <glyn.kennington@hertford.oxford.ac.uk> Request was from Jason D Cormie <jason@wormwood666.demon.co.uk> to control@bugs.debian.org. (Sun, 24 Apr 2011 12:03:38 GMT) (full text, mbox, link).


Bug archived. Request was from Debbugs Internal Request <owner@bugs.debian.org> to internal_control@bugs.debian.org. (Mon, 23 May 2011 07:33:55 GMT) (full text, mbox, link).


Send a report that this bug log contains spam.


Debian bug tracking system administrator <owner@bugs.debian.org>. Last modified: Sat Jul 1 15:30:56 2023; Machine Name: buxtehude

Debian Bug tracking system

Debbugs is free software and licensed under the terms of the GNU Public License version 2. The current version can be obtained from https://bugs.debian.org/debbugs-source/.

Copyright © 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson, 2005-2017 Don Armstrong, and many other contributors.