pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/devel/apr-util apr-util: Disable memset_s on SunOS.



details:   https://anonhg.NetBSD.org/pkgsrc/rev/8014a5919278
branches:  trunk
changeset: 372039:8014a5919278
user:      jperkin <jperkin%pkgsrc.org@localhost>
date:      Tue Jan 18 09:43:18 2022 +0000

description:
apr-util: Disable memset_s on SunOS.

The configure test correctly defines __STDC_WANT_LIB_EXT1__=1 as is
required when using the _s set of functions, so memset_s is found, but
then the actual source code does not, so you're left with undefined
references.

Disabling completely is simpler than having to rearrange everything
else to work, and will fall back to portable features.

diffstat:

 devel/apr-util/Makefile |  5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)

diffs (19 lines):

diff -r 8934b37583ae -r 8014a5919278 devel/apr-util/Makefile
--- a/devel/apr-util/Makefile   Tue Jan 18 08:26:38 2022 +0000
+++ b/devel/apr-util/Makefile   Tue Jan 18 09:43:18 2022 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.63 2021/12/08 16:03:53 adam Exp $
+# $NetBSD: Makefile,v 1.64 2022/01/18 09:43:18 jperkin Exp $
 
 DISTNAME=      apr-util-1.6.1
 PKGREVISION=   12
@@ -21,6 +21,9 @@
 CONFIGURE_ARGS+=       --without-sqlite2
 PKGCONFIG_OVERRIDE+=   apr-util.pc.in
 
+# Too many differences between configure test and actual usage.
+CONFIGURE_ENV.SunOS+=  apu_cv_memset_s=no
+
 # just a list of exported symbols for a library that also starts with shebang
 CHECK_INTERPRETER_SKIP=        lib/aprutil.exp
 



Home | Main Index | Thread Index | Old Index