summaryrefslogtreecommitdiff
path: root/sci-mathematics/pspp
diff options
context:
space:
mode:
authorV3n3RiX <venerix@koprulu.sector>2022-06-29 12:04:12 +0100
committerV3n3RiX <venerix@koprulu.sector>2022-06-29 12:04:12 +0100
commit0f558761aa2dee1017b4751e4017205e015a9560 (patch)
tree037df795519468a25d9362b4e95cdaeb84eb1cf9 /sci-mathematics/pspp
parent752d6256e5204b958b0ef7905675a940b5e9172f (diff)
gentoo resync : 29.12.2022
Diffstat (limited to 'sci-mathematics/pspp')
-rw-r--r--sci-mathematics/pspp/Manifest16
-rw-r--r--sci-mathematics/pspp/files/pspp-1.2.0-CVE-2018-20230.patch134
-rw-r--r--sci-mathematics/pspp/files/pspp-1.2.0-CVE-2019-9211.patch74
-rw-r--r--sci-mathematics/pspp/files/pspp-1.2.0-fix-gcc10.patch30
-rw-r--r--sci-mathematics/pspp/files/pspp-1.2.0-fix-overflow.patch32
-rw-r--r--sci-mathematics/pspp/files/pspp-1.2.0-fix-segfaults.patch45
-rw-r--r--sci-mathematics/pspp/files/pspp-1.2.0-fix-tests.patch61
-rw-r--r--sci-mathematics/pspp/files/pspp-1.2.0-py3.patch38
-rw-r--r--sci-mathematics/pspp/files/pspp-1.6.1-drop-which-tests.patch28
-rw-r--r--sci-mathematics/pspp/pspp-1.2.0-r1.ebuild112
-rw-r--r--sci-mathematics/pspp/pspp-1.6.0.ebuild82
-rw-r--r--sci-mathematics/pspp/pspp-1.6.1.ebuild (renamed from sci-mathematics/pspp/pspp-1.4.1.ebuild)34
12 files changed, 130 insertions, 556 deletions
diff --git a/sci-mathematics/pspp/Manifest b/sci-mathematics/pspp/Manifest
index 155912da44a7..cbe4eb647ae5 100644
--- a/sci-mathematics/pspp/Manifest
+++ b/sci-mathematics/pspp/Manifest
@@ -1,13 +1,7 @@
AUX 50pspp-gentoo.el 171 BLAKE2B 32091c8c9db265cb3c37cae7a718128df3d187e01b6c0685ff929e7dbe1bf92b8759f0920264c786ad250e9c72724fba6ec0b22ee1c39802fc3aaf3b51720665 SHA512 3e50a08018a0892df4beb400041ec682c94446b4e05ce7d5907ef20eace5426245e684160e85c8629650b8a911e92ef98200638dea1f12d0304fb4e1a8db5883
-AUX pspp-1.2.0-CVE-2018-20230.patch 4896 BLAKE2B efd7e53d2632a6214ef6be4888c1172b365637afe5ad8740a2dab7b461f170505f8cca37a86c94f08a8b2f2eb9be8113829ea6165003a9809a02e044e804cba2 SHA512 fa689231dd764d0b65338967264dad1e3ec8c8e14f5f6594963c2e154f7d6d2dc4b09952dacd00c75a220cd0ca27061702d66cf1c52a259d54a310ce0243440c
-AUX pspp-1.2.0-CVE-2019-9211.patch 2534 BLAKE2B 5e1e62c322fb3fcc92dd0e7d709325f0d9c7beed05f472bb3107a0d8f8076e669e1b8dc76040dfe3e865e2646909f633757935083431e59c2f4936728444db9a SHA512 96efe84da4e78a2d4530b50ffb6d3bf399ddc8d13ea63afab250f4357ccde0e6de723945848b9c9da0f17bc07861e671e57afd45c38d19928104dd1656a3a2b5
-AUX pspp-1.2.0-fix-gcc10.patch 972 BLAKE2B ae8472cfdefa9bccc97b4872d3435377323bcec0508044b2e69b49f32c7318c0a0b7465cc3de3d1791bd5d97acccb9a4d3f6c0cb456ce564819b0ce34fcfbd88 SHA512 2e4da6e091837436cf5071494d23eb8441ba038b79e59c6ca5c8d52247e5c30155157e0bafd8bb834a15aa4c140e95e8cd71a56e91f8d0aa77f79d9d4487726c
-AUX pspp-1.2.0-fix-overflow.patch 1136 BLAKE2B 0cf7f1039d003a4072ea47ab0f9dc55ecc3d350cb37180fa473095b7cd317d32771bcdf39715244307bcd0ef4a4c0a7658101cdedccf63f430872de49810c47e SHA512 4671bed9fad63dea2597fff97473bc5c4352eacfa7f39bbfd4c0782862a51a286c87d64c999805ad51b4faec15c3367d57bff26990e92c2b873afa9ed9d3a179
-AUX pspp-1.2.0-fix-segfaults.patch 1452 BLAKE2B a5760dfc45149526a67829ec38b0d78208bea982108a29f18742c8b1e3895b0f8e8f960d5789b4962ab60cdbbf301c2476ef158f758357cded65a17680405529 SHA512 c57e01b714ee8daf031beef0f670ff892d844834a53e55e1c326293c49efa7b51ffa6cbbbe3c6bde37a91e342261dcfaf1448839fe3280bab8b104f97c63a5af
-AUX pspp-1.2.0-fix-tests.patch 2217 BLAKE2B 20a2ca51c7bb792ec66281e2c6d10ca1345d5565b62696cf8a40051eacb43456242aa13d566224ee68267650209501d16c87dd57524a4b1386e68c96404159d7 SHA512 742b6acd7611dfce2eab9e246084528e4b80b0ef9f8713f4233f7c8c000c9772c8f62df1ad83cd5adfef2c5fc213fa75f6b2950ce3e9d61786353df034925e74
-AUX pspp-1.2.0-py3.patch 1619 BLAKE2B 5bb9264f5e064860380c79c64641c31f09bb171ff39a188eaab5b8d1fe21a8243b1c72ff77e82447af05db63434a53bfa9cede60f08330cf470c8c70ebfa3cdd SHA512 a7a189fd7e7e0209b50ac655449d59888a5b2bad74b8b76e843916f47c9ca4405362af80fced7291af4b446f070c534f6688662fae6e2f03b2c6e6e0ea18c362
-DIST pspp-1.2.0.tar.gz 7213194 BLAKE2B f468c6e025f996c9f806fb03e94a4497f02b774c509457cc6295bbefe37abc7e2ecf10d2876c8cff9a979d7a4264c7c185e1cec5fd1d5f2f00f1c6eae4da775e SHA512 49eed2b55f10584abba18ff7d2020fd08691bbc1a3c2f332e6d283e32aa84e0abdae6092d17db9c1a539c63d85ecdfcc2dad40c94a06904b8893a1976e5e48d3
-DIST pspp-1.4.1.tar.gz 7848393 BLAKE2B c9232aa3d4905d4be54ae993db6a4b37b3696c748e15c8ba6c46c7e56f9974aefe597f893fdc5431af237ad3923da1ef271db39e4d94725ccf93f0a0df443ef4 SHA512 c664a6c6f4f1826db396ad776d81cadc791e4f661c603a7f164f70f9571a84cfae6fec116356b3f950991245b2b0dc9805e75193a055a242558cda1209e7830f
-EBUILD pspp-1.2.0-r1.ebuild 2307 BLAKE2B bcb43ec5798bce0ba6c35375153f67a652fafa0d7534d182f9f771fdbe11cedceb318753bbb9b323200104c49a8dceaf89e9d0acc774707a80372c669df0cb8a SHA512 13c90965bedb3b18498f79ebd4e785bce6254c25b56a51bdb7f36c58f2c082c9e335f584edd0365c39da43700c59a9b08a489651cc9836ce19684ccfb8e5fb38
-EBUILD pspp-1.4.1.ebuild 1885 BLAKE2B 0094e1923dc639d9e03509b66cf8c8292bf959220f94065f2c0e9c44fda4bc9e9a15e3976cccfef24cf1ef3dad2f254780bdcbba3d7fead2fb8d9c5590de61a5 SHA512 668d3070ac16d94bc999de0ff355e9354bcfc6ce5553b9ac5ea46cb1ff509c9cdba4a40956e65758b284140541a34cd62cc6b14e30686391f664cfd9a6edc270
+AUX pspp-1.6.1-drop-which-tests.patch 875 BLAKE2B 99ac5aa25fc26e6f591ea0772bfd168141858c2136295dcd7253dc9a46eb8412110c6fe4c8ff3752bcbb2a43c834724e23fda4fa31c075ef3716cccdc3262680 SHA512 2f9e9049ddd91f8863de52c097a1f35aefa4dc04dc3dc6cf6be8522a97ec56af352edc34123fd4272030b1d865b451accb6fdf8efaab928a8c83cffad7d585e1
+DIST pspp-1.6.0.tar.gz 9553836 BLAKE2B 4c12003838d7f6c3613d76626d88b24f4dac4b6f507db54b03be5f09027472704ae8ee6ce44d8756c7cd1e12a65ab836cb1f7d004220df8da47f47af85c4a771 SHA512 c8b746b9ea802a95f048e377b22d723701c5e532358aa3e4993edcc73046c4823c440dd988833b69b4ea84ac6b02a442db7daac415bef4c1081efddd9857982d
+DIST pspp-1.6.1.tar.gz 9249022 BLAKE2B 306596cd428436df7f97dec627dbad6a089ff0b00b59b8152dac382a091687f4a82afd0ada7c98dea5bbc0369f0e07f1a85dcdbd84a21bfe09cbee9b43b02610 SHA512 29b475393cbe594bc93af681ec9414e56bdd664a29042017025b8f52e4e67eec1bfab638e79313a5a39929873d1d3a29095c33dbcdf40e226cc3e6010bb040a7
+EBUILD pspp-1.6.0.ebuild 1682 BLAKE2B 8d60867a775e2edcf50999c14503208138d9c5f19074c7baaf68d4ef18ccb6abfd17360b77e0a582c8664087e5652453f6237f05a6ff53dbfd5673fd218dd3a7 SHA512 63aaca9e0197a9b5e48739f871e186047fde79ab612ed41bd6407d4048906ead5a4214a49ee23e527598a1066ead30835506c23cd1fc1f6baab8d11b40442c12
+EBUILD pspp-1.6.1.ebuild 1868 BLAKE2B 05b596863fd00b004718711ead00d28ae2ef8c5af39286aff656a09509b33e4b4b55daae83d75d03421b27a4dde7cbe17a10a41c09a507e45aeb9a9a38d164ed SHA512 5cf3e9d3d28f56c13d51aa01c292c5c90026f5192b024a9bf890c391a4c2e945ffc5f8fdd310aa14c69dc8788c3d2c6452b4ed30adcc483dd79f300b65eede86
MISC metadata.xml 712 BLAKE2B 63bb6ce6a7465796361c98191ff057fbc335d5f2494f279a52ed2ebbbafb765364cb5efafe82c5d687f4dba5a162fa9a12b42bd5fe1cd093e39554383564c556 SHA512 4aa1baf360b95156198a0bf18c10db0f5f5d78d7745f5ff29c71cb3871ec810d9f9da3fd3dc9279ff83620bd05afed9b57f18f8483a1b3860cd9e23d32a9e9be
diff --git a/sci-mathematics/pspp/files/pspp-1.2.0-CVE-2018-20230.patch b/sci-mathematics/pspp/files/pspp-1.2.0-CVE-2018-20230.patch
deleted file mode 100644
index f0fee070deb6..000000000000
--- a/sci-mathematics/pspp/files/pspp-1.2.0-CVE-2018-20230.patch
+++ /dev/null
@@ -1,134 +0,0 @@
-Upstream: https://git.savannah.gnu.org/cgit/pspp.git/commit/?id=abd1f816ca3b4f382bddf4564ad092aa934f0ccc
-Bug: https://bugs.gentoo.org/679392
-
-From abd1f816ca3b4f382bddf4564ad092aa934f0ccc Mon Sep 17 00:00:00 2001
-From: Ben Pfaff <blp@cs.stanford.edu>
-Date: Tue, 1 Jan 2019 08:36:05 -0800
-Subject: pspp-dump-sav: Issue error message for too-large extension records.
-
-CVE-2018-20230.
----
- NEWS | 2 ++
- utilities/pspp-dump-sav.c | 30 ++++++++++++++++++------------
- 2 files changed, 20 insertions(+), 12 deletions(-)
-
-diff --git a/NEWS b/NEWS
-index 3263062ca..191a9804b 100644
---- a/NEWS
-+++ b/NEWS
-@@ -9,6 +9,8 @@ Changes since 1.2.0:
- * Plain text output is no longer divided into pages, since it is now
- rarely printed on paper.
-
-+ * Bug fix for CVE-2018-20230.
-+
- Changes from 1.0.1 to 1.2.0:
-
- * New experimental command SAVE DATA COLLECTION to save MDD files.
-diff --git a/utilities/pspp-dump-sav.c b/utilities/pspp-dump-sav.c
-index aeb648665..b0001ac61 100644
---- a/utilities/pspp-dump-sav.c
-+++ b/utilities/pspp-dump-sav.c
-@@ -37,6 +37,7 @@
- #include "gl/progname.h"
- #include "gl/version-etc.h"
- #include "gl/xalloc.h"
-+#include "gl/xsize.h"
-
- #define ID_MAX_LEN 64
-
-@@ -99,7 +100,7 @@ static void read_simple_compressed_data (struct sfm_reader *, int max_cases);
- static void read_zlib_compressed_data (struct sfm_reader *);
-
- static struct text_record *open_text_record (
-- struct sfm_reader *, size_t size);
-+ struct sfm_reader *, size_t size, size_t count);
- static void close_text_record (struct text_record *);
- static bool read_variable_to_value_pair (struct text_record *,
- char **key, char **value);
-@@ -735,7 +736,7 @@ read_extra_product_info (struct sfm_reader *r,
- const char *s;
-
- printf ("%08llx: extra product info\n", (long long int) ftello (r->file));
-- text = open_text_record (r, size * count);
-+ text = open_text_record (r, size, count);
- s = text_get_all (text);
- print_string (s, strlen (s));
- close_text_record (text);
-@@ -749,7 +750,7 @@ read_mrsets (struct sfm_reader *r, size_t size, size_t count)
-
- printf ("%08llx: multiple response sets\n",
- (long long int) ftello (r->file));
-- text = open_text_record (r, size * count);
-+ text = open_text_record (r, size, count);
- for (;;)
- {
- const char *name;
-@@ -909,7 +910,7 @@ read_long_var_name_map (struct sfm_reader *r, size_t size, size_t count)
-
- printf ("%08llx: long variable names (short => long)\n",
- (long long int) ftello (r->file));
-- text = open_text_record (r, size * count);
-+ text = open_text_record (r, size, count);
- while (read_variable_to_value_pair (text, &var, &long_name))
- printf ("\t%s => %s\n", var, long_name);
- close_text_record (text);
-@@ -926,7 +927,7 @@ read_long_string_map (struct sfm_reader *r, size_t size, size_t count)
-
- printf ("%08llx: very long strings (variable => length)\n",
- (long long int) ftello (r->file));
-- text = open_text_record (r, size * count);
-+ text = open_text_record (r, size, count);
- while (read_variable_to_value_pair (text, &var, &length_s))
- printf ("\t%s => %d\n", var, atoi (length_s));
- close_text_record (text);
-@@ -1004,7 +1005,7 @@ read_datafile_attributes (struct sfm_reader *r, size_t size, size_t count)
- struct text_record *text;
-
- printf ("%08llx: datafile attributes\n", (long long int) ftello (r->file));
-- text = open_text_record (r, size * count);
-+ text = open_text_record (r, size, count);
- read_attributes (r, text, "datafile");
- close_text_record (text);
- }
-@@ -1196,7 +1197,7 @@ read_variable_attributes (struct sfm_reader *r, size_t size, size_t count)
- struct text_record *text;
-
- printf ("%08llx: variable attributes\n", (long long int) ftello (r->file));
-- text = open_text_record (r, size * count);
-+ text = open_text_record (r, size, count);
- for (;;)
- {
- const char *variable = text_tokenize (text, ':');
-@@ -1389,18 +1390,23 @@ struct text_record
- size_t pos; /* Current position in buffer. */
- };
-
--/* Reads SIZE bytes into a text record for R,
-+/* Reads SIZE * COUNT bytes into a text record for R,
- and returns the new text record. */
- static struct text_record *
--open_text_record (struct sfm_reader *r, size_t size)
-+open_text_record (struct sfm_reader *r, size_t size, size_t count)
- {
- struct text_record *text = xmalloc (sizeof *text);
-- char *buffer = xmalloc (size + 1);
-- read_bytes (r, buffer, size);
-+
-+ if (size_overflow_p (xsum (1, xtimes (size, count))))
-+ sys_error (r, "Extension record too large.");
-+
-+ size_t n_bytes = size * count;
-+ char *buffer = xmalloc (n_bytes + 1);
-+ read_bytes (r, buffer, n_bytes);
- buffer[size] = '\0';
- text->reader = r;
- text->buffer = buffer;
-- text->size = size;
-+ text->size = n_bytes;
- text->pos = 0;
- return text;
- }
---
-cgit v1.2.1
-
diff --git a/sci-mathematics/pspp/files/pspp-1.2.0-CVE-2019-9211.patch b/sci-mathematics/pspp/files/pspp-1.2.0-CVE-2019-9211.patch
deleted file mode 100644
index eb0b84414e88..000000000000
--- a/sci-mathematics/pspp/files/pspp-1.2.0-CVE-2019-9211.patch
+++ /dev/null
@@ -1,74 +0,0 @@
-Source: https://git.savannah.gnu.org/cgit/pspp.git/commit/?id=0b842a84353790534a401e09a8d3bdd3d25bc3a6
-Bug: https://bugs.gentoo.org/679392
-
-From 0b842a84353790534a401e09a8d3bdd3d25bc3a6 Mon Sep 17 00:00:00 2001
-From: Ben Pfaff <blp@cs.stanford.edu>
-Date: Wed, 27 Feb 2019 20:11:06 -0800
-Subject: sys-file-writer: Remove assertions based on file position.
-
-These assertions can fail if the underlying file is not a regular file,
-e.g. if it is a device such as /dev/null.
-
-CVE-2019-9211.
-See also https://bugzilla.redhat.com/show_bug.cgi?id=1683499.
-See also https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2019-9211.
-See also https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=923417.
----
- src/data/sys-file-writer.c | 6 ------
- 1 file changed, 6 deletions(-)
-
-diff --git a/src/data/sys-file-writer.c b/src/data/sys-file-writer.c
-index df5108e2a..bbe58aecd 100644
---- a/src/data/sys-file-writer.c
-+++ b/src/data/sys-file-writer.c
-@@ -953,7 +953,6 @@ write_long_string_value_labels (struct sfm_writer *w,
- const char *encoding = dict_get_encoding (dict);
- size_t n_vars = dict_get_var_cnt (dict);
- size_t size, i;
-- off_t start UNUSED;
-
- /* Figure out the size in advance. */
- size = 0;
-@@ -985,7 +984,6 @@ write_long_string_value_labels (struct sfm_writer *w,
- write_int (w, 1); /* Data item (byte) size. */
- write_int (w, size); /* Number of data items. */
-
-- start = ftello (w->file);
- for (i = 0; i < n_vars; i++)
- {
- struct variable *var = dict_get_var (dict, i);
-@@ -1022,7 +1020,6 @@ write_long_string_value_labels (struct sfm_writer *w,
- free (label);
- }
- }
-- assert (ftello (w->file) == start + size);
- }
-
- static void
-@@ -1032,7 +1029,6 @@ write_long_string_missing_values (struct sfm_writer *w,
- const char *encoding = dict_get_encoding (dict);
- size_t n_vars = dict_get_var_cnt (dict);
- size_t size, i;
-- off_t start UNUSED;
-
- /* Figure out the size in advance. */
- size = 0;
-@@ -1058,7 +1054,6 @@ write_long_string_missing_values (struct sfm_writer *w,
- write_int (w, 1); /* Data item (byte) size. */
- write_int (w, size); /* Number of data items. */
-
-- start = ftello (w->file);
- for (i = 0; i < n_vars; i++)
- {
- struct variable *var = dict_get_var (dict, i);
-@@ -1087,7 +1082,6 @@ write_long_string_missing_values (struct sfm_writer *w,
- write_bytes (w, value_str (value, width), 8);
- }
- }
-- assert (ftello (w->file) == start + size);
- }
-
- static void
---
-cgit v1.2.1
-
diff --git a/sci-mathematics/pspp/files/pspp-1.2.0-fix-gcc10.patch b/sci-mathematics/pspp/files/pspp-1.2.0-fix-gcc10.patch
deleted file mode 100644
index d228ccc42596..000000000000
--- a/sci-mathematics/pspp/files/pspp-1.2.0-fix-gcc10.patch
+++ /dev/null
@@ -1,30 +0,0 @@
-Upstream: https://git.savannah.gnu.org/cgit/pspp.git/commit/?id=614bbfbc4be1f4f47d55d3fbee9ae20f3a9955bb
-Gentoo Bug: https://bugs.gentoo.org/708548
-
-commit 614bbfbc4be1f4f47d55d3fbee9ae20f3a9955bb
-Author: Ben Pfaff <blp@cs.stanford.edu>
-Date: Fri Nov 16 20:27:30 2018 -0800
-
- psppire: Fix multiple definitions of align_enum_type and two others.
-
- These were defined in both psppire-dict.c and widgets.c, which causes a
- problem building with -fno-common (which is desirable because it allows
- Address Sanitizer to work better).
-
-diff --git a/src/ui/gui/widgets.c b/src/ui/gui/widgets.c
-index 26a5dac4f..6ce129249 100644
---- a/src/ui/gui/widgets.c
-+++ b/src/ui/gui/widgets.c
-@@ -171,9 +171,9 @@ enum_to_string (const GValue *src, GValue *dest)
-
-
-
--GType align_enum_type;
--GType measure_enum_type;
--GType role_enum_type;
-+extern GType align_enum_type;
-+extern GType measure_enum_type;
-+extern GType role_enum_type;
-
-
- extern const GEnumValue align[];
diff --git a/sci-mathematics/pspp/files/pspp-1.2.0-fix-overflow.patch b/sci-mathematics/pspp/files/pspp-1.2.0-fix-overflow.patch
deleted file mode 100644
index 8c31c5f87020..000000000000
--- a/sci-mathematics/pspp/files/pspp-1.2.0-fix-overflow.patch
+++ /dev/null
@@ -1,32 +0,0 @@
-Upstream: https://git.savannah.gnu.org/cgit/pspp.git/commit/?id=be42ce976006feed2a7ba7599ee417c28887af52
-
-From be42ce976006feed2a7ba7599ee417c28887af52 Mon Sep 17 00:00:00 2001
-From: Ben Pfaff <blp@cs.stanford.edu>
-Date: Fri, 22 Feb 2019 17:16:40 -0800
-Subject: pspp-dump-sav; Fix write past end of buffer in corner case.
-
-If count == 0 and size > 0, then n_bytes is 0, buffer is a 1-byte
-allocation, and the assignment to buffer[size] would write to buffer[1]
-(or past it), which is past the end of the allocation.
-
-Found by Address Sanitizer.
----
- utilities/pspp-dump-sav.c | 2 +-
- 1 file changed, 1 insertion(+), 1 deletion(-)
-
-diff --git a/utilities/pspp-dump-sav.c b/utilities/pspp-dump-sav.c
-index 1d8d78c87..70687ebc8 100644
---- a/utilities/pspp-dump-sav.c
-+++ b/utilities/pspp-dump-sav.c
-@@ -1403,7 +1403,7 @@ open_text_record (struct sfm_reader *r, size_t size, size_t count)
- size_t n_bytes = size * count;
- char *buffer = xmalloc (n_bytes + 1);
- read_bytes (r, buffer, n_bytes);
-- buffer[size] = '\0';
-+ buffer[n_bytes] = '\0';
- text->reader = r;
- text->buffer = buffer;
- text->size = n_bytes;
---
-cgit v1.2.1
-
diff --git a/sci-mathematics/pspp/files/pspp-1.2.0-fix-segfaults.patch b/sci-mathematics/pspp/files/pspp-1.2.0-fix-segfaults.patch
deleted file mode 100644
index 03b9d00fe73a..000000000000
--- a/sci-mathematics/pspp/files/pspp-1.2.0-fix-segfaults.patch
+++ /dev/null
@@ -1,45 +0,0 @@
-Upstream: https://git.savannah.gnu.org/cgit/pspp.git/commit/?id=df8cf077b2aacb7fe7b33dd8cb90ba57c8681aa0
-
-From df8cf077b2aacb7fe7b33dd8cb90ba57c8681aa0 Mon Sep 17 00:00:00 2001
-From: John Darrington <john@darrington.wattle.id.au>
-Date: Sat, 2 Mar 2019 15:29:39 +0100
-Subject: PSPPIRE: Avoid some segmentation faults when corrupt data is
- encountered.
-
----
- src/ui/gui/psppire-data-store.c | 8 ++++++--
- 1 file changed, 6 insertions(+), 2 deletions(-)
-
-diff --git a/src/ui/gui/psppire-data-store.c b/src/ui/gui/psppire-data-store.c
-index f97b8eaf1..3c2765f5d 100644
---- a/src/ui/gui/psppire-data-store.c
-+++ b/src/ui/gui/psppire-data-store.c
-@@ -183,6 +183,8 @@ psppire_data_store_value_to_string (gpointer unused, PsppireDataStore *store, gi
- g_return_val_if_fail (variable, g_strdup ("???"));
-
- GVariant *vrnt = g_value_get_variant (v);
-+ g_return_val_if_fail (vrnt, g_strdup ("???"));
-+
- union value val;
- value_variant_get (&val, vrnt);
-
-@@ -231,12 +233,14 @@ __get_value (GtkTreeModel *tree_model,
- if (NULL == variable)
- return;
-
-- g_value_init (value, G_TYPE_VARIANT);
--
- gint row = GPOINTER_TO_INT (iter->user_data);
-
- struct ccase *cc = datasheet_get_row (store->datasheet, row);
-
-+ g_return_if_fail (cc);
-+
-+ g_value_init (value, G_TYPE_VARIANT);
-+
- const union value *val = case_data_idx (cc, var_get_case_index (variable));
-
- GVariant *vv = value_variant_new (val, var_get_width (variable));
---
-cgit v1.2.1
-
diff --git a/sci-mathematics/pspp/files/pspp-1.2.0-fix-tests.patch b/sci-mathematics/pspp/files/pspp-1.2.0-fix-tests.patch
deleted file mode 100644
index 1b92572cc820..000000000000
--- a/sci-mathematics/pspp/files/pspp-1.2.0-fix-tests.patch
+++ /dev/null
@@ -1,61 +0,0 @@
-Upstream: https://git.savannah.gnu.org/cgit/pspp.git/commit/?id=fe94912b9c8682c4666873b84c83cda88f4c135d
-
-commit fe94912b9c8682c4666873b84c83cda88f4c135d
-Author: Ben Pfaff <blp@cs.stanford.edu>
-Date: Mon Nov 26 06:54:52 2018 -0800
-
- segment: Fix behavior when #! line is not new-line terminated.
-
- The code here is supposed to maintain a invariant that, when it returns a
- nonnegative value, it initializes *type, but it failed to do that when a
- #! line did not end in a new-line. This fixes the problem.
-
- Bug #55101.
- Thanks for Friedrich Beckmann for narrowing down the problem.
- Found by the Debian buildd: https://buildd.debian.org/status/fetch.php?pkg=pspp&arch=arm64&ver=1.2.0-1&stamp=1543183214&raw=0
-
-diff --git a/src/language/lexer/segment.c b/src/language/lexer/segment.c
-index c0a09973c..c607c4bd1 100644
---- a/src/language/lexer/segment.c
-+++ b/src/language/lexer/segment.c
-@@ -92,21 +92,26 @@ segmenter_parse_shbang__ (struct segmenter *s, const char *input, size_t n,
- {
- if (input[1] == '!')
- {
-- int ofs;
--
-- for (ofs = 2; ofs < n; ofs++)
-- if (input[ofs] == '\n')
-- {
-- if (input[ofs] == '\n' && input[ofs - 1] == '\r')
-- ofs--;
--
-- s->state = S_GENERAL;
-- s->substate = SS_START_OF_COMMAND;
-- *type = SEG_SHBANG;
-- return ofs;
-- }
-+ for (int ofs = 2; ; ofs++)
-+ {
-+ if (ofs >= n)
-+ {
-+ if (!eof)
-+ return -1;
-+ }
-+ else if (input[ofs] == '\n')
-+ {
-+ if (input[ofs - 1] == '\r')
-+ ofs--;
-+ }
-+ else
-+ continue;
-
-- return eof ? ofs : -1;
-+ s->state = S_GENERAL;
-+ s->substate = SS_START_OF_COMMAND;
-+ *type = SEG_SHBANG;
-+ return ofs;
-+ }
- }
- }
- else if (!eof)
diff --git a/sci-mathematics/pspp/files/pspp-1.2.0-py3.patch b/sci-mathematics/pspp/files/pspp-1.2.0-py3.patch
deleted file mode 100644
index d2bf940eae64..000000000000
--- a/sci-mathematics/pspp/files/pspp-1.2.0-py3.patch
+++ /dev/null
@@ -1,38 +0,0 @@
-Upstream: https://git.savannah.gnu.org/cgit/pspp.git/commit/?id=123c3f55a80630655e84f97c9df558d988fa0055
-
-commit 123c3f55a80630655e84f97c9df558d988fa0055
-Author: Ben Pfaff <blp@cs.stanford.edu>
-Date: Mon Nov 19 08:35:23 2018 -0800
-
- test-date-input.py: Make compatible with Python 3.
-
-diff --git a/tests/data/test-date-input.py b/tests/data/test-date-input.py
-index 6ccc2f8f4..cdab260d6 100644
---- a/tests/data/test-date-input.py
-+++ b/tests/data/test-date-input.py
-@@ -50,8 +50,8 @@ def print_all_formats(date, template, formatted, exp_y, exp_m, exp_d,
- global n
- n += 1
- year, month, day, julian, hour, minute, second = date
-- quarter = (month - 1) / 3 + 1
-- week = (julian - 1) / 7 + 1
-+ quarter = (month - 1) // 3 + 1
-+ week = (julian - 1) // 7 + 1
- if year >= 1930 and year < 2030:
- years = ('%d' % year, '%d' % (year % 100))
- else:
-@@ -163,10 +163,10 @@ def print_all_formats(date, template, formatted, exp_y, exp_m, exp_d,
- EPOCH = -577734 # 14 Oct 1582
- expected = (EPOCH - 1
- + 365 * (exp_y - 1)
-- + (exp_y - 1) / 4
-- - (exp_y - 1) / 100
-- + (exp_y - 1) / 400
-- + (367 * exp_m - 362) / 12
-+ + (exp_y - 1) // 4
-+ - (exp_y - 1) // 100
-+ + (exp_y - 1) // 400
-+ + (367 * exp_m - 362) // 12
- + (0 if exp_m <= 2
- else -1 if exp_m >= 2 and is_leap_year(exp_y)
- else -2)
diff --git a/sci-mathematics/pspp/files/pspp-1.6.1-drop-which-tests.patch b/sci-mathematics/pspp/files/pspp-1.6.1-drop-which-tests.patch
new file mode 100644
index 000000000000..5303df4dc2e6
--- /dev/null
+++ b/sci-mathematics/pspp/files/pspp-1.6.1-drop-which-tests.patch
@@ -0,0 +1,28 @@
+https://git.savannah.gnu.org/cgit/pspp.git/commit/?id=f0ac9253e8b84691cec17fc80422993949a91cc1
+
+From f0ac9253e8b84691cec17fc80422993949a91cc1 Mon Sep 17 00:00:00 2001
+From: Friedrich Beckmann <friedrich.beckmann@gmx.de>
+Date: Sun, 26 Jun 2022 09:07:18 +0200
+Subject: tests/atlocal.in - switched from which to command -v
+
+Sam James reported a possible future build problem due to the
+usage of the "which" command:
+
+https://savannah.gnu.org/bugs/?62675
+
+I replace "which" with "command -v" as proposed. Thanks for your
+support.
+
+Closes: 62675
+--- a/tests/atlocal.in
++++ b/tests/atlocal.in
+@@ -71,7 +71,7 @@ alias pspp='pspp --no-statrc'
+ # Avoids error messages during tests if $TERM is set to an unknown terminal.
+ TERM=; unset TERM
+
+-pspp_diff=`which diff`
++pspp_diff=`command -v diff`
+ if test X"$RUNNER" = Xwine; then
+ diff () {
+ $pspp_diff -w "$@"
+cgit v1.1
diff --git a/sci-mathematics/pspp/pspp-1.2.0-r1.ebuild b/sci-mathematics/pspp/pspp-1.2.0-r1.ebuild
deleted file mode 100644
index 24268f0ab119..000000000000
--- a/sci-mathematics/pspp/pspp-1.2.0-r1.ebuild
+++ /dev/null
@@ -1,112 +0,0 @@
-# Copyright 1999-2020 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=7
-
-PYTHON_COMPAT=( python3_{7..9} )
-
-inherit elisp-common python-any-r1 xdg-utils
-
-DESCRIPTION="Program for statistical analysis of sampled data"
-HOMEPAGE="https://www.gnu.org/software/pspp/pspp.html"
-SRC_URI="mirror://gnu/${PN}/${P}.tar.gz"
-
-LICENSE="GPL-3"
-SLOT="0/${PV}"
-KEYWORDS="amd64 x86 ~amd64-linux ~x86-linux"
-IUSE="cairo doc emacs examples gtk ncurses nls perl postgres test"
-RESTRICT="!test? ( test )"
-REQUIRED_USE="test? ( cairo )"
-
-RDEPEND="
- dev-libs/libxml2:2
- sci-libs/gsl:0=
- sys-devel/gettext
- sys-libs/ncurses:0=
- sys-libs/readline:0=
- sys-libs/zlib
- virtual/libiconv
- cairo? (
- x11-libs/cairo[svg]
- x11-libs/pango
- )
- emacs? ( >=app-editors/emacs-23.1:* )
- gtk? (
- x11-libs/gtk+:3
- x11-libs/gtksourceview:3.0=
- x11-libs/spread-sheet-widget
- cairo? ( dev-util/glib-utils )
- )
- postgres? ( dev-db/postgresql:=[server] )"
-DEPEND="${RDEPEND}"
-BDEPEND="
- sys-devel/gettext
- virtual/pkgconfig
- doc? ( virtual/latex-base )
- test? ( ${PYTHON_DEPS} )"
-
-PATCHES=(
- "${FILESDIR}"/${P}-CVE-2018-20230.patch
- "${FILESDIR}"/${P}-CVE-2019-9211.patch
- "${FILESDIR}"/${P}-fix-overflow.patch
- "${FILESDIR}"/${P}-fix-segfaults.patch
- "${FILESDIR}"/${P}-fix-gcc10.patch
- "${FILESDIR}"/${P}-py3.patch
- "${FILESDIR}"/${P}-fix-tests.patch
-)
-
-SITEFILE=50${PN}-gentoo.el
-
-pkg_setup() {
- use test && python-any-r1_pkg_setup
-}
-
-src_prepare() {
- default
- sed -i '/appdata$/s/appdata$/metainfo/' Makefile.in || die
-}
-
-src_configure() {
- econf \
- --disable-static \
- $(use_enable nls) \
- $(use_with cairo) \
- $(use_with gtk gui) \
- $(use_with perl perl-module) \
- $(use_with postgres libpq)
-}
-
-src_compile() {
- default
- if use doc; then
- emake html pdf
- HTML_DOCS=( doc/pspp{,-dev}.html )
- fi
- use emacs && elisp-compile *.el
-}
-
-src_install() {
- default
-
- use doc && dodoc doc/pspp{,-dev}.pdf
- if use examples; then
- dodoc -r examples
- docompress -x /usr/share/doc/${PF}/examples
- fi
- if use emacs; then
- elisp-install ${PN} *.el *.elc
- elisp-site-file-install "${FILESDIR}/${SITEFILE}"
- fi
-
- find "${D}" -name '*.la' -type f -delete || die
-}
-
-pkg_postinst() {
- xdg_icon_cache_update
- use emacs && elisp-site-regen
-}
-
-pkg_postrm() {
- xdg_icon_cache_update
- use emacs && elisp-site-regen
-}
diff --git a/sci-mathematics/pspp/pspp-1.6.0.ebuild b/sci-mathematics/pspp/pspp-1.6.0.ebuild
new file mode 100644
index 000000000000..886cf3d5f542
--- /dev/null
+++ b/sci-mathematics/pspp/pspp-1.6.0.ebuild
@@ -0,0 +1,82 @@
+# Copyright 1999-2022 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+PYTHON_COMPAT=( python3_{8..11} )
+
+inherit python-any-r1 xdg
+
+DESCRIPTION="Program for statistical analysis of sampled data"
+HOMEPAGE="https://www.gnu.org/software/pspp/pspp.html"
+SRC_URI="mirror://gnu/${PN}/${P}.tar.gz"
+
+LICENSE="GPL-3"
+SLOT="0/${PV}"
+KEYWORDS="amd64 x86 ~amd64-linux ~x86-linux"
+IUSE="doc examples gtk ncurses nls perl postgres"
+
+RDEPEND="
+ dev-libs/libxml2:2
+ sci-libs/gsl:0=
+ sys-devel/gettext
+ sys-libs/ncurses:0=
+ sys-libs/readline:0=
+ sys-libs/zlib
+ virtual/libiconv
+ x11-libs/cairo[svg]
+ x11-libs/pango
+ gtk? (
+ dev-util/glib-utils
+ x11-libs/gtk+:3
+ x11-libs/gtksourceview:4=
+ >=x11-libs/spread-sheet-widget-0.7
+ )
+ postgres? ( dev-db/postgresql:=[server] )"
+DEPEND="${RDEPEND}"
+BDEPEND="
+ ${PYTHON_DEPS}
+ sys-devel/gettext
+ virtual/pkgconfig
+ doc? ( virtual/latex-base )"
+
+pkg_pretend() {
+ ewarn "Starting with pspp-1.4.0 the pspp-mode emacs package is no longer"
+ ewarn "shipped with pspp itself, and should instead be fetched from ELPA:"
+ ewarn "https://elpa.gnu.org/packages/pspp-mode.html"
+}
+
+src_prepare() {
+ default
+
+ sed -i '/appdata$/s/appdata$/metainfo/' Makefile.in || die
+}
+
+src_configure() {
+ econf \
+ $(use_enable nls) \
+ $(use_with gtk gui) \
+ $(use_with perl perl-module) \
+ $(use_with postgres libpq)
+}
+
+src_compile() {
+ default
+
+ if use doc; then
+ emake html pdf
+ HTML_DOCS=( doc/pspp{,-dev}.html )
+ fi
+}
+
+src_install() {
+ default
+
+ use doc && dodoc doc/pspp{,-dev}.pdf
+ if use examples; then
+ dodoc -r examples
+ docompress -x /usr/share/doc/${PF}/examples
+ fi
+
+ find "${ED}" -name '*.la' -type f -delete || die
+}
diff --git a/sci-mathematics/pspp/pspp-1.4.1.ebuild b/sci-mathematics/pspp/pspp-1.6.1.ebuild
index 06b745ac8406..befeed9034a2 100644
--- a/sci-mathematics/pspp/pspp-1.4.1.ebuild
+++ b/sci-mathematics/pspp/pspp-1.6.1.ebuild
@@ -1,9 +1,9 @@
-# Copyright 1999-2020 Gentoo Authors
+# Copyright 1999-2022 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
-EAPI=7
+EAPI=8
-PYTHON_COMPAT=( python3_{7..9} )
+PYTHON_COMPAT=( python3_{8..11} )
inherit python-any-r1 xdg
@@ -14,9 +14,9 @@ SRC_URI="mirror://gnu/${PN}/${P}.tar.gz"
LICENSE="GPL-3"
SLOT="0/${PV}"
KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux"
-IUSE="cairo doc examples gtk ncurses nls perl postgres test"
+# Note: can drop test infra + which dep in next release!
+IUSE="doc examples gtk ncurses nls perl postgres test"
RESTRICT="!test? ( test )"
-REQUIRED_USE="test? ( cairo )"
RDEPEND="
dev-libs/libxml2:2
@@ -26,23 +26,23 @@ RDEPEND="
sys-libs/readline:0=
sys-libs/zlib
virtual/libiconv
- cairo? (
- x11-libs/cairo[svg]
- x11-libs/pango
- )
+ x11-libs/cairo[svg]
+ x11-libs/pango
gtk? (
+ dev-util/glib-utils
x11-libs/gtk+:3
- x11-libs/gtksourceview:3.0=
- >=x11-libs/spread-sheet-widget-0.6
- cairo? ( dev-util/glib-utils )
+ x11-libs/gtksourceview:4=
+ >=x11-libs/spread-sheet-widget-0.7
)
postgres? ( dev-db/postgresql:=[server] )"
DEPEND="${RDEPEND}"
+# which dep for tests: https://savannah.gnu.org/bugs/index.php?62675
BDEPEND="
+ ${PYTHON_DEPS}
sys-devel/gettext
virtual/pkgconfig
doc? ( virtual/latex-base )
- test? ( ${PYTHON_DEPS} )"
+ test? ( sys-apps/which )"
pkg_pretend() {
ewarn "Starting with pspp-1.4.0 the pspp-mode emacs package is no longer"
@@ -50,20 +50,15 @@ pkg_pretend() {
ewarn "https://elpa.gnu.org/packages/pspp-mode.html"
}
-pkg_setup() {
- use test && python-any-r1_pkg_setup
-}
-
src_prepare() {
default
+
sed -i '/appdata$/s/appdata$/metainfo/' Makefile.in || die
}
src_configure() {
econf \
- --disable-static \
$(use_enable nls) \
- $(use_with cairo) \
$(use_with gtk gui) \
$(use_with perl perl-module) \
$(use_with postgres libpq)
@@ -71,6 +66,7 @@ src_configure() {
src_compile() {
default
+
if use doc; then
emake html pdf
HTML_DOCS=( doc/pspp{,-dev}.html )