Date: Sun, 4 Jul 2021 15:03:54 GMT From: Piotr Kubaj <pkubaj@FreeBSD.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org Subject: git: 51ea03179aff - main - archivers/lazperf: fix build on big-endian architectures Message-ID: <202107041503.164F3s6L077285@gitrepo.freebsd.org>
next in thread | raw e-mail | index | archive | help
The branch main has been updated by pkubaj: URL: https://cgit.FreeBSD.org/ports/commit/?id=51ea03179aff52b1bdac30fc908e46f81392e619 commit 51ea03179aff52b1bdac30fc908e46f81392e619 Author: Piotr Kubaj <pkubaj@FreeBSD.org> AuthorDate: 2021-07-04 15:00:27 +0000 Commit: Piotr Kubaj <pkubaj@FreeBSD.org> CommitDate: 2021-07-04 15:00:27 +0000 archivers/lazperf: fix build on big-endian architectures /wrkdirs/usr/ports/archivers/lazperf/work/laz-perf-2.0.0/cpp/lazperf/vlr.cpp:188:28: error: constant expression evaluates to 16777216 which cannot be narrowed to type 'uint8_t' (aka 'unsigned char') [-Wc++11-narrowing] reserved{}, data_type{ htole32(1) }, options{}, name{}, unused{}, ^~~~~~~~~~ /usr/include/sys/endian.h:88:20: note: expanded from macro 'htole32' ^~~~~~~~~~~~ /usr/include/sys/endian.h:62:20: note: expanded from macro 'bswap32' ^~~~~~~~~~~~ /usr/include/machine/endian.h:136:22: note: expanded from macro '__bswap32' ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /wrkdirs/usr/ports/archivers/lazperf/work/laz-perf-2.0.0/cpp/lazperf/vlr.cpp:188:28: note: insert an explicit cast to silence this issue reserved{}, data_type{ htole32(1) }, options{}, name{}, unused{}, ^~~~~~~~~~ static_cast<uint8_t>( ) /usr/include/sys/endian.h:88:20: note: expanded from macro 'htole32' ^~~~~~~~~~~~ /usr/include/sys/endian.h:62:20: note: expanded from macro 'bswap32' ^~~~~~~~~~~~ /usr/include/machine/endian.h:136:22: note: expanded from macro '__bswap32' ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /wrkdirs/usr/ports/archivers/lazperf/work/laz-perf-2.0.0/cpp/lazperf/vlr.cpp:188:28: warning: implicit conversion from 'unsigned int' to 'uint8_t' (aka 'unsigned char') changes value from 16777216 to 0 [-Wconstant-conversion] reserved{}, data_type{ htole32(1) }, options{}, name{}, unused{}, ~ ^~~~~~~~~~ /usr/include/sys/endian.h:88:20: note: expanded from macro 'htole32' ^~~~~~~~~~~~ /usr/include/sys/endian.h:62:20: note: expanded from macro 'bswap32' ^~~~~~~~~~~~ /usr/include/machine/endian.h:136:42: note: expanded from macro '__bswap32' ^~~~~~~~~~~~~~~~~~ /usr/include/machine/endian.h:98:37: note: expanded from macro '__bswap32_const' (((__uint32_t)(x)<< 8) & 0xff0000) | \ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 1 warning and 1 error generated. --- archivers/lazperf/Makefile | 3 +++ archivers/lazperf/distinfo | 4 +++- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/archivers/lazperf/Makefile b/archivers/lazperf/Makefile index db3758d05571..5480422ead87 100644 --- a/archivers/lazperf/Makefile +++ b/archivers/lazperf/Makefile @@ -4,6 +4,9 @@ PORTNAME= lazperf DISTVERSION= 2.0.0 CATEGORIES= archivers databases geography +PATCH_SITES= https://github.com/hobu/laz-perf/commit/ +PATCHFILES= a003d1ead4afb9a0c61cde8b00340c489f2ce370.patch:-p1 + MAINTAINER= lbartoletti@FreeBSD.org COMMENT= Alternative LAZ implementation for C++ and JavaScript diff --git a/archivers/lazperf/distinfo b/archivers/lazperf/distinfo index 21adcaa8d999..9de69a3d6545 100644 --- a/archivers/lazperf/distinfo +++ b/archivers/lazperf/distinfo @@ -1,3 +1,5 @@ -TIMESTAMP = 1622957308 +TIMESTAMP = 1625410349 SHA256 (hobu-laz-perf-2.0.0_GH0.tar.gz) = 0b088e17b7ed96333fc4d791fb78d021e37a63c97fe85dff59b19a0098df6462 SIZE (hobu-laz-perf-2.0.0_GH0.tar.gz) = 4968421 +SHA256 (a003d1ead4afb9a0c61cde8b00340c489f2ce370.patch) = 9dc35fcf10ef722a9901152faeb4c727532010f690484329df98249af9234a4e +SIZE (a003d1ead4afb9a0c61cde8b00340c489f2ce370.patch) = 857
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202107041503.164F3s6L077285>