Package: rpm-common Version: 4.10.0-2 Severity: normal Tags: patch Dear Maintainer,
The /usr/lib/rpm/macros file contains a definition of %__python that points to /usr/bin/python2.6 on my system, which is not the current default version. I believe this is due to the order in which the rpm package is built in debian/rules against different versions of python. The included patch fixes this for me by building against the "extra" pythons first, then the default python. -- System Information: Debian Release: wheezy/sid APT prefers testing APT policy: (500, 'testing') Architecture: amd64 (x86_64) Foreign Architectures: i386 Kernel: Linux 3.2.0-2-amd64 (SMP w/4 CPU cores) Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8) Shell: /bin/sh linked to /bin/dash Versions of packages rpm-common depends on: ii libc6 2.13-33 ii librpm3 4.10.0-2 ii librpmio3 4.10.0-2 rpm-common recommends no packages. rpm-common suggests no packages. -- no debconf information
>From 717fb4b2ac018b81e7a2ebc70f25b19f53af296e Mon Sep 17 00:00:00 2001 From: Mike Miller <mtmil...@ieee.org> Date: Sun, 24 Jun 2012 16:40:29 -0400 Subject: [PATCH] Configure alternate python versions before default --- debian/rules | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/debian/rules b/debian/rules index b216a5a..ca895de 100755 --- a/debian/rules +++ b/debian/rules @@ -27,20 +27,20 @@ configure_flags += \ CPPFLAGS="$(CPPFLAGS)" override_dh_auto_configure: - dh_auto_configure --builddirectory=b-default -- $(configure_flags) set -e -x; for p in $(PYEXTRA) ; do \ dh_auto_configure --builddirectory=b-python-$$p -- $(configure_flags) \ PYTHON=/usr/bin/python$$p \ __PYTHON=/usr/bin/python$$p ;\ done + dh_auto_configure --builddirectory=b-default -- $(configure_flags) override_dh_auto_build: - dh_auto_build --builddirectory=b-default set -e -x; for p in $(PYEXTRA) ; do dh_auto_build --builddirectory=b-python-$$p ; done + dh_auto_build --builddirectory=b-default override_dh_auto_install: - dh_auto_install --builddirectory=b-default set -e -x; for p in $(PYEXTRA) ; do dh_auto_install --builddirectory=b-python-$$p ; done + dh_auto_install --builddirectory=b-default # Kill all the junk this installs. rm -f debian/tmp/usr/lib/rpm/config.guess \ debian/tmp/usr/lib/rpm/config.sub \ -- 1.7.10