Index | Thread | Search

From:
Sebastien Marie <semarie@kapouay.eu.org>
Subject:
update: mail/offlineimap to latest HEAD
To:
ports@openbsd.org
Date:
Sat, 11 May 2024 11:40:23 +0200

Download raw body.

Thread
Hi,

With the switch to python-3.11 by default, mail/offlineimap stopped
working due to some (wrong) assertion:

	AssertionError: Your sqlite is not multithreading safe.

The `sqlite3.threadsafety` changed in python-3.11, the value is set
dynamically instead of hard-coding it to 1, and offlineimap is checking
for `1`.


The current version of mail/offlineimap is the latest published release
(8.0.0 from Oct 18, 2021), but the repository is somehow active (last
commit is 5 months ago) and has proper python-3.11 support.

The following diff updates mail/offlineimap to the latest commit in
HEAD. I am using the date of the commit for the patchlevel suffix.

With it, I could use offlineimap again.

Comments or OK ?
-- 
Sebastien Marie

diff /home/semarie/repos/openbsd/ports
commit - b2c7acbc7dd918d9c73dc98acda9de3fd5f78c5e
path + /home/semarie/repos/openbsd/ports
blob - cdd013dbbb04e5ada556298ef4f4ea7763df2b16
file + mail/offlineimap/Makefile
--- mail/offlineimap/Makefile
+++ mail/offlineimap/Makefile
@@ -1,13 +1,11 @@
 COMMENT=	powerful IMAP/Maildir synchronization and reader support
 
 MODPY_EGG_VERSION = 8.0.0
-#DISTNAME =	offlineimap-v${MODPY_EGG_VERSION}
-PKGNAME =	offlineimap-${MODPY_EGG_VERSION}
-REVISION =	3
+DISTNAME =	offlineimap-${MODPY_EGG_VERSION}pl20231218
 
 GH_ACCOUNT =	OfflineIMAP
 GH_PROJECT =	offlineimap3
-GH_TAGNAME =	v${MODPY_EGG_VERSION}
+GH_COMMIT =	d29a4dc459401f8a78e347cb0f8ae7670add0975
 
 CATEGORIES=	mail
 
@@ -29,8 +27,6 @@ RUN_DEPENDS=	devel/py-rfc6555${MODPY_FLAVOR} \
 		mail/py-imaplib2${MODPY_FLAVOR} \
 		sysutils/py-distro${MODPY_FLAVOR}
 
-#SITES=		https://www.offlineimap.org/uploads/
-
 EXAMPLESDIR=	${PREFIX}/share/examples/offlineimap
 
 post-build:
blob - a39897fc51ba7c4a24fac245758ea2d23d84c3a7
file + mail/offlineimap/distinfo
--- mail/offlineimap/distinfo
+++ mail/offlineimap/distinfo
@@ -1,2 +1,2 @@
-SHA256 (offlineimap3-8.0.0.tar.gz) = XUDBY8ovv4llgRbin4+nUFDQw0wpYZAZ7uGoTJD8qzI=
-SIZE (offlineimap3-8.0.0.tar.gz) = 702509
+SHA256 (offlineimap-8.0.0pl20231218-d29a4dc4.tar.gz) = NJRQ4A2UiY3AB2R8K19iAm+febCcP5pevULwdjRG/N0=
+SIZE (offlineimap-8.0.0pl20231218-d29a4dc4.tar.gz) = 705369
blob - 8462e3a21c2783a5746e2379df97963ea74d4a1c
file + mail/offlineimap/patches/patch-offlineimap_conf
--- mail/offlineimap/patches/patch-offlineimap_conf
+++ mail/offlineimap/patches/patch-offlineimap_conf
@@ -1,7 +1,7 @@
 Index: offlineimap.conf
 --- offlineimap.conf.orig
 +++ offlineimap.conf
-@@ -765,7 +765,7 @@ remotehost = examplehost
+@@ -768,7 +768,7 @@ remotehost = examplehost
  # You can also use fingerprint verification via cert_fingerprint.
  # See below for more verbose explanation.
  #