File: build-against-octave-6.patch

package info (click to toggle)
octave-msh 1.0.12-2
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 372 kB
  • sloc: cpp: 744; makefile: 11; sh: 2
file content (19 lines) | stat: -rw-r--r-- 688 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
Description: Fix FTBFS against Octave 6.1
 Replace calls to the deprecated function tmpnam with tempname.
Author: Rafael Laboissière <rafael@debian.org>
Bug-Debian: https://bugs.debian.org/976201
Forwarded: https://savannah.gnu.org/bugs/index.php?59613
Applied-Upstream: https://github.com/carlodefalco/msh/commit/15c1fa21519b040fa38f1fd86084bebef0e141c4
Last-Update: 2025-03-31

--- a/inst/msh2m_submesh.m
+++ b/inst/msh2m_submesh.m
@@ -111,7 +111,7 @@ endfunction
 %! assert(elementlist,el);
 
 %!demo
-%! name = [tmpnam ".geo"];
+%! name = [tempname ".geo"];
 %! fid = fopen (name, "w");
 %! fputs (fid, "Point(1) = {0, 0, 0, .1};\n");
 %! fputs (fid, "Point(2) = {1, 0, 0, .1};\n");