Skip to content

Commit f98a4c5

Browse files
author
Release Manager
committed
gh-36837: update qepcad to B 1.74 As noted in #36835, we missed an update to qepcad done in 2021. It has made it into Debian and Fedora, and we use Debian's tarball and patches (most of the latter are updated versions of our B 1.72 patches) We removed 'B' from the version number to accommodate the tarfile name from Debian. We also update saclib to the latest version Fixes #36831 Fixes #36835 URL: #36837 Reported by: Dima Pasechnik Reviewer(s): Matthias Köppe
2 parents 31541b6 + 95b80ca commit f98a4c5

22 files changed

+786
-652
lines changed

build/pkgs/qepcad/SPKG.rst

Lines changed: 4 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -10,33 +10,11 @@ cylindrical algebraic decomposition
1010
License
1111
-------
1212

13-
QEPCAD B Copyright (c) 1990, 2008, Hoon Hong & Chris Brown (contact
14-
15-
16-
Permission to use, copy, modify, and/or distribute this software,
17-
including source files, README files, etc., for any purpose with or
18-
without fee is hereby granted, provided that the above copyright notice
19-
and this permission notice appear in all copies.
20-
21-
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
22-
WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
23-
MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
24-
ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
25-
WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
26-
ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
27-
OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
28-
13+
ICS :wikipedia:`ISC_license`
2914

3015
Upstream Contact
3116
----------------
3217

33-
- Website: http://www.usna.edu/CS/qepcadweb/B/QEPCAD.html
34-
- Alternative location (sometimes more up-to-date):
35-
36-
https://www.usna.edu/Users/cs/wcbrown/qepcad/B/QEPCAD.html
37-
38-
Special Update/Build Instructions
39-
---------------------------------
40-
41-
One might need to set MAKE to "make -j1" fo this to be built
42-
successfully.
18+
- Repository: https://github.com/chriswestbrown/qepcad
19+
- Tarballs: https://www.usna.edu/Users/cs/wcbrown/qepcad/INSTALL/IQ.html
20+
- Website: (outdated) https://www.usna.edu/Users/cs/wcbrown/qepcad/B/QEPCAD.html

build/pkgs/qepcad/checksums.ini

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
tarball=qepcad-VERSION.tar.gz
2-
sha1=7de9ff3a7ce61e751d91fe5e74079a706174e4fa
3-
md5=61ebb23f407a72cee6142a3b144dea06
4-
cksum=2428332890
5-
upstream_url=http://www.usna.edu/Users/cs/wcbrown/qepcad/INSTALL/qepcad-VERSION.tar.gz
2+
sha1=644324e1224350cc663e93c5ce99b93de0de26e3
3+
md5=f368459cfab2d42caa40919e60093020
4+
cksum=783450087
5+
upstream_url=https://www.usna.edu/Users/cs/wcbrown/qepcad/INSTALL/qepcad-B.VERSION.tgz

build/pkgs/qepcad/distros/debian.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
qepcad

build/pkgs/qepcad/distros/fedora.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
qepcad-B
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
qepcad

build/pkgs/qepcad/package-version.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
B.1.72
1+
1.74

build/pkgs/qepcad/patches/qepcad-B-destructor.patch

Lines changed: 23 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,11 @@
1-
--- a/extensions/rend/Rend_Sample.cc.orig 2018-01-25 14:25:22.000000000 -0700
2-
+++ b/extensions/rend/Rend_Sample.cc 2018-08-29 20:07:27.087257552 -0600
3-
@@ -40,11 +40,6 @@ Rend_Sample_1DS::Rend_Sample_1DS(Word C,
1+
Description: Fix abstract base classes with non-virtual destructors.
2+
Origin: https://src.fedoraproject.org/rpms/qepcad-B/blob/91dd25b/f/qepcad-B-destructor.patch
3+
Forwarded: https://github.com/chriswestbrown/qepcad/pull/2
4+
Last-Update: 2021-06-23
5+
6+
--- a/extensions/rend/Rend_Sample.cc
7+
+++ b/extensions/rend/Rend_Sample.cc
8+
@@ -40,11 +40,6 @@
49
}
510

611

@@ -12,7 +17,7 @@
1217
/*************************************************************
1318
** Refines I to 2^k or less, and returns binary rational
1419
** middle of interval.
15-
@@ -112,13 +107,6 @@ Rend_Sample_1DO::Rend_Sample_1DO(Rend_Ce
20+
@@ -112,13 +107,6 @@
1621
L.W = NIL;
1722
}
1823

@@ -26,7 +31,7 @@
2631
Word Rend_Sample_1DO::coordinate(int k)
2732
{
2833
Word e,j1,j2,J,kp = k;
29-
@@ -178,11 +166,6 @@ Rend_Sample_2DS::Rend_Sample_2DS(Word C)
34+
@@ -178,11 +166,6 @@
3035
}
3136

3237

@@ -38,7 +43,7 @@
3843
/*************************************************************
3944
** Refines I to 2^k or less, and returns binary rational
4045
** lower endpoint.
41-
@@ -237,11 +220,6 @@ Rend_Sample_2DC::Rend_Sample_2DC(Word C,
46+
@@ -237,11 +220,6 @@
4247

4348
}
4449

@@ -50,7 +55,7 @@
5055
Word Rend_Sample_2DC::coordinate(int k)
5156
{
5257
return L.W;
53-
@@ -265,11 +243,6 @@ Rend_Sample_BR::Rend_Sample_BR(Word a)
58+
@@ -265,11 +243,6 @@
5459
N.W = a;
5560
}
5661

@@ -62,9 +67,9 @@
6267
Word Rend_Sample_BR::coordinate(int k)
6368
{
6469
return N.W;
65-
--- a/extensions/rend/Rend_Sample.h.orig 2018-01-25 14:25:22.000000000 -0700
66-
+++ b/extensions/rend/Rend_Sample.h 2018-08-29 20:07:27.087257552 -0600
67-
@@ -32,7 +32,7 @@ class Rend_Sample
70+
--- a/extensions/rend/Rend_Sample.h
71+
+++ b/extensions/rend/Rend_Sample.h
72+
@@ -32,7 +32,7 @@
6873
virtual Word coordinate(int k) = 0;
6974
virtual Word round(int k,int roundup)
7075
{ return this -> coordinate(k); }
@@ -73,49 +78,49 @@
7378
};
7479

7580
class Rend_Sample_1DS : public Rend_Sample
76-
@@ -49,7 +49,6 @@ private:
81+
@@ -49,7 +49,6 @@
7782
gcmemloc A,I;
7883
public:
7984
Rend_Sample_1DS(Word C, Word P);
8085
- virtual ~Rend_Sample_1DS();
8186
virtual Word coordinate(int k);
8287
virtual Word round(int k, int roundup);
8388
Word weakcompare(Word R);
84-
@@ -66,7 +65,6 @@ public:
89+
@@ -66,7 +65,6 @@
8590
gcmemloc L;
8691
public:
8792
Rend_Sample_1DO(Rend_Cell *dad);
8893
- virtual ~Rend_Sample_1DO();
8994
virtual Word coordinate(int k);
9095

9196
};
92-
@@ -86,7 +84,6 @@ private:
97+
@@ -86,7 +84,6 @@
9398
gcmemloc A,I;
9499
public:
95100
Rend_Sample_2DS(Word C);
96101
- virtual ~Rend_Sample_2DS();
97102
virtual Word coordinate(int k);
98103

99104
};
100-
@@ -101,7 +98,6 @@ public:
105+
@@ -101,7 +98,6 @@
101106
gcmemloc L;
102107
public:
103108
Rend_Sample_2DC(Word C,Word P);
104109
- virtual ~Rend_Sample_2DC();
105110
virtual Word coordinate(int k);
106111
void add_point(Word p);
107112
void clear_points();
108-
@@ -116,7 +112,6 @@ private:
113+
@@ -116,7 +112,6 @@
109114
gcmemloc N;
110115
public:
111116
Rend_Sample_BR(Word a);
112117
- virtual ~Rend_Sample_BR();
113118
virtual Word coordinate(int k);
114119
};
115120

116-
--- a/plot2d/plot.cc.orig 2018-01-25 14:25:22.000000000 -0700
117-
+++ b/plot2d/plot.cc 2018-08-29 20:07:27.086257553 -0600
118-
@@ -37,6 +37,7 @@ class CADELT
121+
--- a/plot2d/plot.cc
122+
+++ b/plot2d/plot.cc
123+
@@ -37,6 +37,7 @@
119124
public:
120125
virtual bool read(istream &in) = 0;
121126
virtual void glRend(const CADColors &C) = 0;

build/pkgs/qepcad/patches/qepcad-B-gcc6.patch

Lines changed: 13 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,11 @@
1-
--- a/plot2d/plot.cc.orig 2018-08-29 20:10:06.396075816 -0600
2-
+++ b/plot2d/plot.cc 2018-08-29 20:11:48.982924732 -0600
3-
@@ -276,7 +276,7 @@ bool SNoverSR::read(istream &in)
1+
Description: Adapt to GCC 6
2+
Origin: https://src.fedoraproject.org/rpms/qepcad-B/blob/91dd25b/f/qepcad-B-gcc6.patch
3+
Forwarded: https://github.com/chriswestbrown/qepcad/pull/2
4+
Last-Update: 2021-06-23
5+
6+
--- a/plot2d/plot.cc
7+
+++ b/plot2d/plot.cc
8+
@@ -276,7 +276,7 @@
49
V.resize(N);
510
for(int i = 0; i < N; i++)
611
in >> V[i];
@@ -9,7 +14,7 @@
914
}
1015

1116
void SNoverSR::glRend(const CADColors &C)
12-
@@ -333,7 +333,7 @@ bool SRoverSR::read(istream &in)
17+
@@ -333,7 +333,7 @@
1318
}
1419
}
1520

@@ -18,7 +23,7 @@
1823
}
1924

2025
void SRoverSR::glRend(const CADColors &C)
21-
@@ -351,7 +351,7 @@ bool SRoverSN::read(istream &in)
26+
@@ -351,7 +351,7 @@
2227
{
2328
in >> colorType >> a >> b.y;
2429
b.x = a.x;
@@ -27,7 +32,7 @@
2732
}
2833

2934
void SRoverSN::glRend(const CADColors &C)
30-
@@ -365,7 +365,8 @@ void SRoverSN::glRend(const CADColors &C
35+
@@ -365,7 +365,8 @@
3136

3237
bool SNoverSN::read(istream &in)
3338
{
@@ -37,7 +42,7 @@
3742
}
3843

3944
void SNoverSN::glRend(const CADColors &C)
40-
@@ -380,7 +381,8 @@ void SNoverSN::glRend(const CADColors &C
45+
@@ -380,7 +381,8 @@
4146

4247
bool SN::read(istream &in)
4348
{
@@ -47,7 +52,7 @@
4752
}
4853

4954
void SN::glRend(const CADColors &C)
50-
@@ -394,7 +396,8 @@ void SN::glRend(const CADColors &C)
55+
@@ -394,7 +396,8 @@
5156

5257
bool SR::read(istream &in)
5358
{

0 commit comments

Comments
 (0)