pkgsrc-Changes archive

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

CVS commit: pkgsrc/textproc/libunistring



Module Name:    pkgsrc
Committed By:   nia
Date:           Fri Nov 12 12:40:17 UTC 2021

Modified Files:
        pkgsrc/textproc/libunistring: Makefile distinfo
Added Files:
        pkgsrc/textproc/libunistring/patches: patch-lib_Makefile.in
            patch-lib_stdbool.mini.h

Log Message:
libunistring: Test for c99 instead of testing for the compiler before
attempting to include stdbool.h. Solaris 10 has stdbool, but the compiler
defaults to c89 and an error will occur on stdbool inclusion due to the
specified standard not being recent enough.

PR pkg/56488


To generate a diff of this commit:
cvs rdiff -u -r1.13 -r1.14 pkgsrc/textproc/libunistring/Makefile
cvs rdiff -u -r1.11 -r1.12 pkgsrc/textproc/libunistring/distinfo
cvs rdiff -u -r0 -r1.1 \
    pkgsrc/textproc/libunistring/patches/patch-lib_Makefile.in \
    pkgsrc/textproc/libunistring/patches/patch-lib_stdbool.mini.h

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

Modified files:

Index: pkgsrc/textproc/libunistring/Makefile
diff -u pkgsrc/textproc/libunistring/Makefile:1.13 pkgsrc/textproc/libunistring/Makefile:1.14
--- pkgsrc/textproc/libunistring/Makefile:1.13  Sat Jan 18 23:35:29 2020
+++ pkgsrc/textproc/libunistring/Makefile       Fri Nov 12 12:40:17 2021
@@ -1,6 +1,7 @@
-# $NetBSD: Makefile,v 1.13 2020/01/18 23:35:29 rillig Exp $
+# $NetBSD: Makefile,v 1.14 2021/11/12 12:40:17 nia Exp $
 
 DISTNAME=      libunistring-0.9.10
+PKGREVISION=   1
 CATEGORIES=    textproc
 MASTER_SITES=  http://ftp.gnu.org/gnu/libunistring/
 

Index: pkgsrc/textproc/libunistring/distinfo
diff -u pkgsrc/textproc/libunistring/distinfo:1.11 pkgsrc/textproc/libunistring/distinfo:1.12
--- pkgsrc/textproc/libunistring/distinfo:1.11  Tue Oct 26 11:22:17 2021
+++ pkgsrc/textproc/libunistring/distinfo       Fri Nov 12 12:40:17 2021
@@ -1,5 +1,7 @@
-$NetBSD: distinfo,v 1.11 2021/10/26 11:22:17 nia Exp $
+$NetBSD: distinfo,v 1.12 2021/11/12 12:40:17 nia Exp $
 
 BLAKE2s (libunistring-0.9.10.tar.gz) = 6af4f8f362e74baf433757d540c157b1fead6e087f65969be54d0716bde97037
 SHA512 (libunistring-0.9.10.tar.gz) = 690082732fbbd47ab4ffbd6f21d85afece0f8e2ded24982f949f4ae52bf0a981b75ea9bc14ab289e0954cde07f31a7a4c2bb65615a8eb5b2bfa65720310b6fc9
 Size (libunistring-0.9.10.tar.gz) = 3744814 bytes
+SHA1 (patch-lib_Makefile.in) = f2335fa6a8b088e701a4d8bd433b45359be5c243
+SHA1 (patch-lib_stdbool.mini.h) = 0b4a3b3e461b517f28e9a58da0f50045467d2d2a

Added files:

Index: pkgsrc/textproc/libunistring/patches/patch-lib_Makefile.in
diff -u /dev/null pkgsrc/textproc/libunistring/patches/patch-lib_Makefile.in:1.1
--- /dev/null   Fri Nov 12 12:40:17 2021
+++ pkgsrc/textproc/libunistring/patches/patch-lib_Makefile.in  Fri Nov 12 12:40:17 2021
@@ -0,0 +1,19 @@
+$NetBSD: patch-lib_Makefile.in,v 1.1 2021/11/12 12:40:17 nia Exp $
+
+Test for c99 default before using stdbool instead of testing for GCC 2.95.
+PR pkg/56488: Solaris 10 compile issues, stdbool.h requires c99
+
+--- lib/Makefile.in.orig       2018-05-25 16:03:27.000000000 +0000
++++ lib/Makefile.in
+@@ -5804,9 +5804,9 @@ unistring/stdbool.h : $(STDBOOL_H) stdbo
+       { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \
+         echo '#if !defined _GL_STDBOOL_H'; \
+         if test -f /usr/include/stdbool.h; then \
+-          echo '#if (__GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 95)) || defined _AIX'; \
++          echo '#if (__STDC_VERSION__ >= 199901L) || defined _AIX'; \
+         else \
+-          echo '#if (__GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 95))'; \
++          echo '#if (__STDC_VERSION__ >= 199901L)'; \
+         fi; \
+         echo '#include <stdbool.h>'; \
+         echo '#else'; \
Index: pkgsrc/textproc/libunistring/patches/patch-lib_stdbool.mini.h
diff -u /dev/null pkgsrc/textproc/libunistring/patches/patch-lib_stdbool.mini.h:1.1
--- /dev/null   Fri Nov 12 12:40:17 2021
+++ pkgsrc/textproc/libunistring/patches/patch-lib_stdbool.mini.h       Fri Nov 12 12:40:17 2021
@@ -0,0 +1,21 @@
+$NetBSD: patch-lib_stdbool.mini.h,v 1.1 2021/11/12 12:40:17 nia Exp $
+
+Test for c99 default before using stdbool instead of testing for GCC 2.95.
+PR pkg/56488: Solaris 10 compile issues, stdbool.h requires c99
+
+--- lib/stdbool.mini.h.orig    2018-02-12 12:16:29.000000000 +0000
++++ lib/stdbool.mini.h
+@@ -71,12 +71,7 @@
+      It is know not to work with:
+        - Sun C, on Solaris, if __C99FEATURES__ is defined but _STDC_C99 is not,
+        - MIPSpro C 7.30, on IRIX.  */
+-# if (__GNUC__ >= 3) \
+-     || defined __INTEL_COMPILER \
+-     || (_MSC_VER >= 1800) \
+-     || (defined __SUNPRO_C && defined _STDC_C99) \
+-     || (defined _AIX && !defined __GNUC__ && defined _ANSI_C_SOURCE) \
+-     || defined __HP_cc
++# if __STDC_VERSION__ >= 199901L
+    /* Assume the compiler has <stdbool.h>.  */
+ #  include <stdbool.h>
+ # else



Home | Main Index | Thread Index | Old Index