pkgsrc-Changes archive

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

CVS commit: pkgsrc/archivers/par2



Module Name:    pkgsrc
Committed By:   jperkin
Date:           Fri Sep 16 17:31:54 UTC 2016

Modified Files:
        pkgsrc/archivers/par2: distinfo
Added Files:
        pkgsrc/archivers/par2/patches: patch-par2cmdline.h

Log Message:
Fix build on SunOS.


To generate a diff of this commit:
cvs rdiff -u -r1.14 -r1.15 pkgsrc/archivers/par2/distinfo
cvs rdiff -u -r0 -r1.1 pkgsrc/archivers/par2/patches/patch-par2cmdline.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/par2/distinfo
diff -u pkgsrc/archivers/par2/distinfo:1.14 pkgsrc/archivers/par2/distinfo:1.15
--- pkgsrc/archivers/par2/distinfo:1.14 Thu Sep  1 16:33:43 2016
+++ pkgsrc/archivers/par2/distinfo      Fri Sep 16 17:31:54 2016
@@ -1,7 +1,8 @@
-$NetBSD: distinfo,v 1.14 2016/09/01 16:33:43 wiz Exp $
+$NetBSD: distinfo,v 1.15 2016/09/16 17:31:54 jperkin Exp $
 
 SHA1 (par2-0.6.14.tar.gz) = 68541996fd7eca6a0c711134dbc4ad8884907d4a
 RMD160 (par2-0.6.14.tar.gz) = d6c29f4e502e68f1cc72d1628a2fc273283ba8db
 SHA512 (par2-0.6.14.tar.gz) = 3d20a2a231fe36f5b12f070655c0eb7ce17fc5914187e0f90fe066571260736da4200e73028405eb44e875f29c64254390088a1365febba7cd3beeddae76b471
 Size (par2-0.6.14.tar.gz) = 3539262 bytes
 SHA1 (patch-diskfile.cpp) = c2319215a6438322edeb28c4413a0a26dcade2d5
+SHA1 (patch-par2cmdline.h) = 416b5ae047c2e3d45fd286ab8f1919092693a87f

Added files:

Index: pkgsrc/archivers/par2/patches/patch-par2cmdline.h
diff -u /dev/null pkgsrc/archivers/par2/patches/patch-par2cmdline.h:1.1
--- /dev/null   Fri Sep 16 17:31:54 2016
+++ pkgsrc/archivers/par2/patches/patch-par2cmdline.h   Fri Sep 16 17:31:54 2016
@@ -0,0 +1,23 @@
+$NetBSD: patch-par2cmdline.h,v 1.1 2016/09/16 17:31:54 jperkin Exp $
+
+Use GCC macros on SunOS, _LITTLE_ENDIAN is defined but not set.
+
+--- par2cmdline.h.orig 2015-08-02 16:09:46.000000000 +0000
++++ par2cmdline.h
+@@ -154,11 +154,14 @@ typedef unsigned long long u64;
+ #if HAVE_ENDIAN_H
+ #  include <endian.h>
+ #  ifndef __LITTLE_ENDIAN
+-#    ifdef _LITTLE_ENDIAN
+-#      define __LITTLE_ENDIAN _LITTLE_ENDIAN
++#    if defined(_LITTLE_ENDIAN) && !defined(__sun)
+ #      define __LITTLE_ENDIAN _LITTLE_ENDIAN
+ #      define __BIG_ENDIAN _BIG_ENDIAN
+ #      define __PDP_ENDIAN _PDP_ENDIAN
++#    elif defined(__ORDER_LITTLE_ENDIAN__)
++#      define __LITTLE_ENDIAN __ORDER_LITTLE_ENDIAN__
++#      define __BIG_ENDIAN __ORDER_BIG_ENDIAN__
++#      define __PDP_ENDIAN __ORDER_PDP_ENDIAN__
+ #    else
+ #      error <endian.h> does not define __LITTLE_ENDIAN etc.
+ #    endif



Home | Main Index | Thread Index | Old Index