Debian Bug report logs - #243512
libpam-runtime: postinstall script fails on versions prior 0.76-17

version graph

Package: libpam-runtime; Maintainer for libpam-runtime is Steve Langasek <vorlon@debian.org>; Source for libpam-runtime is src:pam.

Reported by: Luca Pasquali <luca@saputello.net>

Date: Tue, 13 Apr 2004 13:33:03 UTC

Severity: normal

Tags: patch

Found in version 0.76-18

Done: hartmans@mit.edu (Sam Hartman)

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, Sam Hartman <hartmans@debian.org>:
Bug#243512; Package libpam-runtime. Full text and rfc822 format available.

Acknowledgement sent to Luca Pasquali <luca@saputello.net>:
New Bug report received and forwarded. Copy sent to Sam Hartman <hartmans@debian.org>. Full text and rfc822 format available.

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

From: Luca Pasquali <luca@saputello.net>
To: Debian Bug Tracking System <submit@bugs.debian.org>
Subject: libpam-runtime: postinstall script fails on versions prior 0.76-17
Date: Tue, 13 Apr 2004 15:23:57 +0200
Package: libpam-runtime
Version: 0.76-18
Severity: normal

in postinstall script upgrading from 0.76-16 dpkg will fail (exit 1)
here:

if [ -z "$2" ] || dpkg --compare-versions "$2" lt 0.76-17

I changed 0.76-17 with 0.76-16 and run dpkg --configure libpam-runtime
and all worked.

-- System Information:
Debian Release: testing/unstable
  APT prefers unstable
  APT policy: (500, 'unstable')
Architecture: i386 (i686)
Kernel: Linux 2.6.5
Locale: LANG=en_IE.UTF-8@euro, LC_CTYPE=en_IE.UTF-8@euro

-- no debconf information



Information forwarded to debian-bugs-dist@lists.debian.org, Sam Hartman <hartmans@debian.org>:
Bug#243512; Package libpam-runtime. Full text and rfc822 format available.

Acknowledgement sent to Jamie Wilkinson <jamie@anchor.net.au>:
Extra info received and forwarded to list. Copy sent to Sam Hartman <hartmans@debian.org>. Full text and rfc822 format available.

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

From: Jamie Wilkinson <jamie@anchor.net.au>
To: 243512@bugs.debian.org
Subject: caused by failing test for other.pre-upgrade
Date: Wed, 14 Apr 2004 11:12:29 +1000
running the postinst manually with sh -x gives this:

plank% sh -x ./libpam-runtime.postinst
+ '[' -z '' ']'
+ '[' '!' -f /etc/pam.d/common-auth ']'
++ md5sum /etc/pam.d/common-auth
+ fgrep -q fe990ab30b9a9c28134d0e169b3d467f /etc/pam.d/common-auth
/usr/share/pam/common-auth.md5sums
+ '[' '!' -f /etc/pam.d/common-account ']'
++ md5sum /etc/pam.d/common-account
+ fgrep -q f0f6d7eb36a5cf498f6a8cb6e0e25ff1 /etc/pam.d/common-account
/usr/share/pam/common-account.md5sums
+ '[' '!' -f /etc/pam.d/common-session ']'
++ md5sum /etc/pam.d/common-session
+ fgrep -q 917e75a9e8276e303afed7f57ead2dc9 /etc/pam.d/common-session
/usr/share/pam/common-session.md5sums
+ '[' '!' -f /etc/pam.d/common-password ']'
++ md5sum /etc/pam.d/common-password
+ fgrep -q ad16b4aa754d0dd372ce009ccc0e0bee /etc/pam.d/common-password
/usr/share/pam/common-password.md5sums
+ test -r /etc/pam.d/other.pre-upgrade
plank% echo $?
1

and as /etc/pam.d/other.pre-upgrade doesn't exist, the test fails, rm -f
doesn't get called.

-- 
Jamie Wilkinson
Systems Administrator, Anchor Systems



Information forwarded to debian-bugs-dist@lists.debian.org, Sam Hartman <hartmans@debian.org>:
Bug#243512; Package libpam-runtime. Full text and rfc822 format available.

Acknowledgement sent to "Theodore Ts'o" <tytso@mit.edu>:
Extra info received and forwarded to list. Copy sent to Sam Hartman <hartmans@debian.org>. Full text and rfc822 format available.

Message #15 received at 243512@bugs.debian.org (full text, mbox):

From: "Theodore Ts'o" <tytso@mit.edu>
To: 243512@bugs.debian.org
Cc: control@bugs.debian.org
Subject: libpam-runtime's postinstall script is missing an exit 0
Date: Tue, 13 Apr 2004 22:06:13 -0400
tags 243512 +patch
thanks

--- libpam-runtime.postinst.orig	2004-04-13 22:03:41.000000000 -0400
+++ libpam-runtime.postinst	2004-04-13 22:03:56.000000000 -0400
@@ -19,4 +19,4 @@
 	test -r /etc/pam.d/other.pre-upgrade &&rm -f /etc/pam.d/other.pre-upgrade
 fi
 
-
+exit 0



Tags added: patch Request was from "Theodore Ts'o" <tytso@mit.edu> to control@bugs.debian.org. Full text and rfc822 format available.

Reply sent to hartmans@mit.edu (Sam Hartman):
You have taken responsibility. Full text and rfc822 format available.

Notification sent to Luca Pasquali <luca@saputello.net>:
Bug acknowledged by developer. Full text and rfc822 format available.

Message #22 received at 243512-done@bugs.debian.org (full text, mbox):

From: hartmans@mit.edu (Sam Hartman)
To: 243512-done@bugs.debian.org
Subject: Fixed in 0.76-19
Date: Wed, 14 Apr 2004 12:55:10 -0400 (EDT)

Failed to notice this one wasn't merged.  This has been fix e in pam
0.76-19.



Send a report that this bug log contains spam.


Debian bug tracking system administrator <owner@bugs.debian.org>. Last modified: Wed Apr 16 10:49:33 2014; Machine Name: beach.debian.org

Debian Bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.