pkgsrc-Changes archive

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

CVS commit: pkgsrc/devel/hdf5



Module Name:    pkgsrc
Committed By:   thor
Date:           Mon Dec 18 10:33:28 UTC 2023

Modified Files:
        pkgsrc/devel/hdf5: options.mk

Log Message:
devel/hdf5: adding unsafe-threads option

This is an option certain scientific users request for building their code.
They explicitly need the unsupported configuration, that somehow seems to
work for them.


To generate a diff of this commit:
cvs rdiff -u -r1.10 -r1.11 pkgsrc/devel/hdf5/options.mk

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

Modified files:

Index: pkgsrc/devel/hdf5/options.mk
diff -u pkgsrc/devel/hdf5/options.mk:1.10 pkgsrc/devel/hdf5/options.mk:1.11
--- pkgsrc/devel/hdf5/options.mk:1.10   Fri Jul 22 14:50:32 2022
+++ pkgsrc/devel/hdf5/options.mk        Mon Dec 18 10:33:28 2023
@@ -1,7 +1,7 @@
-# $NetBSD: options.mk,v 1.10 2022/07/22 14:50:32 thor Exp $
+# $NetBSD: options.mk,v 1.11 2023/12/18 10:33:28 thor Exp $
 
 PKG_OPTIONS_VAR=       PKG_OPTIONS.hdf5
-PKG_SUPPORTED_OPTIONS= szip threads
+PKG_SUPPORTED_OPTIONS= szip threads unsafe-threads
 PKG_SUGGESTED_OPTIONS= szip
 
 .include "../../mk/bsd.options.mk"
@@ -19,3 +19,10 @@ CONFIGURE_ARGS+=     --enable-threadsafe --d
 .else
 PLIST.hl=      yes
 .endif
+
+# You can still enable threads if you are adventurous. There
+# are scientists like that. Not supported, but possible.
+.if !empty(PKG_OPTIONS:Munsafe-threads)
+CONFIGURE_ARGS+=       --enable-threadsafe --enable-unsupported
+.include "../../mk/pthread.buildlink3.mk"
+.endif



Home | Main Index | Thread Index | Old Index