ports/98438: [patch] math/gnumeric: help file does not load from Help->Contents menu entry

Sam Lawrance lawrance at FreeBSD.org
Sat Jun 3 12:40:18 UTC 2006

>Number:         98438
>Category:       ports
>Synopsis:       [patch] math/gnumeric: help file does not load from Help->Contents menu entry
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Sat Jun 03 12:40:16 GMT 2006
>Originator:     Sam Lawrance
>Release:        FreeBSD 6.0-STABLE i386


Gnumeric uses the wrong path to load the help documentation.  As a
result yelp displays a file not found error.

Why: the gnomehack target adjusts the $(docdir) make variable in
${WRKSRC}/doc/C/Makefile.in.  The makefile suggests that it's OK
to change this variable, but the routine that invokes yelp is not
compliant with the new value.


Run gnumeric, chose Help -> Contents.  Observe error.


The following patch adds a sed command to the post-pach target to
invoke yelp with the correct path.

This problem should probably be fixed upstream as well - there are
some assumptions made about the location of the help documentation
that are not consistent with what is suggested in the doc Makefile.

I think this would involve obeying the --with-help-dir configure
option.  If I get some feedback in agreement, I'll try to submit
a patch for it.

--- patch-gnumeric begins here ---
Index: Makefile
RCS file: /home/pcvs/ports/math/gnumeric/Makefile,v
retrieving revision 1.122
diff -u -r1.122 Makefile
--- Makefile	27 Mar 2006 17:23:16 -0000	1.122
+++ Makefile	3 Jun 2006 11:54:37 -0000
@@ -8,7 +8,7 @@
 PORTNAME=	gnumeric
 CATEGORIES=	math gnome
@@ -64,6 +64,7 @@
 	@${RM} -f ${WRKSRC}/GNOME_Gnumeric.server.in
+	@${REINPLACE_CMD} 's|gnm_sys_data_dir (), "doc"|"${PREFIX}/share/gnome/help/gnumeric/"|' ${WRKSRC}/src/wbcg-actions.c
--- patch-gnumeric ends here ---


More information about the freebsd-ports-bugs mailing list