[BACK]Return to patch-configure CVS log [TXT][DIR] Up to [cvs.NetBSD.org] / pkgsrc / misc / rhash / patches

File: [cvs.NetBSD.org] / pkgsrc / misc / rhash / patches / patch-configure (download)

Revision 1.4, Tue Jul 18 06:13:51 2023 UTC (8 months, 3 weeks ago) by adam
Branch: MAIN
CVS Tags: pkgsrc-2024Q1-base, pkgsrc-2024Q1, pkgsrc-2023Q4-base, pkgsrc-2023Q4, pkgsrc-2023Q3-base, pkgsrc-2023Q3, HEAD
Changes since 1.3: +23 -4 lines

rhash: updated to 1.4.4

RHash v1.4.4

New option --unverified to print unverified files
New option --missing to print missing files
New printf-format directive '%d' to print file directory
Print the algorithms being calculated on -vv
Renamed --maxdepth option to --max-depth
Support leading and trailing spaces in a file names
Support escaping of special characters in file paths
Change the simple file format to fit the sfv format
LibRHash: Remove obsolete rhash_timer functions (API breaking change)
Bugfix: Fix slash usage with wilcards on Windows

$NetBSD: patch-configure,v 1.4 2023/07/18 06:13:51 adam Exp $

Skip compiler detection magic.

Fix build https://github.com/rhash/RHash/issues/238

Avoid choosing aligned_alloc() when it's not present, such as CentOS 6
with lang/gcc7 and older Solaris releases.

--- configure.orig	2023-07-14 13:06:29.000000000 +0000
+++ configure
@@ -646,8 +646,6 @@ else
     fi
   done
 fi # icc
-test -z "$cc_vendor" && die "compiler not found"
-test "$cc_fail" = "yes" && die "unsupported compiler version"
 
 log_start "compiler working with default options"
 if ! cc_check_cflag; then
@@ -690,7 +688,6 @@ log_finish
 SHARED_PREFIX="lib"
 STATIC_PREFIX="lib"
 STATIC_EXT=".a"
-SHARED_EXT=".so.${RHASH_VERSION_MAJOR}"
 SO_MAJ_EXT=".so.${RHASH_VERSION_MAJOR}"
 SOLINK_EXT=".so"
 EXEC_EXT=
@@ -713,7 +710,7 @@ if win32; then
 elif darwin; then
   SHARED_EXT=".${RHASH_VERSION_MAJOR}.dylib"
   SOLINK_EXT=".dylib"
-elif linux; then
+else
   # use the full library version for the library file extension
   SHARED_EXT=".so.${RHASH_VERSION}"
 fi
@@ -755,6 +752,16 @@ elif test "$OPT_OPENSSL" = "auto" || tes
   finish_check "$ALLOW_RUNTIME_LINKING"
 fi
 
+start_check "libc provides aligned_alloc"
+HAS_STDC_ALIGNED_ALLOC=no
+if cc_check_statement "stdlib.h" 'aligned_alloc(256, 1024);' "-Werror -Wno-unused-result"; then
+  HAS_STDC_ALIGNED_ALLOC=yes
+fi
+if test "$HAS_STDC_ALIGNED_ALLOC" = "no"; then
+  BUILD_EXTRA_CFLAGS=$(join_params $BUILD_EXTRA_CFLAGS -DNO_STDC_ALIGNED_ALLOC)
+fi
+finish_check "$HAS_STDC_ALIGNED_ALLOC"
+
 SHARED_VSCRIPT=
 if ! darwin; then
   start_check "linker support for --version-script"