From d3bb1bcbc5977a779d28b0b94c1c78504957af13 Mon Sep 17 00:00:00 2001 From: Eygene Ryabinkin Date: Sat, 24 Sep 2011 21:25:47 +0400 Subject: [PATCH] Don't rebuild manual pages if configure was changed Sometimes patches for PostgreSQL touch its configure script. And the logics inside current Makefiles for the documentation makes the manual pages (and other stuff) to be dependent of the timestamp of the top-level configure file. This triggers the rebuild of the manual pages, but since some additional XML-related tools are needed, this rebuild can fail. Signed-off-by: Eygene Ryabinkin --- .../files/patch-doc-src-sgml-Makefile | 17 +++++++++++++++++ .../files/patch-doc-src-sgml-Makefile | 17 +++++++++++++++++ 2 files changed, 34 insertions(+), 0 deletions(-) create mode 100644 databases/postgresql90-server/files/patch-doc-src-sgml-Makefile create mode 100644 databases/postgresql91-server/files/patch-doc-src-sgml-Makefile diff --git a/databases/postgresql90-server/files/patch-doc-src-sgml-Makefile b/databases/postgresql90-server/files/patch-doc-src-sgml-Makefile new file mode 100644 index 0000000..12c4317 --- /dev/null +++ b/databases/postgresql90-server/files/patch-doc-src-sgml-Makefile @@ -0,0 +1,17 @@ +Manual pages are already present in the PostgreSQL tarball, so we avoid +messing with timestamp: it depends on postgres.xml that, in turn, +depends on almost all SGML files, most notably, version.sgml. And the +latter depends on the configure in the top-level directory, so when +we patch it, build system wants to regenerate manual pages. + +--- doc/src/sgml/Makefile.orig 2011-09-13 23:42:58.508672251 +0400 ++++ doc/src/sgml/Makefile 2011-09-13 23:43:01.676668807 +0400 +@@ -75,8 +75,6 @@ + ## Man pages + ## + +-man distprep-man: man-stamp +- + man-stamp: stylesheet-man.xsl postgres.xml + $(XSLTPROC) $(XSLTPROCFLAGS) $(XSLTPROC_MAN_FLAGS) $^ + touch $@ diff --git a/databases/postgresql91-server/files/patch-doc-src-sgml-Makefile b/databases/postgresql91-server/files/patch-doc-src-sgml-Makefile new file mode 100644 index 0000000..12c4317 --- /dev/null +++ b/databases/postgresql91-server/files/patch-doc-src-sgml-Makefile @@ -0,0 +1,17 @@ +Manual pages are already present in the PostgreSQL tarball, so we avoid +messing with timestamp: it depends on postgres.xml that, in turn, +depends on almost all SGML files, most notably, version.sgml. And the +latter depends on the configure in the top-level directory, so when +we patch it, build system wants to regenerate manual pages. + +--- doc/src/sgml/Makefile.orig 2011-09-13 23:42:58.508672251 +0400 ++++ doc/src/sgml/Makefile 2011-09-13 23:43:01.676668807 +0400 +@@ -75,8 +75,6 @@ + ## Man pages + ## + +-man distprep-man: man-stamp +- + man-stamp: stylesheet-man.xsl postgres.xml + $(XSLTPROC) $(XSLTPROCFLAGS) $(XSLTPROC_MAN_FLAGS) $^ + touch $@ -- 1.7.3.4