pkgsrc-Changes archive

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

CVS commit: pkgsrc/archivers/advancecomp



Module Name:    pkgsrc
Committed By:   nia
Date:           Fri Oct  4 18:08:07 UTC 2019

Modified Files:
        pkgsrc/archivers/advancecomp: distinfo
Added Files:
        pkgsrc/archivers/advancecomp/patches: patch-libdeflate_compiler__gcc.h

Log Message:
advancecomp: Avoid compiler warnings due to redefining bswap* on NetBSD.


To generate a diff of this commit:
cvs rdiff -u -r1.10 -r1.11 pkgsrc/archivers/advancecomp/distinfo
cvs rdiff -u -r0 -r1.3 \
    pkgsrc/archivers/advancecomp/patches/patch-libdeflate_compiler__gcc.h

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

Modified files:

Index: pkgsrc/archivers/advancecomp/distinfo
diff -u pkgsrc/archivers/advancecomp/distinfo:1.10 pkgsrc/archivers/advancecomp/distinfo:1.11
--- pkgsrc/archivers/advancecomp/distinfo:1.10  Fri Oct  4 18:02:48 2019
+++ pkgsrc/archivers/advancecomp/distinfo       Fri Oct  4 18:08:07 2019
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.10 2019/10/04 18:02:48 nia Exp $
+$NetBSD: distinfo,v 1.11 2019/10/04 18:08:07 nia Exp $
 
 SHA1 (advancecomp-2.1.tar.gz) = 2699fd24c2175bece1f8fb68d40f13db86480048
 RMD160 (advancecomp-2.1.tar.gz) = 9a67286906113a26b5e8f2e155c408c1b0b935c8
@@ -7,4 +7,4 @@ Size (advancecomp-2.1.tar.gz) = 1292135 
 SHA1 (patch-aa) = ddc8b6981e1e0b46ac6291aee65d56cdae9f0998
 SHA1 (patch-ab) = 1e6e10943bd2a414d4f704bd94b1de3d1036dd90
 SHA1 (patch-ac) = d08d44224c4351c66c920b26bacc3f749a54d31a
-SHA1 (patch-libdeflate_compiler__gcc.h) = e7d0c01f7fae2ea53e74edd0e849e9243b132661
+SHA1 (patch-libdeflate_compiler__gcc.h) = 5e8fe8d3a7d45097cbc04523c2085ef38c7d0de0

Added files:

Index: pkgsrc/archivers/advancecomp/patches/patch-libdeflate_compiler__gcc.h
diff -u /dev/null pkgsrc/archivers/advancecomp/patches/patch-libdeflate_compiler__gcc.h:1.3
--- /dev/null   Fri Oct  4 18:08:08 2019
+++ pkgsrc/archivers/advancecomp/patches/patch-libdeflate_compiler__gcc.h       Fri Oct  4 18:08:07 2019
@@ -0,0 +1,24 @@
+$NetBSD: patch-libdeflate_compiler__gcc.h,v 1.3 2019/10/04 18:08:07 nia Exp $
+
+Avoid conflicts due to changing the prototypes of bswap32 and co.
+
+--- libdeflate/compiler_gcc.h.orig     2017-01-24 17:51:01.000000000 +0000
++++ libdeflate/compiler_gcc.h
+@@ -93,6 +93,9 @@
+ #  define CPU_IS_LITTLE_ENDIAN() (__BYTE_ORDER__ == __ORDER_LITTLE_ENDIAN__)
+ #endif
+ 
++#ifdef __NetBSD__
++#include <sys/endian.h>
++#else
+ #if GCC_PREREQ(4, 8) || __has_builtin(__builtin_bswap16)
+ #  define bswap16     __builtin_bswap16
+ #endif
+@@ -104,6 +107,7 @@
+ #if GCC_PREREQ(4, 3) || __has_builtin(__builtin_bswap64)
+ #  define bswap64     __builtin_bswap64
+ #endif
++#endif
+ 
+ #if defined(__x86_64__) || defined(__i386__) || defined(__ARM_FEATURE_UNALIGNED)
+ #  define UNALIGNED_ACCESS_IS_FAST 1



Home | Main Index | Thread Index | Old Index