Fixed possible races during docs build which could lead to empty pdf files

This commit is contained in:
Jaroslav Škarvada 2021-06-09 00:30:21 +02:00
parent 15ea6ec86f
commit 3637b2302d
2 changed files with 22 additions and 1 deletions

View File

@ -0,0 +1,16 @@
diff --git a/tclpkg/gv/Makefile.am b/tclpkg/gv/Makefile.am
index 8941c22..a6a3213 100644
--- a/tclpkg/gv/Makefile.am
+++ b/tclpkg/gv/Makefile.am
@@ -449,7 +449,10 @@ else
pdf =
endif
-$(man): gv.i gv_doc_writer.tcl gv_doc_template.tcl gv_doc_langs.tcl
+$(man): gv_doc_writer.intermediate ;
+
+.INTERMEDIATE: gv_doc_writer.intermediate
+gv_doc_writer.intermediate: gv.i gv_doc_writer.tcl gv_doc_template.tcl gv_doc_langs.tcl
$(TCLSH) $(srcdir)/gv_doc_writer.tcl "$(srcdir)"
if ENABLE_MAN_PDFS

View File

@ -68,10 +68,12 @@
Name: graphviz
Summary: Graph Visualization Tools
Version: 2.47.2
Release: 2%{?dist}
Release: 3%{?dist}
License: EPL-1.0
URL: http://www.graphviz.org/
Source0: https://gitlab.com/%{name}/%{name}/-/archive/%{version}/%{name}-%{version}.tar.bz2
# https://gitlab.com/graphviz/graphviz/-/merge_requests/1994
Patch0: graphviz-2.47.2-makefile-docs-fix.patch
BuildRequires: gcc-g++
BuildRequires: zlib-devel, libpng-devel, libjpeg-devel, expat-devel, freetype-devel >= 2
BuildRequires: ksh, bison, m4, flex, tk-devel, tcl-devel >= 8.3, swig, sed
@ -594,6 +596,9 @@ php --no-php-ini \
%{_mandir}/man3/*.3tcl*
%changelog
* Tue Jun 8 2021 Jaroslav Škarvada <jskarvad@redhat.com> - 2.47.2-3
- Fixed possible races during docs build which could lead to empty pdf files
* Fri Jun 04 2021 Python Maint <python-maint@redhat.com> - 2.47.2-2
- Rebuilt for Python 3.10