pkgsrc-Changes archive

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

CVS commit: pkgsrc/mail/imap-uw/patches



Module Name:    pkgsrc
Committed By:   buhrow
Date:           Mon Jan 24 22:21:58 UTC 2022

Modified Files:
        pkgsrc/mail/imap-uw/patches: patch-ab

Log Message:
These patches fix a very long standing bug where aguments passed to utime(3) by IMAP-UW and the
c-client library were incorrect.  Unfortunately, on 32-bit systems, the the bug went unnoticed
because all the bits lined up correctly.  On 64-bit systems, this happenstance doesn't work,
meaning the mtime and atime time stamps this software modifies are completely wrong, usually
defaulting to the beginning of the epoch, but only because the random memory locations pointed
to by the incorrect pointers are  0.
Fortunately, the software package includes a portable version of the utime library call that
converts the internal usage of this function to one that's compatible with the one resident in
libc on NetBSD, FreeBSD and other BSD systems.  This patch simply enables that portable code
when compiling this package  on BSD systems while using the pkgsrc system.

These patches have been compiled and are running in production on a 64-bit NetBSD/amd64
system running NetBSD-9.2.

Fixes pkg/pr-56645


To generate a diff of this commit:
cvs rdiff -u -r1.25 -r1.26 pkgsrc/mail/imap-uw/patches/patch-ab

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: pkgsrc/mail/imap-uw/patches/patch-ab
diff -u pkgsrc/mail/imap-uw/patches/patch-ab:1.25 pkgsrc/mail/imap-uw/patches/patch-ab:1.26
--- pkgsrc/mail/imap-uw/patches/patch-ab:1.25   Mon Jan 25 23:04:49 2010
+++ pkgsrc/mail/imap-uw/patches/patch-ab        Mon Jan 24 22:21:58 2022
@@ -1,7 +1,7 @@
-$NetBSD: patch-ab,v 1.25 2010/01/25 23:04:49 tron Exp $
+$NetBSD: patch-ab,v 1.26 2022/01/24 22:21:58 buhrow Exp $
 
---- src/osdep/unix/Makefile.orig       2008-06-04 19:18:34.000000000 +0100
-+++ src/osdep/unix/Makefile    2010-01-25 22:56:57.000000000 +0000
+--- src/osdep/unix/Makefile.orig       2011-07-22 17:20:10.000000000 -0700
++++ src/osdep/unix/Makefile    2022-01-15 07:49:18.399845264 -0800
 @@ -48,7 +48,7 @@
  # Try to have some consistency in GCC builds.  We want optimization, but we
  # also want to be able to debug.
@@ -11,7 +11,7 @@ $NetBSD: patch-ab,v 1.25 2010/01/25 23:0
  GCC4CFLAGS= $(GCCCFLAGS) -Wno-pointer-sign
  
  
-@@ -149,7 +149,7 @@
+@@ -149,11 +149,11 @@
  
  # Normally no need to change any of these
  
@@ -20,7 +20,12 @@ $NetBSD: patch-ab,v 1.25 2010/01/25 23:0
  BINARIES=osdep.o mail.o misc.o newsrc.o smanager.o utf8.o utf8aux.o siglocal.o \
   dummy.o pseudo.o netmsg.o flstring.o fdstring.o \
   rfc822.o nntp.o smtp.o imap4r1.o pop3.o \
-@@ -529,7 +529,7 @@
+- unix.o mbx.o mmdf.o tenex.o mtx.o news.o phile.o mh.o mx.o mix.o
++ unix.o utime.o mbx.o mmdf.o tenex.o mtx.o news.o phile.o mh.o mx.o mix.o
+ CFLAGS=-g
+ 
+ CAT=cat
+@@ -537,7 +537,7 @@
        $(BUILD) `$(CAT) SPECIALS` OS=bsi \
         CRXTYPE=nfs \
         SPOOLDIR=/var \
@@ -29,7 +34,7 @@ $NetBSD: patch-ab,v 1.25 2010/01/25 23:0
         RSHPATH=/usr/bin/rsh \
         BASECFLAGS="$(GCCCFLAGS)" \
         BASELDFLAGS="-lcrypt"
-@@ -718,7 +718,7 @@
+@@ -726,7 +726,7 @@
         RSHPATH=/usr/bin/rsh \
         BASECFLAGS="-g -O -w" \
         BASELDFLAGS="-lsocket -lnsl -lgen" \
@@ -38,7 +43,7 @@ $NetBSD: patch-ab,v 1.25 2010/01/25 23:0
  
  
  # Note: It is a long and disgusting story about why cc is set to ucbcc.  You
-@@ -855,7 +855,7 @@
+@@ -863,7 +863,7 @@
        @$(SH) ARCHIVE
  
  .c.o:
@@ -47,7 +52,7 @@ $NetBSD: patch-ab,v 1.25 2010/01/25 23:0
  
  
  # Cleanup
-@@ -915,7 +915,7 @@
+@@ -923,7 +923,7 @@
        @echo pem.h, buffer.h, bio.h, and crypto.h, that means that OpenSSL
        @echo is not installed on your system.  Either install OpenSSL first
        @echo or build with command: make `$(CAT) OSTYPE` SSLTYPE=none
@@ -56,7 +61,7 @@ $NetBSD: patch-ab,v 1.25 2010/01/25 23:0
  
  osdep.c: osdepbas.c osdepckp.c osdeplog.c osdepssl.c
        $(CAT) osdepbas.c osdepckp.c osdeplog.c osdepssl.c > osdep.c
-@@ -968,7 +968,7 @@
+@@ -976,7 +976,7 @@
         -DLOCKPGM1=\"$(LOCKPGM1)\" -DLOCKPGM2=\"$(LOCKPGM2)\" \
         -DLOCKPGM3=\"$(LOCKPGM3)\" > OSCFLAGS
        echo $(BASELDFLAGS) $(EXTRALDFLAGS) > LDFLAGS



Home | Main Index | Thread Index | Old Index