Subject: CVS commit: pkgsrc/sysutils/lnav
From: Havard Eidnes
Date: 2023-05-25 00:42:53
Message id: 20230524224253.655FEFA87@cvs.NetBSD.org

Log Message:
lnav: fix build on NetBSD/macppc and reduce amount of warnings.

 - The program uses alloca() but insists on use of -std=c++14.
   alloca(), however, especially on NetBSD/macppc, needs the
   -std=gnu++14 feature set, so force use of that standard.
 - isdigit() argument nees to be `unsigned char` or EOF. Add cast.
 - On NetBSD, `time_t` isn't a `long`, and there is apparently
   no portable way to supply a printf format for a `time_t`.
   Cast to `long long` and print with %lld.
 - A `role_t` is not the same as `int`, causing -Wformat warning.
   Cast to `int` before printing.
 - Avoid trying to right-shift with 32 on a 32-bit platform.
 - Print `unsigned int` with %u, and not with %ld.

Lots of signedness warnings remain, reported to upstream in
https://github.com/tstack/lnav/issues/1157.  I'll be requesting
pull requests for some of the others above.

Bump PKGREVISION.

Files:
RevisionActionfile
1.26modifypkgsrc/sysutils/lnav/Makefile
1.8modifypkgsrc/sysutils/lnav/distinfo
1.1addpkgsrc/sysutils/lnav/patches/patch-src_base_strnatcmp.c
1.1addpkgsrc/sysutils/lnav/patches/patch-src_command__executor.cc
1.1addpkgsrc/sysutils/lnav/patches/patch-src_lnav__commands.cc
1.1addpkgsrc/sysutils/lnav/patches/patch-src_ptimec.hh
1.1addpkgsrc/sysutils/lnav/patches/patch-src_spectro__source.cc
1.1addpkgsrc/sysutils/lnav/patches/patch-src_third-party_ArenaAlloc_arenaallocimpl.h
1.1addpkgsrc/sysutils/lnav/patches/patch-src_vtab__module.hh