Debian Bug report logs - #21400
/usr/lib/dpkg/methods/disk/setup outputs junk

Package: dselect; Maintainer for dselect is Dpkg Developers <debian-dpkg@lists.debian.org>; Source for dselect is src:dpkg (PTS, buildd, popcon).

Reported by: Richard Kettlewell <rjk@greenend.org.uk>

Date: Sun, 19 Apr 1998 19:48:05 UTC

Severity: normal

Tags: patch

Done: Bruce Sass <bmsass@shaw.ca>

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, Klee Dienes and Ian Jackson <dpkg-maint@chiark.greenend.org.uk>:
Bug#21400; Package dpkg. (full text, mbox, link).


Acknowledgement sent to Richard Kettlewell <rjk@greenend.org.uk>:
New bug report received and forwarded. Copy sent to Klee Dienes and Ian Jackson <dpkg-maint@chiark.greenend.org.uk>. (full text, mbox, link).


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

From: Richard Kettlewell <rjk@greenend.org.uk>
To: submit@bugs.debian.org
Subject: /usr/lib/dpkg/methods/disk/setup outputs junk
Date: Sun, 19 Apr 98 16:49:23 +0100 (BST)
Package: dpkg
Version: 1.4.0.21

When setting up the access method in dselect, I got the following
output:

    Enter _main_ binary dir. [/myrddin-anon/debian/development/binary-i386]
     ?  /opt/debian/hamm/hamm/binary-i386
    /usr/lib/dpkg//methods/disk/setup: line 8: 23226 Broken pipe             find "$mountpoint$2" -follow -name '*.deb' -print 2>/dev/null
	 23227 Done                    | head -1
	 23228 Done                    | grep . >/dev/null
    Using `/opt/debian/hamm/hamm/binary-i386' as main binary dir.
    Using `/opt/debian/hamm/hamm/binary-i386/Packages.gz' for main.

The following patch to /usr/lib/dpkg/methods/disk/setup solves this,
and also makes the code somewhat more transparent (assuming I've
deduced the intended function correctly):

--- setup.orig	Sun Apr 19 16:37:49 1998
+++ setup	Sun Apr 19 16:43:03 1998
@@ -429,8 +429,8 @@
 		echo "\`$2' does not exist."
 		return
 	fi
-	if ! find "$mountpoint$2" -follow -name '*.deb' -print \
-		2>/dev/null | head -1 | grep . >/dev/null
+	find "$mountpoint$2" -follow -name '*.deb' -print >$tp.d 2>/dev/null
+	if [ ! -s $tp.d ]
 	then
 		echo "\`$2' does not contain any *.deb packages.  Hmmpf."
 		return

ttfn/rjk


Tags added: patch Request was from Colin Watson <cjwatson@flatline.org.uk> to control@bugs.debian.org. (full text, mbox, link).


Bug reassigned from package `dpkg' to `dselect'. Request was from Josip Rodin <joy@gkvk.hr> to control@bugs.debian.org. (full text, mbox, link).


Information forwarded to debian-bugs-dist@lists.debian.org, Dpkg Developers <team@dpkg.org>:
Bug#21400; Package dselect. (full text, mbox, link).


Acknowledgement sent to Bruce Sass <bmsass@shaw.ca>:
Extra info received and forwarded to list. Copy sent to Dpkg Developers <team@dpkg.org>. (full text, mbox, link).


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

From: Bruce Sass <bmsass@shaw.ca>
To: 21400@bugs.debian.org
Subject: this bug is obsolete
Date: Mon, 04 Sep 2006 05:13:27 -0600
[runs dselect, chooses "access method" -> "disk", no "Distribution top 
level"]

---
Enter _main_ binary dir. []
 ?  /var/cache/apt-build/repository
Using `/var/cache/apt-build/repository' as main binary dir.
Using `/var/cache/apt-build/repository/Packages.gz' for main.
---

I am using Unstable (1.13.22), but the exact same code exists in Stable 
(1.10.28). See: src/dpkg-1.10.28/methods/disk.setup and 
src/dpkg-1.13.22/dselect/methods/disk.

It looks like this 8+ year old bug was fixed without trying at some 
point and should be closed.


- Bruce



Information forwarded to debian-bugs-dist@lists.debian.org, Dpkg Developers <team@dpkg.org>:
Bug#21400; Package dselect. (full text, mbox, link).


Acknowledgement sent to Christian Perrier <bubulle@debian.org>:
Extra info received and forwarded to list. Copy sent to Dpkg Developers <team@dpkg.org>. (full text, mbox, link).


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

From: Christian Perrier <bubulle@debian.org>
To: Bruce Sass <bmsass@shaw.ca>, 21400@bugs.debian.org
Subject: Re: Bug#21400: this bug is obsolete
Date: Mon, 4 Sep 2006 23:00:27 +0200
[Message part 1 (text/plain, inline)]
> It looks like this 8+ year old bug was fixed without trying at some 
> point and should be closed.


Well, you're the one who spotted this, so I would say that if you're
sure of this, noone will deprive you from the pleasure of closing a 8+
years old bug...:)


[signature.asc (application/pgp-signature, inline)]

Bug closed, send any further explanations to Richard Kettlewell <rjk@greenend.org.uk> Request was from Bruce Sass <bmsass@shaw.ca> to control@bugs.debian.org. (full text, mbox, link).


Bug archived. Request was from Debbugs Internal Request <owner@bugs.debian.org> to internal_control@bugs.debian.org. (Sat, 16 Jun 2007 20:10:00 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: Thu Apr 25 10:57:00 2024; Machine Name: bembo

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.