From 0837c479f979f13768be57376a6da521a07e6a45 Mon Sep 17 00:00:00 2001 From: Gard Spreemann Date: Mon, 13 Dec 2021 14:57:31 +0100 Subject: Don't alter upstream ABI in log file disabling patch MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 0006-Stop-generating-iteration-log-files.patch disables the writing of a log file, but used to do so in a way that also changes the ABI of some of the library's functions. These functions are probably not meant to be for public use – and are not currently called by any depending Debian package – but to be safe this commit restores the upstream ABI. In particular the `itfile` argument is reintroduced to the subroutines that have it upstream. The value value is ignored, and the file is never created or written to. --- .../0006-Stop-generating-iteration-log-files.patch | 135 +++------------------ 1 file changed, 17 insertions(+), 118 deletions(-) (limited to 'debian') diff --git a/debian/patches/0006-Stop-generating-iteration-log-files.patch b/debian/patches/0006-Stop-generating-iteration-log-files.patch index aa31976..efff3f1 100644 --- a/debian/patches/0006-Stop-generating-iteration-log-files.patch +++ b/debian/patches/0006-Stop-generating-iteration-log-files.patch @@ -1,15 +1,14 @@ From: Gard Spreemann -Date: Thu, 30 Jul 2020 10:49:15 +0200 -Subject: Stop generating iteration log files. +Date: Mon, 13 Dec 2021 14:56:07 +0100 +Subject: Stop generating iteration log files -Based on SciPy commit - c3c54c15eafe7fa7a2b7a499cb64f38f1a7ee057 +Based on SciPy commit c3c54c15eafe7fa7a2b7a499cb64f38f1a7ee057 --- - lbfgsb.f | 61 +++++++++++-------------------------------------------------- - 1 file changed, 11 insertions(+), 50 deletions(-) + lbfgsb.f | 37 ++----------------------------------- + 1 file changed, 2 insertions(+), 35 deletions(-) diff --git a/lbfgsb.f b/lbfgsb.f -index 59f0a97..e30aff0 100644 +index 59f0a97..18d4715 100644 --- a/lbfgsb.f +++ b/lbfgsb.f @@ -140,8 +140,6 @@ c 0100 print details of every iteration including x and g; @@ -117,19 +59,7 @@ index 59f0a97..e30aff0 100644 c c sbgnrm is a double precision variable. c On entry sbgnrm is the norm of the projected gradient at x. -@@ -2673,9 +2658,9 @@ c and the last column of SS: - - c======================= The end of matupd ============================= - -- subroutine prn1lb(n, m, l, u, x, iprint, itfile, epsmch) -+ subroutine prn1lb(n, m, l, u, x, iprint, epsmch) - -- integer n, m, iprint, itfile -+ integer n, m, iprint - double precision epsmch, x(n), l(n), u(n) - - c ************ -@@ -2705,9 +2690,6 @@ c ************ +@@ -2705,9 +2696,6 @@ c ************ write (6,7001) epsmch write (6,*) 'N = ',n,' M = ',m if (iprint .ge. 1) then @@ -139,21 +69,7 @@ index 59f0a97..e30aff0 100644 if (iprint .gt. 100) then write (6,1004) 'L =',(l(i),i = 1,n) write (6,1004) 'X0 =',(x(i),i = 1,n) -@@ -2744,11 +2726,11 @@ c ************ - - c======================= The end of prn1lb ============================= - -- subroutine prn2lb(n, x, f, g, iprint, itfile, iter, nfgv, nact, -+ subroutine prn2lb(n, x, f, g, iprint, iter, nfgv, nact, - + sbgnrm, nseg, word, iword, iback, stp, xstep) - - character*3 word -- integer n, iprint, itfile, iter, nfgv, nact, nseg, -+ integer n, iprint, iter, nfgv, nact, nseg, - + iword, iback - double precision f, sbgnrm, stp, xstep, x(n), g(n) - -@@ -2798,8 +2780,6 @@ c the truncated Newton step has been used. +@@ -2798,8 +2786,6 @@ c the truncated Newton step has been used. imod = mod(iter,iprint) if (imod .eq. 0) write (6,2001) iter,f,sbgnrm endif @@ -162,24 +78,7 @@ index 59f0a97..e30aff0 100644 1004 format (/,a4, 1p, 6(1x,d11.4),/,(4x,1p,6(1x,d11.4))) 2001 format -@@ -2812,14 +2792,14 @@ c the truncated Newton step has been used. - - c======================= The end of prn2lb ============================= - -- subroutine prn3lb(n, x, f, task, iprint, info, itfile, -+ subroutine prn3lb(n, x, f, task, iprint, info, - + iter, nfgv, nintol, nskip, nact, sbgnrm, - + time, nseg, word, iback, stp, xstep, k, - + cachyt, sbtime, lnscht) - - character*60 task - character*3 word -- integer n, iprint, info, itfile, iter, nfgv, nintol, -+ integer n, iprint, info, iter, nfgv, nintol, - + nskip, nact, nseg, iback, k - double precision f, sbgnrm, time, stp, xstep, cachyt, sbtime, - + lnscht, x(n) -@@ -2873,23 +2853,6 @@ c ************ +@@ -2873,23 +2859,6 @@ c ************ if (info .eq. -8) write (6,9018) if (info .eq. -9) write (6,9019) endif @@ -203,7 +102,7 @@ index 59f0a97..e30aff0 100644 endif 1004 format (/,a4, 1p, 6(1x,d11.4),/,(4x,1p,6(1x,d11.4))) -@@ -3152,8 +3115,6 @@ c 0100 print details of every iteration including x and g; -- cgit v1.2.3