• Bug#1110314: nethogs FTCBFS: tries to compile nethogs at install step

    From Nilesh Patra@21:1/5 to All on Sun Aug 3 08:20:01 2025
    Package: nethogs
    Version: 0.8.8-2
    Tags: patch
    User: [email protected]
    Usertags: ftcbfs
    X-Debbugs-Cc: [email protected]

    Dear Maintainer,

    nethogs fails to cross-build because it tries to build the actual nethogs binary
    at the install step, where the arch prefixed triplet for CC/CXX isn't passed.

    It'd also awkward to build things in install step. It'd be good to build both the library and the binary during build itself which fixes cross build as well.

    Patch pasted below fixed the problem. Please consider applying.

    Thanks
    Nilesh

    diff --git a/debian/rules b/debian/rules
    index f707666..7a90661 100755
    --- a/debian/rules
    +++ b/debian/rules
    @@ -18,7 +18,7 @@ export VERSION=$(DEB_VERSION_UPSTREAM)
    dh $@

    override_dh_auto_build:
    - dh_auto_build -- libnethogs
    + dh_auto_build -- libnethogs nethogs

    override_dh_auto_install:
    make install DESTDIR=$(CURDIR)/debian/nethogs

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