• Bug#1062194: Bug#1065145: guacd: internal aliasing conflict on guacd.se

    From Steve Langasek@21:1/5 to Helmut Grohne on Sun Mar 3 09:30:01 2024
    --U2oCjisC/g1AkCtJ
    Content-Type: text/plain; charset=us-ascii
    Content-Disposition: inline
    Content-Transfer-Encoding: quoted-printable

    Thanks, NMU uploaded to address this regression. Please find attached the
    full NMU debdiff for time_t.

    On Fri, Mar 01, 2024 at 07:50:10AM +0100, Helmut Grohne wrote:
    Package: guacd
    Version: 1.3.0-1.2
    Severity: serious
    Tags: patch
    User: helmutg@debian.org
    Usertags: dep17
    X-Debbugs-Cc: vorlon@debian.org

    I changed dh_installsystemd to install systemd units below /usr/lib
    rather than /lib a while back. Back then, I rebuilt all possibly
    affected packages and guacd happened to FTBFS. Hence, it was ignored in
    my analysis. Now the time64 transition fixed the FTBFS and guacd
    installs both /lib/systemd/system/guacd.service and /usr/lib/systemd/system/guacd.service. Doing so is a policy violation
    and causes an installation failure on /usr-merged systems:

    Unpacking guacd (1.3.0-1.2) ...
    dpkg: error processing archive /tmp/apt-dpkg-install-JKIS2y/25-guacd_1.3.0-1.2_amd64.deb (--unpack):
    unable to install new version of '/usr/lib/systemd/system/guacd.service': No such file or directory

    I'm attaching a patch fixing this issue.

    Helmut

    diff --minimal -Nru guacamole-server-1.3.0/debian/changelog guacamole-server-1.3.0/debian/changelog
    --- guacamole-server-1.3.0/debian/changelog 2024-02-29 07:18:24.000000000 +0100
    +++ guacamole-server-1.3.0/debian/changelog 2024-03-01 07:40:03.000000000 +0100
    @@ -1,3 +1,10 @@
    +guacamole-server (1.3.0-1.3) UNRELEASED; urgency=medium
    +
    + * Non-maintainer upload.
    + * Install guacd.service only once. (Closes: #-1)
    +
    + -- Helmut Grohne <helmut@subdivi.de> Fri, 01 Mar 2024 07:40:03 +0100
    +
    guacamole-server (1.3.0-1.2) unstable; urgency=medium

    * Non-maintainer upload.
    diff --minimal -Nru guacamole-server-1.3.0/debian/guacd.install guacamole-server-1.3.0/debian/guacd.install
    --- guacamole-server-1.3.0/debian/guacd.install 2022-02-07 19:02:10.000000000 +0100
    +++ guacamole-server-1.3.0/debian/guacd.install 2024-03-01 07:39:57.000000000 +0100
    @@ -1,4 +1,3 @@
    bin/guacctl /usr/bin
    /usr/sbin/guacd
    /usr/share/man/man8/guacd.8
    -debian/guacd.service /lib/systemd/system/


    --
    Steve Langasek Give me a lever long enough and a Free OS Debian Developer to set it on, and I can move the world. Ubuntu Developer https://www.debian.org/ slangasek@ubuntu.com vorlon@debian.org

    --U2oCjisC/g1AkCtJ
    Content-Type: text/plain; charset=us-ascii
    Content-Disposition: attachment; filename="nmu_guacamole-server.debdiff" Content-Transfer-Encoding: quoted-printable

    diff -Nru guacamole-server-1.3.0/debian/changelog guacamole-server-1.3.0/debian/changelog
    --- guacamole-server-1.3.0/debian/changelog 2022-02-07 18:02:10.000000000 +0000
    +++ guacamole-server-1.3.0/debian/changelog 2024-03-03 08:10:03.000000000 +0000
    @@ -1,3 +1,18 @@
    +guacamole-server (1.3.0-1.3) unstable; urgency=medium
    +
    + * Non-maintainer upload.
    + * Install guacd.service only once. Thanks to
    + Helmut Grohne <helmut@subdivi.de>. Closes #1065145.
    +
    + -- Steve Langasek <vorlon@debian.org> Sun, 03 Mar 2024