Debian Bug report logs - #929706
sgml-base: preinst may fail *silently*

version graph

Package: sgml-base; Maintainer for sgml-base is Debian QA Group <packages@qa.debian.org>; Source for sgml-base is src:sgml-base (PTS, buildd, popcon).

Reported by: Ralf Treinen <treinen@debian.org>

Date: Wed, 29 May 2019 12:33:01 UTC

Severity: normal

Tags: patch

Found in version sgml-base/1.29

Fixed in version sgml-base/1.31

Done: Holger Levsen <holger@debian.org>

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, Debian QA Group <packages@qa.debian.org>:
Bug#929706; Package sgml-base. (Wed, 29 May 2019 12:33:04 GMT) (full text, mbox, link).


Acknowledgement sent to Ralf Treinen <treinen@debian.org>:
New Bug report received and forwarded. Copy sent to Debian QA Group <packages@qa.debian.org>. (Wed, 29 May 2019 12:33:04 GMT) (full text, mbox, link).


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

From: Ralf Treinen <treinen@debian.org>
To: submit@bugs.debian.org
Subject: sgml-base: preinst may fail *silently*
Date: Wed, 29 May 2019 14:29:08 +0200
Package: sgml-base
Version: 1.29
Tags: patch
User: treinen@debian.org
Usertags: colis-shparser

Hello,

the preinst of sgml-base contains

  if [ ! -d /var/lib/sgml-base ]
  then
    mkdir /var/lib/sgml-base 2>/dev/null
  fi

and then the same for /etc/sgml. The problem is that this fails
when /var/lib/sgml-base or /etc/sgml is a regular file, and will do
that without any error message.

I suggest to replace the whole preinst script by

if [ "$1" = "install" -o "$1" = "upgrade" ]
then
  mkdir -p /var/lib/sgml-base /etc/sgml
fi

-Ralf.
-- 
Ralf Treinen
Institut de Recherche en Informatique Fondamentale
Équipe Preuves, Programmes et Systèmes
Université Paris Diderot, Paris, France.
http://www.irif.fr/~treinen/



Reply sent to Holger Levsen <holger@debian.org>:
You have taken responsibility. (Thu, 06 Oct 2022 18:21:06 GMT) (full text, mbox, link).


Notification sent to Ralf Treinen <treinen@debian.org>:
Bug acknowledged by developer. (Thu, 06 Oct 2022 18:21:07 GMT) (full text, mbox, link).


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

From: Debian FTP Masters <ftpmaster@ftp-master.debian.org>
To: 929706-close@bugs.debian.org
Subject: Bug#929706: fixed in sgml-base 1.31
Date: Thu, 06 Oct 2022 18:19:17 +0000
Source: sgml-base
Source-Version: 1.31
Done: Holger Levsen <holger@debian.org>

We believe that the bug you reported is fixed in the latest version of
sgml-base, which is due to be installed in the Debian FTP archive.

A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to 929706@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Holger Levsen <holger@debian.org> (supplier of updated sgml-base package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing ftpmaster@ftp-master.debian.org)


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512

Format: 1.8
Date: Thu, 06 Oct 2022 20:03:38 +0200
Source: sgml-base
Architecture: source
Version: 1.31
Distribution: unstable
Urgency: medium
Maintainer: Debian QA Group <packages@qa.debian.org>
Changed-By: Holger Levsen <holger@debian.org>
Closes: 929706 1006646
Changes:
 sgml-base (1.31) unstable; urgency=medium
 .
   * QA upload by the Reproducible Builds team.
   * tools/update-catalog: make sure the catalog is sorted, to support building
     reproducible rootfs with sgml-base installed, else
     /var/lib/sgml-base/supercatalog changes on every postinst run. Thanks to
     Nguyen Thi Huong <huong4.nguyenthi@toshiba.co.jp> for the patch.
     Closes: #1006646
   * Simplify preinst and also make sure it doesn't silently fail. Thanks to
     Ralf Treinen for the patch. Closes: #929706
Checksums-Sha1:
 cf165d6540264d4f4597219094f50426ab1377b9 1541 sgml-base_1.31.dsc
 17b143b2b14d69881059a7269cca1524884087a2 12756 sgml-base_1.31.tar.xz
 ecd8e8a51634510c86b401026b69dbe505ac8a7f 5780 sgml-base_1.31_source.buildinfo
Checksums-Sha256:
 5bc1878461ec10333c7a99aeeec997e7263c92afba2c4f6fb518a8f4e5b3d9cc 1541 sgml-base_1.31.dsc
 12e204449d060d65b97ed329d2feed0cdbf2a62a4186b436e9b9b3fff7416147 12756 sgml-base_1.31.tar.xz
 810acd2049acbbafb4d6ab60febacd1ed21862578300900f11b34780757448b9 5780 sgml-base_1.31_source.buildinfo
Files:
 84d58e28346b8d3567def431e4241188 1541 text optional sgml-base_1.31.dsc
 38482b99c785b40cf773138f6238b0cd 12756 text optional sgml-base_1.31.tar.xz
 567a67034a66db4845766f35f7369115 5780 text optional sgml-base_1.31_source.buildinfo

-----BEGIN PGP SIGNATURE-----

iQIzBAEBCgAdFiEEuL9UE3sJ01zwJv6dCRq4VgaaqhwFAmM/GSAACgkQCRq4Vgaa
qhy3XRAAtYtU+oDeNMKUbeHziXUD0/Tm56z5PyBVb37lHZBlg/9WgpjPErSisleG
vYbL3GnM2naT6yzqXVflcNKI9eWxeEuFgJz1VZmPjg9oFAfJsEQ+YrFEojk6Slpi
T3yhRaVUwn6vFlQQ8+25yi6+bX0BS5ns+5nPBKJ7fKrRW9C2SMANReLsrmIhRxXV
XJT6AjMaPgkAaj+mSruxTaxO3SBNZud4styu5x4erdQ0f4kUvVeqY6n7lBiCB6Yh
t0pppi5yBOkVCLGQBu8gdmTh7AWAvnxdj953HInAtUzpl0s3h2Bv1/w3wRnIBMR8
9Y1XK15IqM4vA124+VYyueJGgS1iO9RLCRkV+yUXhe9iDUPTB9RzzPmUOaw0sPBS
Q0rhwOTZb7Poepjk7UOCpxa96xZHGtdjoWQIK8zy7kl6FaNz/m71ILkWv/Vdwl4N
OtMNFyIsEKVAZ+1iGCAK+p5EwaqAg7COuyGmbN8zos0cL6RElfAjRKQYUvNKR4UG
WyUMCClNejTe/XKJQ8RtCqYX5N3m0yM47p7+1fYk7PO7iX+A4zpkTnWlrVHOlkqA
gyhngGPq/V6QpBYJK85fVBYggxFLNPREpC57N0J5LMRF/Ba2boHeLhAhX1vDGXT3
HfgyoH1Unu95TvN+E8Jg+otJFT4MdnCTJjbVd4e6n0MckIAkpk4=
=v7dS
-----END PGP SIGNATURE-----




Bug archived. Request was from Debbugs Internal Request <owner@bugs.debian.org> to internal_control@bugs.debian.org. (Sun, 06 Nov 2022 07:24:49 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: Wed May 17 12:44:05 2023; 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.