summaryrefslogtreecommitdiff
path: root/debian/rules
diff options
context:
space:
mode:
authorIgor Pashev <pashev.igor@gmail.com>2019-12-01 20:18:01 +0300
committerIgor Pashev <pashev.igor@gmail.com>2019-12-01 20:18:01 +0300
commit77d81aa4a3747b7dfbb17e43b16e1a514550c60c (patch)
tree0679778b3a5b46cb96d7c57485c847b83cc78bbf /debian/rules
parentc089c4500b0b78acf03ee5405ad250a84b0dfa66 (diff)
downloadpython3.8-debian.tar.gz
Import python3.8 (3.8.0-5)debian/3.8.0-5debian
Diffstat (limited to 'debian/rules')
-rwxr-xr-xdebian/rules245
1 files changed, 121 insertions, 124 deletions
diff --git a/debian/rules b/debian/rules
index 95c4887..d44d861 100755
--- a/debian/rules
+++ b/debian/rules
@@ -24,7 +24,7 @@ DEB_HOST_MULTIARCH ?= $(call vafilt,$(DPKG_VARS),DEB_HOST_MULTIARCH)
ifeq ($(DEB_HOST_ARCH_OS),linux)
PLAT = linux
else ifeq ($(DEB_HOST_ARCH_OS),kfreebsd)
- PLAT = gnukfreebsd11
+ PLAT = gnukfreebsd10
else ifeq ($(DEB_HOST_ARCH_OS),hurd)
PLAT = gnu0
else
@@ -81,9 +81,9 @@ derivative := $(shell \
elif dpkg-vendor --derives-from Debian; then echo Debian; \
else echo Unknown; fi)
-VER=3.7
-SVER=3.7.0
-NVER=3.8
+VER=3.8
+SVER=3.8.0~a1
+NVER=3.9
PVER=python$(VER)
EXT_VER=$(subst .,,$(VER))
PRIORITY=$(shell echo $(VER) | tr -d '.')0
@@ -153,6 +153,9 @@ endif
AR=$(DEB_HOST_GNU_TYPE)-ar
RANLIB=$(DEB_HOST_GNU_TYPE)-ranlib
+# configure and dtrace consume these
+export CC CXX
+
DPKG_CPPFLAGS= $(shell $(dpkg_buildflags) --get CPPFLAGS)
DPKG_CFLAGS := $(shell $(dpkg_buildflags) --get CFLAGS)
DPKG_CFLAGS := $(subst -fstack-protector-strong,-fstack-protector,$(DPKG_CFLAGS))
@@ -181,6 +184,14 @@ ifneq (,$(findstring $(DEB_HOST_ARCH), amd64 armel armhf arm64 i386 powerpc ppc6
with_lto := yes
endif
+ifneq (,$(findstring nopgo, $(DEB_BUILD_OPTIONS)))
+ with_pgo :=
+endif
+
+ifneq (,$(findstring nolto, $(DEB_BUILD_OPTIONS)))
+ with_lto :=
+endif
+
ifneq (,$(findstring noopt, $(DEB_BUILD_OPTIONS)))
OPT_CFLAGS := $(filter-out -O%, $(OPT_CFLAGS))
EXTRA_OPT_CFLAGS = -O0
@@ -216,7 +227,7 @@ sysconfig_substflags = \
ifeq ($(derivative),Ubuntu)
arch_substvars =
else ifeq ($(derivative),Debian)
- arch_substvars = '-Vpython37:Breaks=$(shell tr '\n' ' ' < debian/py37-breaks.$(derivative))'
+ arch_substvars = # '-Vpython38:Breaks=$(shell tr '\n' ' ' < debian/py38-breaks.$(derivative))'
endif
make_build_target = $(if $(with_pgo),profile-opt)
@@ -304,10 +315,11 @@ stamps/stamp-build-static: stamps/stamp-configure-static
dh_testdir
$(MAKE) $(NJOBS) -C $(buildd_static) \
EXTRA_CFLAGS="$(EXTRA_OPT_CFLAGS)" \
+ CONFIGURE_LDFLAGS="$(DPKG_LDFLAGS) $(LTO_CFLAGS)" \
PROFILE_TASK='$(PROFILE_TASK)' $(make_build_target)
+ifeq (,$(filter nocheck,$(DEB_BUILD_OPTIONS)))
: # check that things are correctly built
-ifeq ($(DEB_HOST_GNU_TYPE),$(DEB_BUILD_GNU_TYPE))
ifneq (,$(filter $(DEB_HOST_ARCH_OS), linux))
cd $(buildd_static) && ./python -c 'from _multiprocessing import SemLock'
endif
@@ -328,7 +340,7 @@ stamps/stamp-build-shared: stamps/stamp-configure-shared
: # build a static library with PIC objects
$(MAKE) $(NJOBS) -C $(buildd_shared) \
EXTRA_CFLAGS="$(EXTRA_OPT_CFLAGS)" \
- LIBRARY=libpython$(VER)m-pic.a libpython$(VER)m-pic.a
+ LIBRARY=libpython$(VER)-pic.a libpython$(VER)-pic.a
touch stamps/stamp-build-shared
stamps/stamp-build-debug: stamps/stamp-configure-debug
@@ -336,7 +348,7 @@ stamps/stamp-build-debug: stamps/stamp-configure-debug
$(MAKE) $(NJOBS) -C $(buildd_debug) \
EXTRA_CFLAGS="$(DEBUG_CFLAGS)"
-ifeq ($(DEB_HOST_GNU_TYPE),$(DEB_BUILD_GNU_TYPE))
+ifeq (,$(filter nocheck,$(DEB_BUILD_OPTIONS)))
cd $(buildd_static) && ./python -c 'import _decimal'
cd $(buildd_debug) && ./python -c 'import math, cmath'
endif
@@ -359,6 +371,7 @@ common_configure_args = \
--without-ensurepip \
--with-system-expat \
--with-system-libmpdec \
+ --with-dtrace \
ifneq (,$(filter $(DEB_HOST_ARCH), avr32 or1k))
common_configure_args += --without-ffi
@@ -382,8 +395,8 @@ stamps/stamp-configure-shared: stamps/stamp-patch
rm -rf $(buildd_shared)
mkdir -p $(buildd_shared)
cd $(buildd_shared) && \
- CC="$(CC)" CXX="$(CXX)" AR="$(AR)" RANLIB="$(RANLIB)" CFLAGS="$(OPT_CFLAGS)" \
- CPPFLAGS="$(DPKG_CPPFLAGS)" LDFLAGS="$(DPKG_LDFLAGS)" \
+ AR="$(AR)" RANLIB="$(RANLIB)" CFLAGS="$(OPT_CFLAGS)" \
+ CPPFLAGS="$(DPKG_CPPFLAGS)" LDFLAGS="$(DPKG_LDFLAGS) $(LTO_CFLAGS)" \
$(config_site) \
../configure \
--enable-shared \
@@ -400,8 +413,8 @@ stamps/stamp-configure-static: stamps/stamp-patch
rm -rf $(buildd_static)
mkdir -p $(buildd_static)
cd $(buildd_static) && \
- CC="$(CC)" CXX="$(CXX)" AR="$(AR)" RANLIB="$(RANLIB)" CFLAGS="$(OPT_CFLAGS)" \
- CPPFLAGS="$(DPKG_CPPFLAGS)" LDFLAGS="$(DPKG_LDFLAGS)" \
+ AR="$(AR)" RANLIB="$(RANLIB)" CFLAGS="$(OPT_CFLAGS)" \
+ CPPFLAGS="$(DPKG_CPPFLAGS)" LDFLAGS="$(DPKG_LDFLAGS) $(LTO_CFLAGS)" \
$(config_site) \
../configure \
$(common_configure_args)
@@ -413,7 +426,7 @@ stamps/stamp-configure-debug: stamps/stamp-patch
rm -rf $(buildd_debug)
mkdir -p $(buildd_debug)
cd $(buildd_debug) && \
- CC="$(CC)" CXX="$(CXX)" AR="$(AR)" RANLIB="$(RANLIB)" CFLAGS="$(DEBUG_CFLAGS)" \
+ AR="$(AR)" RANLIB="$(RANLIB)" CFLAGS="$(DEBUG_CFLAGS)" \
CPPFLAGS="$(DPKG_CPPFLAGS)" LDFLAGS="$(DPKG_LDFLAGS)" \
$(config_site) \
../configure \
@@ -427,7 +440,7 @@ stamps/stamp-configure-shared-debug: stamps/stamp-patch
rm -rf $(buildd_shdebug)
mkdir -p $(buildd_shdebug)
cd $(buildd_shdebug) && \
- CC="$(CC)" CXX="$(CXX)" AR="$(AR)" RANLIB="$(RANLIB)" CFLAGS="$(DEBUG_CFLAGS)" \
+ AR="$(AR)" RANLIB="$(RANLIB)" CFLAGS="$(DEBUG_CFLAGS)" \
CPPFLAGS="$(DPKG_CPPFLAGS)" LDFLAGS="$(DPKG_LDFLAGS)" \
$(config_site) \
../configure \
@@ -441,14 +454,14 @@ stamps/stamp-configure-shared-debug: stamps/stamp-patch
define __post_configure
egrep \
"^#($$(awk -v ORS='|' '$$2 ~ /^extension$$/ {print $$1}' debian/PVER-minimal.README.Debian.in)XX)" \
- Modules/Setup.dist \
+ Modules/Setup \
| sed -e 's/^#//' -e 's/-Wl,-Bdynamic//;s/-Wl,-Bstatic//' \
>> $(1)/Modules/Setup.local
: # unconditionally run makesetup
cd $(1) && \
../Modules/makesetup -c ../Modules/config.c.in -s Modules \
- Modules/Setup.local Modules/Setup
+ Modules/Setup.local ../Modules/Setup
mv $(1)/config.c $(1)/Modules/
: # and fix the timestamps
@@ -779,9 +792,6 @@ stamps/stamp-control:
help2man --no-info --version-string=$(VER) --no-discard-stderr \
--name 'pysetup tool' \
pysetup$(VER) > debian/pysetup3.1
- help2man --no-info --version-string=$(VER) --no-discard-stderr \
- --name 'create virtual python environments' \
- pyvenv-$(VER) > debian/pyvenv3.1
install: build-arch stamps/stamp-install
stamps/stamp-install: stamps/stamp-build control-file stamps/stamp-control
@@ -797,18 +807,18 @@ ifeq ($(with_interp),static)
$(MAKE) -C $(buildd_static) install DESTDIR=$(CURDIR)/$(d)
ls -l $(d)/$(scriptdir)/_sysconfigdata*
sed $(sysconfig_substflags) \
- $(buildd_shared)/$(shell cat $(buildd_shared)/pybuilddir.txt)/_sysconfigdata_m_$(PLAT)_$(DEB_HOST_MULTIARCH).py \
- > $(d)/$(scriptdir)/_sysconfigdata_m_$(PLAT)_$(DEB_HOST_MULTIARCH).py
+ $(buildd_shared)/$(shell cat $(buildd_shared)/pybuilddir.txt)/_sysconfigdata__$(DEB_HOST_MULTIARCH).py \
+ > $(d)/$(scriptdir)/_sysconfigdata__$(DEB_HOST_MULTIARCH).py
else
$(MAKE) -C $(buildd_shared) install DESTDIR=$(CURDIR)/$(d)
endif
- mkdir -p $(d)/usr/include/$(DEB_HOST_MULTIARCH)/$(PVER)m
- mv $(d)/usr/include/$(PVER)m/pyconfig.h \
- $(d)/usr/include/$(DEB_HOST_MULTIARCH)/$(PVER)m/.
+ mkdir -p $(d)/usr/include/$(DEB_HOST_MULTIARCH)/$(PVER)
+ mv $(d)/usr/include/$(PVER)/pyconfig.h \
+ $(d)/usr/include/$(DEB_HOST_MULTIARCH)/$(PVER)/.
rm -f $(d)/$(scriptdir)/lib-dynload/*.py
ls -l $(d)/$(scriptdir)/_sysconfigdata*
sed -i $(sysconfig_substflags) \
- $(d)/$(scriptdir)/_sysconfigdata_m_$(PLAT)_$(DEB_HOST_MULTIARCH).py
+ $(d)/$(scriptdir)/_sysconfigdata__$(DEB_HOST_MULTIARCH).py
-find $(d)/usr/lib/python$(VER) -name '*_failed*.so'
find $(d)/usr/lib/python$(VER) -name '*_failed*.so' | xargs -r rm -f
@@ -853,37 +863,36 @@ endif
mkdir -p $(d)/usr/share/man/man1
cp -p Misc/python.man $(d)/usr/share/man/man1/python$(VER).1
- ln -sf python$(VER).1 $(d)/usr/share/man/man1/python$(VER)m.1
cp -p debian/pydoc.1 $(d)/usr/share/man/man1/pydoc$(VER).1
: # Symlinks to /usr/bin for some tools
ln -sf ../lib/python$(VER)/pdb.py $(d)/usr/bin/pdb$(VER)
cp -p debian/pdb.1 $(d)/usr/share/man/man1/pdb$(VER).1
cp -p debian/pysetup3.1 $(d)/usr/share/man/man1/pysetup$(VER).1
- cp -p debian/pyvenv3.1 $(d)/usr/share/man/man1/pyvenv-$(VER).1
: # versioned install only
rm -f $(d)/usr/bin/{2to3,idle3,pydoc3,pysetup3,python3,python3-config}
rm -f $(d)/usr/lib/*/pkgconfig/python3.pc
+ rm -f $(d)/usr/lib/*/pkgconfig/python3-embed.pc
dh_installdirs -p$(p_lib) \
usr/lib/$(DEB_HOST_MULTIARCH) \
$(scriptdir)/config-$(VER)m-$(DEB_HOST_MULTIARCH) \
usr/share/doc
: # install the shared library
- cp -p $(buildd_shared)/libpython$(VER)m.so.1.0 \
+ cp -p $(buildd_shared)/libpython$(VER).so.1.0 \
$(d_lib)/usr/lib/$(DEB_HOST_MULTIARCH)/
dh_link -p$(p_lib) \
- /usr/lib/$(DEB_HOST_MULTIARCH)/libpython$(VER)m.so.1.0 \
- /usr/lib/$(DEB_HOST_MULTIARCH)/libpython$(VER)m.so.1 \
- /usr/lib/$(DEB_HOST_MULTIARCH)/libpython$(VER)m.so.1 \
- /$(scriptdir)/config-$(VER)m-$(DEB_HOST_MULTIARCH)/libpython$(VER)m.so \
- /usr/lib/$(DEB_HOST_MULTIARCH)/libpython$(VER)m.so.1 \
- /$(scriptdir)/config-$(VER)m-$(DEB_HOST_MULTIARCH)/libpython$(VER).so
+ /usr/lib/$(DEB_HOST_MULTIARCH)/libpython$(VER).so.1.0 \
+ /usr/lib/$(DEB_HOST_MULTIARCH)/libpython$(VER).so.1 \
+ /usr/lib/$(DEB_HOST_MULTIARCH)/libpython$(VER).so.1 \
+ /$(scriptdir)/config-$(VER)-$(DEB_HOST_MULTIARCH)/libpython$(VER).so \
+ /usr/lib/$(DEB_HOST_MULTIARCH)/libpython$(VER).so.1 \
+ /$(scriptdir)/config-$(VER)-$(DEB_HOST_MULTIARCH)/libpython$(VER).so
ln -sf $(p_base) $(d_lib)/usr/share/doc/$(p_lib)
- ln -sf libpython$(VER)m.so.1 $(d)/usr/lib/$(DEB_HOST_MULTIARCH)/libpython$(VER)m.so
+ ln -sf libpython$(VER).so.1 $(d)/usr/lib/$(DEB_HOST_MULTIARCH)/libpython$(VER).so
ifeq ($(with_interp),shared)
: # install the statically linked runtime
@@ -896,7 +905,7 @@ endif
: # install the Makefile of the shared python build
sed $(sysconfig_substflags) \
$(buildd_shared)/Makefile \
- > $(d)/$(scriptdir)/config-$(VER)m-$(DEB_HOST_MULTIARCH)/Makefile
+ > $(d)/$(scriptdir)/config-$(VER)-$(DEB_HOST_MULTIARCH)/Makefile
: # Move the minimal libraries into $(p_lmin).
dh_installdirs -p$(p_lmin) \
@@ -914,7 +923,7 @@ endif
$(foreach i,$(MIN_PACKAGES),$(scriptdir)/$(i)) \
$(foreach i,$(MIN_ENCODINGS),$(scriptdir)/$(i)) \
$(scriptdir)/site.py \
- $(scriptdir)/_sysconfigdata_m_$(PLAT)_$(DEB_HOST_MULTIARCH).py \
+ $(scriptdir)/_sysconfigdata__$(DEB_HOST_MULTIARCH).py \
`cd $(d); for i in $(MIN_EXTS); do \
test -e $(scriptdir)/lib-dynload/$$i.*.so \
&& echo $(scriptdir)/lib-dynload/$$i.*.so; \
@@ -927,9 +936,7 @@ endif
usr/share/man/man1
$(dh_compat2) dh_movefiles -p$(p_min) --sourcedir=$(d) \
usr/bin/python$(VER) \
- usr/bin/python$(VER)m \
- usr/share/man/man1/python$(VER).1 \
- usr/share/man/man1/python$(VER)m.1
+ usr/share/man/man1/python$(VER).1
rv=0; \
for i in $(MIN_EXTS); do \
@@ -949,8 +956,7 @@ endif
# mv $(d)/usr/share/include/python$(VER)/* $(d)/usr/include/python$(VER)/.
# rm -rf $(d)/usr/share/include
- cp $(d)/usr/bin/$(PVER)m-config $(d)/usr/bin/$(DEB_HOST_MULTIARCH)-$(PVER)m-config
- ln -sf $(DEB_HOST_MULTIARCH)-$(PVER)m-config $(d)/usr/bin/$(DEB_HOST_MULTIARCH)-$(PVER)-config
+ cp $(d)/usr/bin/$(PVER)-config $(d)/usr/bin/$(DEB_HOST_MULTIARCH)-$(PVER)-config
dh_installdirs -p$(p_ldev) \
usr/bin \
@@ -960,29 +966,30 @@ endif
$(dh_compat2) dh_movefiles -p$(p_ldev) --sourcedir=$(d) \
usr/bin/$(DEB_HOST_MULTIARCH)-$(PVER)*-config \
- usr/lib/python$(VER)/config-$(VER)m-$(DEB_HOST_MULTIARCH) \
+ usr/lib/python$(VER)/config-$(VER)-$(DEB_HOST_MULTIARCH) \
usr/include \
- usr/lib/$(DEB_HOST_MULTIARCH)/libpython$(VER)m.{a,so} \
+ usr/lib/$(DEB_HOST_MULTIARCH)/libpython$(VER).{a,so} \
usr/lib/$(DEB_HOST_MULTIARCH)/pkgconfig/python-$(VER)*.pc \
usr/lib/python$(VER)/distutils/command/wininst-*.exe
- sed 's/@subdir@/$(PVER)m/;s/@header@/pyconfig.h/' \
- debian/multiarch.h.in > $(d_ldev)/usr/include/$(PVER)m/pyconfig.h
+ sed 's/@subdir@/$(PVER)/;s/@header@/pyconfig.h/' \
+ debian/multiarch.h.in > $(d_ldev)/usr/include/$(PVER)/pyconfig.h
sed -i \
- -e '/^Cflags:/s,$$, -I$${includedir}/$(DEB_HOST_MULTIARCH)/python$(VER)m,' \
+ -e '/^Cflags:/s,$$, -I$${includedir}/$(DEB_HOST_MULTIARCH)/python$(VER),' \
-e '/^libdir=/d;s/-L\$${libdir} *//' \
$(d_ldev)/usr/lib/$(DEB_HOST_MULTIARCH)/pkgconfig/python-$(VER).pc
dh_link -p$(p_ldev) \
- /usr/lib/$(PVER)/config-$(VER)m-$(DEB_HOST_MULTIARCH)/libpython$(VER)m.a \
- /usr/lib/$(DEB_HOST_MULTIARCH)/libpython$(VER)m.a
+ /usr/lib/$(PVER)/config-$(VER)-$(DEB_HOST_MULTIARCH)/libpython$(VER).a \
+ /usr/lib/$(DEB_HOST_MULTIARCH)/libpython$(VER).a
- cp -p $(buildd_shared)/libpython$(VER)m-pic.a \
- $(d_ldev)/usr/lib/python$(VER)/config-$(VER)m-$(DEB_HOST_MULTIARCH)/
+ cp -p $(buildd_shared)/libpython$(VER)-pic.a \
+ $(d_ldev)/usr/lib/python$(VER)/config-$(VER)-$(DEB_HOST_MULTIARCH)/
- : # symlinks for the "old" include directory name
- ln -sf python$(VER)m $(d_ldev)/usr/include/python$(VER)
+# FIXME
+# : # symlinks for the "old" include directory name
+# ln -sf python$(VER)m $(d_ldev)/usr/include/python$(VER)
dh_installdirs -p$(p_dev) \
usr/share/doc/python$(VER) \
@@ -999,21 +1006,13 @@ endif
: # in $(p_ldev), prefix python-config with triplets
cp -p debian/python3-config.1 \
- $(d_ldev)/usr/share/man/man1/$(DEB_HOST_MULTIARCH)-$(PVER)m-config.1
- ln -sf $(DEB_HOST_MULTIARCH)-$(PVER)m-config.1.gz \
- $(d_ldev)/usr/share/man/man1/$(DEB_HOST_MULTIARCH)-$(PVER)-config.1.gz
+ $(d_ldev)/usr/share/man/man1/$(DEB_HOST_MULTIARCH)-$(PVER)-config.1
ifneq ($(DEB_HOST_MULTIARCH),$(DEB_HOST_GNU_TYPE))
- ln -sf $(DEB_HOST_MULTIARCH)-$(PVER)m-config \
- $(d_ldev)/usr/bin/$(DEB_HOST_GNU_TYPE)-$(PVER)m-config
ln -sf $(DEB_HOST_MULTIARCH)-$(PVER)-config \
$(d_ldev)/usr/bin/$(DEB_HOST_GNU_TYPE)-$(PVER)-config
ln -sf $(DEB_HOST_MULTIARCH)-$(PVER)-config.1.gz \
$(d_ldev)/usr/share/man/man1/$(DEB_HOST_GNU_TYPE)-$(PVER)-config.1.gz
- ln -sf $(DEB_HOST_MULTIARCH)-$(PVER)-config.1.gz \
- $(d_ldev)/usr/share/man/man1/$(DEB_HOST_GNU_TYPE)-$(PVER)m-config.1.gz
endif
- ln -sf $(DEB_HOST_MULTIARCH)-$(PVER)m-config $(d_dev)/usr/bin/$(PVER)m-config
- ln -sf $(DEB_HOST_MULTIARCH)-$(PVER)m-config.1.gz $(d_dev)/usr/share/man/man1/$(PVER)m-config.1.gz
ln -sf $(DEB_HOST_MULTIARCH)-$(PVER)-config $(d_dev)/usr/bin/$(PVER)-config
ln -sf $(DEB_HOST_MULTIARCH)-$(PVER)-config.1.gz $(d_dev)/usr/share/man/man1/$(PVER)-config.1.gz
@@ -1133,12 +1132,8 @@ endif
: # pyvenv and ensurepip files into $(p_venv)
dh_installdirs -p$(p_venv) \
- usr/bin \
- usr/share/man/man1 \
usr/lib/python$(VER)
dh_movefiles -p$(p_venv) \
- usr/bin/pyvenv-$(VER) \
- usr/share/man/man1/pyvenv-$(VER).1 \
usr/lib/python$(VER)/ensurepip
: # library files into $(p_lbase)
@@ -1151,7 +1146,6 @@ endif
mkdir -p $(d)/usr/lib/python3/dist-packages
(cd $(d) && tar cf - .) | (cd $(d_base) && tar xpf -)
rm -f $(d_base)/usr/bin/python
- rm -f $(d_base)/usr/bin/pyvenv
: # Install menu icon
dh_installdirs -p$(p_base) usr/share/pixmaps
@@ -1184,19 +1178,19 @@ endif
: # install the Makefile of the shared python debug build
sed $(sysconfig_substflags) \
$(buildd_shdebug)/Makefile \
- > $(d)-dbg/$(scriptdir)/config-$(VER)dm-$(DEB_HOST_MULTIARCH)/Makefile
+ > $(d)-dbg/$(scriptdir)/config-$(VER)d-$(DEB_HOST_MULTIARCH)/Makefile
sed $(sysconfig_substflags) \
- $(buildd_shdebug)/$(shell cat $(buildd_shdebug)/pybuilddir.txt)/_sysconfigdata_dm_$(PLAT)_$(DEB_HOST_MULTIARCH).py \
- > $(d)-dbg/$(scriptdir)/_sysconfigdata_dm_$(PLAT)_$(DEB_HOST_MULTIARCH).py
+ $(buildd_shdebug)/$(shell cat $(buildd_shdebug)/pybuilddir.txt)/_sysconfigdata_d_$(DEB_HOST_MULTIARCH).py \
+ > $(d)-dbg/$(scriptdir)/_sysconfigdata_d_$(DEB_HOST_MULTIARCH).py
sed -i $(sysconfig_substflags) \
- $(d)-dbg/$(scriptdir)/_sysconfigdata_dm_$(PLAT)_$(DEB_HOST_MULTIARCH).py
+ $(d)-dbg/$(scriptdir)/_sysconfigdata_d_$(DEB_HOST_MULTIARCH).py
mv $(d)-dbg/usr/lib/libpython*.a $(d)-dbg/usr/lib/$(DEB_HOST_MULTIARCH)/
for i in $(d)-dbg/$(scriptdir)/lib-dynload/*.so; do \
case "$$i" in *$(DEB_HOST_MULTIARCH)*) continue; esac; \
- b=$$(basename $$i .cpython-$(EXT_VER)dm.so); \
- d=$${b}.cpython-$(EXT_VER)dm-$(DEB_HOST_MULTIARCH).so; \
+ b=$$(basename $$i .cpython-$(EXT_VER)d.so); \
+ d=$${b}.cpython-$(EXT_VER)d-$(DEB_HOST_MULTIARCH).so; \
mv $$i $(d)-dbg/$(scriptdir)/lib-dynload/$$d; \
done
@@ -1204,25 +1198,29 @@ endif
usr/bin \
usr/share/man/man1 \
$(scriptdir)/lib-dynload \
- usr/include/$(PVER)dm \
- usr/include/$(DEB_HOST_MULTIARCH)/$(PVER)dm \
+ usr/include/$(PVER)d \
+ usr/include/$(DEB_HOST_MULTIARCH)/$(PVER)d \
usr/lib/$(DEB_HOST_MULTIARCH)/pkgconfig
cp -p $(d)-dbg/$(scriptdir)/lib-dynload/*.so \
$(d_ldbg)/$(scriptdir)/lib-dynload/
- cp -p $(d)-dbg/$(scriptdir)/_sysconfigdata_dm_$(PLAT)_$(DEB_HOST_MULTIARCH).py \
+ cp -p $(d)-dbg/$(scriptdir)/_sysconfigdata_d_$(DEB_HOST_MULTIARCH).py \
$(d_ldbg)/$(scriptdir)/
- cp -p $(buildd_shdebug)/libpython$(VER)dm.so.1.0 \
+ cp -p $(buildd_shdebug)/libpython$(VER)d.so.1.0 \
$(d_ldbg)/usr/lib/$(DEB_HOST_MULTIARCH)/
dh_link -p$(p_ldbg) \
- /usr/lib/$(DEB_HOST_MULTIARCH)/libpython$(VER)dm.so.1.0 \
- /usr/lib/$(DEB_HOST_MULTIARCH)/libpython$(VER)dm.so.1 \
- /usr/lib/$(DEB_HOST_MULTIARCH)/libpython$(VER)dm.so.1 \
- /usr/lib/$(DEB_HOST_MULTIARCH)/libpython$(VER)dm.so
- cp $(d)-dbg/usr/lib/$(DEB_HOST_MULTIARCH)/pkgconfig/python-$(VER)dm.pc \
+ /usr/lib/$(DEB_HOST_MULTIARCH)/libpython$(VER)d.so.1.0 \
+ /usr/lib/$(DEB_HOST_MULTIARCH)/libpython$(VER)d.so.1 \
+ /usr/lib/$(DEB_HOST_MULTIARCH)/libpython$(VER)d.so.1 \
+ /usr/lib/$(DEB_HOST_MULTIARCH)/libpython$(VER)d.so
+ cp $(d)-dbg/usr/lib/$(DEB_HOST_MULTIARCH)/pkgconfig/python-$(VER)d.pc \
$(d_ldbg)/usr/lib/$(DEB_HOST_MULTIARCH)/pkgconfig/.
- ln -s python-$(VER)dm.pc \
+ ln -s python-$(VER)d.pc \
$(d_ldbg)/usr/lib/$(DEB_HOST_MULTIARCH)/pkgconfig/python-$(VER)-dbg.pc
+ cp $(d)-dbg/usr/lib/$(DEB_HOST_MULTIARCH)/pkgconfig/python-$(VER)d-embed.pc \
+ $(d_ldbg)/usr/lib/$(DEB_HOST_MULTIARCH)/pkgconfig/.
+ ln -s python-$(VER)d-embed.pc \
+ $(d_ldbg)/usr/lib/$(DEB_HOST_MULTIARCH)/pkgconfig/python-$(VER)-dbg-embed.pc
dh_installdirs -p$(p_dbg) \
usr/bin \
@@ -1231,8 +1229,8 @@ endif
cp -p Misc/SpecialBuilds.txt $(d_dbg)/usr/share/doc/$(p_base)/
cp -p debian/$(PVER)-dbg.README.Debian \
$(d_dbg)/usr/share/doc/$(p_base)/README.debug
- cp -p $(buildd_debug)/python $(d_dbg)/usr/bin/$(PVER)dm
- ln -sf python$(VER)dm $(d_dbg)/usr/bin/$(PVER)-dbg
+ cp -p $(buildd_debug)/python $(d_dbg)/usr/bin/$(PVER)d
+ ln -sf python$(VER)d $(d_dbg)/usr/bin/$(PVER)-dbg
ifneq ($(with_tk),yes)
rm -f $(d_ldbg)/$(scriptdir)/lib-dynload/_tkinter*.so
@@ -1243,67 +1241,67 @@ ifneq ($(with_gdbm),yes)
rm -f $(d_ldbg)/usr/lib/debug/$(scriptdir)/lib-dynload/_gdbm*.so
endif
- cp -a $(d)-dbg/$(scriptdir)/config-$(VER)dm-$(DEB_HOST_MULTIARCH) \
+ cp -a $(d)-dbg/$(scriptdir)/config-$(VER)d-$(DEB_HOST_MULTIARCH) \
$(d_ldbg)/$(scriptdir)/
dh_link -p$(p_ldbg) \
- /usr/lib/$(DEB_HOST_MULTIARCH)/libpython$(VER)dm.so \
- /$(scriptdir)/config-$(VER)dm-$(DEB_HOST_MULTIARCH)/libpython$(VER)dm.so \
- /usr/lib/$(DEB_HOST_MULTIARCH)/libpython$(VER)dm.so \
- /$(scriptdir)/config-$(VER)dm-$(DEB_HOST_MULTIARCH)/libpython$(VER).so \
- /$(scriptdir)/config-$(VER)dm-$(DEB_HOST_MULTIARCH)/libpython$(VER)dm.a \
- /usr/lib/$(DEB_HOST_MULTIARCH)/libpython$(VER)dm.a
-
- for i in $(d_ldev)/usr/include/$(PVER)m/*; do \
+ /usr/lib/$(DEB_HOST_MULTIARCH)/libpython$(VER)d.so \
+ /$(scriptdir)/config-$(VER)d-$(DEB_HOST_MULTIARCH)/libpython$(VER)d.so \
+ /usr/lib/$(DEB_HOST_MULTIARCH)/libpython$(VER)d.so \
+ /$(scriptdir)/config-$(VER)d-$(DEB_HOST_MULTIARCH)/libpython$(VER).so \
+ /$(scriptdir)/config-$(VER)d-$(DEB_HOST_MULTIARCH)/libpython$(VER)d.a \
+ /usr/lib/$(DEB_HOST_MULTIARCH)/libpython$(VER)d.a
+
+ for i in $(d_ldev)/usr/include/$(PVER)/*; do \
i=$$(basename $$i); \
case $$i in pyconfig.h) continue; esac; \
- ln -sf ../$(PVER)m/$$i $(d_ldbg)/usr/include/$(PVER)dm/$$i; \
+ ln -sf ../$(PVER)/$$i $(d_ldbg)/usr/include/$(PVER)d/$$i; \
done
- cp -p $(buildd_debug)/pyconfig.h $(d_ldbg)/usr/include/$(DEB_HOST_MULTIARCH)/$(PVER)dm/
- sed 's/@subdir@/$(PVER)dm/;s/@header@/pyconfig.h/' \
- debian/multiarch.h.in > $(d_ldbg)/usr/include/$(PVER)dm/pyconfig.h
+ cp -p $(buildd_debug)/pyconfig.h $(d_ldbg)/usr/include/$(DEB_HOST_MULTIARCH)/$(PVER)d/
+ sed 's/@subdir@/$(PVER)d/;s/@header@/pyconfig.h/' \
+ debian/multiarch.h.in > $(d_ldbg)/usr/include/$(PVER)d/pyconfig.h
ln -sf $(PVER).1.gz $(d_dbg)/usr/share/man/man1/$(PVER)-dbg.1.gz
: # in $(p_ldbg), prefix python-config with triplets
- cp $(d)-dbg/usr/bin/$(PVER)dm-config \
- $(d_ldbg)/usr/bin/$(DEB_HOST_MULTIARCH)-$(PVER)dm-config
- ln -sf $(DEB_HOST_MULTIARCH)-$(PVER)dm-config \
+ cp $(d)-dbg/usr/bin/$(PVER)d-config \
+ $(d_ldbg)/usr/bin/$(DEB_HOST_MULTIARCH)-$(PVER)d-config
+ ln -sf $(DEB_HOST_MULTIARCH)-$(PVER)d-config \
$(d_ldbg)/usr/bin/$(DEB_HOST_MULTIARCH)-$(PVER)-dbg-config
- ln -sf $(DEB_HOST_MULTIARCH)-$(PVER)m-config.1.gz \
- $(d_ldbg)/usr/share/man/man1/$(DEB_HOST_MULTIARCH)-$(PVER)dm-config.1.gz
- ln -sf $(DEB_HOST_MULTIARCH)-$(PVER)m-config.1.gz \
+ ln -sf $(DEB_HOST_MULTIARCH)-$(PVER)-config.1.gz \
+ $(d_ldbg)/usr/share/man/man1/$(DEB_HOST_MULTIARCH)-$(PVER)d-config.1.gz
+ ln -sf $(DEB_HOST_MULTIARCH)-$(PVER)-config.1.gz \
$(d_ldbg)/usr/share/man/man1/$(DEB_HOST_MULTIARCH)-$(PVER)-dbg-config.1.gz
ifneq ($(DEB_HOST_MULTIARCH),$(DEB_HOST_GNU_TYPE))
- ln -sf $(DEB_HOST_MULTIARCH)-$(PVER)dm-config \
- $(d_ldbg)/usr/bin/$(DEB_HOST_GNU_TYPE)-$(PVER)dm-config
+ ln -sf $(DEB_HOST_MULTIARCH)-$(PVER)d-config \
+ $(d_ldbg)/usr/bin/$(DEB_HOST_GNU_TYPE)-$(PVER)d-config
ln -sf $(DEB_HOST_MULTIARCH)-$(PVER)-config.1.gz \
- $(d_ldbg)/usr/share/man/man1/$(DEB_HOST_GNU_TYPE)-$(PVER)dm-config.1.gz
- ln -sf $(DEB_HOST_MULTIARCH)-$(PVER)dm-config \
+ $(d_ldbg)/usr/share/man/man1/$(DEB_HOST_GNU_TYPE)-$(PVER)d-config.1.gz
+ ln -sf $(DEB_HOST_MULTIARCH)-$(PVER)d-config \
$(d_ldbg)/usr/bin/$(DEB_HOST_GNU_TYPE)-$(PVER)-dbg-config
- ln -sf $(DEB_HOST_MULTIARCH)-$(PVER)dm-config.1.gz \
+ ln -sf $(DEB_HOST_MULTIARCH)-$(PVER)d-config.1.gz \
$(d_ldbg)/usr/share/man/man1/$(DEB_HOST_GNU_TYPE)-$(PVER)-dbg-config.1.gz
endif
- ln -sf $(DEB_HOST_MULTIARCH)-$(PVER)dm-config $(d_dbg)/usr/bin/$(PVER)dm-config
- ln -sf $(DEB_HOST_MULTIARCH)-$(PVER)dm-config.1.gz $(d_dbg)/usr/share/man/man1/$(PVER)dm-config.1.gz
+ ln -sf $(DEB_HOST_MULTIARCH)-$(PVER)d-config $(d_dbg)/usr/bin/$(PVER)d-config
+ ln -sf $(DEB_HOST_MULTIARCH)-$(PVER)d-config.1.gz $(d_dbg)/usr/share/man/man1/$(PVER)d-config.1.gz
ln -sf $(DEB_HOST_MULTIARCH)-$(PVER)-dbg-config $(d_dbg)/usr/bin/$(PVER)-dbg-config
ln -sf $(DEB_HOST_MULTIARCH)-$(PVER)-dbg-config.1.gz $(d_dbg)/usr/share/man/man1/$(PVER)-dbg-config.1.gz
: # symlinks for the "old" include / config directory names
ln -sf $(PVER)-config.1.gz $(d_dbg)/usr/share/man/man1/$(PVER)-dbg-config.1.gz
- ln -sf $(PVER).1.gz $(d_dbg)/usr/share/man/man1/$(PVER)dm.1.gz
- ln -sf $(PVER)-config.1.gz $(d_dbg)/usr/share/man/man1/$(PVER)dm-config.1.gz
+ ln -sf $(PVER).1.gz $(d_dbg)/usr/share/man/man1/$(PVER)d.1.gz
+ ln -sf $(PVER)-config.1.gz $(d_dbg)/usr/share/man/man1/$(PVER)d-config.1.gz
ifeq ($(with_udeb),yes)
: # Copy the most important files from $(p_min) into $(p_udeb).
dh_installdirs -p$(p_udeb) \
etc/$(PVER) \
usr/bin \
- usr/include/$(PVER)mu \
+ usr/include/$(PVER)u \
$(scriptdir)/lib-dynload \
- $(scriptdir)/config-$(VER)m-$(DEB_HOST_MULTIARCH)
+ $(scriptdir)/config-$(VER)-$(DEB_HOST_MULTIARCH)
cp -p $(d_min)/usr/bin/python$(VER) $(d_udeb)/usr/bin/
- ln -sf python$(VER)mu $(d_udeb)/usr/bin/python$(VER)
+ ln -sf python$(VER)u $(d_udeb)/usr/bin/python$(VER)
ln -sf python$(VER) $(d_udeb)/usr/bin/python3
cp -p $(foreach i,$(MIN_MODS),$(d_min)/$(scriptdir)/$(i).py) \
$(d_udeb)/$(scriptdir)/
@@ -1311,10 +1309,10 @@ ifeq ($(with_udeb),yes)
$(d_udeb)/$(scriptdir)/
cp -p $(foreach i,$(MIN_ENCODINGS),$(d_min)/$(scriptdir)/$(i)) \
$(d_udeb)/$(scriptdir)/
- cp -p $(d_min)/$(scriptdir)/config-$(VER)m-$(DEB_HOST_MULTIARCH)/Makefile \
- $(d_udeb)/$(scriptdir)/config-$(VER)m-$(DEB_HOST_MULTIARCH)/
- cp -p $(d_min)/usr/include/$(DEB_HOST_MULTIARCH)/$(PVER)m/pyconfig.h \
- $(d_udeb)/usr/include/$(DEB_HOST_MULTIARCH)/$(PVER)m/
+ cp -p $(d_min)/$(scriptdir)/config-$(VER)-$(DEB_HOST_MULTIARCH)/Makefile \
+ $(d_udeb)/$(scriptdir)/config-$(VER)-$(DEB_HOST_MULTIARCH)/
+ cp -p $(d_min)/usr/include/$(DEB_HOST_MULTIARCH)/$(PVER)/pyconfig.h \
+ $(d_udeb)/usr/include/$(DEB_HOST_MULTIARCH)/$(PVER)/
cp -p $(d_min)/$(scriptdir)/site.py $(d_udeb)/$(scriptdir)/
cp -p debian/sitecustomize.py $(d_udeb)/etc/$(PVER)/
dh_link -p$(p_udeb) /etc/$(PVER)/sitecustomize.py \
@@ -1486,11 +1484,10 @@ stamps/stamp-patch:
done >> stamps/pxx
touch Parser/acceler.c Parser/grammar1.c Parser/listnode.c \
- Parser/node.c Parser/parser.c Parser/bitset.c Parser/metagrammar.c \
- Parser/firstsets.c Parser/grammar.c Parser/pgen.c
+ Parser/node.c Parser/parser.c Parser/token.c
+
touch Objects/obmalloc.c Python/dynamic_annotations.c \
- Python/mysnprintf.c Python/pyctype.c Parser/tokenizer_pgen.c \
- Parser/printgrammar.c Parser/parsetok_pgen.c Parser/pgenmain.c
+ Python/mysnprintf.c Python/pyctype.c
@sleep 1
touch Grammar/Grammar
@sleep 1