pkgsrc-WIP-changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

navit: Fix endianness warning



Module Name:	pkgsrc-wip
Committed By:	FeZ <fekete.zoltan%minux.hu@localhost>
Pushed By:	fez
Date:		Mon May 28 14:06:09 2018 +0000
Changeset:	79c1d239fb62b393de88ed0f1c0207cded156b78

Modified Files:
	navit/Makefile
	navit/TODO

Log Message:
navit: Fix endianness warning

Another is still existing. See TODO.

To see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=79c1d239fb62b393de88ed0f1c0207cded156b78

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

diffstat:
 navit/Makefile |  2 ++
 navit/TODO     | 23 ++++++++---------------
 2 files changed, 10 insertions(+), 15 deletions(-)

diffs:
diff --git a/navit/Makefile b/navit/Makefile
index 7c16329112..6c18e1ce63 100644
--- a/navit/Makefile
+++ b/navit/Makefile
@@ -13,6 +13,8 @@ LICENSE=	gnu-gpl-v2
 USE_CMAKE=	yes
 USE_LANGUAGES=	c c++
 
+CFLAGS.NetBSD+= -DUSE_SYS_ENDIAN_H
+
 USE_TOOLS+=	cmake pkg-config
 
 CMAKE_ARGS+=    -DLIB_DIR=${PREFIX}/lib/navit
diff --git a/navit/TODO b/navit/TODO
index 7d1c446d3e..4c12827b05 100644
--- a/navit/TODO
+++ b/navit/TODO
@@ -1,17 +1,10 @@
-1. Fix glib.h include problem. Remove the corresponding patch.
-2. Solve NetBSD porting problem (runtime issues).
-3. Find and set default options for the package.
-4. Create additional package options.
+1. Find and set default options for the package.
+2. Create additional package options.
 
-On NetBSD-current the build fails due undefined __BYTE_ORDER and
-__*_ENDIAN, e.g.:
+3. Check if there is a solution for this warning:
 
-> .../navit-0.5.1/navit/map/binfile/binfile.c:1737:5: warning: "__BYTE_ORDER" is not defined [-Wundef]
->  #if __BYTE_ORDER == __BIG_ENDIAN
->      ^~~~~~~~~~~~
-> .../navit-0.5.1/navit/map/binfile/binfile.c:1737:21: warning: "__BIG_ENDIAN" is not defined [-Wundef]
->  #if __BYTE_ORDER == __BIG_ENDIAN
->                      ^~~~~~~~~~~~
-
-Adding `CFLAGS.NetBSD+= -DUSE_SYS_ENDIAN_H' seems to workaround
-that but it also sounds pretty kludgy!
+/usr/pkgsrc/wip/navit/work/navit-0.5.1/navit/endianess.h:49:5: warning:
+"HAVE_BYTESWAP_H" is not defined [-Wundef]
+ #if HAVE_BYTESWAP_H
+ 
+ 


Home | Main Index | Thread Index | Old Index