• Bug#1101335: klog FTCBFS: runs the build architecture qmake

    From Helmut Grohne@21:1/5 to All on Tue Mar 25 23:30:01 2025
    Source: klog
    Version: 2.3.4-3
    Severity: serious
    Justification: it also ftbfs
    Tags: ftbfs patch

    Hi,

    I noticed that klog fails to cross build from source and came up with a
    patch that mainly discards broken/duplicated build steps. The main cross
    build failure arises from running a bare qmake. I then noticed that it
    also FTBFS and that the patch also fixes that. Hope it helps.

    Helmut

    diff --minimal -Nru klog-2.3.4/debian/changelog klog-2.3.4/debian/changelog
    --- klog-2.3.4/debian/changelog 2025-03-20 22:17:26.000000000 +0100
    +++ klog-2.3.4/debian/changelog 2025-03-25 23:03:58.000000000 +0100
    @@ -1,3 +1,10 @@
    +klog (2.3.4-3.1) unstable; urgency=medium
    +
    + * Non-maintainer upload.
    + * Fix FTBFS: Skip broken/duplicated build steps. (Closes: #-1)
    +
    + -- Helmut Grohne <helmut@subdivi.de> Tue, 25 Mar 2025 23:03:58 +0100
    +
    klog (2.3.4-3) unstable; urgency=medium

    * Added some missing files.
    diff --minimal -Nru klog-2.3.4/debian/rules klog-2.3.4/debian/rules
    --- klog-2.3.4/debian/rules 2025-03-20 22:19:45.000000000 +0100
    +++ klog-2.3.4/debian/rules 2025-03-25 23:03:58.000000000 +0100
    @@ -8,14 +8,10 @@
    override_dh_clean:
    dh_clean translations/*.qm

    -override_dh_auto_build:
    - qmake src.pro
    - make
    +execute_after_dh_auto_build:
    lrelease translations/*.ts

    override_dh_auto_install:
    - make install DESTDIR=$(CURDIR)/debian/klog
    -
    # Install the translations qm files
    #lrelease translations/*.ts
    install -d $(CURDIR)/debian/klog/usr