mirror of
https://git.freebsd.org/ports.git
synced 2025-07-18 17:59:20 -04:00
- Update to lnav 0.8.2
- Add optional dependency on libcurl - Fix crash on i386 - Add USES=compiler:c++14-lang - Remove USES=python PR: 219477 Submitted by: tom@hur.st(maintainer)
This commit is contained in:
parent
fe1fd540a2
commit
30f776261b
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=443557
4 changed files with 43 additions and 6 deletions
|
@ -2,9 +2,8 @@
|
||||||
# $FreeBSD$
|
# $FreeBSD$
|
||||||
|
|
||||||
PORTNAME= lnav
|
PORTNAME= lnav
|
||||||
PORTVERSION= 0.8.1
|
PORTVERSION= 0.8.2
|
||||||
DISTVERSIONPREFIX= v
|
DISTVERSIONPREFIX= v
|
||||||
PORTREVISION= 1
|
|
||||||
CATEGORIES= sysutils
|
CATEGORIES= sysutils
|
||||||
|
|
||||||
MAINTAINER= tom@hur.st
|
MAINTAINER= tom@hur.st
|
||||||
|
@ -17,10 +16,21 @@ LIB_DEPENDS= libpcrecpp.so:devel/pcre
|
||||||
USE_GITHUB= yes
|
USE_GITHUB= yes
|
||||||
GH_ACCOUNT= tstack
|
GH_ACCOUNT= tstack
|
||||||
|
|
||||||
USES= autoreconf execinfo gmake ncurses python sqlite readline
|
USES= autoreconf compiler:c++14-lang execinfo gmake ncurses sqlite readline
|
||||||
GNU_CONFIGURE= yes
|
GNU_CONFIGURE= yes
|
||||||
CONFIGURE_ARGS= --disable-static
|
CONFIGURE_ARGS= --disable-static
|
||||||
|
|
||||||
PLIST_FILES= bin/lnav man/man1/lnav.1.gz
|
PLIST_FILES= bin/lnav man/man1/lnav.1.gz
|
||||||
|
|
||||||
|
OPTIONS_DEFINE= CURL
|
||||||
|
OPTIONS_DEFAULT=CURL
|
||||||
|
CURL_DESC= Use libcurl for remote log file support
|
||||||
|
|
||||||
|
CURL_LIB_DEPENDS= libcurl.so:ftp/curl
|
||||||
|
CURL_CONFIGURE_WITH= libcurl
|
||||||
|
|
||||||
|
do-install:
|
||||||
|
${INSTALL_PROGRAM} ${WRKSRC}/src/lnav ${STAGEDIR}${PREFIX}/bin
|
||||||
|
${INSTALL_MAN} ${WRKSRC}/lnav.1 ${STAGEDIR}${MAN1PREFIX}/man/man1
|
||||||
|
|
||||||
.include <bsd.port.mk>
|
.include <bsd.port.mk>
|
||||||
|
|
|
@ -1,3 +1,3 @@
|
||||||
TIMESTAMP = 1472227481
|
TIMESTAMP = 1497410260
|
||||||
SHA256 (tstack-lnav-v0.8.1_GH0.tar.gz) = 7f5f5f453f291db03036b26c1eb20933c8a9eb095108edeb3d6b65ab79187009
|
SHA256 (tstack-lnav-v0.8.2_GH0.tar.gz) = 50afb1dec659d6169ba7f6f16642e53cc680eade6f460d73a180f9e9470d6016
|
||||||
SIZE (tstack-lnav-v0.8.1_GH0.tar.gz) = 856480
|
SIZE (tstack-lnav-v0.8.2_GH0.tar.gz) = 930155
|
||||||
|
|
11
sysutils/lnav/files/patch-src_extension-functions.cc
Normal file
11
sysutils/lnav/files/patch-src_extension-functions.cc
Normal file
|
@ -0,0 +1,11 @@
|
||||||
|
--- src/extension-functions.cc.orig 2017-04-19 14:17:53 UTC
|
||||||
|
+++ src/extension-functions.cc
|
||||||
|
@@ -269,7 +269,7 @@ static const int xtra_utf8_bits[] = {
|
||||||
|
** masking the character with utf8_mask[N] must produce a non-zero
|
||||||
|
** result. Otherwise, we have an (illegal) overlong encoding.
|
||||||
|
*/
|
||||||
|
-static const long utf_mask[] = {
|
||||||
|
+static const unsigned long utf_mask[] = {
|
||||||
|
0x00000000,
|
||||||
|
0xffffff80,
|
||||||
|
0xfffff800,
|
16
sysutils/lnav/files/patch-src_logfile.cc
Normal file
16
sysutils/lnav/files/patch-src_logfile.cc
Normal file
|
@ -0,0 +1,16 @@
|
||||||
|
--- src/logfile.cc.orig 2017-05-23 18:53:47 UTC
|
||||||
|
+++ src/logfile.cc
|
||||||
|
@@ -92,10 +92,10 @@ throw (error)
|
||||||
|
|
||||||
|
loo.loo_fd.close_on_exec();
|
||||||
|
|
||||||
|
- log_info("Creating logfile: fd=%d; size=%d; mtime=%d; filename=%s",
|
||||||
|
+ log_info("Creating logfile: fd=%d; size=%" PRId64 "; mtime=%" PRId64 "; filename=%s",
|
||||||
|
(int) loo.loo_fd,
|
||||||
|
- this->lf_stat.st_size,
|
||||||
|
- this->lf_stat.st_mtime,
|
||||||
|
+ (long long) this->lf_stat.st_size,
|
||||||
|
+ (long long) this->lf_stat.st_mtime,
|
||||||
|
filename.c_str());
|
||||||
|
|
||||||
|
this->lf_valid_filename = true;
|
Loading…
Add table
Reference in a new issue