From thierry@pompo.net  Sun Mar 10 08:18:37 2002
Return-Path: <thierry@pompo.net>
Received: from postfix2-1.free.fr (postfix2-1.free.fr [213.228.0.9])
	by hub.freebsd.org (Postfix) with ESMTP id 5C32237B400
	for <FreeBSD-gnats-submit@freebsd.org>; Sun, 10 Mar 2002 08:18:36 -0800 (PST)
Received: from graf.pompo.net (lyon-4-a7-108-154.dial.proxad.net [62.147.108.154])
	by postfix2-1.free.fr (Postfix) with ESMTP
	id 1E21D45B; Sun, 10 Mar 2002 17:18:34 +0100 (CET)
Received: by graf.pompo.net (Postfix, from userid 1001)
	id 2FEB37512; Sun, 10 Mar 2002 17:17:24 +0100 (CET)
Message-Id: <20020310161724.2FEB37512@graf.pompo.net>
Date: Sun, 10 Mar 2002 17:17:24 +0100 (CET)
From: Thierry Thomas <thierry@pompo.net>
Reply-To: Thierry Thomas <thierry@pompo.net>
To: FreeBSD-gnats-submit@freebsd.org
Cc: Oliver Helmling <oliver.helmling@web.de>,
	Scott Sipe <css3@duke.edu>
Subject: Maintainer update of mail/imp: chasing new versions of dependencies.
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         35740
>Category:       ports
>Synopsis:       Maintainer update of mail/imp: chasing new versions of dependencies.
>Confidential:   no
>Severity:       non-critical
>Priority:       high
>Responsible:    freebsd-ports
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          maintainer-update
>Submitter-Id:   current-users
>Arrival-Date:   Sun Mar 10 08:20:01 PST 2002
>Closed-Date:    Thu May 16 00:26:56 PDT 2002
>Last-Modified:  Thu May 16 00:26:56 PDT 2002
>Originator:     Thierry Thomas
>Release:        FreeBSD 4.5-STABLE i386
>Organization:
Kabbale Eros
>Environment:
System: FreeBSD graf.pompo.net 4.5-STABLE FreeBSD 4.5-STABLE #0: Sat Mar 9 11:54:44 CET 2002 root@graf.pompo.net:/usr/obj/mntsrc/src/sys/GRAF010429 i386


	
>Description:
	1) Since 2002/02/27 (v. 0.4), bin/xlhtml has been lowercased, but imp is
	   looking for bin/xlHtml.
		(Thanks to Scott Sipe <css3@duke.edu>)

	2) Since v. 0.7, wvHtml requires two arguments.
		(Thanks to Oliver Helmling <oliver.helmling@web.de>)
>How-To-Repeat:
	1) Try to install mail/imp with support for xls (default);

	2) Upgrade wvHtml to 0.7 and try to read an attached .doc.

>Fix:

	N.B.: there are already two pending PRs about this port:
	- PR ports/35046 about a better config out of the box;
	- PR ports/35051 about a recopy request.

	The following patch should be applied after these PRs.


diff -urN /usr/ports/mail/imp.orig/Makefile /usr/ports/mail/imp/Makefile
--- /usr/ports/mail/imp.orig/Makefile	Sun Feb 17 15:06:35 2002
+++ /usr/ports/mail/imp/Makefile	Sun Mar 10 15:33:49 2002
@@ -83,7 +83,7 @@
 RUN_DEPENDS+=	${LOCALBASE}/bin/wvHtml:${PORTSDIR}/textproc/wv
 .endif
 .if !defined(WITHOUT_XL)
-RUN_DEPENDS+=	${LOCALBASE}/bin/xlHtml:${PORTSDIR}/textproc/xlhtml
+RUN_DEPENDS+=	${LOCALBASE}/bin/xlhtml:${PORTSDIR}/textproc/xlhtml
 .endif
 .if !defined(WITHOUT_ZIP)
 RUN_DEPENDS+=	${LOCALBASE}/bin/zipinfo:${PORTSDIR}/archivers/unzip
@@ -177,7 +177,7 @@
 			${IMPDIR}/config/defaults.php3.dist
 	${PERL} -pi -e "s:/usr/bin/wvHtml:${LOCALBASE}/bin/wvHtml:g" \
 			${IMPDIR}/config/defaults.php3.dist
-	${PERL} -pi -e "s:/usr/bin/xlHtml:${LOCALBASE}/bin/xlHtml:g" \
+	${PERL} -pi -e "s:/usr/bin/xlHtml:${LOCALBASE}/bin/xlhtml:g" \
 			${IMPDIR}/config/defaults.php3.dist
 	${PERL} -pi -e "s:/bin/tar:/usr/bin/tar:g" ${IMPDIR}/config/defaults.php3.dist
 	${PERL} -pi -e "s:/usr/bin/zipinfo:${LOCALBASE}/bin/zipinfo:g" \
diff -urN /usr/ports/mail/imp.orig/files/patch-lib_mimetypes.lib /usr/ports/mail/imp/files/patch-lib_mimetypes.lib
--- /usr/ports/mail/imp.orig/files/patch-lib_mimetypes.lib	Thu Jan  1 01:00:00 1970
+++ /usr/ports/mail/imp/files/patch-lib_mimetypes.lib	Sun Mar 10 16:28:34 2002
@@ -0,0 +1,11 @@
+--- lib/mimetypes.lib.orig	Wed Jul 18 16:23:58 2001
++++ lib/mimetypes.lib	Sun Mar 10 16:26:33 2002
+@@ -449,7 +449,7 @@
+     fwrite( $fh, imap_base64($contents));
+     fclose( $fh );
+     
+-    $pipe = popen("$default->path_to_mswordview $word_name 2>&1","r");
++    $pipe = popen("$default->path_to_mswordview $word_name - 2>&1","r");
+     $data = "<b><u>MS Word Viewer</u></b><br><table><tr><td align=left>";
+     while( ($rc=fgets($pipe,8192)) )
+       $data.=$rc;
diff -urN /usr/ports/mail/imp.orig/pkg-plist /usr/ports/mail/imp/pkg-plist
--- /usr/ports/mail/imp.orig/pkg-plist	Wed Nov 14 22:27:23 2001
+++ /usr/ports/mail/imp/pkg-plist	Sun Mar 10 16:33:38 2002
@@ -101,6 +101,7 @@
 %%IMPDIR%%/lib/js/open_compose_win.js
 %%IMPDIR%%/lib/js/open_contacts.js
 %%IMPDIR%%/lib/mimetypes.lib
+%%IMPDIR%%/lib/mimetypes.lib.orig
 %%IMPDIR%%/lib/postconf.php3
 %%IMPDIR%%/lib/version.php
 %%IMPDIR%%/locale/ca/compose.help

>Release-Note:
>Audit-Trail:

From: Thierry Thomas <thierry@pompo.net>
To: FreeBSD-gnats-submit@freebsd.org
Cc:  
Subject: Re: ports/35740: Maintainer update of mail/imp: chasing new versions of dependencies.
Date: Sat, 30 Mar 2002 11:56:08 +0100

 Le 10 Mar 02  17:17:24 +0000, Thierry Thomas crivait:
 > 
 > >Number:         35740
 > >Category:       ports
 > >Synopsis:       Maintainer update of mail/imp: chasing new versions of dependencies.
 
 Hello,
 
 I am receiving notices form portmgr about breakages on bento: they
 have to be fixed before 5.0.
 
 Could somebody commit this PR?
 
 Thanks.
 -- 
 Th. Thomas.
State-Changed-From-To: open->closed 
State-Changed-By: sada 
State-Changed-When: Thu May 16 00:26:34 PDT 2002 
State-Changed-Why:  
Committed, thanks! 

http://www.freebsd.org/cgi/query-pr.cgi?pr=35740 
>Unformatted:
