tags 1102930 +patch
thanks

Hi,


On Sun, Apr 13, 2025 at 12:19:57PM +0200, Sebastian Ramacher wrote:
> Source: systraq
> Version: 20201231-3
> Severity: grave
> X-Debbugs-Cc: sramac...@debian.org
> 
> Dear maintainer,
> 
> systraq currently fails to install:
> 
> Setting up systraq (20201231-3) ...
> ls: cannot access '/usr/share/systraq': No such file or directory
> dpkg: error processing package systraq (--configure):
>  installed systraq package post-installation script subprocess returned error 
> exit status 2
> Processing triggers for libc-bin (2.41-6) ...
> Errors were encountered while processing:
>  systraq
> E: Sub-process /usr/bin/dpkg returned an error code (1)
> 
> See also https://piuparts.debian.org/sid/fail/systraq_20201231-3.log

Thanks for reporting this.  I am working on it.

(Note to self: removing this obsolete code in systraq.postinst will likely fix
it:

    # deal with symlinks in /etc/systraq/systraq.d/
    LINKS=`ls /usr/share/systraq`

    # user can add links (or scripts), named AA-local
    # user can disable our links, by relinking to /bin/true
    #
    # initial install: create all our links
    # upgrade: fix broken links
    # see 10.7. Configuration files in debian-policy/policy.txt.gz

    for l in $LINKS
    do
        if test -L /etc/systraq/systraq.d/$l
        then
            if test ! -e /etc/systraq/systraq.d/$l
            then
                # broken symlink, fix it
                rm /etc/systraq/systraq.d/$l
                ln -s /usr/share/systraq/$l /etc/systraq/systraq.d/$l
            fi
        else
            ln -s /usr/share/systraq/$l /etc/systraq/systraq.d/$l
        fi
    done

)


PS: nmu's welcome.


Bye,

Joost

Reply via email to