Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 29 Dec 2010 20:48:43 GMT
From:      Charlie Kester <corky1951@comcast.net>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   ports/153532: [PATCH] devel/dbus: fix build failure in the presence of textproc/man2html
Message-ID:  <201012292048.oBTKmhCx004850@red.freebsd.org>
Resent-Message-ID: <201012292050.oBTKoBgp094418@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         153532
>Category:       ports
>Synopsis:       [PATCH] devel/dbus: fix build failure in the presence of textproc/man2html
>Confidential:   no
>Severity:       serious
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Wed Dec 29 20:50:11 UTC 2010
>Closed-Date:
>Last-Modified:
>Originator:     Charlie Kester
>Release:        FreeBSD 8.2-PRERELEASE #0: Wed Dec 15 19:43:46 PST 2010
>Organization:
>Environment:
>Description:
If /textproc/man2html is installed, the build of devel/dbus fails.  

Several people on the forums and questions@ mailinglist have reported this.

The root cause of this failure is that the dbus Makefiles expect a version of man2html which will take a filename as input.  But textproc/man2html only accepts input on stdin.  It ignores any filenames specified on its commandline.    So the build appears to hang when the following Makefile lines are executed:

%.1.html: %.1
        $(AM_V_GEN)( $(MAN2HTML) $< > $@.tmp && mv $@.tmp $@ )

Actually, it isn't hung.  man2html is simply waiting for input on stdin.

If man2html is not installed, the devel/dbus succeeds.   I notice that the html'ized manpages are not listed in the pkg-plist for dbus, nor are they mentioned in the port's Makefile.  Is it expected that they will never be installed, even though the upstream author's Makefile will build them if man2html is found?


>How-To-Repeat:
Install textproc/man2html
Try to build devel/dbus
>Fix:
Redirect stdin to the prerequisite file

Patch attached with submission follows:

diff -ruN /usr/ports/devel/dbus/files/patch-doc__Makefile.in ./dbus/files/patch-doc__Makefile.in
--- /usr/ports/devel/dbus/files/patch-doc__Makefile.in	1969-12-31 16:00:00.000000000 -0800
+++ ./dbus/files/patch-doc__Makefile.in	2010-12-29 12:22:16.000000000 -0800
@@ -0,0 +1,11 @@
+--- ./doc/Makefile.in.orig	2010-12-29 12:21:33.000000000 -0800
++++ ./doc/Makefile.in	2010-12-29 12:21:52.000000000 -0800
+@@ -609,7 +609,7 @@
+ @DBUS_HAVE_MAN2HTML_TRUE@all-local:: $(MAN_HTML_FILES)
+ 
+ @DBUS_HAVE_MAN2HTML_TRUE@%.1.html: %.1
+-@DBUS_HAVE_MAN2HTML_TRUE@	$(AM_V_GEN)( $(MAN2HTML) $< > $@.tmp && mv $@.tmp $@ )
++@DBUS_HAVE_MAN2HTML_TRUE@	$(AM_V_GEN)( $(MAN2HTML) < $< > $@.tmp && mv $@.tmp $@ )
+ 
+ @DBUS_CAN_UPLOAD_DOCS_TRUE@dbus-docs: $(STATIC_DOCS) $(HTML_FILES) $(MAN_HTML_FILES) $(BONUS_FILES) $(DOXYGEN_HTML_INDEX)
+ @DBUS_CAN_UPLOAD_DOCS_TRUE@	$(AM_V_at)rm -rf $@


>Release-Note:
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201012292048.oBTKmhCx004850>