]> git.ipfire.org Git - thirdparty/rrdtool-1.x.git/log
thirdparty/rrdtool-1.x.git
6 years agoFix: Cannot rename temporary file to final file
Wolfgang Stöggl [Fri, 18 Jan 2019 17:05:47 +0000 (18:05 +0100)] 
Fix: Cannot rename temporary file to final file

- Fixes the following failing tests under Windows:
  modify1, modify2, modify3, modify4, modify5
- Use CreateFileA() with FILE_SHARE_DELETE in rrd_open.c,
  so that the outfilename can later be replaced by tmpfilename using
  write_rrd() in rrd_create.c

6 years agoIndent rrd_create.c, rrd_open.c before changes
Wolfgang Stöggl [Fri, 18 Jan 2019 16:26:19 +0000 (17:26 +0100)] 
Indent rrd_create.c, rrd_open.c before changes

- Using GNU indent 2.2.12

6 years agoDefine realpath for MinGW builds
Wolfgang Stöggl [Tue, 15 Jan 2019 09:44:39 +0000 (10:44 +0100)] 
Define realpath for MinGW builds

- Define realpath the same way as in win32/rrd_config.h
- Fixes the following compiler warnings in rrd_client.c:
  115:11: warning: implicit declaration of function 'realpath';
  [-Wimplicit-function-declaration] ret = realpath(path, NULL);
  115:11: warning: nested extern declaration of 'realpath'
  [-Wnested-externs]
  115:9: warning: assignment to 'char *' from 'int' makes pointer from
  integer without a cast [-Wint-conversion] ret = realpath(path, NULL);
  132:22: warning: assignment to 'char *' from 'int' makes pointer from
  integer without a cast [-Wint-conversion]
  dir_path = realpath(dir, NULL);

6 years agoRemove LINKTYPE from perl-piped/Makefile.PL
Wolfgang Stöggl [Wed, 16 Jan 2019 08:17:43 +0000 (09:17 +0100)] 
Remove LINKTYPE from perl-piped/Makefile.PL

- Remove line:
  'linkext'   => {LINKTYPE => ''},
  Since version 5.00 of MakeMaker such a line can be deleted safely.
  MakeMaker recognizes when there's nothing to be linked.
  See: https://perldoc.perl.org/ExtUtils/MakeMaker.html
- Fixes Warning:
  LINKTYPE set to '', no longer necessary

6 years agoRe-enable 0-width lines
nirgal [Sun, 13 Jan 2019 10:02:24 +0000 (10:02 +0000)] 
Re-enable 0-width lines

Some people were using these as a base for stacks.

6 years agoUse g_list_free_full instead of g_list_foreach
Wolfgang Stöggl [Thu, 10 Jan 2019 16:06:21 +0000 (17:06 +0100)] 
Use g_list_free_full instead of g_list_foreach

- Fixes the following compiler warnings in rrd_create.c:
  236:34: warning: cast between incompatible function types from
  'void (*)(void *)' to 'void (*)(void *, void *)'
  [-Wcast-function-type] g_list_foreach( sources, (GFunc)free, NULL );

  1022:44: warning: cast between incompatible function types from
  'void (*)(rrd_file_t *)' {aka 'void (*)(struct rrd_file_t *)'} to
  'void (*)(void *, void *)' [-Wcast-function-type]
  g_list_foreach(sources_rrd_files, (GFunc) cleanup_source_file, NULL);

6 years agoRemove function substring from rrd_graph.c
Wolfgang Stöggl [Thu, 10 Jan 2019 13:39:37 +0000 (14:39 +0100)] 
Remove function substring from rrd_graph.c

- The function substring is not used any more. This was a leftover
  from https://github.com/oetiker/rrdtool-1.x/commit/cd4a728
- Fixes rrd_graph.c:6159:7: warning:
  no previous prototype for 'substring' [-Wmissing-prototypes]

6 years agoUpdate doc/Makefile.am
Wolfgang Stöggl [Wed, 9 Jan 2019 14:50:09 +0000 (15:50 +0100)] 
Update doc/Makefile.am

- Add -Wbreak, as in:
  https://github.com/oetiker/rrdtool-1.x/commit/564aed3

6 years agoInclude rrd_pdpcalc.pod in Makefile.am also
Peter Valdemar Mørch [Mon, 7 Jan 2019 22:36:37 +0000 (23:36 +0100)] 
Include rrd_pdpcalc.pod in Makefile.am also

Should really have been part of:

    commit 47e0f4391bccc0a3b12f75f567596425bd95b9ad
    Author: Peter Valdemar Mørch <peter@morch.com>
    Date:   Thu Jan 3 21:35:38 2019 +0100

        Added some documentation for the rrdxport output format

        See https://github.com/oetiker/rrdtool-1.x/issues/913 for a discussion

6 years agoRename PDP_calculation_explanation.pod -> rrd_pdpcalc.pod as pr. review comment in...
Peter Valdemar Mørch [Sun, 6 Jan 2019 11:23:39 +0000 (12:23 +0100)] 
Rename PDP_calculation_explanation.pod -> rrd_pdpcalc.pod as pr. review comment in #931

6 years agoChanged "[ timestamp - step ; timestamp [" as it was unclear as pr. review comment...
Peter Valdemar Mørch [Fri, 4 Jan 2019 07:23:13 +0000 (08:23 +0100)] 
Changed "[ timestamp - step ; timestamp [" as it was unclear as pr. review comment in #931

6 years agoSpell rrdtool as RRDtool as pr. review comment in #931
Peter Valdemar Mørch [Fri, 4 Jan 2019 07:18:57 +0000 (08:18 +0100)] 
Spell rrdtool as RRDtool as pr. review comment in #931

6 years agoAdded some documentation for the rrdxport output format
Peter Valdemar Mørch [Thu, 3 Jan 2019 20:35:38 +0000 (21:35 +0100)] 
Added some documentation for the rrdxport output format

See https://github.com/oetiker/rrdtool-1.x/issues/913 for a discussion

6 years agoFix two review comments from #932
Peter Valdemar Mørch [Fri, 4 Jan 2019 07:31:30 +0000 (08:31 +0100)] 
Fix two review comments from #932

6 years agoImprove links to AT-STYLE TIME SPECIFICATION section in rrdfetch
Peter Valdemar Mørch [Thu, 3 Jan 2019 22:42:14 +0000 (23:42 +0100)] 
Improve links to AT-STYLE TIME SPECIFICATION section in rrdfetch

Use pod links like L<rrdfetch/"AT-STYLE TIME SPECIFICATION">, which
creates e.g. HTML links like:

    <a href="./rrdfetch.html#AT-STYLE-TIME-SPECIFICATION">
        "AT-STYLE TIME SPECIFICATION" in rrdfetch
    </a>

6 years agoFixed some podchecker error/warnings
Peter Valdemar Mørch [Thu, 3 Jan 2019 22:01:22 +0000 (23:01 +0100)] 
Fixed some podchecker error/warnings

6 years agoRemoved trailing spaces from .pod documentation files
Peter Valdemar Mørch [Thu, 3 Jan 2019 22:02:12 +0000 (23:02 +0100)] 
Removed trailing spaces from .pod documentation files

This fixed warnings like:

*** WARNING: line containing nothing but whitespace in paragraph at line 145 in file rrdfetch.pod

from podchecker

6 years agoFixed POD in PDP_calculation_explanation.pod
Peter Valdemar Mørch [Thu, 3 Jan 2019 21:40:30 +0000 (22:40 +0100)] 
Fixed POD in PDP_calculation_explanation.pod

podchecker PDP_calculation_explanation.pod showed:

*** WARNING: line containing nothing but whitespace in paragraph at line 46 in file PDP_calculation_explanation.pod
*** ERROR: Apparent command =head1 not preceded by blank line at line 176 in file PDP_calculation_explanation.pod
*** WARNING: node 'https://gallery.technet.microsoft.com/scriptcenter/Sample-Script-to-Generate-59c80d4c =head1 AUTHOR' contains non-escaped | or / at line 175 in file PDP_calculation_explanation.pod
*** ERROR: unresolved internal link 'https://gallery.technet.microsoft.com/scriptcenter/Sample-Script-to-Generate-59c80d4c =head1 AUTHOR' at line 175 in file PDP_calculation_explanation.pod
PDP_calculation_explanation.pod has 2 pod syntax errors.

6 years agoRemoved "can't break line" warnings when making .txt files from .1 files
Peter Valdemar Mørch [Thu, 3 Jan 2019 21:41:23 +0000 (22:41 +0100)] 
Removed "can't break line" warnings when making .txt files from .1 files

Multiple warnings were removed e.g. this one (chosen at random):

rrdgraph_data.1:141: warning [p 1, 1.3i]: can't break line

6 years agoupdate tests including verification of timestamp alignement
Tobias Oetiker [Thu, 3 Jan 2019 12:02:14 +0000 (13:02 +0100)] 
update tests including verification of timestamp alignement

6 years agoupdate tests including verification of timestamp alignement
Tobias Oetiker [Thu, 3 Jan 2019 12:01:39 +0000 (13:01 +0100)] 
update tests including verification of timestamp alignement

6 years agofix off by one issue #913
Tobias Oetiker [Thu, 3 Jan 2019 11:02:08 +0000 (12:02 +0100)] 
fix off by one issue #913

6 years agoadd graph test
Tobias Oetiker [Thu, 3 Jan 2019 11:01:20 +0000 (12:01 +0100)] 
add graph test

6 years agoAdd -lws2_32 for MinGW builds by configure
Wolfgang Stöggl [Tue, 18 Dec 2018 16:23:06 +0000 (17:23 +0100)] 
Add -lws2_32 for MinGW builds by configure

- Add -lws2_32 to LIBS in case of MinGW or MinGW-w64 builds.
  This makes building Windows executables more straightforward using
  configure.
- Update README-MinGW-w64, remove LIBS='-lws2_32' from configure
  instructions.

6 years agoCheck for gobject-2.0 in configure
Wolfgang Stöggl [Tue, 18 Dec 2018 10:57:22 +0000 (11:57 +0100)] 
Check for gobject-2.0 in configure

- Since pango version 1.43.0, -lgobject-2.0 is not added automatically
  any more during configure. Remark: pango.pc uses Requires.private
  now for gobject-2.0 instead of formerly Requires: gobject-2.0
- Check for gobject-2.0 in configure to make sure, that -lgobject-2.0
  is added to ALL_LIBS
- Fixes the following linker errors:
  .libs/librrd_la-rrd_graph.o: In function `im_free':
    src/rrd_graph.c:465: undefined reference to `g_object_unref'
  .libs/librrd_la-rrd_graph.o: In function `rrd_graph_init':
    src/rrd_graph.c:4840: undefined reference to `g_object_unref'

6 years agoSync librrd-4.def with librrd.sym
Wolfgang Stöggl [Fri, 14 Dec 2018 15:02:11 +0000 (16:02 +0100)] 
Sync librrd-4.def with librrd.sym

- Export the same functions in the dll from MSVC builds under Windows
  as listed in librrd.sym

6 years agoFix warning strncpy bound equals destination size
Wolfgang Stöggl [Fri, 14 Dec 2018 11:11:05 +0000 (12:11 +0100)] 
Fix warning strncpy bound equals destination size

- Reduce num from 5 to 4 in strncpy and add null terminator.
  Remark: Version strings consist of 4 chars, e.g. RRD_VERSION5 "0005"

- Fixes the following GCC 8 warnings:
  rrd_create.c:960:9: warning:
    ‘strncpy’ specified bound 5 equals destination size
    [-Wstringop-truncation]
    strncpy(rrd.stat_head->version, require_version, 5);

  rrd_modify.c:1218:9: warning:
    ‘strncpy’ specified bound 5 equals destination size
    [-Wstringop-truncation]
    strncpy(out->stat_head->version, require_version, 5);

6 years agoFix tests to support Windows time zone name
Wolfgang Stöggl [Thu, 29 Nov 2018 11:21:06 +0000 (12:21 +0100)] 
Fix tests to support Windows time zone name

- On Windows, names of times zones are different.
  Substitute 'W. Europe Standard Time' with 'CET' by function seddif
- Removes unnecessary diff output and fixes therefore failing tests

6 years agoDisable Travis CI valgrind-logfile failing tests
Wolfgang Stöggl [Sun, 25 Nov 2018 10:51:40 +0000 (11:51 +0100)] 
Disable Travis CI valgrind-logfile failing tests

- These failing tests are not directly coming from rrdtool
  and are related to external libraries
- Allows Travis CI builds to pass again

6 years agoFix loop, sizeof(delims)
Wolfgang Stöggl [Fri, 23 Nov 2018 11:52:12 +0000 (12:52 +0100)] 
Fix loop, sizeof(delims)

- Update to https://github.com/oetiker/rrdtool-1.x/commit/2154d02

6 years agoUpdate to PR #915
netniV [Thu, 15 Nov 2018 16:44:02 +0000 (16:44 +0000)] 
Update to PR #915

6 years agoAdd windows-default-manifest to README-MinGW-w64
Wolfgang Stöggl [Wed, 7 Nov 2018 15:25:37 +0000 (16:25 +0100)] 
Add windows-default-manifest to README-MinGW-w64

- windows-default-manifest is available for Fedora in the meantime.
  This adds a default manifest to the compiled binaries and prevents
  unnecessary elevated privileges, e.g. for 32-bit rrdupdate.exe

6 years agominor adjustment to patch for #914
Alexander Zangerl [Wed, 31 Oct 2018 23:40:03 +0000 (09:40 +1000)] 
minor adjustment to patch for #914

6 years agoissue #914, rrdtool graph with --title segfaults and misparses single-line args
Alexander Zangerl [Tue, 30 Oct 2018 04:49:58 +0000 (14:49 +1000)] 
issue #914, rrdtool graph with --title segfaults and misparses single-line args

reworked graph_title_split() to not segfault,
to handle leading/trailing/duplicate delimiters, and to produce the
appropriate number of output lines.

code now works and properly handles nasties
like --title '\n\none\n\nfourtyseven\n'

6 years ago#914, rrdtool graph with --title segfaults
Alexander Zangerl [Tue, 30 Oct 2018 03:09:26 +0000 (13:09 +1000)] 
#914, rrdtool graph with --title segfaults

6 years agoUpdate perl-shared README for MSVC and ActivePerl
Wolfgang Stöggl [Wed, 26 Sep 2018 12:59:20 +0000 (14:59 +0200)] 
Update perl-shared README for MSVC and ActivePerl

- Using MSVC, the last supported ActivePerl version is 5.16,
  e.g. ActivePerl-5.16.3.1604-MSWin32-x86-298023.msi
- Since 5.18, ActivePerl is compiled with GCC compilers, and Microsoft
  toolchains are *not* compatible
- See this FAQ for further details:
  https://community.activestate.com/faq/windows-compilers-perl-modules

6 years agolua: build failure when rrd graph is disabled. (#900)
Karl Palsson [Fri, 17 Aug 2018 07:52:54 +0000 (07:52 +0000)] 
lua: build failure when rrd graph is disabled. (#900)

Needs the same protection used elsewhere in the file.

Signed-off-by: Karl Palsson <karlp@etactica.com>
6 years agolua: don't include rrd_restore if it wasn't included (#901)
Karl Palsson [Fri, 17 Aug 2018 07:51:40 +0000 (07:51 +0000)] 
lua: don't include rrd_restore if it wasn't included (#901)

The lua module compiles ok, but fails to load.

> rrd=require("rrd")
error loading module 'rrd' from file '/usr/lib/lua/rrd.so':
Error relocating /usr/lib/lua/rrd.so: rrd_restore: symbol not found
stack traceback:
[C]: ?
[C]: in function 'require'

Signed-off-by: Karl Palsson <karlp@etactica.com>
6 years agowe can not use libtool from within configure as it only gets generated at the end...
Tobias Oetiker [Tue, 7 Aug 2018 06:53:46 +0000 (08:53 +0200)] 
we can not use libtool from within configure as it only gets generated at the end of the run ...

7 years agoAllow multiple lines in graph titles (#897)
Mark Brugnoli-Vinten [Wed, 1 Aug 2018 14:50:49 +0000 (15:50 +0100)] 
Allow multiple lines in graph titles (#897)

7 years agoMerge pull request #894 from c72578/2018-07-14_32bit_time_issue_dump_MSVC
Tobias Oetiker [Mon, 16 Jul 2018 05:52:07 +0000 (07:52 +0200)] 
Merge pull request #894 from c72578/2018-07-14_32bit_time_issue_dump_MSVC

Fix lastupdate time in dump (32bit MSVC only)

7 years agoFix lastupdate time in dump (32bit MSVC only) 894/head
Wolfgang Stöggl [Sat, 14 Jul 2018 12:31:06 +0000 (14:31 +0200)] 
Fix lastupdate time in dump (32bit MSVC only)

- So far, (null) was written into the lastupdate time string:
  e.g.: <lastupdate>1511170870</lastupdate> <!-- (null) -->
- The problem occurred only in 32bit MSVC builds
- Works for both, with or without _USE_32BIT_TIME_T

7 years agoMerge pull request #893 from c72578/2018-07-13_HAVE_RRD_RESTORE_MSVC
Tobias Oetiker [Fri, 13 Jul 2018 13:23:00 +0000 (15:23 +0200)] 
Merge pull request #893 from c72578/2018-07-13_HAVE_RRD_RESTORE_MSVC

Define HAVE_RRD_RESTORE (MSVC)

7 years agoDefine HAVE_RRD_RESTORE (MSVC) 893/head
Wolfgang Stöggl [Fri, 13 Jul 2018 11:51:58 +0000 (13:51 +0200)] 
Define HAVE_RRD_RESTORE (MSVC)

- Enables restore functionality on Windows MSVC builds
- Fixes ERROR: the instance of rrdtool has been compiled without XML
  import functions

7 years agoMerge pull request #891 from weyou/fix-rrdfile-write-issue
Tobias Oetiker [Mon, 18 Jun 2018 11:40:05 +0000 (13:40 +0200)] 
Merge pull request #891 from weyou/fix-rrdfile-write-issue

Fix rrdfile write mode issue on Windows

7 years agoAdded a empty line to keep the original style 891/head
weyou [Mon, 18 Jun 2018 09:55:01 +0000 (17:55 +0800)] 
Added a empty line to keep the original style

7 years agoFixed the rrd file write mode on Windows
weyou [Mon, 18 Jun 2018 09:32:47 +0000 (17:32 +0800)] 
Fixed the rrd file write mode on Windows

7 years agoMerge pull request #882 from nirgal/patch-1
Tobias Oetiker [Thu, 29 Mar 2018 08:39:03 +0000 (10:39 +0200)] 
Merge pull request #882 from nirgal/patch-1

Fixed typo in error message

7 years agoFixed typo in error message 882/head
nirgal [Thu, 29 Mar 2018 08:34:08 +0000 (10:34 +0200)] 
Fixed typo in error message

7 years agoMerge pull request #881 from c72578/2018-03-25_Update_README-MinGW-w64
Tobias Oetiker [Sun, 25 Mar 2018 13:01:13 +0000 (15:01 +0200)] 
Merge pull request #881 from c72578/2018-03-25_Update_README-MinGW-w64

Update MinGW-w64 build instructions

7 years agoUpdate MinGW-w64 build instructions 881/head
Wolfgang Stöggl [Sun, 25 Mar 2018 11:44:50 +0000 (13:44 +0200)] 
Update MinGW-w64 build instructions

- Info added, where to find compiled binaries:
  src/.libs/
- Added perl-Pod-Html to Fedora dependencies
- Added base-devel to MSYS2 build instructions

7 years agoMerge pull request #879 from Tomo59/master
Tobias Oetiker [Thu, 8 Mar 2018 08:06:23 +0000 (09:06 +0100)] 
Merge pull request #879 from Tomo59/master

Fix rrdtool.graph python binding

7 years agoFix rrdtool.graph python binding 879/head
Thomas Gambier [Tue, 6 Mar 2018 14:10:23 +0000 (15:10 +0100)] 
Fix rrdtool.graph python binding

It was failing with 'munmap_chunk(): invalid pointer' error in python 3.6.3

7 years agoMerge pull request #877 from nirgal/french
Tobias Oetiker [Fri, 16 Feb 2018 07:09:58 +0000 (08:09 +0100)] 
Merge pull request #877 from nirgal/french

French

7 years agoFrench translation 877/head
Jean-Michel Vourgère [Wed, 14 Feb 2018 13:26:29 +0000 (14:26 +0100)] 
French translation

7 years agoStop ignoring translation updates
Jean-Michel Vourgère [Wed, 14 Feb 2018 13:26:01 +0000 (14:26 +0100)] 
Stop ignoring translation updates

7 years agoMerge pull request #875 from matwey/fix/static-2
Tobias Oetiker [Tue, 13 Feb 2018 09:50:54 +0000 (10:50 +0100)] 
Merge pull request #875 from matwey/fix/static-2

Do not use static variable in gfx_prep_text()

7 years agoDo not use static variable in gfx_prep_text() 875/head
Matwey V. Kornilov [Sat, 10 Feb 2018 21:44:06 +0000 (00:44 +0300)] 
Do not use static variable in gfx_prep_text()

Move last_tabwidth to image_desc_t

Signed-off-by: Matwey V. Kornilov <matwey.kornilov@gmail.com>
7 years agoMerge pull request #874 from nirgal/patch-2
Tobias Oetiker [Sat, 10 Feb 2018 15:47:32 +0000 (16:47 +0100)] 
Merge pull request #874 from nirgal/patch-2

Really enable translations

7 years agoMerge pull request #873 from matwey/fix/static-1
Tobias Oetiker [Sat, 10 Feb 2018 15:45:54 +0000 (16:45 +0100)] 
Merge pull request #873 from matwey/fix/static-1

Do not use static variables in xtr() and ytr()

7 years agoReally enable translations 874/head
nirgal [Fri, 9 Feb 2018 23:39:55 +0000 (00:39 +0100)] 
Really enable translations

Fix for issue #872.

7 years agoDo not use static variables in xtr() and ytr() 873/head
Matwey V. Kornilov [Fri, 9 Feb 2018 10:06:39 +0000 (13:06 +0300)] 
Do not use static variables in xtr() and ytr()

Using static variables for writting leads to race conditions. In order to keep
scale for axis we introduce x_pixie and y_pixie into image_desc_t.

Signed-off-by: Matwey V. Kornilov <matwey.kornilov@gmail.com>
7 years agoMerge pull request #871 from nirgal/patch-1
Tobias Oetiker [Wed, 7 Feb 2018 22:32:30 +0000 (23:32 +0100)] 
Merge pull request #871 from nirgal/patch-1

Quiets warning

7 years agoQuiets warning 871/head
nirgal [Wed, 7 Feb 2018 17:08:36 +0000 (18:08 +0100)] 
Quiets warning

gcc using -Wimplicit-fallthrough emits warning because of the typo

7 years agoMerge pull request #870 from nirgal/spell
Tobias Oetiker [Mon, 5 Feb 2018 15:35:39 +0000 (16:35 +0100)] 
Merge pull request #870 from nirgal/spell

Spelling fixes

7 years agoSpelling fixes 870/head
Jean-Michel Vourgère [Mon, 5 Feb 2018 15:32:58 +0000 (16:32 +0100)] 
Spelling fixes

7 years agoMerge pull request #869 from igit/patch-1
Tobias Oetiker [Sun, 4 Feb 2018 22:55:06 +0000 (23:55 +0100)] 
Merge pull request #869 from igit/patch-1

Update CHANGES : version 1.7.0 released on 2017 (not 2016)

7 years agoUpdate CHANGES : version 1.7.0 released on 2017 (not 2016) 869/head
Alexandre SIMON [Fri, 2 Feb 2018 19:18:26 +0000 (20:18 +0100)] 
Update CHANGES : version 1.7.0 released on 2017 (not 2016)

Version 1.7.0 released on **2017**-05-16 not 2016-05-16

7 years agoMerge pull request #858 from NHellFire/master
Tobias Oetiker [Sat, 27 Jan 2018 17:21:11 +0000 (18:21 +0100)] 
Merge pull request #858 from NHellFire/master

Add missing import in setup.py

7 years agoMerge pull request #866 from matwey/fix/python_race
Tobias Oetiker [Sat, 27 Jan 2018 17:20:42 +0000 (18:20 +0100)] 
Merge pull request #866 from matwey/fix/python_race

Fix/python race

7 years agobindings: python: Fix race conditions at arguments access 866/head
Matwey V. Kornilov [Sat, 27 Jan 2018 08:33:23 +0000 (11:33 +0300)] 
bindings: python: Fix race conditions at arguments access

rrdtool_argv and rrdtool_argc have to be allocated at each function stack in
order to have copy of variables for each running thread. Note that we call
librrd functions with GIL unlocked, so previously there was simultaneous access
to global rrdtool_argv and rrdtool_argc variables.

Fixes: 8949308812a0 ("Unlock the global thread lock while processing rrd")
Signed-off-by: Matwey V. Kornilov <matwey.kornilov@gmail.com>
7 years agobindings: python: Don't use global variables in convert_args() and destroy_args()
Matwey V. Kornilov [Sat, 27 Jan 2018 08:28:11 +0000 (11:28 +0300)] 
bindings: python: Don't use global variables in convert_args() and destroy_args()

Signed-off-by: Matwey V. Kornilov <matwey.kornilov@gmail.com>
7 years agoMerge pull request #864 from c72578/2018-01-26_update_documentation
Tobias Oetiker [Fri, 26 Jan 2018 15:11:57 +0000 (16:11 +0100)] 
Merge pull request #864 from c72578/2018-01-26_update_documentation

Update documentation

7 years agoUpdate documentation 864/head
Wolfgang Stöggl [Fri, 26 Jan 2018 14:56:48 +0000 (15:56 +0100)] 
Update documentation

- Some typos corrected

7 years agoexclude pango fontmap cache
Tobias Oetiker [Wed, 17 Jan 2018 08:46:38 +0000 (09:46 +0100)] 
exclude pango fontmap cache

7 years agoMerge pull request #862 from yarda/yardas
Tobias Oetiker [Fri, 5 Jan 2018 14:13:15 +0000 (15:13 +0100)] 
Merge pull request #862 from yarda/yardas

Fixed configure --enable / --disable options

7 years agoFixed configure --enable / --disable options 862/head
Jaroslav Škarvada [Fri, 5 Jan 2018 13:19:12 +0000 (14:19 +0100)] 
Fixed configure --enable / --disable options

E.g. now './configure --enable-libdbi' works.

Signed-off-by: Jaroslav Škarvada <jskarvad@redhat.com>
7 years agoMerge pull request #860 from c72578/2018-01-04_update_documentation
Tobias Oetiker [Thu, 4 Jan 2018 17:40:56 +0000 (18:40 +0100)] 
Merge pull request #860 from c72578/2018-01-04_update_documentation

Update documentation

7 years agoUpdate documentation 860/head
Wolfgang Stöggl [Thu, 4 Jan 2018 13:45:43 +0000 (14:45 +0100)] 
Update documentation

- Some typos corrected
- Minor updates and corrections

7 years agoAdd missing import in setup.py 858/head
Nathan Rennie-Waldock [Wed, 3 Jan 2018 19:43:41 +0000 (19:43 +0000)] 
Add missing import in setup.py

7 years agoMerge pull request #857 from c72578/2018-01-02_fix_warning_this_use_of_defined
Tobias Oetiker [Tue, 2 Jan 2018 14:20:44 +0000 (15:20 +0100)] 
Merge pull request #857 from c72578/2018-01-02_fix_warning_this_use_of_defined

Fix expansion-to-defined warnings (GCC 7)

7 years agoMerge pull request #856 from c72578/2017-12-31_fix_time_t_fprintf_printf_msvc
Tobias Oetiker [Tue, 2 Jan 2018 14:19:06 +0000 (15:19 +0100)] 
Merge pull request #856 from c72578/2017-12-31_fix_time_t_fprintf_printf_msvc

Fix 64-bit time_t in fprintf, printf (MSVC)

7 years agoFix expansion-to-defined warnings (GCC 7) 857/head
Wolfgang Stöggl [Tue, 2 Jan 2018 10:04:40 +0000 (11:04 +0100)] 
Fix expansion-to-defined warnings (GCC 7)

- Fixed compiler warnings:
  gettext.h:176:6: warning: this use of "defined" may not be portable
  [-Wexpansion-to-defined] #if !_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS
  gettext.h:200:5: warning: this use of "defined" may not be portable
  [-Wexpansion-to-defined] #if _LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS
  gettext.h:215:6: warning: this use of "defined" may not be portable
  [-Wexpansion-to-defined] #if !_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS
  gettext.h:246:5: warning: this use of "defined" may not be portable
  [-Wexpansion-to-defined] #if _LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS
  gettext.h:261:6: warning: this use of "defined" may not be portable
  [-Wexpansion-to-defined] #if !_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS

7 years agoFix 64-bit time_t in fprintf, printf (MSVC) 856/head
Wolfgang Stöggl [Sun, 31 Dec 2017 13:38:29 +0000 (14:38 +0100)] 
Fix 64-bit time_t in fprintf, printf (MSVC)

- In VS2005 and later, the default size for time_t is 64-bit, unless
  _USE_32BIT_TIME_T has been defined to use a 32-bit time_t ...

- Fixes MSVC compiler warnings:
  ./src\rrd_graph_helper.c(1465): warning C4477: 'fprintf' :
  format string '%li' requires an argument of type 'long',
  but variadic argument 1 has type 'time_t'

  ./src\rrd_lastupdate.c(83): warning C4477: 'printf' :
  format string '%10lu' requires an argument of type 'unsigned long',
  but variadic argument 1 has type 'time_t'

  ./src\rrd_tool.c(720): warning C4477: 'printf' : format string '%ld'
  requires an argument of type 'long', but variadic argument 1 has type
  'time_t'
  ./src\rrd_tool.c(724): warning C4477: 'printf' : format string '%ld'
  requires an argument of type 'long', but variadic argument 1 has type
  'time_t'
  ./src\rrd_tool.c(742): warning C4477: 'printf' : format string
  '%10lu' requires an argument of type 'unsigned long', but variadic
  argument 1 has type 'time_t'

7 years agoMerge pull request #855 from c72578/2017-12-29_add_files_to_extra_dist
Tobias Oetiker [Fri, 29 Dec 2017 20:48:55 +0000 (21:48 +0100)] 
Merge pull request #855 from c72578/2017-12-29_add_files_to_extra_dist

Add missing files to src/Makefile.am EXTRA_DIST

7 years agoAdd missing files to src/Makefile.am EXTRA_DIST 855/head
Wolfgang Stöggl [Fri, 29 Dec 2017 09:59:18 +0000 (10:59 +0100)] 
Add missing files to src/Makefile.am EXTRA_DIST

- src/Makefile.am, added to EXTRA_DIST:
  mkstemp.c
  mkstemp.h

7 years agonot required anymore
Tobias Oetiker [Fri, 29 Dec 2017 15:30:59 +0000 (16:30 +0100)] 
not required anymore

7 years agoMerge pull request #854 from c72578/2017-12-26_configure.ac_Makefile.am_win32-glob_mi...
Tobias Oetiker [Tue, 26 Dec 2017 14:05:44 +0000 (15:05 +0100)] 
Merge pull request #854 from c72578/2017-12-26_configure.ac_Makefile.am_win32-glob_mingw-w64

Check for MinGW-w64 build, add win32-glob files

7 years agoRemove win32-glob.c, win32-glob.h from EXTRA_DIST 854/head
Wolfgang Stöggl [Tue, 26 Dec 2017 06:46:09 +0000 (07:46 +0100)] 
Remove win32-glob.c, win32-glob.h from EXTRA_DIST

- Makefile.am: win32/win32-glob.c and win32/win32-glob.h are mentioned
  in src/Makefile.am now. Removed from EXTRA_DIST

7 years agoCheck for MinGW-w64 build, add win32-glob files
Wolfgang Stöggl [Tue, 26 Dec 2017 05:57:53 +0000 (06:57 +0100)] 
Check for MinGW-w64 build, add win32-glob files

- configure.ac: Add check for MinWG-w64 build during configure.
  Pass the conditional MINGW_W64 to automake
- src/Makefile.am: Add win32-glob.c to RRD_C_FILES and
  win32-glob.h to noinst_HEADERS in case of MINGW_W64
- Enables out of the box configure and make for MinGW-w64 builds

7 years agoMerge pull request #853 from c72578/2017-12-25_README-MinGW-w64
Tobias Oetiker [Mon, 25 Dec 2017 18:03:02 +0000 (19:03 +0100)] 
Merge pull request #853 from c72578/2017-12-25_README-MinGW-w64

Add documentation for building under MinGW-w64

7 years agoAdd documentation for building under MinGW-w64 853/head
Wolfgang Stöggl [Mon, 25 Dec 2017 14:15:14 +0000 (15:15 +0100)] 
Add documentation for building under MinGW-w64

7 years agoMerge pull request #851 from c72578/2017-12-14_fix_compiler_warning_llu_lli_64bit_min...
Tobias Oetiker [Wed, 20 Dec 2017 15:24:35 +0000 (16:24 +0100)] 
Merge pull request #851 from c72578/2017-12-14_fix_compiler_warning_llu_lli_64bit_mingw-w64

Fix compiler warnings, llu lli 64bit (MinGW-w64)

7 years agoFix compiler warnings, llu lli 64bit (MinGW-w64) 851/head
Wolfgang Stöggl [Thu, 14 Dec 2017 20:10:11 +0000 (21:10 +0100)] 
Fix compiler warnings, llu lli 64bit (MinGW-w64)

- time_t is of type 'long long int', when compiled for 64 bit Windows
  (x86_64-w64-mingw32). Use %10llu instead of %10lu in printf and
  %lli instead of %li in dprintf. Requires __USE_MINGW_ANSI_STDIO 1

- Fixes: rrd_lastupdate.c: In function 'rrd_lastupdate':
  rrd_lastupdate.c:76:18:
  warning: format '%lu' expects argument of type 'long unsigned int',
  but argument 2 has type 'time_t {aka long long int}' [-Wformat=]

- Fixes: rrd_graph_helper.c: In function 'parse_shift':
  rrd_graph_helper.c:1458:13:
  warning: format '%li' expects argument of type 'long int',
  but argument 3 has type 'time_t {aka long long int}' [-Wformat=]
  dprintf("SHIFTBY : %li\n",gdp->shval);

7 years agoMerge pull request #849 from c72578/2017-12-07_fix_further_build_errors_mingw-w64
Tobias Oetiker [Sun, 10 Dec 2017 14:31:48 +0000 (15:31 +0100)] 
Merge pull request #849 from c72578/2017-12-07_fix_further_build_errors_mingw-w64

Fix ctime_r configure error (MinGW-w64)

7 years agoFix ctime_r configure error (MinGW-w64) 849/head
Wolfgang Stöggl [Thu, 7 Dec 2017 20:43:53 +0000 (21:43 +0100)] 
Fix ctime_r configure error (MinGW-w64)

- configure.ac: include pthread.h inside AC_LANG_PROGRAM
  for ctime_r check if __MINGW32__ is defined
  Fixes:
  checking if ctime_r need special care to act posixly correct...
  configure: error: Can't figure how to compile ctime_r

7 years agoMerge pull request #848 from c72578/2017-12-06_fix_further_build_errors_mingw-w64
Tobias Oetiker [Wed, 6 Dec 2017 22:28:38 +0000 (23:28 +0100)] 
Merge pull request #848 from c72578/2017-12-06_fix_further_build_errors_mingw-w64

Fix further build errors (MinGW-w64)

7 years agoFix further build errors (MinGW-w64) 848/head
Wolfgang Stöggl [Wed, 6 Dec 2017 10:55:04 +0000 (11:55 +0100)] 
Fix further build errors (MinGW-w64)

- rrd_list.c: MinGW-w64 does not provide glob.h (yet?)
  include win32/win32-glob.h using HAVE_GLOB_H. Fixes:
  rrd_list.c:9:10: fatal error: glob.h: No such file or directory
    #include <glob.h>
- rrd_update.c: MinGW has gettimeofday() in time.h. Fixes:
  rrd_update.c:46:12: error: conflicting types for 'gettimeofday'
    static int gettimeofday(
- rrd_tool.c: MinGW has not got getuid and mkdir only one argument.
  Fixes:
  rrd_tool.c:585:17: warning: nested extern declaration of 'getuid'
  rrd_tool.c:632:16: error: too many arguments to function 'mkdir'
    if(mkdir(argv[2], 0777)!=0){
- rrd_tool.h:
  MinGW-w64 provides localtime_r, ctime_r, gmtime_r, strtok_r
- rrd_graph.c: MinGW has strftime and tzname.
  Due to the resulting later include of time.h, fixes also:
  rrd_graph.c:1558: undefined reference to `localtime_r'
- rrd_client.c: MinGW does not provide realpath, "is_unix" excluded.
  Fixes:
  rrd_client.c:113: undefined reference to `realpath'
  rrd_client.c:130: undefined reference to `realpath'
- rrd_rpncalc.c: include pthread.h. Fixes e.g.:
  rrd_rpncalc.c:708: undefined reference to `localtime_r'

7 years agoMerge pull request #847 from c72578/2017-12-01_add_glob.h_to_configure.ac_AC_CHECK_HE...
Tobias Oetiker [Sat, 2 Dec 2017 20:27:26 +0000 (21:27 +0100)] 
Merge pull request #847 from c72578/2017-12-01_add_glob.h_to_configure.ac_AC_CHECK_HEADERS

Add glob.h to configure.ac AC_CHECK_HEADERS

7 years agoAdd glob.h to configure.ac AC_CHECK_HEADERS 847/head
Wolfgang Stöggl [Fri, 1 Dec 2017 11:51:01 +0000 (12:51 +0100)] 
Add glob.h to configure.ac AC_CHECK_HEADERS

- Adds check for glob.h
- Provides HAVE_GLOB_H