[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#797667: python2.7: please allow derivatives to build as parent distro

Package: python2.7
Version: 2.7.10-3
Severity: wishlist
Tags: patch


  Please consider the following patch to allow derivatives build with same
  build runes as upstream distributions.


-- System Information:
Debian Release: stretch/sid
  APT prefers unstable
  APT policy: (900, 'unstable'), (500, 'stable'), (1, 'experimental')
Architecture: i386 (i686)

Kernel: Linux 4.1.0-1-686-pae (SMP w/4 CPU cores)
Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)

Versions of packages python2.7 depends on:
ii  libpython2.7-stdlib  2.7.10-3
ii  mime-support         3.59
ii  python2.7-minimal    2.7.10-3

python2.7 recommends no packages.

Versions of packages python2.7 suggests:
ii  binutils       2.25.1-1
pn  python2.7-doc  <none>

-- no debconf information
diff -u python2.7-2.7.9/debian/rules python2.7-2.7.9/debian/rules
--- python2.7-2.7.9/debian/rules
+++ python2.7-2.7.9/debian/rules
@@ -57,6 +57,9 @@
 distribution := $(shell lsb_release -is)
 distrelease  := $(shell lsb_release -cs)
+derivative := $(shell if dpkg-vendor --derives-from Ubuntu; then echo Ubuntu; \
+               elif dpkg-vendor --derives-from Debian; then echo Debian; \
+               else echo Unknown; fi)
@@ -647,7 +650,7 @@
 		debian/control.in \
 	  | $(ma_filter) \
 	  > debian/control.tmp
-ifeq ($(distribution),Ubuntu)
+ifeq ($(derivative),Ubuntu)
   ifneq (,$(findstring ubuntu, $(PKGVERSION)))
 	m='Ubuntu Core Developers <ubuntu-devel-discuss@lists.ubuntu.com>'; \
 	sed -i "/^Maintainer:/s/\(.*\)/Maintainer: $$m\nXSBC-Original-\1/" \
@@ -1346,7 +1349,7 @@
 $(patchdir)/series: $(patchdir)/series.in
 	cpp -E \
-	  -D$(distribution) \
+	  -D$(derivative) \
 	  $(if $(filter $(broken_utimes),yes),-DBROKEN_UTIMES) \
 	  $(if $(filter $(with_fpectl),yes),-DWITH_FPECTL) \
 	  -Darch_os_$(DEB_HOST_ARCH_OS) -Darch_$(DEB_HOST_ARCH) \

Reply to: