Once again a port thinks that the world is only built of i386 systems.
pgpring uses a md5 and sha1 implementation which do not work on big
endian systems. The results are wrong key IDs and so many operations where
keys are selected fail. pgpring is only used by pgp (gpg does not need
it).

So this patch fixes my problems on sparc64 by using the libc internal sha1
and md5 functions instead of the broken ones.

Comments?
PS: A similar diff may be needed for the stable branch.
-- 
:wq Claudio

Index: Makefile
===================================================================
RCS file: /cvs/ports/mail/mutt/snapshot/Makefile,v
retrieving revision 1.44
diff -u -p -r1.44 Makefile
--- Makefile    16 Sep 2007 00:17:05 -0000      1.44
+++ Makefile    29 Oct 2007 20:54:44 -0000
@@ -4,7 +4,7 @@ COMMENT=        tty-based e-mail client, develo
 
 VERSION=       1.5.16
 DISTNAME=      mutt-${VERSION}
-PKGNAME=       ${DISTNAME}p0
+PKGNAME=       ${DISTNAME}p1
 MASTER_SITES=  ${MASTER_SITES_MUTT:=devel/}
 
 FLAVORS=       idn sasl sidebar
Index: patches/patch-Makefile_in
===================================================================
RCS file: /cvs/ports/mail/mutt/snapshot/patches/patch-Makefile_in,v
retrieving revision 1.4
diff -u -p -r1.4 patch-Makefile_in
--- patches/patch-Makefile_in   21 Jun 2007 17:26:29 -0000      1.4
+++ patches/patch-Makefile_in   29 Oct 2007 20:54:44 -0000
@@ -1,7 +1,26 @@
 $OpenBSD: patch-Makefile_in,v 1.4 2007/06/21 17:26:29 bernd Exp $
---- Makefile.in.orig   Fri Apr  6 22:05:40 2007
-+++ Makefile.in        Sat Apr  7 11:40:35 2007
-@@ -945,7 +945,7 @@ info: info-recursive
+--- Makefile.in.orig   Sun Jun 10 04:43:26 2007
++++ Makefile.in        Mon Oct 29 21:32:35 2007
+@@ -101,8 +101,7 @@ pgpewrap_OBJECTS = pgpewrap.$(OBJEXT)
+ pgpewrap_LDADD = $(LDADD)
+ pgpewrap_DEPENDENCIES = @LIBOBJS@
+ am_pgpring_OBJECTS = pgppubring.$(OBJEXT) pgplib.$(OBJEXT) \
+-      lib.$(OBJEXT) extlib.$(OBJEXT) sha1.$(OBJEXT) md5c.$(OBJEXT) \
+-      pgppacket.$(OBJEXT) ascii.$(OBJEXT)
++      lib.$(OBJEXT) extlib.$(OBJEXT) pgppacket.$(OBJEXT) ascii.$(OBJEXT)
+ pgpring_OBJECTS = $(am_pgpring_OBJECTS)
+ binSCRIPT_INSTALL = $(INSTALL_SCRIPT)
+ SCRIPTS = $(bin_SCRIPTS)
+@@ -353,7 +352,7 @@ EXTRA_SCRIPTS = smime_keys
+ mutt_dotlock_SOURCES = mutt_dotlock.c
+ mutt_dotlock_LDADD = @LIBOBJS@
+ mutt_dotlock_DEPENDENCIES = @LIBOBJS@
+-pgpring_SOURCES = pgppubring.c pgplib.c lib.c extlib.c sha1.c md5c.c 
pgppacket.c ascii.c
++pgpring_SOURCES = pgppubring.c pgplib.c lib.c extlib.c pgppacket.c ascii.c
+ pgpring_LDADD = @LIBOBJS@ $(INTLLIBS) 
+ pgpring_DEPENDENCIES = @LIBOBJS@ $(INTLDEPS)
+ CLEANFILES = mutt_dotlock.c stamp-doc-rc makedoc \
+@@ -948,7 +947,7 @@ info: info-recursive
  
  info-am:
  

Reply via email to