pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/mail/elmo Don't do a global s/==/=/ in the configure s...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/d4734e2faf98
branches:  trunk
changeset: 546422:d4734e2faf98
user:      dholland <dholland%pkgsrc.org@localhost>
date:      Sun Aug 31 20:09:12 2008 +0000

description:
Don't do a global s/==/=/ in the configure script; that breaks stuff.
Patch the uses of test == instead. Fixes broken build.
Also, fix interpreter handling in the installed perl script, and
fix some 64-bit issues. Mark that destdir support works.
PKGREVISION++

diffstat:

 mail/elmo/Makefile         |   14 ++---
 mail/elmo/distinfo         |   12 ++++-
 mail/elmo/patches/patch-ab |   46 ++++++++++++++++--
 mail/elmo/patches/patch-ac |   13 +++++
 mail/elmo/patches/patch-ad |   53 ++++++++++++++++++++++
 mail/elmo/patches/patch-ae |   22 +++++++++
 mail/elmo/patches/patch-af |   22 +++++++++
 mail/elmo/patches/patch-ag |   34 ++++++++++++++
 mail/elmo/patches/patch-ah |   22 +++++++++
 mail/elmo/patches/patch-ai |  107 +++++++++++++++++++++++++++++++++++++++++++++
 mail/elmo/patches/patch-aj |   14 +++++
 11 files changed, 341 insertions(+), 18 deletions(-)

diffs (truncated from 445 to 300 lines):

diff -r 54506e5c14d7 -r d4734e2faf98 mail/elmo/Makefile
--- a/mail/elmo/Makefile        Sun Aug 31 18:43:29 2008 +0000
+++ b/mail/elmo/Makefile        Sun Aug 31 20:09:12 2008 +0000
@@ -1,8 +1,8 @@
-# $NetBSD: Makefile,v 1.13 2008/01/18 05:08:23 tnn Exp $
+# $NetBSD: Makefile,v 1.14 2008/08/31 20:09:12 dholland Exp $
 #
 
 DISTNAME=              elmo-1.3.2
-PKGREVISION=           2
+PKGREVISION=           3
 CATEGORIES=            mail
 MASTER_SITES=          ${MASTER_SITE_SOURCEFORGE:=elmo/}
 
@@ -10,24 +10,20 @@
 HOMEPAGE=              http://elmo.sourceforge.net/
 COMMENT=               The ELectronic Mail Operator MUA
 
+PKG_DESTDIR_SUPPORT=   user-destdir
+
 USE_LANGUAGES=         c c++
 USE_PKGLOCALEDIR=      yes
 USE_TOOLS+=            flex
 GNU_CONFIGURE=         yes
 
-REPLACE_PERL=          elmoconf.pl
+REPLACE_PERL=          src/elmoconf.pl
 
 CONFIGURE_ARGS+=       --with-gpgme-prefix=${BUILDLINK_PREFIX.gpgme}
 CONFIGURE_ARGS+=       --with-openssl=${BUILDLINK_PREFIX.openssl}
 # I get segmentation faults when not compiled with debug enabled
 CONFIGURE_ARGS+=       --enable-debug
 
-SUBST_CLASSES+=                tux
-SUBST_STAGE.tux=       post-patch
-SUBST_FILES.tux=       configure
-SUBST_SED.tux=         -e "s|==|=|"
-SUBST_MESSAGE.tux=     Fixing linuxifications.
-
 .include "../../devel/ncurses/buildlink3.mk"
 .include "../../security/openssl/buildlink3.mk"
 .include "../../security/gpgme/buildlink3.mk"
diff -r 54506e5c14d7 -r d4734e2faf98 mail/elmo/distinfo
--- a/mail/elmo/distinfo        Sun Aug 31 18:43:29 2008 +0000
+++ b/mail/elmo/distinfo        Sun Aug 31 20:09:12 2008 +0000
@@ -1,7 +1,15 @@
-$NetBSD: distinfo,v 1.4 2005/07/16 15:40:56 wiz Exp $
+$NetBSD: distinfo,v 1.5 2008/08/31 20:09:12 dholland Exp $
 
 SHA1 (elmo-1.3.2.tar.gz) = d4e7999ce85c17df082a016fd70ee4978cfe1043
 RMD160 (elmo-1.3.2.tar.gz) = 3db1fafbbe38636459c4b1bbc3dae414e54c92d6
 Size (elmo-1.3.2.tar.gz) = 536768 bytes
 SHA1 (patch-aa) = 8bfed77e5b5bae8c649b7474a3e64a188fb96f75
-SHA1 (patch-ab) = 1c66367cda9e26b98dd475b9f87e51a74be239de
+SHA1 (patch-ab) = 64f3b1e5e913811da210b8df99076ba2dd3fd99c
+SHA1 (patch-ac) = 47287a753a78582c6d241df0af33b4231f658c50
+SHA1 (patch-ad) = 9c22a6eba18694cbbd6c8f51c467c0986a39d4f0
+SHA1 (patch-ae) = d0444df513bdf65a1fe85bfbcf273cd46dca80d2
+SHA1 (patch-af) = b6f2b8c95d720256405a47d598ca7f9703df2f3e
+SHA1 (patch-ag) = 4c6d8cc128265f7c9b5a10cca09f5ab8cd0c2e9a
+SHA1 (patch-ah) = e0607381e57acb0ea8d5939d0ed7ccae08c65ff9
+SHA1 (patch-ai) = 6e96d4bb861ffbec3e7836773133cb1c77e6510e
+SHA1 (patch-aj) = f974c1de88cc3957ce3a255a73ae690dff6cd9f1
diff -r 54506e5c14d7 -r d4734e2faf98 mail/elmo/patches/patch-ab
--- a/mail/elmo/patches/patch-ab        Sun Aug 31 18:43:29 2008 +0000
+++ b/mail/elmo/patches/patch-ab        Sun Aug 31 20:09:12 2008 +0000
@@ -1,20 +1,52 @@
-$NetBSD: patch-ab,v 1.1 2005/07/16 15:40:56 wiz Exp $
+$NetBSD: patch-ab,v 1.2 2008/08/31 20:09:12 dholland Exp $
 
---- src/stats.c.orig   Thu Apr 29 10:06:10 2004
-+++ src/stats.c
-@@ -185,6 +185,8 @@ stats_dump (void)
+--- src/stats.c.orig   2004-04-29 04:06:10.000000000 -0400
++++ src/stats.c        2008-08-31 16:01:50.000000000 -0400
+@@ -24,6 +24,8 @@
+  ****************************************************************************/
+ 
+ #include <errno.h>
++#include <stdint.h>
++#include <stdlib.h> /* for mkstemp */
+ 
+ #include "stats.h"
+ #include "wrapbox.h"
+@@ -76,7 +78,7 @@ increment (htable_t *table, char *str)
+ {
+         entry_t *entry = htable_insert (table, str, 0);
+ 
+-        entry->content = (void *) ((int) entry->content + 1);
++        entry->content = (void *) ((intptr_t) entry->content + 1);
+ }
+ 
+ 
+@@ -144,11 +146,11 @@ dump_stat (entry_t *entry)
+ {
+         float percent;
+ 
+-        percent = ((int) entry->content) /
++        percent = ((int)(intptr_t) entry->content) /
+                 (float) (wrapbox_marray->count - no_field);
+         
+         fprintf (dump_fp, " %d (%.2f%%) - ",
+-                 (int) entry->content, percent * 100.0);
++                 (int)(intptr_t) entry->content, percent * 100.0);
+         print_key (dump_fp, entry->key);
+ }
+ 
+@@ -185,6 +187,8 @@ stats_dump (void)
          FILE          *fp;
          mail_t        *mail;
          struct estats  stats;
 +      int            fd;
 +      char           fn[25] = "/tmp/elmostats.XXXXXXXXX";
-
+ 
          if (wrapbox_marray == NULL)
                  return;
-@@ -200,9 +202,12 @@ stats_dump (void)
+@@ -200,9 +204,12 @@ stats_dump (void)
                          process_mail (& stats, mail);
          }
-
+ 
 -        fp = fopen ("/tmp/elmostats", "w");
 -        if (fp == NULL){
 -                error_ (errno, _("couldn't open %s"), "/tmp/elmostats");
diff -r 54506e5c14d7 -r d4734e2faf98 mail/elmo/patches/patch-ac
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/mail/elmo/patches/patch-ac        Sun Aug 31 20:09:12 2008 +0000
@@ -0,0 +1,13 @@
+$NetBSD: patch-ac,v 1.1 2008/08/31 20:09:12 dholland Exp $
+
+--- src/mbox.c~        2004-02-22 16:58:59.000000000 -0500
++++ src/mbox.c 2008-08-31 15:28:12.000000000 -0400
+@@ -248,7 +248,7 @@ mbox_box_mail_count (const char *box, in
+ {
+         FILE       *fp;
+         int         ret;
+-        int         size;
++        size_t      size;
+         int         count;
+         char       *body;
+         char       *seek;
diff -r 54506e5c14d7 -r d4734e2faf98 mail/elmo/patches/patch-ad
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/mail/elmo/patches/patch-ad        Sun Aug 31 20:09:12 2008 +0000
@@ -0,0 +1,53 @@
+$NetBSD: patch-ad,v 1.1 2008/08/31 20:09:12 dholland Exp $
+
+--- src/mail.c.orig    2004-04-19 16:48:58.000000000 -0400
++++ src/mail.c 2008-08-31 15:41:26.000000000 -0400
+@@ -28,6 +28,7 @@
+  *    IMPLEMENTATION HEADERS
+  ****************************************************************************/
+ 
++#include <stdint.h>
+ #include <string.h>
+ #include <errno.h>
+ 
+@@ -101,8 +102,9 @@ find_parent (mail_array_t *marray, htabl
+         }
+ 
+         if (entry){
+-                parent       = mail_array_get (marray, (int) entry->content);
+-                mail->parent = (int) entry->content;
++              int index = (int)(intptr_t) entry->content;
++                parent       = mail_array_get (marray, index);
++                mail->parent = index;
+                 parent->child_count++;
+         }
+         else {
+@@ -124,8 +126,8 @@ put_msgid_into_hash (mail_array_t *marra
+         if (! mail->msg_id)
+                 return;
+ 
+-        entry = htable_insert (table, mail->msg_id, (void *) index);
+-        if (entry->content != (void *) index)
++        entry = htable_insert (table, mail->msg_id, (void *)(intptr_t) index);
++        if (entry->content != (void *)(intptr_t) index)
+                 mail->flags |= FLAG_DUPLICATE;
+ }
+ 
+@@ -878,7 +880,7 @@ prepare_nodes_array (mail_array_t *marra
+         for (i = 0; i < marray->count; i++){
+                 mail                 = mail_array_get (marray, i);
+                 nodes_array[i]       = multree_create (mail->child_count);
+-                nodes_array[i]->data = (void *) i;
++                nodes_array[i]->data = (void *)(intptr_t) i;
+         }
+ }
+ 
+@@ -886,7 +888,7 @@ prepare_nodes_array (mail_array_t *marra
+ static void
+ insert_mail (multree_t *node)
+ {
+-        mail_t    *mail = mail_array_get (sorted_array, (int) node->data);
++        mail_t    *mail = mail_array_get (sorted_array, (int)(intptr_t) node->data);
+         multree_t *parent_node;
+   
+         if (node == root)
diff -r 54506e5c14d7 -r d4734e2faf98 mail/elmo/patches/patch-ae
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/mail/elmo/patches/patch-ae        Sun Aug 31 20:09:12 2008 +0000
@@ -0,0 +1,22 @@
+$NetBSD: patch-ae,v 1.1 2008/08/31 20:09:12 dholland Exp $
+
+--- src/maildir.c~     2004-08-13 07:18:22.000000000 -0400
++++ src/maildir.c      2008-08-31 15:32:34.000000000 -0400
+@@ -347,7 +347,7 @@ reset_array (struct dirent **list, int c
+ 
+         for (i = 0; i < count; i++){
+                 htable_insert (file_table, list[i]->d_name,
+-                               (void *) (i + base));
++                               (void *)(intptr_t) (i + base));
+         }
+ }
+ 
+@@ -369,7 +369,7 @@ is_in_array (mail_t *mail)
+         if (entry == NULL)
+                 return 0;
+ 
+-        index = (int) entry->content;
++        index = (int)(intptr_t) entry->content;
+         bitarray_set (common_messages, index);
+         return 1;
+ }
diff -r 54506e5c14d7 -r d4734e2faf98 mail/elmo/patches/patch-af
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/mail/elmo/patches/patch-af        Sun Aug 31 20:09:12 2008 +0000
@@ -0,0 +1,22 @@
+$NetBSD: patch-af,v 1.1 2008/08/31 20:09:12 dholland Exp $
+
+--- configure~ 2004-08-14 08:28:07.000000000 -0400
++++ configure  2008-08-31 15:39:09.000000000 -0400
+@@ -11282,7 +11282,7 @@ fi
+ 
+ 
+ have_gpgme=no
+-if test "$GPGME4" == "no" ; then
++if test "$GPGME4" = "no" ; then
+ 
+ # Check whether --with-gpgme-prefix or --without-gpgme-prefix was given.
+ if test "${with_gpgme_prefix+set}" = set; then
+@@ -11398,7 +11398,7 @@ cat >>confdefs.h <<\_ACEOF
+ _ACEOF
+ 
+       fi
+-else if test "$GPGME4" == "yes" ; then
++else if test "$GPGME4" = "yes" ; then
+       echo "$as_me:$LINENO: checking for gpgme_check_version in -lgpgme4" >&5
+ echo $ECHO_N "checking for gpgme_check_version in -lgpgme4... $ECHO_C" >&6
+ if test "${ac_cv_lib_gpgme4_gpgme_check_version+set}" = set; then
diff -r 54506e5c14d7 -r d4734e2faf98 mail/elmo/patches/patch-ag
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/mail/elmo/patches/patch-ag        Sun Aug 31 20:09:12 2008 +0000
@@ -0,0 +1,34 @@
+$NetBSD: patch-ag,v 1.1 2008/08/31 20:09:12 dholland Exp $
+
+--- src/mime.c~        2004-08-13 07:18:22.000000000 -0400
++++ src/mime.c 2008-08-31 15:50:42.000000000 -0400
+@@ -526,8 +526,9 @@ translate (struct rfc2047 *s, char *to)
+ {
+         int      ret;
+         iconv_t  id = iconv_open (to, s->charset);
+-        char    *inptr, *outptr, *result;
+-        int      insize, outsize, ressize;
++        const char *inptr;
++        char    *outptr, *result;
++        size_t   insize, outsize, ressize;
+         int      bad_chars = 0;
+ 
+         if (id == (iconv_t) -1){
+@@ -557,10 +558,17 @@ translate (struct rfc2047 *s, char *to)
+                         insize--;
+                 }
+                 if (errno == E2BIG){
++                  if (ressize * 2 > ressize) {
+                         result   = xrealloc (result, ressize * 2);
+                         outptr  += ressize - outsize;
+                         outsize += ressize;
+                         ressize *= 2;
++                  } else {
++                     /* wrong: should report overflow */
++                     /* (but don't want to patch in a new message string) */
++                     bad_chars++;
++                     insize = 0;
++                  }
+                 }
+         }
+ 
diff -r 54506e5c14d7 -r d4734e2faf98 mail/elmo/patches/patch-ah
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/mail/elmo/patches/patch-ah        Sun Aug 31 20:09:12 2008 +0000
@@ -0,0 +1,22 @@
+$NetBSD: patch-ah,v 1.1 2008/08/31 20:09:12 dholland Exp $
+
+--- src/sender.c~      2004-08-13 07:18:23.000000000 -0400
++++ src/sender.c       2008-08-31 15:53:02.000000000 -0400
+@@ -178,7 +178,7 @@ write_headers (FILE *fp, mime_t *mime, c
+ 



Home | Main Index | Thread Index | Old Index