Re: Help needed with libpaperg_1.0.3-10

1998-06-20 Thread Jason Gunthorpe

On Fri, 19 Jun 1998, Hamish Moffatt wrote:

 Jason I have CCd you because this is what caused the apt/dpkg problem
 I mailed you about. Perhaps you can experiment.

Which problem? I think it's gone from my inbox :

It looks to me like dpkg is at fault, nothing printed comes from APT -
judging by the results I think the diverts mechanism is wanky (notice the
corrupted string?)
 
Jason


--  
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Help needed with libpaperg_1.0.3-10

1998-06-19 Thread Marco Pistore
Hi,

a pair of days ago i have uploaded a new version of libpaper and
libpaperg (version 1.0.3-10), to close a release critical bug:
in the preinst of libpaperg i have added two diversions, since
both libpaper and libpaperg contain the files
/usr/sbin/paperconfig and /usr/bin/paperconf.

Unfortunately, something is not working and i have received three bug
reports: there are problems when upgrading from libpaperg_1.0.3-9
to libpaperg_1.0.3-10: this is the more interesting (bug#23644):

 Package: libpaperg
 Version: 1.0.3-9

 Preparing to replace libpaperg 1.0.3-9 (using libpaperg_1.0.3-10.deb) ...
 Adding `diversion of /usr/bin/paperconf to /usr/bin/paperconf.libc5 by
 libpaperg'
 Adding `diversion of /usr/sbin/paperconfig to
 /usr/sbin/paperconfig.libc5 by libpaperg'
 Unpacking replacement libpaperg ...
 dpkg: error processing libpaperg_1.0.3-10.deb (--unpack):
  trying to overwrite `/usr/bin/paperconf', which is the diverted version
 of `¼Z¨^ɸ×' (package:libpaperg)
 Errors were encountered while processing:
  libpaperg_1.0.3-10.deb
 E: Sub-process returned an error code

Please notice the strange chars in the error message: i really do not know
how this can be my fault!

Moreover, I have tried to reproduce the bug, with no results: all works
correctly on my machine.

So, i really need your help with this bug: i am appending the preint
script for libpaperg_1.0.3.10 (that introduces the diversions).

Thank you,

Marco

 libpaperg.preinst ---
#! /bin/sh

set -e

FIRST_VERSION_WITH_DIVERT=1.0.3-10

if [ $1 = install ]; then
dpkg-divert --package libpaperg --add --rename \
--divert /usr/bin/paperconf.libc5 /usr/bin/paperconf
dpkg-divert --package libpaperg --add --rename \
--divert /usr/sbin/paperconfig.libc5 /usr/sbin/paperconfig
fi

if [ $1 = upgrade ]  
  /usr/bin/dpkg --compare-versions $2 lt $FIRST_VERSION_WITH_DIVERT ; then
dpkg-divert --package libpaperg --add \
--divert /usr/bin/paperconf.libc5 /usr/bin/paperconf
dpkg-divert --package libpaperg --add  \
--divert /usr/sbin/paperconfig.libc5 /usr/sbin/paperconfig
fi

exit 0

-



--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Re: Help needed with libpaperg_1.0.3-10

1998-06-19 Thread Hamish Moffatt
Jason I have CCd you because this is what caused the apt/dpkg problem
I mailed you about. Perhaps you can experiment.

On Fri, Jun 19, 1998 at 12:10:05PM +0200, Marco Pistore wrote:
 a pair of days ago i have uploaded a new version of libpaper and
 libpaperg (version 1.0.3-10), to close a release critical bug:
 in the preinst of libpaperg i have added two diversions, since
 both libpaper and libpaperg contain the files
 /usr/sbin/paperconfig and /usr/bin/paperconf.
 
 Unfortunately, something is not working and i have received three bug
 reports: there are problems when upgrading from libpaperg_1.0.3-9
 to libpaperg_1.0.3-10: this is the more interesting (bug#23644):

  dpkg: error processing libpaperg_1.0.3-10.deb (--unpack):
   trying to overwrite `/usr/bin/paperconf', which is the diverted version
  of `¼Z¨^ɸ×' (package:libpaperg)
  Errors were encountered while processing:
   libpaperg_1.0.3-10.deb
  E: Sub-process returned an error code

I did not see the garbage but I did get the dpkg abort.
I did not file a bug report because I was not sure which package
was at fault, but libpaperg was the last package looked at before
dpkg terminated.

Hamish
-- 
Hamish Moffatt, [EMAIL PROTECTED], [EMAIL PROTECTED], [EMAIL PROTECTED]
Latest Debian packages at ftp://ftp.rising.com.au/pub/hamish. PGP#EFA6B9D5
CCs of replies from mailing lists are welcome.   http://hamish.home.ml.org


--  
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]