]> granicus.if.org Git - graphviz/log
graphviz
4 years agoRemove obsolete samearrowhead/tail attributes from rtest input data
Magnus Jacobsson [Fri, 3 Apr 2020 14:04:34 +0000 (16:04 +0200)]
Remove obsolete samearrowhead/tail attributes from rtest input data

4 years agoUpdate linux.x86 rtest svg reference files
Magnus Jacobsson [Fri, 3 Apr 2020 13:06:35 +0000 (15:06 +0200)]
Update linux.x86 rtest svg reference files

Compared old and new images by visual inspection and found no
differences except:

html2_dot.svg: Color names used instead of hex codes which gives
different shades of gray. Seems to conform to SVG color scheme
according to https://www.graphviz.org/doc/info/colors.html. Slightly
different edge contact point.

url_dot.svg: Color names used instead of hex codes which gives
different shades of green and gray. Seems to conform to SVG color
scheme according to https://www.graphviz.org/doc/info/colors.html.

cairo_dot_cairo.svg: Old has white background. New has
transparent. This seems ok since the default bgcolor is <none>
according to https://www.graphviz.org/doc/info/attrs.html#a:bgcolor.

4 years agoUpdate linux.x86 rtest ps & ps2 reference files
Magnus Jacobsson [Fri, 3 Apr 2020 10:10:27 +0000 (12:10 +0200)]
Update linux.x86 rtest ps & ps2 reference files

Compared old and new images by visual inspection and found no
differences except:

size_ex_dot.ps: A huge graph with slightly different edge routing.

4 years agoUpdate linux.x86 rtest png reference files
Magnus Jacobsson [Fri, 3 Apr 2020 09:34:31 +0000 (11:34 +0200)]
Update linux.x86 rtest png reference files

Compared old and new images by visual inspection and found no
differences except:

decorate_dot.png: Quite different aspect ratio. Size changed from 1413
x 2963 to 1191 x 1644. Some text overlap in the new one.

fdp_clus_fdp.png: Edge overlap nodes in the old one. The new one is
ok.

4 years agoSet rtest exit status to total number of errors
Magnus Jacobsson [Fri, 3 Apr 2020 09:18:56 +0000 (11:18 +0200)]
Set rtest exit status to total number of errors

4 years agoDisable non-working ksh version check
Magnus Jacobsson [Mon, 30 Mar 2020 14:34:12 +0000 (16:34 +0200)]
Disable non-working ksh version check

4 years agoMerge branch 'inline-all-shapes' into 'master'
Mark Hansen [Tue, 2 Jun 2020 11:30:03 +0000 (11:30 +0000)]
Merge branch 'inline-all-shapes' into 'master'

Inline shapes.3 into shapes.html.j2

See merge request graphviz/graphviz!1392

4 years agoMerge branch 'shapes-html' into 'master'
Mark Hansen [Tue, 2 Jun 2020 11:28:35 +0000 (11:28 +0000)]
Merge branch 'shapes-html' into 'master'

Inline shapes.1 and shapes.2 into shapes.html.j2

See merge request graphviz/graphviz!1391

4 years agoInline shapes.3 into shapes.html.j2
Mark Hansen [Tue, 2 Jun 2020 11:06:37 +0000 (21:06 +1000)]
Inline shapes.3 into shapes.html.j2

Now shapes.html.j2 is a complete template for the shapes.html page.

4 years agoMerge branch 'shapes-html' into 'master'
Mark Hansen [Tue, 2 Jun 2020 11:03:54 +0000 (11:03 +0000)]
Merge branch 'shapes-html' into 'master'

Update shapes.html to match output of mkshhtml.py

See merge request graphviz/graphviz!1390

4 years agoInline shapes.1 and shapes.2 into shapes.html.j2
Mark Hansen [Tue, 2 Jun 2020 10:50:29 +0000 (20:50 +1000)]
Inline shapes.1 and shapes.2 into shapes.html.j2

4 years agoUpdate shapes.html to match output of mkshhtml.py
Mark Hansen [Tue, 2 Jun 2020 10:42:08 +0000 (20:42 +1000)]
Update shapes.html to match output of mkshhtml.py

Whitespace changes and a diff in a PRE tag.

4 years agoMerge branch 'D987C1A2-7266-425B-85A9-0066E60CA0EA' into 'master'
Mark Hansen [Tue, 2 Jun 2020 09:09:20 +0000 (09:09 +0000)]
Merge branch 'D987C1A2-7266-425B-85A9-0066E60CA0EA' into 'master'

write output of long chain test to /dev/null

Closes #1720

See merge request graphviz/graphviz!1382

4 years agoMerge branch 'squash-fedora-docker-images' into 'master'
Magnus Jacobsson [Mon, 1 Jun 2020 15:50:58 +0000 (15:50 +0000)]
Merge branch 'squash-fedora-docker-images' into 'master'

Squash Fedora Dockerfiles yums into fewer layers

See merge request graphviz/graphviz!1389

4 years agoSquash Fedora Dockerfiles yums into fewer layers
Magnus Jacobsson [Mon, 1 Jun 2020 06:53:53 +0000 (08:53 +0200)]
Squash Fedora Dockerfiles yums into fewer layers

4 years agoMerge branch 're-add-expat-devel-to-fedora33-dockerfile' into 'master'
Magnus Jacobsson [Mon, 1 Jun 2020 15:27:32 +0000 (15:27 +0000)]
Merge branch 're-add-expat-devel-to-fedora33-dockerfile' into 'master'

Re-add expat-devel to Fedora33 Dockerfile

See merge request graphviz/graphviz!1384

4 years agowrite output of long chain test to /dev/null
Matthew Fernandez [Sun, 31 May 2020 17:22:07 +0000 (10:22 -0700)]
write output of long chain test to /dev/null

This avoids generating a large file in the source tree that we don't need. In my
runs in a Linux VM, this also significantly speeds up the test suite.
Closes #1720.

4 years agoMerge branch 'mksshhtml' into 'master'
Mark Hansen [Mon, 1 Jun 2020 12:25:20 +0000 (12:25 +0000)]
Merge branch 'mksshhtml' into 'master'

Convert mkshhtml from ksh to Python/Jinja2

See merge request graphviz/graphviz!1388

4 years agoConvert mkshhtml from ksh to Python/Jinja2
Mark Hansen [Mon, 1 Jun 2020 12:03:23 +0000 (22:03 +1000)]
Convert mkshhtml from ksh to Python/Jinja2

Soon I'll inline the other parts of shapes.html into this template,
which should give us more flexibility to easily
change the template.

4 years agoReplace no longer existent qt5-devel with qt5-qtbase-devel
Magnus Jacobsson [Mon, 1 Jun 2020 09:38:30 +0000 (11:38 +0200)]
Replace no longer existent qt5-devel with qt5-qtbase-devel

4 years agoRe-add expat-devel to Fedora 33 Dockerfile
Magnus Jacobsson [Mon, 1 Jun 2020 09:30:10 +0000 (11:30 +0200)]
Re-add expat-devel to Fedora 33 Dockerfile

Was implicitly removed with 9c8ec112a76feaa7278374eb9192b8acb0280cf8,
but is required from redhat/graphviz.spec.fedora.in.

4 years agoMerge branch 'merge-attrs' into 'master'
Mark Hansen [Mon, 1 Jun 2020 11:52:37 +0000 (11:52 +0000)]
Merge branch 'merge-attrs' into 'master'

Merge mktypes.py into mkattrs.html

See merge request graphviz/graphviz!1387

4 years agoMerge branch 'attrs-inline' into 'master'
Mark Hansen [Mon, 1 Jun 2020 11:41:34 +0000 (11:41 +0000)]
Merge branch 'attrs-inline' into 'master'

Migrate mktypes.sh from ksh to Python/Jinja2

See merge request graphviz/graphviz!1386

4 years agoMerge mktypes.py into mkattrs.html
Mark Hansen [Mon, 1 Jun 2020 11:31:21 +0000 (21:31 +1000)]
Merge mktypes.py into mkattrs.html

Ultimately only one HTML page is generated.

This ensures the entire page is present in one template.

Verified there are no diffs in the output.

4 years agoMigrate mktypes.sh from ksh to Python/Jinja2
Mark Hansen [Mon, 1 Jun 2020 11:19:12 +0000 (21:19 +1000)]
Migrate mktypes.sh from ksh to Python/Jinja2

This is one step towards creating the attrs.html page from one
python/jinja2 template.

4 years agoMerge branch 'attrs-inline' into 'master'
Mark Hansen [Mon, 1 Jun 2020 11:18:10 +0000 (11:18 +0000)]
Merge branch 'attrs-inline' into 'master'

Inline attrs.1 into Jinja2 template

See merge request graphviz/graphviz!1385

4 years agoMerge branch 'attrs-jinja3' into 'master'
Mark Hansen [Mon, 1 Jun 2020 11:06:00 +0000 (11:06 +0000)]
Merge branch 'attrs-jinja3' into 'master'

Convert mkattrs.sh to Python/Jinja2 templating

See merge request graphviz/graphviz!1379

4 years agoInline attrs.1 into Jinja2 template
Mark Hansen [Mon, 1 Jun 2020 10:51:39 +0000 (20:51 +1000)]
Inline attrs.1 into Jinja2 template

It's nice to have fewer moving parts, and brings
the context together.

4 years agoConvert mkattrs.sh to Python/Jinja2 templating
Mark Hansen [Sun, 17 May 2020 07:12:52 +0000 (17:12 +1000)]
Convert mkattrs.sh to Python/Jinja2 templating

4 years agodon't suppress make errors for documentation targets
John Ellson [Sun, 31 May 2020 23:44:35 +0000 (19:44 -0400)]
don't suppress make errors for documentation targets

4 years agofix syntax error instead (BuildRequires: glade3-libgradeui-devel)
John Ellson [Sun, 31 May 2020 22:24:44 +0000 (18:24 -0400)]
fix syntax error instead (BuildRequires: glade3-libgradeui-devel)

4 years agoremove Requires for glade3-libgladeui-devel from all Fedora
John Ellson [Sun, 31 May 2020 21:43:22 +0000 (17:43 -0400)]
remove Requires for glade3-libgladeui-devel from all Fedora

4 years agoadd ghostscript to Buildrequres in spec files
John Ellson [Sun, 31 May 2020 18:36:02 +0000 (14:36 -0400)]
add ghostscript to Buildrequres in spec files

4 years agodon't require glade3-libgladeui-devel on fc33 or later
John Ellson [Sun, 31 May 2020 18:30:04 +0000 (14:30 -0400)]
don't require glade3-libgladeui-devel on fc33 or later

4 years agoremove requirement for glade3-libgladeui-devel - no longer used
John Ellson [Sun, 31 May 2020 18:02:57 +0000 (14:02 -0400)]
remove requirement for glade3-libgladeui-devel - no longer used

4 years agoMerge branch 'update-attrs' into 'master'
Mark Hansen [Sun, 31 May 2020 11:56:54 +0000 (11:56 +0000)]
Merge branch 'update-attrs' into 'master'

Re-generate attrs.html from doc/infosrc

See merge request graphviz/graphviz!1381

4 years agoMerge branch 'mypy' into 'master'
Mark Hansen [Sun, 31 May 2020 11:55:26 +0000 (11:55 +0000)]
Merge branch 'mypy' into 'master'

Ignore mypy Python typechecking directory.

See merge request graphviz/graphviz!1380

4 years agoMerge branch 'sdlshapespng' into 'master'
Mark Hansen [Sun, 31 May 2020 11:47:08 +0000 (11:47 +0000)]
Merge branch 'sdlshapespng' into 'master'

Replace usages of sdlshapes.jpg with sdlshapes.png

See merge request graphviz/graphviz!1378

4 years agoRe-generate attrs.html from doc/infosrc
Mark Hansen [Sun, 31 May 2020 11:35:54 +0000 (21:35 +1000)]
Re-generate attrs.html from doc/infosrc

There have been a few updates to infosrc that haven't
cascaded to the doc/ directory. Fix that.

Long-term we probably want to have these automatically built from source.

4 years agoIgnore mypy Python typechecking directory.
Mark Hansen [Sun, 31 May 2020 11:33:16 +0000 (21:33 +1000)]
Ignore mypy Python typechecking directory.

4 years agoMerge branch 'output-into-header' into 'master'
Mark Hansen [Sun, 31 May 2020 11:12:39 +0000 (11:12 +0000)]
Merge branch 'output-into-header' into 'master'

Docs: Migrate header and footer into template

See merge request graphviz/graphviz!1377

4 years agoReplace usages of sdlshapes.jpg with sdlshapes.png
Mark Hansen [Sat, 16 May 2020 04:38:46 +0000 (14:38 +1000)]
Replace usages of sdlshapes.jpg with sdlshapes.png

There were a lot of compression artifacts in the .jpg, which the .png
doesn't have. It's rendering black lines
and text on a white background, JPEG's
compression wasn't really made for this.

As a bonus, this cuts a dep on the GMT library.

4 years agoDocs: Migrate header and footer into template
Mark Hansen [Sun, 31 May 2020 10:48:59 +0000 (20:48 +1000)]
Docs: Migrate header and footer into template

4 years agoMerge branch '9f864c3e-ade8-4fa8-aa86-38becf1f96cc' into 'master'
Mark Hansen [Sun, 31 May 2020 03:07:08 +0000 (03:07 +0000)]
Merge branch '9f864c3e-ade8-4fa8-aa86-38becf1f96cc' into 'master'

various small cleanup

See merge request graphviz/graphviz!1376

4 years agoremove unused vmstub.h
Matthew Fernandez [Sun, 31 May 2020 02:30:06 +0000 (19:30 -0700)]
remove unused vmstub.h

4 years agofix comment typo
Matthew Fernandez [Mon, 25 May 2020 20:44:50 +0000 (13:44 -0700)]
fix comment typo

4 years agoremove unused CLIPBB macro
Matthew Fernandez [Mon, 25 May 2020 18:29:07 +0000 (11:29 -0700)]
remove unused CLIPBB macro

4 years agoremove MEMSET macro
Matthew Fernandez [Mon, 25 May 2020 18:25:39 +0000 (11:25 -0700)]
remove MEMSET macro

This macro stepped the target pointer forwards, but the only place in which it
was used subsequently stepped the pointer backwards. The manual unrolling of
short lengths in the macro is something modern compilers and/or CPUs are capable
of if the length is predictable statically or dynamically, respectively.

4 years agoMerge branch 'jinja2' into 'master'
Mark Hansen [Sat, 30 May 2020 23:58:18 +0000 (23:58 +0000)]
Merge branch 'jinja2' into 'master'

Migrate output format doc generation ksh to jinja2

See merge request graphviz/graphviz!1362

4 years agoghostscript needed for ps2pdf, for pdf docs -- fix for #1719
John Ellson [Sat, 30 May 2020 16:22:35 +0000 (12:22 -0400)]
ghostscript needed for ps2pdf, for pdf docs -- fix for #1719

4 years agoMigrate output format doc generation ksh to jinja2
Mark Hansen [Sat, 16 May 2020 08:08:12 +0000 (18:08 +1000)]
Migrate output format doc generation ksh to jinja2

This commit replaces the ksh-based templating with Python Jinja2
templating.

Previously output.html was generated with:

- output.1
- the output of mkoutput.sh
- output.2

My end goal here is to make it much simpler to generate more complex
output format docs - however I've made this change so that the output is
virtually unchanged, except for HTML-escaping a single apostrophe.

My plan is to follow this up with adding some more features to the
output format documentation.

Templating in general provides a few opportunities:

- safe auto-html-escaping
- easier editing, easier adding of more data
- some separation of logic and templating
- inclusion of subtemplates

I chose Jinja2 because:

- It's the most popular Python templating engine, used by mature
  products like Ansible and Flask.
- Graphviz's docs generation already takes a dependency on Python for
  jconvert.py.
- The Python language is pretty accessible to contributors.
- Jinja2 seems pretty stable, going back to 2007. Unlikely to break
  soon.

Alternatives considered:
- I could just as well have gone with Go's stdlib template/html but I
  don't think Go is already used to build Graphviz, and Go isn't as
  popular as Python, so not as accessible to contributors.
- Python Django templates: they're pretty similar to Jinja2, but I think
  Django's templates are more heavyweight

4 years agoMerge branch 'makef' into 'master'
Mark Hansen [Fri, 29 May 2020 12:04:33 +0000 (12:04 +0000)]
Merge branch 'makef' into 'master'

Add rule to build schema.html in Makefile

See merge request graphviz/graphviz!1354

4 years agoAdd rule to build schema.html in Makefile
Mark Hansen [Thu, 14 May 2020 11:49:32 +0000 (21:49 +1000)]
Add rule to build schema.html in Makefile

Fixes error when running Makefile:

make: *** No rule to make target `schema.html', needed by `all'.  Stop.

4 years agoMerge branch 'man-fix' into 'master'
Mark Hansen [Thu, 28 May 2020 11:21:18 +0000 (11:21 +0000)]
Merge branch 'man-fix' into 'master'

Fixed man pages according to the man page scan

See merge request graphviz/graphviz!1367

4 years agoMerge branch '6bb063a6-d073-4d0a-8d5c-3f41f0a3e248' into 'master'
Mark Hansen [Thu, 28 May 2020 10:58:27 +0000 (10:58 +0000)]
Merge branch '6bb063a6-d073-4d0a-8d5c-3f41f0a3e248' into 'master'

remove unused dotgen2

See merge request graphviz/graphviz!1366

4 years agoMerge branch '3ac2f1bd-c3cc-445c-8cc6-6da2d9487a51' into 'master'
Mark Hansen [Thu, 28 May 2020 10:56:39 +0000 (10:56 +0000)]
Merge branch '3ac2f1bd-c3cc-445c-8cc6-6da2d9487a51' into 'master'

use Python 3 compatible syntax in autotools check

Closes #1626

See merge request graphviz/graphviz!1373

4 years agoMerge branch 'phony' into 'master'
Mark Hansen [Thu, 28 May 2020 10:55:15 +0000 (10:55 +0000)]
Merge branch 'phony' into 'master'

Mark Makefiles that don't generate files as .PHONY

See merge request graphviz/graphviz!1361

4 years agoMerge branch 'ps_to_jpg' into 'master'
Mark Hansen [Thu, 28 May 2020 10:54:08 +0000 (10:54 +0000)]
Merge branch 'ps_to_jpg' into 'master'

Remove unused script ps_to_jpg.sh

See merge request graphviz/graphviz!1358

4 years agoMerge branch 'cleanupgif' into 'master'
Mark Hansen [Thu, 28 May 2020 10:53:54 +0000 (10:53 +0000)]
Merge branch 'cleanupgif' into 'master'

make distclean: rm {forward,back,both,nohead}.gif

See merge request graphviz/graphviz!1360

4 years agoMerge branch 'awk' into 'master'
Mark Hansen [Thu, 28 May 2020 10:53:38 +0000 (10:53 +0000)]
Merge branch 'awk' into 'master'

brewer.awk: Close file after opening.

See merge request graphviz/graphviz!1353

4 years agoMerge branch 'psconvert' into 'master'
Mark Hansen [Thu, 28 May 2020 10:53:18 +0000 (10:53 +0000)]
Merge branch 'psconvert' into 'master'

doc: Use 'gmt psconvert' -- new name for ps2raster

See merge request graphviz/graphviz!1357

4 years agoMerge branch 'deadcode' into 'master'
Mark Hansen [Thu, 28 May 2020 10:52:53 +0000 (10:52 +0000)]
Merge branch 'deadcode' into 'master'

Remove unused functions from w3data.js

See merge request graphviz/graphviz!1352

4 years agoMerge branch 'deadmkoutputs' into 'master'
Mark Hansen [Thu, 28 May 2020 10:52:33 +0000 (10:52 +0000)]
Merge branch 'deadmkoutputs' into 'master'

doc: Remove dead code for lines starting with '#<'

See merge request graphviz/graphviz!1356

4 years agoMerge branch 'centos' into 'master'
Magnus Jacobsson [Wed, 27 May 2020 21:24:18 +0000 (21:24 +0000)]
Merge branch 'centos' into 'master'

Squash CentOS Dockerfiles yums into fewer layers

See merge request graphviz/graphviz!1364

4 years agoMerge branch 'mr-graphviz-1363'
Magnus Jacobsson [Wed, 27 May 2020 15:36:58 +0000 (17:36 +0200)]
Merge branch 'mr-graphviz-1363'

4 years agoMerge branch 'noupdate' into 'master'
Magnus Jacobsson [Wed, 27 May 2020 14:42:42 +0000 (14:42 +0000)]
Merge branch 'noupdate' into 'master'

Collapse CI Dockerfile into a single layer

See merge request graphviz/graphviz!1359

4 years agouse Python 3 compatible syntax in autotools check
Matthew Fernandez [Sun, 24 May 2020 16:55:56 +0000 (09:55 -0700)]
use Python 3 compatible syntax in autotools check

We expect `python` to be a symlink to Python 3, not Python 2 but it does not
hurt to use syntax compatible with both. Other Python checks in configure.ac
were already using compatible syntax.

Fixes #1626.

4 years agoMerge branch 'class-doc' into 'master'
Magnus Jacobsson [Fri, 22 May 2020 13:59:37 +0000 (13:59 +0000)]
Merge branch 'class-doc' into 'master'

Add documentation for SVG class attribute

See merge request graphviz/graphviz!1369

4 years agoMerge branch 'patch-1' into 'master'
Magnus Jacobsson [Fri, 22 May 2020 12:14:23 +0000 (12:14 +0000)]
Merge branch 'patch-1' into 'master'

Update README.md - latest Graphviz docs URL.

See merge request graphviz/graphviz!1368

4 years agoMerge branch 'fix-windows-dev-version' into 'master'
Magnus Jacobsson [Fri, 22 May 2020 11:13:56 +0000 (11:13 +0000)]
Merge branch 'fix-windows-dev-version' into 'master'

Start 2.45 development series also for CMake builds

Closes #1711

See merge request graphviz/graphviz!1372

4 years agoStart 2.45 development series also for CMake builds
Magnus Jacobsson [Fri, 22 May 2020 10:48:15 +0000 (12:48 +0200)]
Start 2.45 development series also for CMake builds

Fixes https://gitlab.com/graphviz/graphviz/-/issues/1711.

4 years agoMerge branch 'green-ci' into 'master'
Magnus Jacobsson [Fri, 22 May 2020 09:40:34 +0000 (09:40 +0000)]
Merge branch 'green-ci' into 'master'

Make python large tests run on Windows

See merge request graphviz/graphviz!1370

4 years agoRedirect stderr to stdout for python unittest
Mark Hansen [Fri, 22 May 2020 04:42:55 +0000 (14:42 +1000)]
Redirect stderr to stdout for python unittest

Powershell fails the entire batch file if it sees any output on stderr.

Migrated to powershell because batch files are old, I don't really want
to use batch.

4 years agoSkip test_large_graphs on win32.
Mark Hansen [Fri, 22 May 2020 01:52:36 +0000 (11:52 +1000)]
Skip test_large_graphs on win32.

This test is expected to fail on win32 due to Window's smaller stack
size defaults:

- Windows by default uses 1MB stacks:
  https://docs.microsoft.com/en-us/windows/win32/procthread/thread-stack-size

- Linux x86_64 seems to usually have a default of 8MB (architecture
dependent):

  ```
  mark@x86_64_linux $ ulimit -a | grep stack
  Maximum stack size (kB, -s) 8192

  mark@arm32v6 $ ulimit -a | grep stack
  Maximum stack size (kB, -s) 8192
  ```

This test failure is not a regression (it would have been failing before
81c3a3af), and it's blocking other submissions. This change gets the CI
green again to unblock forward progress.

4 years agoMerge branch 'skip-test-large-graphs-on-windows' into 'master'
Magnus Jacobsson [Fri, 22 May 2020 06:57:21 +0000 (06:57 +0000)]
Merge branch 'skip-test-large-graphs-on-windows' into 'master'

Skip test_large_graphs on Windows

Closes #1710

See merge request graphviz/graphviz!1371

4 years agoSkip test_large_graphs on Windows
Magnus Jacobsson [Fri, 22 May 2020 06:02:58 +0000 (08:02 +0200)]
Skip test_large_graphs on Windows

Fixes https://gitlab.com/graphviz/graphviz/-/issues/1710

4 years agoAdd documentation for SVG class attribute
Mark Hansen [Thu, 21 May 2020 07:44:17 +0000 (17:44 +1000)]
Add documentation for SVG class attribute

This was introduced in 2015 in be2d19fb48, but wasn't documented.

4 years agoUpdate README.md - link to https://graphviz.org/
Mark Hansen [Thu, 21 May 2020 07:11:01 +0000 (07:11 +0000)]
Update README.md - link to https://graphviz.org/

4 years agoFixed man pages according to the man page scan
Jaroslav Škarvada [Wed, 20 May 2020 13:03:36 +0000 (15:03 +0200)]
Fixed man pages according to the man page scan

In Fedora we did man page scan and it revealed few options missing from
the manual pages. This is an attempt to add them.

Signed-off-by: Jaroslav Škarvada <jskarvad@redhat.com>
4 years agoremove unused dotgen2
Matthew Fernandez [Tue, 19 May 2020 00:14:27 +0000 (17:14 -0700)]
remove unused dotgen2

4 years agoSquash Centos Dockerfiles yums into fewer layers
Mark Hansen [Sun, 17 May 2020 03:15:17 +0000 (13:15 +1000)]
Squash Centos Dockerfiles yums into fewer layers

This should speed up builds, giving yum some more opportunity for
parallelism, and should decrease the Docker image size because the files
that are 'cleaned up' at the end are no longer in any of the Docker
filesystem layers.

4 years agoRemove end-of-life Ubuntu 19.04 Dockerfile
Mark Hansen [Sun, 17 May 2020 01:41:27 +0000 (11:41 +1000)]
Remove end-of-life Ubuntu 19.04 Dockerfile

All references to this were removed in
26b466828b419efff7a633f153f286fa0d35f1c6.

It no longer builds - the apt-get update step fails as Ubuntu is no
longer hosting packages for 19.04.

4 years agoCollapse CI Dockerfile into a single layer
Mark Hansen [Sat, 16 May 2020 05:04:29 +0000 (15:04 +1000)]
Collapse CI Dockerfile into a single layer

Speed up CI Docker build: apt-get update once

This is cribbed from
https://docs.docker.com/develop/develop-images/dockerfile_best-practices/#apt-get,
particularly the 'well-formed RUN instruction that demonstrates all the
apt-get recommendations'.

This ensures that:

- apt-get has a lot of parallelism available to speed up downloading of
  packages
- apt-get only has to read package information into memory once
  (speeding up the build)
- one single revision of the Ubuntu package sets are used by all apt-get
  installs (previously if Ubuntu updates packages between RUN commands
  we might get packages from different revisions - unlikely but
  possible)
- the /var/lib/apt/lists/* files are not present in any docker
  filesystem layer, saving space (previously they were present in all
  layers but the last layer, so the removal at the end didn't save any
  space)

4 years agoMark Makefiles that don't generate files as .PHONY
Mark Hansen [Sat, 16 May 2020 05:42:58 +0000 (15:42 +1000)]
Mark Makefiles that don't generate files as .PHONY

See
https://www.gnu.org/software/make/manual/html_node/Phony-Targets.html.

These targets aren't the name of a file, they're just a name for some
behaviour to run.

Marking them as .PHONY ensures that even if a file called 'clean' or
'distclean' or 'all' or 'install' exists in the directory, the code will
still be run.

4 years agomake distclean: rm {forward,back,both,nohead}.gif
Mark Hansen [Sat, 16 May 2020 05:16:54 +0000 (15:16 +1000)]
make distclean: rm {forward,back,both,nohead}.gif

These are generated files by `make` that weren't removed with
`make distclean`.

4 years agoRemove unused script ps_to_jpg.sh
Mark Hansen [Sat, 16 May 2020 04:45:07 +0000 (14:45 +1000)]
Remove unused script ps_to_jpg.sh

4 years agodoc: Use `gmt psconvert` -- new name for ps2raster
Mark Hansen [Sat, 16 May 2020 04:27:34 +0000 (14:27 +1000)]
doc: Use `gmt psconvert` -- new name for ps2raster

ps2raster isn't found in Ubuntu 18.04 (gmt --version 5.4.3).

Nor in mac/homebrew (gmt --version 6.0.0).

Here's the note that ps2raster is now psconvert:

https://github.com/GenericMappingTools/gmt/blob/master/doc/rst/source/changes.rst#id282

Docs for psconvert command:
https://docs.generic-mapping-tools.org/5.4/psconvert.html

4 years agodoc: Remove dead code for lines starting with `#<`
Mark Hansen [Sat, 16 May 2020 02:21:09 +0000 (12:21 +1000)]
doc: Remove dead code for lines starting with `#<`

This `mkoutput.sh` file only operates on the `outputs` file, which has
no lines starting with `#<`. Seems like dead code.

I thought maybe I could use this functionality to include schema.html
without using javascript, but I failed: no lines were included
in the output.

4 years agoTry to fix Windows regression test by putting build first in Path in case other dot...
Stephen C North [Fri, 15 May 2020 16:02:32 +0000 (12:02 -0400)]
Try to fix Windows regression test by putting build first in Path in case other dot.exe are around somewhere

4 years agoMerge branch 'd0651094-084d-4067-80cf-6dc37bb70fd3' into 'master'
Stephen C. North [Fri, 15 May 2020 12:24:45 +0000 (12:24 +0000)]
Merge branch 'd0651094-084d-4067-80cf-6dc37bb70fd3' into 'master'

fix a misuse of agerr

See merge request graphviz/graphviz!1351

4 years agoMerge branch 'd27650d0-4598-4236-b0c9-75444ef17c3b' into 'master'
Stephen C. North [Fri, 15 May 2020 12:24:09 +0000 (12:24 +0000)]
Merge branch 'd27650d0-4598-4236-b0c9-75444ef17c3b' into 'master'

fix out-of-bounds access with labels involving \

Closes #1699

See merge request graphviz/graphviz!1350

4 years agobrewer.awk: Close file after opening.
Mark Hansen [Thu, 14 May 2020 11:39:41 +0000 (21:39 +1000)]
brewer.awk: Close file after opening.

macOS awk seems to have a limit to how many files it will open at once.

Fixes this error on macOS awk:
$ make
...
awk -f brewer.awk ../../lib/common/brewer_colors
awk: colortmp/brbg7 makes too many open files
 input record number 131, file ../../lib/common/brewer_colors
 source line number 13
make: *** [colors.html] Error 2

4 years agoRemove unused functions from w3data.js
Mark Hansen [Thu, 14 May 2020 10:45:06 +0000 (20:45 +1000)]
Remove unused functions from w3data.js

Confirmed they were unused by searching the codebase for usages.

Only w3IncludeHTML is used.

4 years agofix a -Wformat-overflow warning with GCC 8.3
Matthew Fernandez [Sat, 9 May 2020 00:16:36 +0000 (17:16 -0700)]
fix a -Wformat-overflow warning with GCC 8.3

4 years agofix: print index instead of pointer value in debugging message
Matthew Fernandez [Sat, 9 May 2020 00:16:18 +0000 (17:16 -0700)]
fix: print index instead of pointer value in debugging message

The .v and .av members of the structs being used here are node_t**s. So the
addition of an integer results in a node_t**. This does not seem like what was
intended to be printed here, but rather the integer value being added. This
issue was found by adding __attribute__((format(printf, 2, 3))) to agerr() and
then using compiler flag -Werror=format.

4 years agofix a misuse of agerr
Matthew Fernandez [Fri, 8 May 2020 03:21:14 +0000 (20:21 -0700)]
fix a misuse of agerr

4 years agofix out-of-bounds access with labels involving \
Matthew Fernandez [Fri, 8 May 2020 02:52:59 +0000 (19:52 -0700)]
fix out-of-bounds access with labels involving \

The following input would result in entering these loops with str == "\":

  digraph structs {
  node [shape=record];
  struct1 [shape=record,label="<f0> left|<f1> mid\ dle|<f2> right"];
  struct2 [shape=record,label="<f0> one| two"];
  struct3 [shape=record,label="hello\nworld |{ b |{c|<h\re> d|e}| f}| g | h"];
  struct1 -> struct2;
  struct1 -> struct3;
  }

This would result in iterating past the end of the array. As reported by
@le3d1ng. Closes #1699.

4 years agoMerge branch 'gshklove_fixes' into 'master'
Stephen C. North [Thu, 7 May 2020 02:03:07 +0000 (02:03 +0000)]
Merge branch 'gshklove_fixes' into 'master'

small fixes for larger graphs

See merge request graphviz/graphviz!1345

4 years agosmall fixes for larger graphs
Gregory Shklover [Thu, 7 May 2020 02:03:07 +0000 (02:03 +0000)]
small fixes for larger graphs

4 years agoMerge branch 'no-malloc-include' into 'master'
Stephen C. North [Thu, 30 Apr 2020 02:38:01 +0000 (02:38 +0000)]
Merge branch 'no-malloc-include' into 'master'

PriorityQueue: don't include deprecated malloc.h

Closes #1696

See merge request graphviz/graphviz!1349