Github messages for voidlinux
 help / color / mirror / Atom feed
* [PR PATCH] opendkim: migrate to Python 3.
@ 2023-10-06 19:37 mhmdanas
  2023-10-10  1:49 ` [PR PATCH] [Merged]: " classabbyamp
  0 siblings, 1 reply; 2+ messages in thread
From: mhmdanas @ 2023-10-06 19:37 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 1229 bytes --]

There is a new pull request by mhmdanas against master on the void-packages repository

https://github.com/mhmdanas/void-packages opendkim-python3
https://github.com/void-linux/void-packages/pull/46492

opendkim: migrate to Python 3.
<!-- Uncomment relevant sections and delete options which are not applicable -->

#### Testing the changes
- I tested the changes in this PR: **NO**

<!--
#### New package
- This new package conforms to the [package requirements](https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#package-requirements): **YES**|**NO**
-->

<!-- Note: If the build is likely to take more than 2 hours, please add ci skip tag as described in
https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#continuous-integration
and test at least one native build and, if supported, at least one cross build.
Ignore this section if this PR is not skipping CI.
-->
<!--
#### Local build testing
- I built this PR locally for my native architecture, (ARCH-LIBC)
- I built this PR locally for these architectures (if supported. mark crossbuilds):
  - aarch64-musl
  - armv7l
  - armv6l-musl
-->


A patch file from https://github.com/void-linux/void-packages/pull/46492.patch is attached

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-opendkim-python3-46492.patch --]
[-- Type: text/x-diff, Size: 2897 bytes --]

From a9549bb52de62409d9a383a627ea8f9f1faf327c Mon Sep 17 00:00:00 2001
From: Mohammed Anas <triallax@tutanota.com>
Date: Fri, 6 Oct 2023 20:36:04 +0100
Subject: [PATCH] opendkim: migrate to Python 3.

---
 srcpkgs/opendkim/patches/python3.diff | 34 +++++++++++++++++++++++++++
 srcpkgs/opendkim/template             |  8 +++----
 2 files changed, 38 insertions(+), 4 deletions(-)
 create mode 100644 srcpkgs/opendkim/patches/python3.diff

diff --git a/srcpkgs/opendkim/patches/python3.diff b/srcpkgs/opendkim/patches/python3.diff
new file mode 100644
index 0000000000000..d307642aa00c5
--- /dev/null
+++ b/srcpkgs/opendkim/patches/python3.diff
@@ -0,0 +1,34 @@
+--- a/contrib/repute/repute.py 	2023-08-27 07:36:35.000000000 +0100
++++ b/contrib/repute/repute.py	2023-10-06 20:30:28.370530279 +0100
+@@ -1,4 +1,4 @@
+-#!/usr/bin/env python
++#!/usr/bin/env python3
+ #
+ # sudo yum-builddep  MySQL-python / sudo apt-get build-dep python-mysqldb
+ # Prereq:
+@@ -17,7 +17,6 @@
+ from saratoga.outputFormats import OutputRegistry
+ from twisted.enterprise import adbapi
+ from twisted.internet import defer
+-import itertools
+ import json
+ 
+ class DKIM(object):
+@@ -80,7 +79,7 @@
+             rows = yield self.cp.runQuery(query, {'domain': domain, 'reporter': reporter})
+ 
+             if len(rows) > 0:
+-                ret = dict(itertools.izip(fields, rows[0]))
++                ret = dict(zip(fields, rows[0]))
+             else:
+                 ret = 0
+             defer.returnValue(ret)
+@@ -104,7 +103,7 @@
+ 
+             rows = yield self.cp.runQuery(query, { 'reporter' : reporter } )
+             if len(rows) > 0:
+-                ret = dict(itertools.izip(fields, rows[0]))
++                ret = dict(zip(fields, rows[0]))
+                 request.setHeader('Last-modified', rows[0][3].strftime("%A, %d, %B %Y %H:%M GMT"))
+             else:
+                 ret = False
diff --git a/srcpkgs/opendkim/template b/srcpkgs/opendkim/template
index 0bc3a4877ef4d..e53e32d2a2400 100644
--- a/srcpkgs/opendkim/template
+++ b/srcpkgs/opendkim/template
@@ -1,7 +1,7 @@
 # Template file for 'opendkim'
 pkgname=opendkim
 version=2.10.3
-revision=14
+revision=15
 build_style=gnu-configure
 configure_args="--with-milter=${XBPS_CROSS_BASE}/usr"
 hostmakedepends="pkg-config automake gettext libtool"
@@ -13,7 +13,7 @@ license="BSD-3-Clause, Sendmail"
 homepage="http://www.opendkim.org"
 distfiles="${SOURCEFORGE_SITE}/project/${pkgname}/${pkgname}-${version}.tar.gz"
 checksum=43a0ba57bf942095fe159d0748d8933c6b1dd1117caf0273fa9a0003215e681b
-python_version=2
+python_version=3
 
 pre_configure() {
 	 autoreconf -fi
@@ -30,8 +30,8 @@ opendkim-devel_package() {
 	depends="${sourcepkg}>=${version}_${revision}"
 	pkg_install() {
 		vmove usr/include
-		vmove usr/lib/*.a
-		vmove usr/lib/*.so
+		vmove "usr/lib/*.a"
+		vmove "usr/lib/*.so"
 		vmove usr/lib/pkgconfig
 	}
 }

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [PR PATCH] [Merged]: opendkim: migrate to Python 3.
  2023-10-06 19:37 [PR PATCH] opendkim: migrate to Python 3 mhmdanas
@ 2023-10-10  1:49 ` classabbyamp
  0 siblings, 0 replies; 2+ messages in thread
From: classabbyamp @ 2023-10-10  1:49 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 1067 bytes --]

There's a merged pull request on the void-packages repository

opendkim: migrate to Python 3.
https://github.com/void-linux/void-packages/pull/46492

Description:
<!-- Uncomment relevant sections and delete options which are not applicable -->

#### Testing the changes
- I tested the changes in this PR: **NO**

<!--
#### New package
- This new package conforms to the [package requirements](https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#package-requirements): **YES**|**NO**
-->

<!-- Note: If the build is likely to take more than 2 hours, please add ci skip tag as described in
https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#continuous-integration
and test at least one native build and, if supported, at least one cross build.
Ignore this section if this PR is not skipping CI.
-->
<!--
#### Local build testing
- I built this PR locally for my native architecture, (ARCH-LIBC)
- I built this PR locally for these architectures (if supported. mark crossbuilds):
  - aarch64-musl
  - armv7l
  - armv6l-musl
-->


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2023-10-10  1:49 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-10-06 19:37 [PR PATCH] opendkim: migrate to Python 3 mhmdanas
2023-10-10  1:49 ` [PR PATCH] [Merged]: " classabbyamp

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).