• hptutil

    From Michael Dukelsky@2:5020/1042 to All on Thu Sep 28 22:36:14 2023
    Hello All,

    I added hptutil to makefiles. Now you can build it using build.sh or build_rpm scripts. Nothing was changed in hptutil program, so all its bugs are safe and sound. :)

    I tested the build only on Linux, since I have no possibility to test it on other operating systems at the moment. Please test it on your OS.

    Michael

    ... node (at) f1042 (dot) ru
    --- GoldED+/LNX 1.1.5-b20230926
    * Origin: Moscow, Russia (2:5020/1042)
  • From Kai Richter@2:240/77 to Michael Dukelsky on Fri Sep 29 12:33:18 2023
    Hello Michael!

    28 Sep 23, Michael Dukelsky wrote to All:

    I added hptutil to makefiles. Now you can build it using build.sh

    I added hptutil to the PROGRAMMS in huskymak.cfg. First build.sh:

    remote: Enumerating objects: 15, done.
    remote: Counting objects: 100% (15/15), done.
    remote: Compressing objects: 100% (5/5), done.
    remote: Total 15 (delta 10), reused 15 (delta 10), pack-reused 0
    Unpacking objects: 100% (15/15), 7.25 KiB | 741.00 KiB/s, done.
    From https://github.com/huskyproject/huskybse
    b335cfa..070eb9c master -> origin/master
    Updating b335cfa..070eb9c
    Fast-forward
    Makefile | 16 +++++++++++-----
    husky.spec.in | 31 +++++++++++++++++++++++++++++++
    huskymak.cfg | 2 +-
    huskymak.cfg.bsd | 2 +-
    huskymak.cfg.macos | 2 +-
    huskymak.cfg.mgw | 2 +-
    huskymak.rpm.cfg | 2 +-
    script/spec_configure | 41 ++++++++++++++++++++++++++++++++++-------
    8 files changed, 81 insertions(+), 17 deletions(-)
    diff: ./huskymak.cfg.new: No such file or directory
    Makefile:508: hptutil/Makefile: No such file or directory
    gmake: *** No rule to make target 'hptutil/Makefile'. Stop.

    Second build.sh run:

    Already up to date.
    remote: Enumerating objects: 544, done.
    remote: Counting objects: 100% (38/38), done.
    remote: Compressing objects: 100% (26/26), done.
    remote: Total 544 (delta 14), reused 29 (delta 12), pack-reused 506
    Receiving objects: 100% (544/544), 173.34 KiB | 3.21 MiB/s, done.
    Resolving deltas: 100% (343/343), done.
    Generating hptutil/h/cvsdate.h
    diff: ./huskymak.cfg.new: No such file or directory
    [ -d hptutil/Build/ ] || mkdir -m 755 -p hptutil/Build/
    [ -d hptutil/Build/dep/ ] || mkdir -m 755 -p hptutil/Build/dep/
    [ -d hptutil/Build/obj/ ] || mkdir -m 755 -p hptutil/Build/obj/
    gzip -c hptutil/man/hptutil.1 > hptutil/Build/hptutil.1.gz
    clang -Wall -c -g0 -O3 -fomit-frame-pointer -fPIC -DUNIX -Ihptutil/h/ -Ifidoconf/ -Ismapi/ -Ihuskylib/ -o hptutil/Build/obj/fixarea.o hptutil/src/fixarea.c
    [...]
    clang -Wall -c -g0 -O3 -fomit-frame-pointer -fPIC -DUNIX -Ihptutil/h/ -Ifidoconf/ -Ismapi/ -Ihuskylib/ -o hptutil/Build/obj/undelete.o hptutil/src/undelete.c
    hptutil/src/purgearea.c:133:10: warning: variable 'frame_prev' set but not used [-Wunused-but-set-variable]
    FOFS frame_prev;
    ^
    hptutil/src/linkarea.c:574:45: warning: result of comparison of constant -1 with expression of type 'dword' (aka 'unsigned int') is always true [-Wtautological-constant-out-of-range-compare]
    if(msginfo[i]->msgidCRC != -1L &&
    ~~~~~~~~~~~~~~~~~~~~ ^ ~~~
    1 warning generated.


    Executable start:
    hptutil/fbsd 1.9 2023-09-28

    Usage: hptutil [options]
    Options: sort - sort unread messages by time and date
    link - reply-link messages

    So building looks fine on fbsd.
    I did not test hptutil in real action.

    Regards

    Kai

    --- GoldED+/LNX 1.1.4.7
    * Origin: Monobox (2:240/77)
  • From Michael Dukelsky@2:5020/1042 to Kai Richter on Fri Sep 29 22:30:54 2023
    Hello Kai,

    Friday September 29 2023, Kai Richter wrote to Michael Dukelsky:

    [...]
    Executable start:
    hptutil/fbsd 1.9 2023-09-28

    Usage: hptutil [options]
    Options: sort - sort unread messages by time and date
    link - reply-link messages

    So building looks fine on fbsd.

    Thank you for testing.

    I did not test hptutil in real action.

    Neither did I. :)
    It is important to back up your message base before using hptutil!

    Michael

    ... node (at) f1042 (dot) ru
    --- GoldED+/LNX 1.1.5-b20230926
    * Origin: Moscow, Russia (2:5020/1042)
  • From Tommi Koivula@2:221/1 to Michael Dukelsky on Sat Sep 30 09:09:02 2023
    Michael Dukelsky wrote:

    I added hptutil to makefiles. Now you can build it using build.sh
    or build_rpm scripts. Nothing was changed in hptutil program, so
    all its bugs are safe and sound. :)

    :)

    I tested the build only on Linux, since I have no possibility to
    test it on other operating systems at the moment. Please test it on
    your OS.

    Compiled in 64bit ubuntu, all the bugs are there indeed :(

    ======================================================================== hptutil/lnx 1.9 2023-09-28

    Purge areas begin
    EchoArea (null) is JAM ... 5215965-27=1, Done
    EchoArea (null) is JAM ... 5215965-22=2, Done
    EchoArea (null) is JAM ... 5215965-27=3, Done
    EchoArea (null) is JAM ... 5215965-25=4, Done
    EchoArea (null) is JAM ... 5215965-31=5, Done
    EchoArea (null) is JAM ... 5215965-27=6, Done
    EchoArea (null) is JAM ... 5215965-25=7, Done
    EchoArea (null) is JAM ... 5215965-26=8, Done
    EchoArea (null) is JAM ... 5215965-25=9, Done
    EchoArea (null) is JAM ... 5215965-23=10, Done
    EchoArea (null) is JAM ... 13020896-13017552=11, Done
    EchoArea (null) is JAM ... 5215965-25=12, Done
    EchoArea (null) is JAM ... 5215965-32=13, Done
    EchoArea (null) is Squish ... 13020800-13017552=14, Done
    EchoArea (null) is Squish ... 13048000-13017552=15, Done
    EchoArea (null) is Squish ... 13020896-13017552=16, Done
    EchoArea (null) is Squish ... 13020800-13017552=17, Done
    EchoArea (null) is Squish ... 13048000-13017552=18, Done
    EchoArea (null) is Squish ... 13020896-13017552=19, Done
    EchoArea (null) is Squish ... 13020800-13017552=20, Done
    EchoArea (null) is JAM ... 5215965-25=21, Done
    EchoArea (null) is JAM ... 5215965-20=22, Done
    EchoArea (null) is Squish ... 13048000-13017552=23, Done
    EchoArea (null) is Squish ... 13020896-13017552=24, Done
    EchoArea (null) is JAM ... 13020800-13017552=25, Done
    EchoArea (null) is Squish ... 13048000-13017552=26, Done
    NetArea (null) is Squish ... 13020896-13017552=0, Done
    NetArea (null) is JAM ... 13020800-13017552=288, Done
    Purge areas end
    Total old msgs:13020464 Total purged:13015168 Total new
    msgs:140728793532456 ========================================================================

    Then I compiled in 32bit ubuntu and everything works fine :

    ======================================================================== hptutil/lnx 1.9 2023-09-28

    Purge areas begin
    EchoArea aftershock is JAM ... 5-0=5, Done
    EchoArea binkd is JAM ... 18-0=18, Done
    EchoArea enet.sysop is JAM ... 14-0=14, Done
    EchoArea fidonews is JAM ... 47-0=47, Done
    EchoArea fidosoft.husky is JAM ... 38-0=38, Done
    EchoArea fido_sysop is JAM ... 3-0=3, Done
    EchoArea fidotest is JAM ... 13-0=13, Done
    EchoArea fidotestx is JAM ... 13-0=13, Done
    EchoArea fn_sysop is JAM ... 4-0=4, Done
    EchoArea golded is JAM ... 8-0=8, Done
    EchoArea ipv6 is JAM ... 1-0=1, Done
    EchoArea jamnntpd is JAM ... 0-0=0, Done
    EchoArea nodelist-police is JAM ... 46-0=46, Done
    EchoArea rbb.test.1 is Squish ... 4-0=4, Done
    EchoArea rbb.test.2 is Squish ... 4-0=4, Done
    EchoArea rbb.test.3 is Squish ... 1-0=1, Done
    EchoArea pintest-jam is JAM ... 4-0=4, Done
    EchoArea pintest-squ is Squish ... 7-0=7, Done
    NetArea netmail is Squish ... 1-0=1, Done
    NetArea netmail-jam is JAM ... 1123-0=1123, Done
    Purge areas end
    Total old msgs:1382 Total purged:0 Total new msgs:1382 ========================================================================

    As I found out before, "hptutil pack" does not renumber squish base.
    However it does renumber JAM.

    'Tommi

    --- Sylpheed 3.8.0beta1 (GTK+ 2.24.30; i686-pc-mingw32)
    * Origin: nntp://rbb.fidonet.fi - Lake Ylo - Finland (2:221/1.0)