]> git.ipfire.org Git - thirdparty/rrdtool-1.x.git/log
thirdparty/rrdtool-1.x.git
2 years agoUpdate CHANGES 1170/head
Wolfgang Stöggl [Wed, 6 Apr 2022 16:42:13 +0000 (18:42 +0200)] 
Update CHANGES

2 years agoRemove autogenerated files
Wolfgang Stöggl [Tue, 5 Apr 2022 20:36:31 +0000 (22:36 +0200)] 
Remove autogenerated files

The removed files are generated using bootstrap
(libtoolize, autoreconf) and they are available in release tarballs.

- Avoids outdated configure file in git
- Resolves #1163
- The following commands have been used for removal:
  git rm configure
  git rm -r conftools/
  git rm Makefile.in
  git rm *Makefile.in
  git rm src/rrd_config.h.in

2 years agoMerge pull request #1169 from c72578/2022-04-04_Add_test_for_rrd_first
Tobias Oetiker [Tue, 5 Apr 2022 07:01:05 +0000 (09:01 +0200)] 
Merge pull request #1169 from c72578/2022-04-04_Add_test_for_rrd_first

Add test for rrd_first()

2 years agoAdd test for rrd_first() 1169/head
Wolfgang Stöggl [Mon, 4 Apr 2022 16:28:19 +0000 (18:28 +0200)] 
Add test for rrd_first()

Make use of existing test "create-from-template-1", which already
creates, updates and dumps rrds and add a test for rrdtool first.

- This is a test for issue #1140

2 years agoMerge pull request #1168 from c72578/2022-04-01_Fix_unsigned_int_overflow_in_rrdtool_...
Tobias Oetiker [Mon, 4 Apr 2022 06:57:18 +0000 (08:57 +0200)] 
Merge pull request #1168 from c72578/2022-04-01_Fix_unsigned_int_overflow_in_rrdtool_first

Fix unsigned integer overflow in rrdtool first

2 years agoFix unsigned integer overflow in rrdtool first 1168/head
Wolfgang Stöggl [Fri, 1 Apr 2022 17:14:49 +0000 (19:14 +0200)] 
Fix unsigned integer overflow in rrdtool first

This fixes a signed/unsigned conversion bug in the calculation of
"then". Background info:
pdp_cnt and pdp_step are both unsigned long, whereas timer is signed.
When multiplying signed and unsigned integers (same size), a signed is
implicitly typecast to unsigned.

- A similar fix has already been applied to rrd_dump.c
  in commit e193975
- Resolves #1140

2 years agoFix tests under MSYS2 (Windows)
Wolfgang Stöggl [Fri, 25 Mar 2022 18:09:59 +0000 (19:09 +0100)] 
Fix tests under MSYS2 (Windows)

This is a follow-up to commit 7cd748e considering running the tests
in Windows under MSYS2. A similar approach has already been used in
tests\graph2 and tests\xport1 (see also: 847d679)

- Updates the following tests:
  graph1, rpn1, rpn2, vformatter1
- Avoid Windows drive letter in the path of DEF:vname=rrdfile
  under MSYS or MSYS2. Use only the filename of the rrd and not
  the full path if environmental variable MSYSTEM is set.

2 years agoMerge pull request #1166 from c72578/2022-03-24_ci-workflow_Add_autotools_to_msys2
Tobias Oetiker [Thu, 24 Mar 2022 22:02:16 +0000 (23:02 +0100)] 
Merge pull request #1166 from c72578/2022-03-24_ci-workflow_Add_autotools_to_msys2

ci-workflow.yml: Add autotools to msys2

2 years agoci-workflow.yml: Add autotools to msys2 1166/head
Wolfgang Stöggl [Thu, 24 Mar 2022 17:05:29 +0000 (18:05 +0100)] 
ci-workflow.yml: Add autotools to msys2

- Add mingw-w64-x86_64-autotools to "install:"
  Fixes:
  ./bootstrap: line 8: libtoolize: command not found
  ./bootstrap: line 11: autoreconf: command not found
- Minor modifications to ci-workflow.yml:
  * Fix yamllint errors in line 8 and 10:
    too many spaces inside brackets
  * Add "workflow_dispatch:" to allow manual run of the Windows CI
    workflow

2 years agoMerge pull request #1165 from c72578/2022-03-23_Fix_BUILD_DATE_in_rrdtool_help_output
Tobias Oetiker [Thu, 24 Mar 2022 16:00:15 +0000 (17:00 +0100)] 
Merge pull request #1165 from c72578/2022-03-23_Fix_BUILD_DATE_in_rrdtool_help_output

Fix BUILD_DATE in rrdtool help output

2 years agoFix BUILD_DATE in rrdtool help output 1165/head
Wolfgang Stöggl [Wed, 23 Mar 2022 16:58:45 +0000 (17:58 +0100)] 
Fix BUILD_DATE in rrdtool help output

- This is a followup to #1102
- Fixes segfault when running "rrdtool --help"
- Change DATE_FMT to the same date format as the __DATE__ macro [1]:
  mmm dd yyyy

[1] https://gcc.gnu.org/onlinedocs/cpp/Standard-Predefined-Macros.html

2 years agoMerge pull request #1164 from c72578/2022-03-22_Update_version_and_copyright_year_in_...
Tobias Oetiker [Wed, 23 Mar 2022 08:30:44 +0000 (09:30 +0100)] 
Merge pull request #1164 from c72578/2022-03-22_Update_version_and_copyright_year_in_git_files

Update Version and Copyright year in git files

2 years agoUpdate Version and Copyright year in git files 1164/head
Wolfgang Stöggl [Tue, 22 Mar 2022 04:41:40 +0000 (05:41 +0100)] 
Update Version and Copyright year in git files

This commit is based on running the first part of the rrdtool-release
script (before ./bootstrap).

- Part of #1163

2 years agoMerge pull request #1162 from ryandesign/patch-1
Tobias Oetiker [Mon, 21 Mar 2022 08:35:43 +0000 (09:35 +0100)] 
Merge pull request #1162 from ryandesign/patch-1

acinclude.m4: Include <stdlib.h> when using exit

2 years agoacinclude.m4: Include <stdlib.h> when using exit 1162/head
Ryan Schmidt [Sun, 20 Mar 2022 21:29:10 +0000 (16:29 -0500)] 
acinclude.m4: Include <stdlib.h> when using exit

Fixes:

conftest.c:124:33: error: implicitly declaring library function 'exit'
with type 'void (int) __attribute__((noreturn))'

2 years agoMerge pull request #1161 from c72578/2022-03-15_rrdtool-release_Create_NUMVERS_from_V...
Tobias Oetiker [Wed, 16 Mar 2022 08:20:29 +0000 (09:20 +0100)] 
Merge pull request #1161 from c72578/2022-03-15_rrdtool-release_Create_NUMVERS_from_VERSION_file

rrdtool-release: Create NUMVERS from VERSION file

2 years agorrdtool-release: Create NUMVERS from VERSION file 1161/head
Wolfgang Stöggl [Tue, 15 Mar 2022 17:13:35 +0000 (18:13 +0100)] 
rrdtool-release: Create NUMVERS from VERSION file

In the script rrdtool-release, NUMVERS has been read from the
configure file so far, which may not be up-to-date.
Generate NUMVERS from the VERSION file instead. This ensures
that only one source is used vor the version - the VERSION file.
Use the same perl command for creating NUMVERS, as in configure.ac

2 years agoUpdate version to 1.8.0 for MSVC builds (#1160)
Wolfgang Stöggl [Mon, 14 Mar 2022 20:24:09 +0000 (21:24 +0100)] 
Update version to 1.8.0 for MSVC builds (#1160)

Includes version and copyright year updates to files in the win32
subdirectory after running the rrdtool-release script.

2 years agofix category v1.8.0
Tobias Oetiker [Mon, 14 Mar 2022 14:27:22 +0000 (15:27 +0100)] 
fix category

2 years agofix version
Tobias Oetiker [Mon, 14 Mar 2022 14:21:14 +0000 (15:21 +0100)] 
fix version

2 years agoupdate conditions
Tobias Oetiker [Mon, 14 Mar 2022 14:15:54 +0000 (15:15 +0100)] 
update conditions

2 years agoadd ghostscript
Tobias Oetiker [Mon, 14 Mar 2022 14:10:57 +0000 (15:10 +0100)] 
add ghostscript

2 years agoadd pango
Tobias Oetiker [Mon, 14 Mar 2022 14:04:44 +0000 (15:04 +0100)] 
add pango

2 years agofix release
Tobias Oetiker [Mon, 14 Mar 2022 14:02:17 +0000 (15:02 +0100)] 
fix release

2 years agofix release script
Tobias Oetiker [Mon, 14 Mar 2022 13:49:12 +0000 (14:49 +0100)] 
fix release script

2 years agofix release
Tobias Oetiker [Mon, 14 Mar 2022 13:45:34 +0000 (14:45 +0100)] 
fix release

2 years agopreparing for 1.8 (#1155)
Tobias Oetiker [Mon, 14 Mar 2022 13:39:15 +0000 (14:39 +0100)] 
preparing for 1.8 (#1155)

* updated CHANGES file
* move testing to GitHub actions
* prepare release action

2 years agoUpdate vcpkg in Windows GitHub Actions
Wolfgang Stöggl [Sun, 13 Mar 2022 18:21:41 +0000 (19:21 +0100)] 
Update vcpkg in Windows GitHub Actions

- Update vcpkg to current release 2022.03.10, commit af22873
- win32/collect_rrdtool_vcpkg_files.bat:
  lzma.dll is called liblzma.dll now

2 years agoMerge pull request #1154 from mwhudson/patch-1
Tobias Oetiker [Wed, 26 Jan 2022 13:16:33 +0000 (14:16 +0100)] 
Merge pull request #1154 from mwhudson/patch-1

clear LC_ALL when setting LC_TIME in rpn2 test

2 years agoclear LC_ALL when setting LC_TIME in rpn2 test 1154/head
Michael Hudson-Doyle [Wed, 26 Jan 2022 02:50:18 +0000 (15:50 +1300)] 
clear LC_ALL when setting LC_TIME in rpn2 test

This test was failing when LC_ALL was set to C.UTF-8 and using the C.UTF-8 locale which is part of glibc 2.35, which differs in a very minor way to that that has been used by Debian/Ubuntu for years. The tests sets LC_TIME to C, presumably to try to isolate itself from such things, but that does not have any effect if LC_ALL is set in the build environment.

2 years agoMerge pull request #1153 from usaleem-ix/race-cond-jw
Tobias Oetiker [Fri, 21 Jan 2022 09:26:15 +0000 (10:26 +0100)] 
Merge pull request #1153 from usaleem-ix/race-cond-jw

Fix for a race condition in journal_write

2 years agoFix for a race condition in journal_write 1153/head
Umer Saleem [Thu, 20 Jan 2022 14:29:36 +0000 (19:29 +0500)] 
Fix for a race condition in journal_write

There is a race condition in journal_write() where journal_lock is
being acquired after checking whether journal_fh is NULL or not.
journal_fh is a static file handle that can be set to NULL by any
other thread, while current thread is blocked by
pthread_mutex_lock(). This commit fixes this race condition.

Signed-off-by: Umer Saleem <usaleem@ixsystems.com>
2 years agoMerge pull request #1152 from vinc17fr/patch-1
Tobias Oetiker [Mon, 3 Jan 2022 15:10:10 +0000 (16:10 +0100)] 
Merge pull request #1152 from vinc17fr/patch-1

Fix typo

2 years agoFix typo 1152/head
Vincent Lefèvre [Mon, 3 Jan 2022 13:53:12 +0000 (14:53 +0100)] 
Fix typo

2 years agoMerge pull request #1139 from Frazew/feature/remote-daemon-tune
Tobias Oetiker [Mon, 20 Dec 2021 12:26:55 +0000 (13:26 +0100)] 
Merge pull request #1139 from Frazew/feature/remote-daemon-tune

Draft: Add support for TUNE command in rrdcached

2 years agoMerge branch 'master' into feature/remote-daemon-tune 1139/head
Wolfgang Stöggl [Sat, 18 Dec 2021 07:29:17 +0000 (08:29 +0100)] 
Merge branch 'master' into feature/remote-daemon-tune

2 years agoUpdate vcpkg in Windows GitHub Actions
Wolfgang Stöggl [Sun, 12 Dec 2021 14:17:21 +0000 (15:17 +0100)] 
Update vcpkg in Windows GitHub Actions

- Update vcpkg to current commit 50fd3d9
- Fix pcre download error.
  Former ftp.pcre.org FTP site is no longer available

2 years agoMerge pull request #1147 from diederikdehaas/improve-debian-link
Tobias Oetiker [Mon, 13 Dec 2021 10:54:21 +0000 (11:54 +0100)] 
Merge pull request #1147 from diederikdehaas/improve-debian-link

Update Debian link to package tracker

2 years agoUpdate Debian link to package tracker 1147/head
Diederik de Haas [Sat, 11 Dec 2021 00:46:37 +0000 (01:46 +0100)] 
Update Debian link to package tracker

From there you can see all the Debian package news, go to the packaging
source and Debian's copy of the upstream source.

2 years agoUpdate vcpkg to fix Windows builds
François HORTA [Wed, 24 Nov 2021 13:47:53 +0000 (14:47 +0100)] 
Update vcpkg to fix Windows builds

PCRE changed the download server, see https://github.com/microsoft/vcpkg/issues/21201

2 years agoUse python2 for tests because for travis, fix valgrind list1 test
François HORTA [Tue, 23 Nov 2021 17:48:35 +0000 (18:48 +0100)] 
Use python2 for tests because for travis, fix valgrind list1 test

2 years agoFix broken tests
François HORTA [Tue, 23 Nov 2021 17:25:27 +0000 (18:25 +0100)] 
Fix broken tests

2 years agoRefactor the tests to reflect actual functionality
François HORTA [Tue, 23 Nov 2021 16:03:51 +0000 (17:03 +0100)] 
Refactor the tests to reflect actual functionality

2 years agoAdd support for TUNE command in rrdcached
François HORTA [Mon, 8 Nov 2021 16:35:17 +0000 (17:35 +0100)] 
Add support for TUNE command in rrdcached

2 years agoMerge pull request #1138 from veprbl/pr/python_binding_fix
Tobias Oetiker [Sun, 24 Oct 2021 11:14:40 +0000 (13:14 +0200)] 
Merge pull request #1138 from veprbl/pr/python_binding_fix

Fix python bindings installation in case of empty DESTDIR

2 years agoFix python bindings installation in case of empty DESTDIR 1138/head
Dmitry Kalinkin [Thu, 21 Oct 2021 23:34:08 +0000 (19:34 -0400)] 
Fix python bindings installation in case of empty DESTDIR

The current behaviour is to install the extension to ./usr/local (if
prefix is /usr/local), so it ends up in the temporary build directory
instead of the intended absolute prefix.

The slash after $(DESTDIR) is needed to make empty DESTDIR mean
installation to / instead of making the prefix to mean a relative
path. We make it triple slash as POSIX reserves double slashes to
possibly have a special treatment by the OS.

The change for travis is needed as "make install" is run as root, and
once the python extension is actually installed, it leaves a
root-owned .egg-info file.

2 years agoMerge pull request #1136 from oetiker/cgi-sanitizer
Tobias Oetiker [Thu, 21 Oct 2021 12:31:50 +0000 (14:31 +0200)] 
Merge pull request #1136 from oetiker/cgi-sanitizer

be more agressive in extracting bad characters from cgi variables

2 years agoUpdate src/rrd_cgi.c cgi-sanitizer 1136/head
Tobias Oetiker [Thu, 21 Oct 2021 09:24:48 +0000 (11:24 +0200)] 
Update src/rrd_cgi.c

Co-authored-by: Wolfgang Stöggl <c72578@yahoo.de>
2 years agobe more agressive in extracting bad characters from cgi variables
Tobias Oetiker [Tue, 12 Oct 2021 08:35:43 +0000 (10:35 +0200)] 
be more agressive in extracting bad characters from cgi variables

2 years agoMerge pull request #1132 from andrewchambers/xportleak
Tobias Oetiker [Fri, 3 Sep 2021 14:16:22 +0000 (16:16 +0200)] 
Merge pull request #1132 from andrewchambers/xportleak

fix leaks in xport

2 years agofix leaks in xport 1132/head
Andrew Chambers [Fri, 3 Sep 2021 01:43:22 +0000 (13:43 +1200)] 
fix leaks in xport

2 years agoMerge pull request #1125 from c72578/2021-07-13_Add_escapeJSON_to_legend_entries
Tobias Oetiker [Thu, 15 Jul 2021 06:16:43 +0000 (08:16 +0200)] 
Merge pull request #1125 from c72578/2021-07-13_Add_escapeJSON_to_legend_entries

Add escapeJSON() to legend entries

2 years agoMerge branch 'master' into 2021-07-13_Add_escapeJSON_to_legend_entries 1125/head
Tobias Oetiker [Wed, 14 Jul 2021 16:03:01 +0000 (18:03 +0200)] 
Merge branch 'master' into 2021-07-13_Add_escapeJSON_to_legend_entries

2 years agoupdate to python 3
Tobias Oetiker [Wed, 14 Jul 2021 15:57:15 +0000 (17:57 +0200)] 
update to python 3

2 years agodo not try to autobuild
Tobias Oetiker [Wed, 14 Jul 2021 15:27:06 +0000 (17:27 +0200)] 
do not try to autobuild

2 years agofix build ionstructions
Tobias Oetiker [Wed, 14 Jul 2021 11:38:39 +0000 (13:38 +0200)] 
fix build ionstructions

2 years agoadd dependencies
Tobias Oetiker [Wed, 14 Jul 2021 11:37:11 +0000 (13:37 +0200)] 
add dependencies

2 years agoCreate codeql-analysis.yml
Tobias Oetiker [Wed, 14 Jul 2021 11:31:00 +0000 (13:31 +0200)] 
Create codeql-analysis.yml

2 years agoAdd escapeJSON() to legend entries
Wolfgang Stöggl [Tue, 13 Jul 2021 18:23:54 +0000 (20:23 +0200)] 
Add escapeJSON() to legend entries

Double quotes in legends are currently not escaped, if JSON imgformat
is used for rrdtool graph. This produces invalid JSON files.
See comment in #409 for further details.

2 years agoMerge pull request #1121 from c72578/2021-06-29_vcpkg_github_action
Tobias Oetiker [Mon, 5 Jul 2021 06:23:11 +0000 (08:23 +0200)] 
Merge pull request #1121 from c72578/2021-06-29_vcpkg_github_action

Update Windows GitHub Actions

2 years agomini change to trigger travis 1121/head
Tobias Oetiker [Sun, 4 Jul 2021 15:57:23 +0000 (17:57 +0200)] 
mini change to trigger travis

2 years agoUpdate Windows GitHub Actions
Wolfgang Stöggl [Tue, 29 Jun 2021 19:16:53 +0000 (21:16 +0200)] 
Update Windows GitHub Actions

- Update ci-workflow.yml and add GitHub Actions for Windows builds
  using MSVC and vcpkg. Both, x64 and x86 builds are part of the CI.
  The required vcpkg ports are installed and cached using
  lukka/run-vcpkg@v7
- Add release-windows.yml, which enables building Windows binaries of
  RRDtool. This GitHub action is run automatically upon new tags and
  can be triggered manually. The required .exe and .dll files are
  copied using collect_rrdtool_vcpkg_files.bat and deployed by
  actions/upload-artifact@v2
- Makefile_vcpkg.msc:
  Add include\harfbuzz, which is required for building pango.
Fixes: pango-coverage.h(28): fatal error C1083:
  Cannot open include file: 'hb.h': No such file or directory

2 years agoMerge pull request #1117 from yarda/python-rpath-drop
Tobias Oetiker [Fri, 28 May 2021 06:45:06 +0000 (08:45 +0200)] 
Merge pull request #1117 from yarda/python-rpath-drop

Fix RPATH for the python bindings

2 years agoFix RPATH for the python bindings 1117/head
Jaroslav Škarvada [Wed, 26 May 2021 19:05:43 +0000 (21:05 +0200)] 
Fix RPATH for the python bindings

Fixes #1116

Signed-off-by: Jaroslav Škarvada <jskarvad@redhat.com>
3 years agoMerge pull request #1111 from svenpanne/fix-error-formatting
Tobias Oetiker [Mon, 22 Mar 2021 15:19:08 +0000 (16:19 +0100)] 
Merge pull request #1111 from svenpanne/fix-error-formatting

Avoid segfault: Don't read and write into the same buffer.

3 years agoAvoid segfault: Don't read and write into the same buffer. 1111/head
Sven Panne [Mon, 22 Mar 2021 11:55:26 +0000 (12:55 +0100)] 
Avoid segfault: Don't read and write into the same buffer.

Using CTX->rrd_error as a source *and* destination buffer at the same time
provokes undefined behavior.  In real life you get funny error messages
and/or segfaults within vs(n)printf().

Simple solution: Use a temporary copy of the error message while writing
into it.

3 years agoMerge pull request #1110 from c72578/2021-03-31_Switch_to_pkgconf_MSYS2
Tobias Oetiker [Tue, 16 Mar 2021 07:44:29 +0000 (08:44 +0100)] 
Merge pull request #1110 from c72578/2021-03-31_Switch_to_pkgconf_MSYS2

Switch to pkgconf (MSYS2, MinGW-w64)

3 years agoMerge branch 'master' into 2021-03-31_Switch_to_pkgconf_MSYS2 1110/head
Tobias Oetiker [Mon, 15 Mar 2021 08:30:34 +0000 (09:30 +0100)] 
Merge branch 'master' into 2021-03-31_Switch_to_pkgconf_MSYS2

3 years agoMerge pull request #1109 from c72578/2021-03-13_Update_Debian_link
Tobias Oetiker [Mon, 15 Mar 2021 08:30:14 +0000 (09:30 +0100)] 
Merge pull request #1109 from c72578/2021-03-13_Update_Debian_link

Update Debian link

3 years agoSwitch to pkgconf (MSYS2, MinGW-w64)
Wolfgang Stöggl [Sat, 13 Mar 2021 09:06:06 +0000 (10:06 +0100)] 
Switch to pkgconf (MSYS2, MinGW-w64)

The MSYS2 project has switched from pkg-config to pkgconf as default.
For details, see: https://github.com/msys2/MSYS2-packages/pull/2197
Both packages work when building RRDtool for Windows using MSYS2.
- Switch to pkgconf instead of pkg-config
- Update the following files:
  .github/workflows/ci-workflow.yml
  win32/README-MinGW-w64
- This avoids the following warning in the Windows CI-build:
  warning: removing 'mingw-w64-x86_64-pkg-config' from target list
  because it conflicts with 'mingw-w64-x86_64-pkgconf'

3 years agoUpdate Debian link 1109/head
Wolfgang Stöggl [Sat, 13 Mar 2021 07:03:25 +0000 (08:03 +0100)] 
Update Debian link

- Resolves #1104

3 years agoMerge pull request #1108 from mistotebe/issue1101
Tobias Oetiker [Fri, 12 Mar 2021 14:34:54 +0000 (15:34 +0100)] 
Merge pull request #1108 from mistotebe/issue1101

Plug some leaks in rrdcached

3 years agoIssue #1101 Free parsed->field_idx when done 1108/head
Ondřej Kuzník [Fri, 12 Mar 2021 13:27:55 +0000 (13:27 +0000)] 
Issue #1101 Free parsed->field_idx when done

3 years agoIssue #1101 Do not leak filename opening a broken file
Ondřej Kuzník [Fri, 12 Mar 2021 13:27:06 +0000 (13:27 +0000)] 
Issue #1101 Do not leak filename opening a broken file

3 years agoMerge pull request #1102 from kleinik/master
Tobias Oetiker [Mon, 11 Jan 2021 17:16:17 +0000 (18:16 +0100)] 
Merge pull request #1102 from kleinik/master

Reproducibility improvement

3 years agoUse BUILD_DATE for reproducibility 1102/head
Viktor Kleinik [Mon, 11 Jan 2021 14:29:00 +0000 (06:29 -0800)] 
Use BUILD_DATE for reproducibility

Use reproducible build date instead of compilation time and date.

Signed-off-by: Viktor Kleinik <vkleinik@cisco.com>
3 years agoconfigure.ac: Set build date to SOURCE_DATE_EPOCH
Viktor Kleinik [Mon, 11 Jan 2021 13:15:36 +0000 (05:15 -0800)] 
configure.ac: Set build date to SOURCE_DATE_EPOCH

If SOURCE_DATE_EPOCH is set, use it to generate a reproducible string for
BUILD_DATE.

Signed-off-by: Viktor Kleinik <vkleinik@cisco.com>
3 years agoMerge pull request #1099 from nirgal/patch-5
Tobias Oetiker [Wed, 30 Dec 2020 14:45:01 +0000 (15:45 +0100)] 
Merge pull request #1099 from nirgal/patch-5

Switch to python3

3 years agoSwitch to python3 1099/head
nirgal [Mon, 28 Dec 2020 15:37:03 +0000 (15:37 +0000)] 
Switch to python3

Python2 is dead

3 years agoUse a separate pango fontmap per thread
Simon Arlott [Fri, 11 Dec 2020 18:38:42 +0000 (18:38 +0000)] 
Use a separate pango fontmap per thread

Reusing the same fontmap from multiple threads is not safe, despite
the attempts to use a mutex to protect it there are other instances
where it behaves unexpectedly if graphs are created from multiple
threads at the same time, e.g.:

(process:76234): Pango-WARNING **: 11:47:25.823: failed to create cairo scaled font, expect ugly output. the offending font is 'DejaVu Sans Mono 8'
(process:76234): Pango-WARNING **: 11:47:25.823: font_face status is: no error has occurred
(process:76234): Pango-WARNING **: 11:47:25.823: scaled_font status is: invalid matrix (not invertible)
(process:76234): Pango-WARNING **: 11:47:25.823: shaping failure, expect ugly output. shape-engine='PangoFcShapeEngine', font='DejaVu Sans Mono 8', text='Apparent temp (?C)'

This error results in boxes instead of characters on the graph. In the
worst case scenario there are memory management errors that cause GLib
to complain or the process to abort.

Calling pango_cairo_font_map_get_default() multiple times from the same
thread will return the same object, so this satisfies the performance
expectations of reusing it within a single thread. Trying to lock a
mutex for even more pango/cairo function calls is likely to decrease
performance when multiple threads are used concurrently.

3 years agoMerge pull request #1087 from netniV/add-jsontime
Tobias Oetiker [Thu, 13 Aug 2020 07:45:27 +0000 (09:45 +0200)] 
Merge pull request #1087 from netniV/add-jsontime

Add JSONTIME output to graphv data

3 years agoMerge branch 'master' into add-jsontime 1087/head
Tobias Oetiker [Thu, 13 Aug 2020 07:14:34 +0000 (09:14 +0200)] 
Merge branch 'master' into add-jsontime

3 years agoMerge pull request #1091 from c72578/2020-08-08_Add_python_details_to_configure_summary
Tobias Oetiker [Tue, 11 Aug 2020 19:36:58 +0000 (21:36 +0200)] 
Merge pull request #1091 from c72578/2020-08-08_Add_python_details_to_configure_summary

Add python details to configure summary

3 years agoAdd python details to configure summary 1091/head
Wolfgang Stöggl [Tue, 11 Aug 2020 17:13:41 +0000 (19:13 +0200)] 
Add python details to configure summary

The output in the summary of configure will look like this:
 Build Python Bindings: yes
         Python Binary: /usr/bin/python
        Python Version: 3.8

3 years agoMerge branch 'master' into add-jsontime
Tobias Oetiker [Mon, 10 Aug 2020 07:05:45 +0000 (09:05 +0200)] 
Merge branch 'master' into add-jsontime

3 years agoMerge pull request #1090 from c72578/2020-08-09_Add_no-undefined_automatically_for_Mi...
Tobias Oetiker [Mon, 10 Aug 2020 07:04:03 +0000 (09:04 +0200)] 
Merge pull request #1090 from c72578/2020-08-09_Add_no-undefined_automatically_for_MinGW-w64_builds

Add -no-undefined automatically for MinGW-w64

3 years agoAdd -no-undefined automatically for MinGW-w64 1090/head
Wolfgang Stöggl [Sun, 9 Aug 2020 19:20:02 +0000 (21:20 +0200)] 
Add -no-undefined automatically for MinGW-w64

The linker flag -no-undefined is required, when building the dll for
Windows using MinGW-w64. Add -no-undefined to librrd_la_LDFLAGS in
Makefile.am in case of MinGW-w64 builds. This way it is not necessary
anymore to add LDFLAGS=-no-undefined to the make command.

3 years agoUse the correct name of file
netniV [Sat, 8 Aug 2020 08:18:43 +0000 (08:18 +0000)] 
Use the correct name of file

3 years agoFix typo
netniV [Sun, 2 Aug 2020 22:09:47 +0000 (22:09 +0000)] 
Fix typo

3 years agoAdd unit test for --add-jsontime
netniV [Sat, 1 Aug 2020 19:18:16 +0000 (19:18 +0000)] 
Add unit test for --add-jsontime

3 years agoMerge branch 'master' into add-jsontime
Mark Brugnoli-Vinten [Mon, 27 Jul 2020 16:54:29 +0000 (17:54 +0100)] 
Merge branch 'master' into add-jsontime

3 years agoMerge pull request #1089 from c72578/2020-07-24_Add_Windows_MSYS2_GitHub_Action
Tobias Oetiker [Sun, 26 Jul 2020 11:11:53 +0000 (13:11 +0200)] 
Merge pull request #1089 from c72578/2020-07-24_Add_Windows_MSYS2_GitHub_Action

Add Windows MSYS2 GitHub Action

3 years agoAdd Windows MSYS2 GitHub Action 1089/head
Wolfgang Stöggl [Fri, 24 Jul 2020 19:05:07 +0000 (21:05 +0200)] 
Add Windows MSYS2 GitHub Action

This enables CI for Windows builds using MSYS2 mingw-w64-x86_64.
The GitHub Action is based on: https://www.msys2.org/docs/ci/

3 years agoMerge pull request #1088 from jyavenard/utc
Tobias Oetiker [Wed, 22 Jul 2020 12:47:15 +0000 (14:47 +0200)] 
Merge pull request #1088 from jyavenard/utc

Add --utc to graph option.

3 years agoAdd --utc to graph option. 1088/head
Jean-Yves Avenard [Thu, 17 Jan 2013 18:20:36 +0000 (05:20 +1100)] 
Add --utc to graph option.

Allow to generate a graph as if the current timezone was UTC (e.g set TZ=UTC).
This allows to easily calculate daily average ranging from midgnight to midnight rather than say the last 24 hours.

3 years agoAdd documentation for --add-jsontime command
netniV [Sun, 5 Jul 2020 23:34:35 +0000 (23:34 +0000)] 
Add documentation for --add-jsontime command

3 years agoAdd --add-jsontime parameter to help listing
netniV [Sun, 5 Jul 2020 23:22:49 +0000 (23:22 +0000)] 
Add --add-jsontime parameter to help listing

3 years agoFix --add-jsontime error message
netniV [Sun, 5 Jul 2020 12:02:01 +0000 (12:02 +0000)] 
Fix --add-jsontime error message

3 years agoAllow JSONTIME to be added to graphv output
netniV [Sun, 5 Jul 2020 11:59:21 +0000 (11:59 +0000)] 
Allow JSONTIME to be added to graphv output

3 years agoMerge pull request #1074 from commx/fetch-freefix
Tobias Oetiker [Fri, 3 Jul 2020 14:15:47 +0000 (16:15 +0200)] 
Merge pull request #1074 from commx/fetch-freefix

fetch - do not call rrd_freemem on uninitialized pointers