Accepting request 1102266 from science

Update to release 2.86
  * Terminate phase1 of simplex method once a zero-cost solution
    is found.
  * Fix bug in XDR reads due to uninitialized variable.
  * Add high-resolution clock; update FFT support.
- Add 0001-Fix-without-lsp-issue-379.patch

OBS-URL: https://build.opensuse.org/request/show/1102266
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/asymptote?expand=0&rev=3
This commit is contained in:
Dominique Leuenberger 2023-08-04 13:03:57 +00:00 committed by Git OBS Bridge
commit c49834a372
5 changed files with 69 additions and 5 deletions

View File

@ -0,0 +1,53 @@
From 29caaed5ead5a62787475286afd22e40585b8bb8 Mon Sep 17 00:00:00 2001
From: John Bowman <bowman@ualberta.ca>
Date: Wed, 14 Jun 2023 22:36:35 -0600
Subject: [PATCH] Fix --without-lsp (issue #379).
---
common.h | 17 ++++++++---------
1 file changed, 8 insertions(+), 9 deletions(-)
diff --git a/common.h b/common.h
index 13f8be10..6ee3d971 100644
--- a/common.h
+++ b/common.h
@@ -17,28 +17,27 @@
#include "config.h"
#endif
-#ifdef HAVE_LSP
#if __cplusplus < 201703L
+
+#ifdef HAVE_LSP
#include <boost/optional.hpp>
#include <boost/none.hpp>
using boost::optional;
#define nullopt boost::none
using boost::make_optional;
#else
-#include <optional>
-using std::optional;
-using std::nullopt;
-using std::make_optional;
-#endif
-
-#else
-#if __cplusplus < 201703L
#include "optional.hpp"
#define boost nonstd
using nonstd::optional;
using nonstd::nullopt;
using nonstd::make_optional;
#endif
+
+#else
+#include <optional>
+using std::optional;
+using std::nullopt;
+using std::make_optional;
#endif
using std::make_pair;
--
2.41.0

View File

@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:cca2ffc0f611c7c3b70ff6b21403ec431d9d25e01a05d31316aecb544c41e5f9
size 12511016

3
2.86.tar.gz Normal file
View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:3ebcc90beb67bf7f8575fb519cb9d5d3c6cfd77f97ee1f69d53af458563c8aaa
size 12524934

View File

@ -1,3 +1,13 @@
-------------------------------------------------------------------
Sat Jun 24 12:24:02 UTC 2023 - Jan Engelhardt <jengelh@inai.de>
- Update to release 2.86
* Terminate phase1 of simplex method once a zero-cost solution
is found.
* Fix bug in XDR reads due to uninitialized variable.
* Add high-resolution clock; update FFT support.
- Add 0001-Fix-without-lsp-issue-379.patch
-------------------------------------------------------------------
Sat Nov 19 22:16:05 UTC 2022 - Jan Engelhardt <jengelh@inai.de>

View File

@ -1,7 +1,7 @@
#
# spec file for package asymptote
#
# Copyright (c) 2022 SUSE LLC
# Copyright (c) 2023 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@ -18,7 +18,7 @@
%bcond_with lsp
Name: asymptote
Version: 2.83
Version: 2.86
Release: 0
Summary: 2D & 3D TeX-Aware vector graphics language
License: LGPL-3.0-or-later
@ -27,6 +27,7 @@ URL: https://asymptote.sourceforge.io/
#Git-Clone: https://github.com/vectorgraphics/asymptote
Source: https://github.com/vectorgraphics/asymptote/archive/refs/tags/%version.tar.gz
Patch1: 0001-Fix-without-lsp-issue-379.patch
BuildRequires: automake
BuildRequires: bison
BuildRequires: flex