• Bug#1055036: bookworm-pu: package crmsh/4.4.1-1+deb12u1

    From Jonathan Wiltshire@21:1/5 to Valentin Vidic on Mon Feb 12 19:30:02 2024
    XPost: linux.debian.devel.release

    Control: tag -1 moreinfo

    On Sun, Oct 29, 2023 at 10:16:25PM +0100, Valentin Vidic wrote:
    diff -Nru crmsh-4.4.1/debian/crmsh.postinst crmsh-4.4.1/debian/crmsh.postinst --- crmsh-4.4.1/debian/crmsh.postinst 1970-01-01 01:00:00.000000000 +0100
    +++ crmsh-4.4.1/debian/crmsh.postinst 2023-10-29 20:46:13.000000000 +0100
    @@ -0,0 +1,46 @@
    +#!/bin/sh
    +# postinst script for crmsh
    +#
    +# see: dh_installdeb(1)
    +
    +set -e
    +
    +# summary of how this script can be called:
    +# * <postinst> `configure' <most-recently-configured-version>
    +# * <old-postinst> `abort-upgrade' <new version>
    +# * <conflictor's-postinst> `abort-remove' `in-favour' <package>
    +# <new-version>
    +# * <deconfigured's-postinst> `abort-deconfigure' `in-favour'
    +# <failed-install-package> <version> `removing'
    +# <conflicting-package> <version>
    +# for details, see http://www.debian.org/doc/debian-policy/ or
    +# the debian-policy package
    +#
    +
    +case "$1" in
    + configure)
    + mkdir -p /var/log/crmsh
    + chown hacluster:haclient /var/log/crmsh
    + chmod 0775 /var/log/crmsh
    +
    + touch /var/log/crmsh/crmsh.log
    + chown hacluster:haclient /var/log/crmsh/crmsh.log
    + chmod 0664 /var/log/crmsh/crmsh.log
    + ;;

    This will happen on every package update, no? What if the local
    administrator has set other properties on the log file (e.g. to allow other users to read it)?


    --
    Jonathan Wiltshire jmw@debian.org
    Debian Developer http://people.debian.org/~jmw

    4096R: 0xD3524C51 / 0A55 B7C5 1223 3942 86EC 74C3 5394 479D D352 4C51 ed25519/0x196418AAEB74C8A1: CA619D65A72A7BADFC96D280196418AAEB74C8A1

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Valentin Vidic@21:1/5 to Jonathan Wiltshire on Sat Feb 17 17:20:01 2024
    XPost: linux.debian.devel.release

    On Mon, Feb 12, 2024 at 06:21:52PM +0000, Jonathan Wiltshire wrote:
    This will happen on every package update, no? What if the local
    administrator has set other properties on the log file (e.g. to allow other users to read it)?

    Thanks, I have updated the postinst to only make the changes if
    the logs don't exist. Updated debdiff attached below...

    --
    Valentin

    diff -Nru crmsh-4.4.1/debian/changelog crmsh-4.4.1/debian/changelog
    --- crmsh-4.4.1/debian/changelog 2023-03-03 22:48:41.000000000 +0100
    +++ crmsh-4.4.1/debian/changelog 2023-10-29 20:46:13.000000000 +0100
    @@ -1,3 +1,10 @@
    +crmsh (4.4.1-1+deb12u1) bookworm; urgency=medium
    +
    + * d/postinst: create a logging directory (Closes: #1042448)
    + * d/patches: add patch for log file error
    +
    + -- Valentin Vidic <vvidic@debian.org> Sun, 29 Oct 2023 20:46:13 +0100
    +
    crmsh (4.4.1-1) unstable; urgency=medium

    [ Bas Couwenberg ]
    diff -Nru crmsh-4.4.1/debian/control crmsh-4.4.1/debian/control
    --- crmsh-4.4.1/debian/control 2023-03-03 22:46:48.000000000 +0100
    +++ crmsh-4.4.1/debian/control 2023-10-29 20:46:13.000000000 +0100
    @@ -43,6 +43,7 @@
    Breaks: pacemaker (<< 1.1.12)
    Suggests:
    bash-completion,
    + cluster-glue,
    csync2,
    dmidecode,
    fdisk | util-linux (<< 2.29.2-3~),
    diff -Nru crmsh-4.4.1/debian/crmsh.postinst crmsh-4.4.1/debian/crmsh.postinst --- crmsh-4.4.1/debian/crmsh.postinst 1970-01-01 01:00:00.000000000 +0100
    +++ crmsh-4.4.1/debian/crmsh.postins
  • From Jonathan Wiltshire@21:1/5 to Valentin Vidic on Sun Feb 18 17:40:01 2024
    XPost: linux.debian.devel.release

    Control: tag -1 = bookworm confirmed

    On Sat, Feb 17, 2024 at 05:08:36PM +0100, Valentin Vidic wrote:
    On Mon, Feb 12, 2024 at 06:21:52PM +0000, Jonathan Wiltshire wrote:
    This will happen on every package update, no? What if the local administrator has set other properties on the log file (e.g. to allow other users to read it)?

    Thanks, I have updated the postinst to only make the changes if
    the logs don't exist. Updated debdiff attached below...

    Please go ahead.

    Thanks,

    --
    Jonathan Wiltshire jmw@debian.org
    Debian Developer http://people.debian.org/~jmw

    4096R: 0xD3524C51 / 0A55 B7C5 1223 3942 86EC 74C3 5394 479D D352 4C51 ed25519/0x196418AAEB74C8A1: CA619D65A72A7BADFC96D280196418AAEB74C8A1

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Jonathan Wiltshire@21:1/5 to All on Sun Feb 18 20:30:01 2024
    XPost: linux.debian.devel.release

    package release.debian.org
    tags 1055036 = bookworm pending
    thanks

    Hi,

    The upload referenced by this bug report has been flagged for acceptance into the proposed-updates queue for Debian bookworm.

    Thanks for your contribution!

    Upload details
    ==============

    Package: crmsh
    Version: 4.4.1-1+deb12u1

    Explanation: create log directory and file on installation

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)