John Darrington [Sun, 6 Sep 2020 14:04:54 +0000 (16:04 +0200)]
Correct the copyright holder named in some files.
For some reason, these files named myself as the copyright holder,
instead of the FSF.
Friedrich Beckmann [Sun, 6 Sep 2020 10:43:59 +0000 (12:43 +0200)]
metainfo.its: changed this from a build requirement to a warning
When the build system is not capable to extract the strings from
org.fsf.pspp.metainfo.xml.in file, then this will not be translated.
John Darrington [Sun, 6 Sep 2020 09:49:58 +0000 (11:49 +0200)]
Fix build error when building --without-gui
Closes bug #59069.
Ben Pfaff [Sat, 5 Sep 2020 23:37:19 +0000 (16:37 -0700)]
Update version number to 1.4.2.
Ben Pfaff [Sat, 5 Sep 2020 23:15:27 +0000 (16:15 -0700)]
Release version 1.4.1.
This commit moves the version number *backward*, because we decided
that it was necessary to release 1.4.1 with all of the commits that
were currently on master.
Ben Pfaff [Sat, 5 Sep 2020 23:13:56 +0000 (16:13 -0700)]
po: Delete temporary files to fix "make distcheck" error.
Ben Pfaff [Sat, 5 Sep 2020 22:08:33 +0000 (15:08 -0700)]
Makefiles: Use $(PHONY) instead of .PHONY.
Avoids a warning from Automake in Smake:
src/ui/gui/automake.mk:463: warning: .PHONY was already defined in condition TRUE, which includes condition HAVE_GUI ...
Makefile.am:91: 'src/automake.mk' included from here
src/automake.mk:55: 'src/ui/automake.mk' included from here
src/ui/automake.mk:21: 'src/ui/gui/automake.mk' included from here
po/automake.mk:128: ... '.PHONY' previously defined here
Makefile.am:87: 'po/automake.mk' included from here
Friedrich Beckmann [Sat, 5 Sep 2020 15:24:17 +0000 (17:24 +0200)]
added appstream as a build requirement
appstream provides the metainfo.its file which is required for
xgettext to extract the translation strings of the
src/ui/gui/org.fsf.pspp.metainfo.xml.in file
The metainfo.its file is located in /usr/share/gettext/its on
debian and on opensuse. It is provided by the packages
debian: appstream
opensuse: AppStream-devel
Friedrich Beckmann [Sat, 5 Sep 2020 15:19:09 +0000 (17:19 +0200)]
po/automake.mk: changed xgettext glade language to Glade
Friedrich Beckmann [Sat, 5 Sep 2020 15:17:37 +0000 (17:17 +0200)]
Revert "po/metainfo.its: New file."
This reverts commit
e94442a3b00c1f22952586cc26b7be60617b93e1.
Friedrich Beckmann [Sat, 5 Sep 2020 15:17:07 +0000 (17:17 +0200)]
Revert "Work around bug in xgettext 0.19.8.1"
This reverts commit
df9ada336f1373c1144b7133a78c97ef5e7afdc3.
John Darrington [Sat, 5 Sep 2020 10:20:51 +0000 (12:20 +0200)]
Work around bug in xgettext 0.19.8.1
This version crashes on exit when passed a .its file. So ignore the
exit status.
John Darrington [Sat, 5 Sep 2020 03:08:12 +0000 (05:08 +0200)]
Use g_ascii_strtoll instead of strtol.
The former is locale sensitive.
John Darrington [Sat, 5 Sep 2020 03:08:12 +0000 (05:08 +0200)]
po-update rule: use wget rather than rsync
Rsync is considered insecure these days
John Darrington [Sat, 5 Sep 2020 03:08:12 +0000 (05:08 +0200)]
Remove the --enable-debug configure option.
In practice, it is faster and simpler to make local modifications
to the respective files which debugging rather than reconfiguring
with --enable-debug. Furthermore this is just another configure
option which confuses users and serves little purpose.
John Darrington [Sat, 5 Sep 2020 03:08:12 +0000 (05:08 +0200)]
Check that merged po files are well formed.
John Darrington [Sat, 5 Sep 2020 02:31:28 +0000 (04:31 +0200)]
src/ui/*/automake.mk: Conditionally include the gui automake file
John Darrington [Sat, 5 Sep 2020 02:31:28 +0000 (04:31 +0200)]
po/automake.mk: Fixed typo in variable names.
This resulted in po/pspp.pot not getting updated when it should have been.
This is a very good demonstration of the reason why carefully desigined
languages should insist on a variable being declared before it is used.
Also make the file depend on Makefile, so that it gets rebuilt when the
PACKAGE VERSION changes.
John Darrington [Sat, 5 Sep 2020 02:31:28 +0000 (04:31 +0200)]
Deal properly with EOF in the REPL, when built without readline
John Darrington [Sat, 5 Sep 2020 02:31:28 +0000 (04:31 +0200)]
utitilites/pspp-output.c: Deal properly with plural forms
Friedrich Beckmann [Wed, 2 Sep 2020 22:31:50 +0000 (00:31 +0200)]
updated german translation de.po
Ben Pfaff [Wed, 2 Sep 2020 06:17:50 +0000 (23:17 -0700)]
doc: Describe running the "rc" file at pspp startup.
Bug #54376.
Thanks to Harry Thijssen for reporting this bug.
Ben Pfaff [Wed, 2 Sep 2020 06:02:44 +0000 (23:02 -0700)]
doc/manual: Remove gitignore file in otherwise empty directory.
I added this by mistake some time ago. It's not useful.
Ben Pfaff [Wed, 2 Sep 2020 05:55:45 +0000 (22:55 -0700)]
tests: Add missing host.at tests.
Thanks to Friedrich Beckmann for reporting the problem.
Ben Pfaff [Wed, 2 Sep 2020 05:49:43 +0000 (22:49 -0700)]
encoding-guesser: Explain UTF-16, UTF-16BE, UTF-16LE distinctions.
Ben Pfaff [Wed, 2 Sep 2020 05:49:16 +0000 (22:49 -0700)]
u8-istream: Add some more tests for byte-order marks.
Ben Pfaff [Wed, 2 Sep 2020 04:42:35 +0000 (21:42 -0700)]
make-file: Pass O_BINARY or O_TEXT to open() call in replace_file_start().
It's hard to imagine why this would make a difference on a real system,
because the file descriptor obtained from open() is passed to fdopen(),
which is documented to determine whether the stream is text or binary
based on the mode string. However, bug #40223 implies that it makes a
difference. I hope that this commit fixes the problem (if any!).
Thanks to the anonymous submitter of bug #40223.
Ben Pfaff [Wed, 2 Sep 2020 04:40:46 +0000 (21:40 -0700)]
csv-file-writer: Fix typo in user message.
Ben Pfaff [Wed, 2 Sep 2020 01:54:00 +0000 (18:54 -0700)]
HOST: Reimplement and add support for TIMELIMIT subcommand.
Fixes bug #25816.
Thanks to John Darrington for reporting this bug.
Ben Pfaff [Mon, 31 Aug 2020 19:29:32 +0000 (12:29 -0700)]
tests: Add 'slow' tag to more tests.
This reduces the runtime of "make check TESTSUITEFLAGS='-k \!slow -j128'"
from 4.4 to 3.5 seconds on my computer.
Ben Pfaff [Mon, 31 Aug 2020 18:00:24 +0000 (11:00 -0700)]
spv-light-decoder: Avoid GCC 10.x warning in decode_spvlb_valign().
It seems to be wrong, but GCC can't tell and it's hard to blame it.
Ben Pfaff [Mon, 31 Aug 2020 17:29:52 +0000 (10:29 -0700)]
value: Suppress uninitialized tmp.s warning in value_resize().
This warning is wrong, but it should not cause a performance problem to
avoid it. Encountered with GCC 10.x.
Ben Pfaff [Mon, 31 Aug 2020 16:03:24 +0000 (09:03 -0700)]
Makefile.am: Suppress GCC 10.x warning in gl/careadlinkat.c.
This suppresses an error in gl/careadlinkat.c that otherwise can't be
avoided in GCC 10.x:
../../gl/careadlinkat.c: In function ‘careadlinkat’:
cc1: error: function may return address of local variable
Friedrich Beckmann [Sun, 30 Aug 2020 20:24:18 +0000 (22:24 +0200)]
GFUNC_COMPAT_CAST also for dialog-common.c
I missed that one - Thanks!
John Darrington [Sun, 30 Aug 2020 13:09:13 +0000 (15:09 +0200)]
Work around bug in Automake 1.16.1
Friedrich Beckmann [Sun, 30 Aug 2020 12:56:21 +0000 (14:56 +0200)]
moved GFunc cast to macro GFUNC_COMPAT_CAST
I moved the GFunc cast for g_list_foreach to a macro with
some explaining comment. The macro is in helper.h
Friedrich Beckmann [Sun, 30 Aug 2020 11:50:14 +0000 (13:50 +0200)]
psppire-spread-sheetmodel.c: modified userdata increment using GPOINTER_TO_INT
Friedrich Beckmann [Sun, 30 Aug 2020 11:55:39 +0000 (13:55 +0200)]
po/pl.po - replaced strange character in comment
This results in sed on MacOS to report an error.
John Darrington [Sun, 30 Aug 2020 05:43:32 +0000 (07:43 +0200)]
dummy.c: Conform to exact prototypes
Apparently certain toolchains complain if the symbols in dummy.c do not
exactly match their declarations. This should not be a problem unless
the compiler has enabled a lot of warnings, and is treating those warnings
as errors, (which is inadvisable except under very special circumstances).
However, it appears that some people are doing that.
This change ensures that they are identical.
John Darrington [Sun, 30 Aug 2020 05:48:26 +0000 (07:48 +0200)]
Prefer GTK+ style casts rather than C-style casts.
John Darrington [Sun, 30 Aug 2020 05:46:03 +0000 (07:46 +0200)]
Replace '(GObjectClass*) class' with 'G_OBJECT_CLASS(class)'
John Darrington [Sun, 30 Aug 2020 05:45:01 +0000 (07:45 +0200)]
Remove _base_init functions from custom widget definitions.
These served no purpose, and are in Gtk+ only for reasons of
legacy so far as I can make out. Also use G_TYPE_DEFINE macros
instead of explicit *_get_type function definitions.
John Darrington [Sun, 30 Aug 2020 05:43:32 +0000 (07:43 +0200)]
INSTALL: Remove reference to --with-gui-tools which no longer exists
Friedrich Beckmann [Sat, 29 Aug 2020 22:26:35 +0000 (00:26 +0200)]
switched off unused-paramter warning for lib-essential gui files
I disabled the unused-parameter warning as for the other
gui files. Same as before the introduction of the essential
library.
John Darrington [Sat, 29 Aug 2020 18:06:25 +0000 (20:06 +0200)]
src/ui/gui/automake.mk: Add missing AM_CFLAGS parameter
Friedrich Beckmann [Sat, 29 Aug 2020 16:29:06 +0000 (18:29 +0200)]
Warnings: correct cast for psppire-spread-sheet model
This fixes the compiler warning:
warning: wrong type argument to increment [-Wpointer-arith]
John Darrington [Sat, 29 Aug 2020 13:41:37 +0000 (15:41 +0200)]
Remove src/ui/gui/memorandum.txt
Almost all of the information in this file is out of date.
John Darrington [Sat, 29 Aug 2020 13:40:16 +0000 (15:40 +0200)]
Add convenience library libwidgets-essential
This avoids having to compile large numbers of modules twice.
Friedrich Beckmann [Sat, 29 Aug 2020 13:19:36 +0000 (15:19 +0200)]
xml-parser-generator - iterate over sorted dict - #58975
I sort the dict before iteration because the normal
iterator over a dict is not reproducible and will generate
different code in each run. This will work but the
build is not reproducible.
Closes: https://savannah.gnu.org/bugs/index.php?58975
John Darrington [Sat, 29 Aug 2020 06:26:23 +0000 (08:26 +0200)]
src/ui/gui/psppire-conf.c: Use GError instead of strerror.
Apparently the use of strerror was causing problems on certain
platforms. In this case, since the function being checked provides
a GError argument it makes sense to use that instead.
Closes bug #59034
Friedrich Beckmann [Tue, 25 Aug 2020 12:58:17 +0000 (14:58 +0200)]
replace finite with isfinite
finite function is deprecated on MacOS.
Friedrich Beckmann [Tue, 25 Aug 2020 08:18:42 +0000 (10:18 +0200)]
Warning: added missing initializer for closure_callback in GSourceFuncs
Friedrich Beckmann [Tue, 25 Aug 2020 07:56:57 +0000 (09:56 +0200)]
Warning: "static const" instead of "const static"
Remove warning:
‘static’ is not at beginning of declaration
Friedrich Beckmann [Tue, 25 Aug 2020 07:50:12 +0000 (09:50 +0200)]
Warning: avoid warning that weekday may be used uninitialized
Friedrich Beckmann [Tue, 25 Aug 2020 07:42:55 +0000 (09:42 +0200)]
Warning: adhere to const qualifier for initializations and assignments
This commit avoids the warnings:
warning: initialization discards ‘const’ qualifier from pointer target type
warning: assignment discards ‘const’ qualifier from pointer target type
Friedrich Beckmann [Mon, 24 Aug 2020 20:46:48 +0000 (22:46 +0200)]
Warnings: fix missing function prototypes
In most cases I added the static qualifier which was
missing. Some functions are never called so I either
removed them or I put them in #if DEBUG
Friedrich Beckmann [Mon, 24 Aug 2020 11:20:21 +0000 (13:20 +0200)]
Warnings: removed fallthrough in case statements
I guess the fallthroughs in the case statements were not intentional.
This avoids the warning:
warning: this statement may fall through
Friedrich Beckmann [Mon, 24 Aug 2020 11:08:35 +0000 (13:08 +0200)]
Warnings: added cast for enumaration types
This avoids the warning:
warning: implicit conversion from ‘enum <anonymous>’ to ...
Friedrich Beckmann [Mon, 24 Aug 2020 10:48:33 +0000 (12:48 +0200)]
Added tooltip for statistics in dialogs
This removed the warning:
warning: missing initializer for field ‘tooltip’
Friedrich Beckmann [Mon, 24 Aug 2020 09:19:33 +0000 (11:19 +0200)]
Warnings: function type cast for g_list_foreach
I added a cast for the functions used in g_list_foreach. Without
the cast, the warning
warning: cast between incompatible function types
is reported.
Friedrich Beckmann [Mon, 24 Aug 2020 08:57:10 +0000 (10:57 +0200)]
Warnings: missing initializer for value_tables and function type cast (GObject)
I fixed the warnings:
warning: missing initializer for field ‘value_table’ of ‘GTypeInfo’
warning: cast between incompatible function types
by replacing the handwritten type info code with G_DEFINE_TYPE...
macros (preferred). When this was not possible due to usage of
base init functions I added casts and the initializer.
Friedrich Beckmann [Mon, 24 Aug 2020 18:07:21 +0000 (20:07 +0200)]
Warnings: add AM_CFLAGS also for the psppire build
With the new setup the psppire and glade build honours the
AM_CFLAGS setup. This includes the Wextra warnings which
show some more warnings. The two checks which are disabled are
-Wno-sign-compare : disabled also for core pspp
-Wno-unused-parameter : many callbacks result in unused parameters
John Darrington [Sun, 23 Aug 2020 07:10:01 +0000 (09:10 +0200)]
Fixed bug which caused a crash when using the Find feature
John Darrington [Sat, 22 Aug 2020 11:54:14 +0000 (13:54 +0200)]
src/ui/gui/dummy.c: Eliminate warnings when building with gcc-10.2.0
John Darrington [Sat, 22 Aug 2020 07:16:46 +0000 (09:16 +0200)]
Updated translations from translationproject.org
John Darrington [Sun, 16 Aug 2020 08:50:17 +0000 (10:50 +0200)]
src/ui/gui/automake.mk: Remove yelp-check rule
John Darrington [Sun, 16 Aug 2020 08:36:02 +0000 (10:36 +0200)]
psppire-marshaller.c: Include the header file
John Darrington [Sun, 5 Jul 2020 06:15:20 +0000 (08:15 +0200)]
html.c: Reimplement as HTML5
John Darrington [Sun, 5 Jul 2020 06:12:41 +0000 (08:12 +0200)]
get_language: New function
John Darrington [Wed, 19 Aug 2020 05:13:13 +0000 (07:13 +0200)]
Issue error message if failing to change directory
John Darrington [Tue, 18 Aug 2020 09:52:57 +0000 (11:52 +0200)]
barchart.c: Sort the categories before displaying them.
Partial fix for bug #58968
Friedrich Beckmann [Mon, 17 Aug 2020 17:43:37 +0000 (19:43 +0200)]
limit the number of variables in barchart from crosstabs #58968
The barchart was created with more than two variables from
the crosstabs subcommand. I added an assertion and limit
the number of variables to two. This bug resulted in a
regression failure (crash) for test
493: CROSSTABS barchart
on i386 architecture.
see: https://savannah.gnu.org/bugs/?58968
Friedrich Beckmann [Mon, 17 Aug 2020 09:52:47 +0000 (11:52 +0200)]
fixed range check in parse_record_placement (32Bit/64Bit issue) #58968
The regression failed for test "lexer crash due to overflow" (403)
on i386 architecture. The reason is that long is 64Bit on amd64 while
it is 32Bit on i386. The code used long as type that can hold larger
values than int which does not work on 32Bit systems.
The change keeps the value as double as long as the range checks are done.
see: https://savannah.gnu.org/bugs/?58968
Friedrich Beckmann [Mon, 17 Aug 2020 10:22:04 +0000 (12:22 +0200)]
fixed git distribution check for .gitattributes added in previous commit
Friedrich Beckmann [Mon, 17 Aug 2020 09:45:07 +0000 (11:45 +0200)]
added .gitattributes file such that lexer.at shows diff
Friedrich Beckmann [Sun, 16 Aug 2020 15:28:49 +0000 (17:28 +0200)]
factor.c: added translation hint
John Darrington [Sun, 16 Aug 2020 18:56:06 +0000 (20:56 +0200)]
Removed stray newline in acinclude.m4
Reported-by: Michel Boaventura
John Darrington [Sun, 16 Aug 2020 12:32:31 +0000 (14:32 +0200)]
Fixed error running 'make distcheck'
John Darrington [Sun, 16 Aug 2020 10:36:00 +0000 (12:36 +0200)]
Fixed some errors in format and orthography of printed strings.
Reported-by: Anonymous https://lists.gnu.org/archive/html/bug-gnu-pspp/2020-08/msg00004.html
Friedrich Beckmann [Sun, 16 Aug 2020 08:43:04 +0000 (10:43 +0200)]
pspp-convert.1 - fixed a syntax typo
The debian build checks reported a bug in the man page:
troff: <standard input>:129: '\-' is not allowed in an escape name
The man page can be checked with:
LC_ALL=en_US.UTF-8 MANROFFSEQ='' MANWIDTH=80 \
man --warnings -E UTF-8 -l -Tutf8 -Z ./pspp-convert.1 >/dev/null
John Darrington [Mon, 10 Aug 2020 07:15:09 +0000 (09:15 +0200)]
Revive psppire's glade compatibility
John Darrington [Sun, 9 Aug 2020 16:16:27 +0000 (18:16 +0200)]
PsppireSelector: Don't attempt to unref a null pointer
John Darrington [Sun, 9 Aug 2020 14:37:45 +0000 (16:37 +0200)]
Update GtkBuilder files to mention gtk+ version 3.22
jdarrington [Sun, 9 Aug 2020 14:21:33 +0000 (16:21 +0200)]
src/language/stats/chart-category.h: Add #include directive
jdarrington [Sun, 9 Aug 2020 14:19:16 +0000 (16:19 +0200)]
PsppireVarView: Use g_realloc instead of xrealloc
jdarrington [Sun, 9 Aug 2020 11:19:03 +0000 (13:19 +0200)]
src/ui/gui/automake.mk: Sort the manifest
jdarrington [Sun, 9 Aug 2020 11:10:47 +0000 (13:10 +0200)]
Rename PsppireButtonbox to PsppireButtonBox
This is more consistent with other names.
John Darrington [Sun, 2 Aug 2020 17:17:19 +0000 (19:17 +0200)]
src/ui/gui/psppire-conf.c: On error, give a reason for failure to create file
John Darrington [Sun, 2 Aug 2020 09:44:18 +0000 (11:44 +0200)]
Avoid warnings about ! being passed a non-boolean
John Darrington [Sun, 19 Jul 2020 09:35:56 +0000 (11:35 +0200)]
PsppireImportAssistant: Proceed to next page when a file is double clicked
John Darrington [Sun, 19 Jul 2020 07:51:09 +0000 (09:51 +0200)]
Remove/Replace some obsolete gnulib modules
John Darrington [Mon, 10 Aug 2020 08:44:22 +0000 (10:44 +0200)]
Smake: create build-aux/config.rpath
jdarrington [Sun, 9 Aug 2020 10:53:32 +0000 (12:53 +0200)]
Update to more recent GNULIB
John Darrington [Sun, 16 Aug 2020 06:57:16 +0000 (08:57 +0200)]
Bump version to 1.5.0
Ben Pfaff [Sat, 15 Aug 2020 22:53:21 +0000 (22:53 +0000)]
Release PSPP version 1.4.0.
Friedrich Beckmann [Fri, 14 Aug 2020 00:53:11 +0000 (02:53 +0200)]
sys-file-reader: get_text_token did not set delimiter - bug #58943
parse_mrsets used loop local variables which were not initialized.
The regression worked with low compiler optimization levels because
the value for "delimiter" was kept over the loop iterations.
get_text_token did not set the delimiter value when only delimiters
are left in the string. I set the delimiter value to the last value
in the string in that case. I initialized the variables to see the
bug also in -O0.
Closes: https://savannah.gnu.org/bugs/?58943
Ben Pfaff [Mon, 3 Aug 2020 04:31:22 +0000 (04:31 +0000)]
render-test: Initialize i18n to make tests pass on mingw.
On mingw, filename recoding requires i18n to be initialized.
Ben Pfaff [Mon, 3 Aug 2020 04:30:44 +0000 (04:30 +0000)]
tests: Tolerate 3-digit exponents in output for chart tick format.
This makes the test pass on mingw.
Ben Pfaff [Mon, 3 Aug 2020 04:28:38 +0000 (04:28 +0000)]
tests: Ignore Pango warnings when generating charts.
On mingw, Pango complains about font names. It's harmless. I don't know
a way to suppress the warning.
Ben Pfaff [Mon, 3 Aug 2020 00:44:40 +0000 (00:44 +0000)]
placement-parser: Properly handle LONG_MAX != INT_MAX.
Also, delete spurious null bytes from the related test. The null
bytes spurred a test failure on mingw although I am not sure why.