pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/math/lp_solve Use ${WRKDIR}/tmp for temporary files in...
details: https://anonhg.NetBSD.org/pkgsrc/rev/438215302ce7
branches: trunk
changeset: 370968:438215302ce7
user: khorben <khorben%pkgsrc.org@localhost>
date: Sun Oct 29 22:16:03 2017 +0000
description:
Use ${WRKDIR}/tmp for temporary files instead of $(mktemp -d)
This is more portable.
As suggested by joerg@.
diffstat:
math/lp_solve/Makefile | 3 ++-
math/lp_solve/distinfo | 6 +++---
math/lp_solve/patches/patch-lp__solve_ccc | 6 +++---
math/lp_solve/patches/patch-lpsolve55_ccc | 6 +++---
4 files changed, 11 insertions(+), 10 deletions(-)
diffs (75 lines):
diff -r 808cb29508e3 -r 438215302ce7 math/lp_solve/Makefile
--- a/math/lp_solve/Makefile Sun Oct 29 20:53:51 2017 +0000
+++ b/math/lp_solve/Makefile Sun Oct 29 22:16:03 2017 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.10 2016/09/08 05:12:39 richard Exp $
+# $NetBSD: Makefile,v 1.11 2017/10/29 22:16:03 khorben Exp $
#
DISTNAME= lp_solve_5.5.2.3_source
@@ -20,6 +20,7 @@
SUBST_SED.dl+= -e s,-ldl,${DL_LIBS:Q},g
SUBST_SED.dl+= -e s,^opts=.*,opts=\'${CFLAGS:Q}\',g
SUBST_SED.dl+= -e s,-fpic,-fPIC,g
+SUBST_VARS.dl+= WRKDIR
SUBST_FILES.dl+= lp_solve/ccc
SUBST_FILES.dl+= lpsolve55/ccc
SUBST_FILES.dl+= demo/ccc
diff -r 808cb29508e3 -r 438215302ce7 math/lp_solve/distinfo
--- a/math/lp_solve/distinfo Sun Oct 29 20:53:51 2017 +0000
+++ b/math/lp_solve/distinfo Sun Oct 29 22:16:03 2017 +0000
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.7 2017/10/28 11:23:50 khorben Exp $
+$NetBSD: distinfo,v 1.8 2017/10/29 22:16:03 khorben Exp $
SHA1 (lp_solve_5.5.2.3_source.tar.gz) = 867a606fcc77612b71a0a6baa5f07a273f3023a7
RMD160 (lp_solve_5.5.2.3_source.tar.gz) = 5657c47cf996979072fb2a1135d071e48da52ea1
@@ -6,6 +6,6 @@
Size (lp_solve_5.5.2.3_source.tar.gz) = 812420 bytes
SHA1 (patch-aa) = a77ec29e056252b3b82c1a1acdd463b5ff7f6f6b
SHA1 (patch-demo_ccc) = dd5d00bce28fa89db343489bf22f0c96d3a9894b
-SHA1 (patch-lp__solve_ccc) = e8d3e4288a06781274a5bf3a8bbbf6712d0da3d9
+SHA1 (patch-lp__solve_ccc) = 667fafdffd207d987e2d2480d92ef81fc607e430
SHA1 (patch-lp__utils.c) = b0774bd7b323f12c97c7bc78c26f64a75c841f34
-SHA1 (patch-lpsolve55_ccc) = b993badb27095b34fb60436a7bc5e69b2911c6b3
+SHA1 (patch-lpsolve55_ccc) = c34feffbc0825fa14a46ec2f7733cc774b6ddf68
diff -r 808cb29508e3 -r 438215302ce7 math/lp_solve/patches/patch-lp__solve_ccc
--- a/math/lp_solve/patches/patch-lp__solve_ccc Sun Oct 29 20:53:51 2017 +0000
+++ b/math/lp_solve/patches/patch-lp__solve_ccc Sun Oct 29 22:16:03 2017 +0000
@@ -1,4 +1,4 @@
-$NetBSD: patch-lp__solve_ccc,v 1.4 2017/10/28 11:23:50 khorben Exp $
+$NetBSD: patch-lp__solve_ccc,v 1.5 2017/10/29 22:16:03 khorben Exp $
recent versions of gcc are noisy unless main() is declared returning 'int'
and isnan() needs a floating argument else NOISNAN is defined causing
@@ -10,8 +10,8 @@
src='../lp_MDO.c ../shared/commonlib.c ../colamd/colamd.c ../shared/mmio.c ../shared/myblas.c ../ini.c ../fortify.c ../lp_rlp.c ../lp_crash.c ../bfp/bfp_LUSOL/lp_LUSOL.c
../bfp/bfp_LUSOL/LUSOL/lusol.c ../lp_Hash.c ../lp_lib.c ../lp_wlp.c ../lp_matrix.c ../lp_mipbb.c ../lp_MPS.c ../lp_params.c ../lp_presolve.c ../lp_price.c ../lp_pricePSE.c ../lp_report.c
../lp_scale.c ../lp_simplex.c lp_solve.c ../lp_SOS.c ../lp_utils.c ../yacc_read.c'
c=cc
-+tmpdir=$(mktemp -d)
-+[ $? -eq 0 ] || return 2
++tmpdir="@WRKDIR@/tmp"
++mkdir "$tmpdir" || return 2
+
#determine platform (32/64 bit)
->/tmp/platform.c
diff -r 808cb29508e3 -r 438215302ce7 math/lp_solve/patches/patch-lpsolve55_ccc
--- a/math/lp_solve/patches/patch-lpsolve55_ccc Sun Oct 29 20:53:51 2017 +0000
+++ b/math/lp_solve/patches/patch-lpsolve55_ccc Sun Oct 29 22:16:03 2017 +0000
@@ -1,4 +1,4 @@
-$NetBSD: patch-lpsolve55_ccc,v 1.4 2017/10/28 11:23:50 khorben Exp $
+$NetBSD: patch-lpsolve55_ccc,v 1.5 2017/10/29 22:16:03 khorben Exp $
recent versions of gcc are noisy unless main() is declared returning 'int'
and isnan() needs a floating argument else NOISNAN is defined causing
@@ -10,8 +10,8 @@
src='../lp_MDO.c ../shared/commonlib.c ../shared/mmio.c ../shared/myblas.c ../ini.c ../fortify.c ../colamd/colamd.c ../lp_rlp.c ../lp_crash.c ../bfp/bfp_LUSOL/lp_LUSOL.c
../bfp/bfp_LUSOL/LUSOL/lusol.c ../lp_Hash.c ../lp_lib.c ../lp_wlp.c ../lp_matrix.c ../lp_mipbb.c ../lp_MPS.c ../lp_params.c ../lp_presolve.c ../lp_price.c ../lp_pricePSE.c ../lp_report.c
../lp_scale.c ../lp_simplex.c ../lp_SOS.c ../lp_utils.c ../yacc_read.c'
c=cc
-+tmpdir=$(mktemp -d)
-+[ $? -eq 0 ] || return 2
++tmpdir="@WRKDIR@/tmp"
++mkdir "$tmpdir" || return 2
+
#determine platform (32/64 bit)
->/tmp/platform.c
Home |
Main Index |
Thread Index |
Old Index