diff --git a/Makefile b/Makefile index 072ca15..76e3bc1 100644 --- a/Makefile +++ b/Makefile @@ -171,7 +171,7 @@ install-common: install -m 0644 -D misc/fstab $(DESTDIR)/etc/fstab # force /usr/bin before /bin to have /usr/bin/python instead of /bin/python - PATH="/usr/bin:$(PATH)" python3 setup.py install $(PYTHON_PREFIX_ARG) -O1 --root $(DESTDIR) + PATH="/usr/bin:$(PATH)" python setup.py install $(PYTHON_PREFIX_ARG) -O1 --root $(DESTDIR) mkdir -p $(DESTDIR)$(SBINDIR) mv $(DESTDIR)/usr/bin/qubes-firewall $(DESTDIR)$(SBINDIR)/qubes-firewall diff --git a/debian/control b/debian/control index 5439095..5a46faa 100644 --- a/debian/control +++ b/debian/control @@ -7,12 +7,12 @@ Build-Depends: libqubes-rpc-filecopy-dev (>= 3.1.3), libvchan-xen-dev, python, - python3-setuptools, debhelper, quilt, libxen-dev, pkg-config, dh-systemd (>= 1.5), + dh-python, lsb-release, xserver-xorg-dev, config-package-dev @@ -54,6 +54,7 @@ Depends: xenstore-utils, xinit, xserver-xorg-core, + ${python:Depends}, ${shlibs:Depends}, ${misc:Depends} Recommends: diff --git a/debian/qubes-core-agent.install b/debian/qubes-core-agent.install index e8e7b72..7967db1 100644 --- a/debian/qubes-core-agent.install +++ b/debian/qubes-core-agent.install @@ -101,8 +101,8 @@ usr/bin/qvm-run usr/bin/xenstore-watch-qubes usr/lib/NetworkManager/conf.d/30-qubes.conf usr/lib/python2.7/dist-packages/qubesxdg.py -usr/lib/python3/dist-packages/qubesagent-*.egg-info/* -usr/lib/python3/dist-packages/qubesagent/* +usr/lib/python2.7/dist-packages/qubesagent-*.egg-info/* +usr/lib/python2.7/dist-packages/qubesagent/* usr/lib/qubes-bind-dirs.d/30_cron.conf usr/lib/qubes/close-window usr/lib/qubes/dispvm-prerun.sh diff --git a/debian/rules b/debian/rules index e69edea..565d881 100755 --- a/debian/rules +++ b/debian/rules @@ -9,7 +9,7 @@ include /usr/share/dpkg/default.mk export DESTDIR=$(shell pwd)/debian/tmp %: - dh $@ --with systemd,python3 --with=config-package + dh $@ --with systemd,python2 --with=config-package override_dh_auto_build: make all diff --git a/rpm_spec/core-vm.spec b/rpm_spec/core-vm.spec index d540fff..84913ea 100644 --- a/rpm_spec/core-vm.spec +++ b/rpm_spec/core-vm.spec @@ -157,7 +157,6 @@ Requires: python2-dnf-plugins-qubes-hooks Obsoletes: qubes-core-vm-kernel-placeholder <= 1.0 Obsoletes: qubes-upgrade-vm < 3.2 BuildRequires: xen-devel -BuildRequires: python3-devel BuildRequires: libX11-devel BuildRequires: qubes-utils-devel >= 3.1.3 BuildRequires: qubes-libvchan-%{backend_vmm}-devel @@ -528,14 +527,12 @@ rm -f %{name}-%{version} /usr/share/glib-2.0/schemas/20_org.mate.NotificationDaemon.qubes.gschema.override /usr/share/glib-2.0/schemas/20_org.gnome.desktop.wm.preferences.qubes.gschema.override -%dir %{python3_sitelib}/qubesagent-*.egg-info -%{python3_sitelib}/qubesagent-*.egg-info/* -%dir %{python3_sitelib}/qubesagent -%dir %{python3_sitelib}/qubesagent/__pycache__ -%{python3_sitelib}/qubesagent/__pycache__/* -%{python3_sitelib}/qubesagent/__init__.py -%{python3_sitelib}/qubesagent/firewall.py -%{python3_sitelib}/qubesagent/test_firewall.py +%dir %{python_sitelib}/qubesagent-*-py2.7.egg-info +%{python_sitelib}/qubesagent-*-py2.7.egg-info/* +%dir %{python_sitelib}/qubesagent +%{python_sitelib}/qubesagent/__init__.py* +%{python_sitelib}/qubesagent/firewall.py* +%{python_sitelib}/qubesagent/test_firewall.py* /usr/share/qubes/mime-override/globs /usr/share/qubes/qubes-master-key.asc