• Bug#1066396: lftp: FTBFS: ./config.h:2540:11: fatal error: trio.h: No s

    From Andrey Rakhmatullin@21:1/5 to Lucas Nussbaum on Sun Mar 24 11:50:01 2024
    On Wed, Mar 13, 2024 at 01:03:20PM +0100, Lucas Nussbaum wrote:
    ./config.h:2540:11: fatal error: trio.h: No such file or directory
    2540 | # include "trio.h"
    | ^~~~~~~~
    (this suggests that using trio is not actually supported but that's
    irrelevant)
    This is caused by the stdio detection failing and should be fixed by
    adding #include <stdio.h> to the test case code in m4/needtrio.m4 but this package doesn't run autoreconf so fixing d/rules to at least do that is
    also needed.

    --
    WBR, wRAR

    -----BEGIN PGP SIGNATURE-----

    iQJhBAABCgBLFiEEolIP6gqGcKZh3YxVM2L3AxpJkuEFAmYAA4ktFIAAAAAAFQAP cGthLWFkZHJlc3NAZ251cGcub3Jnd3JhckBkZWJpYW4ub3JnAAoJEDNi9wMaSZLh inEP/3UP9htX6WoEohZJmpR9suH5F0IuTC9G3OHuQtp0hlXaTwxYAy4xSw8EnNaM awwqXrtchexy1MHV7vMPse4/Sv59nHM+DY5e9iKxDITx00BIM8wZsJclTA6zch3J +vBhwBBfADLYRoY2BLUZSpT6oMZbQCNH5fI6q16b9Vg6jXT//5brDEnbXKAQG0lH fKSclPWdWICM8FqMR0I3WISyRhDqvzQnoO1fwvJggcvgyKkYCUuNZzXOwZKhTD3z FAaV/uAeVu0SbchE6hDi8hXB1k4U5TOHqYASgR49WcxojXF4tKZWEH5YVbfoGZm5 rEoHCBBN8r2wvJkGBLX00d8iG+MkRzgMFL44V70gzWuDr6FwfOdUxGxctKcN7sQc Foz7Y+HBOfCjZm51hBJFyeRKyfuTh/3GyScb+EKVZ19pilIdg/zfiRYgpnzaGErn vPm1hwLh4X4ULr7CBGzVXWX7TjkVj00/z7TR8CQ4fI8svMqpbQUqMUVmerZit7/6 nmE1tLowFlHEtsIhlF9c4HexEQP4tu4jGUYrXt6F0nanUz5NvnEpisW6LOVDEeBg 9y0lIJxbaLkkkSt9D2I8fXuj+xdxLPlRqEP9L99qNr1RMG+Bbr07KYwjlb3Apd+p FardACakxmB8DbkjOcphCpuQP8BSWE1ctoFMapSQNrfzaYuj
    =G5By
    -----END PGP SIGNATURE-----

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Chris Hofstaedtler@21:1/5 to Andrey Rakhmatullin on Mon Apr 8 17:30:01 2024
    On Sun, Mar 24, 2024 at 03:42:18PM +0500, Andrey Rakhmatullin wrote:
    On Wed, Mar 13, 2024 at 01:03:20PM +0100, Lucas Nussbaum wrote:
    ./config.h:2540:11: fatal error: trio.h: No such file or directory
    2540 | # include "trio.h"
    | ^~~~~~~~
    (this suggests that using trio is not actually supported but that's irrelevant)
    This is caused by the stdio detection failing and should be fixed by
    adding #include <stdio.h> to the test case code in m4/needtrio.m4 but this package doesn't run autoreconf so fixing d/rules to at least do that is
    also needed.

    I gave the following a try, but it makes `make install` fail with an error suggesting a variable was left empty.

    Making install in po
    make[3]: Entering directory '/<<PKGBUILDDIR>>/po' /<<PKGBUILDDIR>>/debian/lftp/usr/share
    make[3]: /<<PKGBUILDDIR>>/debian/lftp/usr/share: Permission denied
    make[3]: *** [Makefile:304: install-data-yes] Error 127
    make[3]: Leaving directory '/<<PKGBUILDDIR>>/po'
    ...


    diff -Nru lftp-4.9.2/debian/rules lftp-4.9.2/debian/rules
    --- lftp-4.9.2/debian/rules 2018-09-17 09:33:33.000000000 +0200
    +++ lftp-4.9.2/debian/rules 2024-04-08 16:46:06.000000000 +0200
    @@ -20,6 +20,8 @@
    #configure: configure-stamp
    configure-stamp:
    dh_testdir
    + dh_update_autotools_config
    + dh_autoreconf
    # Add here commands to configure the package.
    CFLAGS="$(CFLAGS)" CXXFLAGS="$(CXXFLAGS)" CPPFLAGS="$(CPPFLAGS)" LDFLAGS="$(LDFLAGS)" ./configure \
    --prefix=/usr \
    @@ -56,6 +58,7 @@
    [ ! -f Makefile ] || $(MAKE) distclean
    rm -f doc/lftp.inf*

    + dh_autoreconf_clean
    dh_clean

    install: build

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