[Pkg-virtualbox-commits] [virtualbox] 01/02: Commit Python3 switch

Gianfranco Costamagna locutusofborg at moszumanska.debian.org
Thu Sep 29 20:40:40 UTC 2016


This is an automated email from the git hooks/post-receive script.

locutusofborg pushed a commit to branch master
in repository virtualbox.

commit 1cc075e121d80d1baa28291952cc6b3639765b3d
Author: Gianfranco Costamagna <costamagnagianfranco at yahoo.it>
Date:   Wed Sep 28 20:15:04 2016 +0200

    Commit Python3 switch
---
 debian/changelog |  7 +++++++
 debian/control   |  4 ++--
 debian/rules     | 10 +++++-----
 3 files changed, 14 insertions(+), 7 deletions(-)

diff --git a/debian/changelog b/debian/changelog
index f3169e3..22ec1a9 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,10 @@
+virtualbox (5.1.8-dfsg-1) UNRELEASED; urgency=medium
+
+  * New upstream release.
+  * Switch to Python3
+
+ -- Gianfranco Costamagna <locutusofborg at debian.org>  Wed, 28 Sep 2016 20:14:35 +0200
+
 virtualbox (5.1.6-dfsg-2) unstable; urgency=medium
 
   * Tweak description to mention that dkms and source are
diff --git a/debian/control b/debian/control
index 217c605..786b87c 100644
--- a/debian/control
+++ b/debian/control
@@ -56,7 +56,7 @@ Build-Depends: bzip2,
                lynx-cur,
                makeself,
                module-assistant,
-               python-dev (>= 2.6.6-3~),
+               python3-dev,
                texlive-fonts-extra,
                texlive-fonts-recommended,
                texlive-latex-extra,
@@ -92,7 +92,7 @@ Depends: adduser,
          procps,
          virtualbox-dkms (>= ${source:Version}) | virtualbox-source (>= ${source:Version}) | virtualbox-modules,
          ${misc:Depends},
-         ${python:Depends},
+         ${python3:Depends},
          ${shlibs:Depends}
 Recommends: virtualbox-qt (= ${binary:Version}), ${shlibs:Recommends}
 Suggests: vde2, virtualbox-guest-additions-iso
diff --git a/debian/rules b/debian/rules
index 935c881..5fd1732 100755
--- a/debian/rules
+++ b/debian/rules
@@ -33,7 +33,7 @@ export DEB_BUILD_HARDENING_BINDNOW=0
 export DEB_BUILD_MAINT_OPTIONS = hardening=+all,-pie,-format,-bindnow
 
 %:
-	dh $@ --with python2,dkms,systemd
+	dh $@ --with python3,dkms,systemd
 
 override_dh_auto_configure:
 	@echo Building for $(DIST_RELEASE)
@@ -82,7 +82,7 @@ override_dh_auto_install:
 
 	export VBOX_INSTALL_PATH=$(INSTALL_PATH) && \
 	    cd out/bin/sdk/installer && \
-	    python ./vboxapisetup.py install --root $(CURDIR)/debian/$(sname)
+	    python3 ./vboxapisetup.py install --root $(CURDIR)/debian/$(sname)
 
 	sed -e 's/CVERSION/$(upstreamversion)/g' < debian/$(gdkms).links.in > debian/$(gdkms).links
 	sed -e 's/CVERSION/$(upstreamversion)/g' < debian/$(pdkms).links.in > debian/$(pdkms).links
@@ -135,9 +135,9 @@ ifneq (,$(filter $(sname), $(shell dh_listpackages)))
 	chmod 644 debian/$(sname)$(INSTALL_PATH)/*.rc;
 	chmod 644 debian/$(sname)$(INSTALL_PATH)/*.r0;
 
-	chmod 644 debian/$(sname)$(INSTALL_PATH)/sdk/bindings/xpcom/python/xpcom/*.py;
-	chmod 644 debian/$(sname)$(INSTALL_PATH)/sdk/bindings/xpcom/python/xpcom/server/*.py;
-	chmod 644 debian/$(sname)$(INSTALL_PATH)/sdk/bindings/xpcom/python/xpcom/client/*.py;
+	chmod 644 debian/$(sname)$(INSTALL_PATH)/sdk/bindings/xpcom/python3/xpcom/*.py;
+	chmod 644 debian/$(sname)$(INSTALL_PATH)/sdk/bindings/xpcom/python3/xpcom/server/*.py;
+	chmod 644 debian/$(sname)$(INSTALL_PATH)/sdk/bindings/xpcom/python3/xpcom/client/*.py;
 	chmod 644 debian/$(sname)$(INSTALL_PATH)/sdk/bindings/xpcom/java/vboxjxpcom.jar;
 
 	chmod 755 debian/$(sname)/usr/share/virtualbox/VBox.sh;

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-virtualbox/virtualbox.git



More information about the Pkg-virtualbox-commits mailing list