Am Mittwoch, den 09.12.2015, 17:35 +0100 schrieb Michael Biebl:
> Hi
> 
> Am 09.12.2015 um 17:18 schrieb Benjamin Drung:
> > Package: python-systemd
> > Version: 231-1
> > Severity: normal
> > Tags: patch
> > 
> > Hi,
> > 
> > salt 2015.8.3+ds-1 requires python-systemd since it does not yet
> > support
> > Python 3.
> 
> Is that process tracked somewhere?

There is one open bug report for it:
https://github.com/saltstack/salt/issues/11995

> We deliberately dropped python-systemd a while ago [1] since it had
> no
> reverse dependencies and we didn't want new packages picking up a
> python2 dep.
> 
> 
> > PS: The patch also includes a run of wrap-and-sort.
> 
> Please use wrap-and-sort -a to avoid needless churn.

Done. Separate patches attached that can be applied with git am.

-- 
Benjamin Drung
System Developer
Debian & Ubuntu Developer

ProfitBricks GmbH
Greifswalder Str. 207
D - 10405 Berlin

Email: [email protected]
URL:  http://www.profitbricks.com

Sitz der Gesellschaft: Berlin.
Registergericht: Amtsgericht Charlottenburg, HRB 125506B.
Geschäftsführer: Andreas Gauger, Achim Weiss.

From 36b29308ded27d1ce7f9d6d73fd8f371f7c15b0b Mon Sep 17 00:00:00 2001
From: Benjamin Drung <[email protected]>
Date: Thu, 10 Dec 2015 10:51:38 +0100
Subject: [PATCH 1/3] Run wrap-and-sort -a

---
 debian/control | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)

diff --git a/debian/control b/debian/control
index 637fa1a..2d3db20 100644
--- a/debian/control
+++ b/debian/control
@@ -11,16 +11,16 @@ Homepage: http://www.freedesktop.org/wiki/Software/systemd
 X-Python3-Version: >=3.1
 Build-Depends: debhelper (>= 9),
                libsystemd-dev,
-               python3-all-dev,
-               pkg-config
+               pkg-config,
+               python3-all-dev
 
 Package: python3-systemd
 Section: python
 Priority: optional
 Architecture: linux-any
-Depends: ${shlibs:Depends},
-         ${misc:Depends},
-         ${python3:Depends}
+Depends: ${misc:Depends},
+         ${python3:Depends},
+         ${shlibs:Depends}
 Description: Python 3 bindings for systemd
  This package contains Python 3 bindings for native access to the
  systemd facilities.
-- 
2.5.0

From e1577179dee536dbb7c523d5a20c139362dcef3a Mon Sep 17 00:00:00 2001
From: Benjamin Drung <[email protected]>
Date: Thu, 10 Dec 2015 10:53:23 +0100
Subject: [PATCH 2/3] Introduce python-systemd (Python 2 version)

salt 2015.8.3+ds-1 requires python-systemd since it does not yet
support Python 3.

Closes: #807496
---
 debian/control | 23 +++++++++++++++++++++++
 debian/rules   |  3 ++-
 2 files changed, 25 insertions(+), 1 deletion(-)

diff --git a/debian/control b/debian/control
index 2d3db20..8768877 100644
--- a/debian/control
+++ b/debian/control
@@ -10,10 +10,33 @@ Vcs-Browser: https://anonscm.debian.org/cgit/pkg-systemd/python-systemd.git
 Homepage: http://www.freedesktop.org/wiki/Software/systemd
 X-Python3-Version: >=3.1
 Build-Depends: debhelper (>= 9),
+               dh-python,
                libsystemd-dev,
                pkg-config,
+               python-all-dev,
                python3-all-dev
 
+Package: python-systemd
+Section: python
+Priority: optional
+Architecture: linux-any
+Depends: ${misc:Depends},
+         ${python:Depends},
+         ${shlibs:Depends}
+Description: Python 2 bindings for systemd
+ This package contains Python 2 bindings for native access to the
+ systemd facilities.
+ .
+ Functionality is separated into a number of modules:
+  * systemd.journal supports sending of structured messages to the
+    journal and reading journal files
+  * systemd.daemon wraps parts of libsystemd useful for writing daemons
+    and socket activation
+  * systemd.id128 provides functions for querying machine and boot
+    identifiers and a list of message identifiers provided by systemd
+  * systemd.login wraps parts of libsystemd used to query logged in
+    users and available seats and machines
+
 Package: python3-systemd
 Section: python
 Priority: optional
diff --git a/debian/rules b/debian/rules
index 888b638..bdccc3b 100755
--- a/debian/rules
+++ b/debian/rules
@@ -2,8 +2,9 @@
 
 #export DH_VERBOSE=1
 #export DEB_BUILD_OPTIONS="nostrip"
+export PYBUILD_NAME=systemd
 
 # Explicitly tell dh to use pybuild, otherwise it will pick the
 # makefile build system.
 %:
-	dh $@ --with python3 --buildsystem=pybuild --parallel
+	dh $@ --with python2,python3 --buildsystem=pybuild --parallel
-- 
2.5.0

From 2502de4a7581c8e888bbe9bda8fa8683a372d85f Mon Sep 17 00:00:00 2001
From: Benjamin Drung <[email protected]>
Date: Thu, 10 Dec 2015 10:54:35 +0100
Subject: [PATCH 3/3] Release 231-1.1

---
 debian/changelog | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/debian/changelog b/debian/changelog
index 991a822..184a569 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,10 @@
+python-systemd (231-1.1) unstable; urgency=medium
+
+  * Non-maintainer upload.
+  * Introduce python-systemd (Python 2 version).
+
+ -- Benjamin Drung <[email protected]>  Thu, 10 Dec 2015 10:54:18 +0100
+
 python-systemd (231-1) unstable; urgency=medium
 
   [ Martin Pitt ]
-- 
2.5.0

_______________________________________________
Pkg-systemd-maintainers mailing list
[email protected]
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pkg-systemd-maintainers

Reply via email to