Merge lp:~peter-pearse/ubuntu/natty/python2.7/prop003 into lp:ubuntu/natty/python2.7
- Natty (11.04)
- prop003
- Merge into natty
Proposed by
Peter Pearse
Status: | Needs review |
---|---|
Proposed branch: | lp:~peter-pearse/ubuntu/natty/python2.7/prop003 |
Merge into: | lp:ubuntu/natty/python2.7 |
Diff against target: |
600 lines (+394/-16) 4 files modified
debian/changelog (+12/-0) debian/patches/cross.diff (+252/-0) debian/patches/series.in (+1/-0) debian/rules (+129/-16) |
To merge this branch: | bzr merge lp:~peter-pearse/ubuntu/natty/python2.7/prop003 |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Steve Langasek | Pending | ||
Review via email: mp+56777@code.launchpad.net |
Commit message
Description of the change
Changed to resemble python2.6 prop004
To post a comment you must log in.
Unmerged revisions
- 29. By Peter Pearse
-
* Modules/Setup.dist - drop system paths for zlib.
* Makefile.pre.in - Use BUILDPYTHON where applicable for cross builds.
* setup.py - For cross builds, pass cross toolchain info in python
environment.
* debian/rules - Build a build host python for use during a cross
build. Adjust the configuration files & make environment
accordingly.
Preview Diff
[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1 | === modified file 'debian/changelog' | |||
2 | --- debian/changelog 2011-03-23 15:02:47 +0000 | |||
3 | +++ debian/changelog 2011-04-07 14:02:15 +0000 | |||
4 | @@ -1,3 +1,15 @@ | |||
5 | 1 | python2.7 (2.7.1-5ubuntu2) natty; urgency=low | ||
6 | 2 | |||
7 | 3 | * Modules/Setup.dist - drop system paths for zlib. | ||
8 | 4 | * Makefile.pre.in - Use BUILDPYTHON where applicable for cross builds. | ||
9 | 5 | * setup.py - For cross builds, pass cross toolchain info in python | ||
10 | 6 | environment. | ||
11 | 7 | * debian/rules - Build a build host python for use during a cross | ||
12 | 8 | build. Adjust the configuration files & make environment | ||
13 | 9 | accordingly. | ||
14 | 10 | |||
15 | 11 | -- Peter Pearse <peter.pearse@linaro.org> Thu, 07 Apr 2011 12:59:39 +0000 | ||
16 | 12 | |||
17 | 1 | python2.7 (2.7.1-5ubuntu1) natty; urgency=low | 13 | python2.7 (2.7.1-5ubuntu1) natty; urgency=low |
18 | 2 | 14 | ||
19 | 3 | * debian/patches/deb-setup.diff: DEB_GNU_TYPE was never being set, so | 15 | * debian/patches/deb-setup.diff: DEB_GNU_TYPE was never being set, so |
20 | 4 | 16 | ||
21 | === added file 'debian/patches/cross.diff' | |||
22 | --- debian/patches/cross.diff 1970-01-01 00:00:00 +0000 | |||
23 | +++ debian/patches/cross.diff 2011-04-07 14:02:15 +0000 | |||
24 | @@ -0,0 +1,252 @@ | |||
25 | 1 | Index: python2.7/Makefile.pre.in | ||
26 | 2 | =================================================================== | ||
27 | 3 | --- python2.7.orig/Makefile.pre.in 2011-04-07 10:41:23.000000000 +0000 | ||
28 | 4 | +++ python2.7/Makefile.pre.in 2011-04-07 10:41:23.000000000 +0000 | ||
29 | 5 | @@ -213,6 +213,9 @@ | ||
30 | 6 | ########################################################################## | ||
31 | 7 | # Parser | ||
32 | 8 | PGEN= Parser/pgen$(EXE) | ||
33 | 9 | +# Allow override for cross build | ||
34 | 10 | +BUILDPGEN= $(PGEN) | ||
35 | 11 | + | ||
36 | 12 | |||
37 | 13 | POBJS= \ | ||
38 | 14 | Parser/acceler.o \ | ||
39 | 15 | @@ -364,7 +367,7 @@ | ||
40 | 16 | |||
41 | 17 | # Default target | ||
42 | 18 | all: build_all | ||
43 | 19 | -build_all: $(BUILDPYTHON) oldsharedmods sharedmods gdbhooks | ||
44 | 20 | +build_all: $(BUILDPYTHON) $(PYTHON) oldsharedmods sharedmods gdbhooks | ||
45 | 21 | |||
46 | 22 | # Compile a binary with gcc profile guided optimization. | ||
47 | 23 | profile-opt: | ||
48 | 24 | @@ -381,7 +384,7 @@ | ||
49 | 25 | build_all_generate_profile: | ||
50 | 26 | $(MAKE) all CFLAGS="$(CFLAGS) -fprofile-generate" LIBS="$(LIBS) -lgcov" | ||
51 | 27 | |||
52 | 28 | -run_profile_task: | ||
53 | 29 | +run_profile_task: $(BUILDPYTHON) $(PYTHON) | ||
54 | 30 | -./$(BUILDPYTHON) $(PROFILE_TASK) | ||
55 | 31 | |||
56 | 32 | build_all_use_profile: | ||
57 | 33 | @@ -394,17 +397,17 @@ | ||
58 | 34 | |||
59 | 35 | |||
60 | 36 | # Build the interpreter | ||
61 | 37 | -$(BUILDPYTHON): Modules/python.o $(LIBRARY) $(LDLIBRARY) | ||
62 | 38 | +$(PYTHON): Modules/python.o $(LIBRARY) $(LDLIBRARY) | ||
63 | 39 | $(LINKCC) $(LDFLAGS) $(LINKFORSHARED) -o $@ \ | ||
64 | 40 | Modules/python.o \ | ||
65 | 41 | $(BLDLIBRARY) $(LIBS) $(MODLIBS) $(SYSLIBS) $(LDLAST) | ||
66 | 42 | |||
67 | 43 | -platform: $(BUILDPYTHON) | ||
68 | 44 | +platform: $(BUILDPYTHON) $(PYTHON) | ||
69 | 45 | $(RUNSHARED) ./$(BUILDPYTHON) -E -c 'import sys ; from sysconfig import get_platform ; print get_platform()+"-"+sys.version[0:3]' >platform | ||
70 | 46 | |||
71 | 47 | |||
72 | 48 | # Build the shared modules | ||
73 | 49 | -sharedmods: $(BUILDPYTHON) | ||
74 | 50 | +sharedmods: $(BUILDPYTHON) $(PYTHON) | ||
75 | 51 | @case $$MAKEFLAGS in \ | ||
76 | 52 | *s*) $(RUNSHARED) CC='$(CC)' LDSHARED='$(BLDSHARED)' OPT='$(OPT)' ./$(BUILDPYTHON) -E $(srcdir)/setup.py -q build;; \ | ||
77 | 53 | *) $(RUNSHARED) CC='$(CC)' LDSHARED='$(BLDSHARED)' OPT='$(OPT)' ./$(BUILDPYTHON) -E $(srcdir)/setup.py build;; \ | ||
78 | 54 | @@ -424,10 +427,10 @@ | ||
79 | 55 | |||
80 | 56 | libpython$(VERSION)$(DEBUG_EXT).so: $(LIBRARY_OBJS) | ||
81 | 57 | if test $(INSTSONAME) != $(LDLIBRARY); then \ | ||
82 | 58 | - $(BLDSHARED) -Wl,-h$(INSTSONAME) -o $(INSTSONAME) $(LIBRARY_OBJS) $(MODLIBS) $(SHLIBS) $(LIBC) $(LIBM) $(LDLAST); \ | ||
83 | 59 | + $(LDSHARED) -Wl,-h$(INSTSONAME) -o $(INSTSONAME) $(LIBRARY_OBJS) $(MODLIBS) $(SHLIBS) $(LIBC) $(LIBM) $(LDLAST); \ | ||
84 | 60 | $(LN) -f $(INSTSONAME) $@; \ | ||
85 | 61 | else \ | ||
86 | 62 | - $(BLDSHARED) -o $@ $(LIBRARY_OBJS) $(MODLIBS) $(SHLIBS) $(LIBC) $(LIBM) $(LDLAST); \ | ||
87 | 63 | + $(LDSHARED) -o $@ $(LIBRARY_OBJS) $(MODLIBS) $(SHLIBS) $(LIBC) $(LIBM) $(LDLAST); \ | ||
88 | 64 | fi | ||
89 | 65 | |||
90 | 66 | libpython$(VERSION).dylib: $(LIBRARY_OBJS) | ||
91 | 67 | @@ -442,11 +445,11 @@ | ||
92 | 68 | # | ||
93 | 69 | # Distributors are likely to want to install this somewhere else e.g. relative | ||
94 | 70 | # to the stripped DWARF data for the shared library. | ||
95 | 71 | -gdbhooks: $(BUILDPYTHON)-gdb.py | ||
96 | 72 | +gdbhooks: $(PYTHON)-gdb.py | ||
97 | 73 | |||
98 | 74 | SRC_GDB_HOOKS=$(srcdir)/Tools/gdb/libpython.py | ||
99 | 75 | -$(BUILDPYTHON)-gdb.py: $(SRC_GDB_HOOKS) | ||
100 | 76 | - $(INSTALL_DATA) $(SRC_GDB_HOOKS) $(BUILDPYTHON)-gdb.py | ||
101 | 77 | +$(PYTHON)-gdb.py: $(SRC_GDB_HOOKS) | ||
102 | 78 | + $(INSTALL_DATA) $(SRC_GDB_HOOKS) $(PYTHON)-gdb.py | ||
103 | 79 | |||
104 | 80 | # This rule is here for OPENSTEP/Rhapsody/MacOSX. It builds a temporary | ||
105 | 81 | # minimal framework (not including the Lib directory and such) in the current | ||
106 | 82 | @@ -540,9 +543,9 @@ | ||
107 | 83 | |||
108 | 84 | # Use a stamp file to prevent make -j invoking pgen twice | ||
109 | 85 | $(GRAMMAR_H) $(GRAMMAR_C): Parser/pgen.stamp | ||
110 | 86 | -Parser/pgen.stamp: $(PGEN) $(GRAMMAR_INPUT) | ||
111 | 87 | +Parser/pgen.stamp: $(BUILDPGEN) $(GRAMMAR_INPUT) | ||
112 | 88 | -@$(INSTALL) -d Include | ||
113 | 89 | - $(PGEN) $(GRAMMAR_INPUT) $(GRAMMAR_H) $(GRAMMAR_C) | ||
114 | 90 | + $(BUILDPGEN) $(GRAMMAR_INPUT) $(GRAMMAR_H) $(GRAMMAR_C) | ||
115 | 91 | -touch Parser/pgen.stamp | ||
116 | 92 | |||
117 | 93 | $(PGEN): $(PGENOBJS) | ||
118 | 94 | @@ -801,7 +804,7 @@ | ||
119 | 95 | |||
120 | 96 | # Install the interpreter with $(VERSION) affixed | ||
121 | 97 | # This goes into $(exec_prefix) | ||
122 | 98 | -altbininstall: $(BUILDPYTHON) | ||
123 | 99 | +altbininstall: $(BUILDPYTHON) $(PYTHON) | ||
124 | 100 | @for i in $(BINDIR) $(LIBDIR); \ | ||
125 | 101 | do \ | ||
126 | 102 | if test ! -d $(DESTDIR)$$i; then \ | ||
127 | 103 | @@ -810,7 +813,7 @@ | ||
128 | 104 | else true; \ | ||
129 | 105 | fi; \ | ||
130 | 106 | done | ||
131 | 107 | - $(INSTALL_PROGRAM) $(BUILDPYTHON) $(DESTDIR)$(BINDIR)/python$(VERSION)$(EXE) | ||
132 | 108 | + $(INSTALL_PROGRAM) $(PYTHON) $(DESTDIR)$(BINDIR)/python$(VERSION)$(EXE) | ||
133 | 109 | if test -f $(LDLIBRARY); then \ | ||
134 | 110 | if test -n "$(DLLLIBRARY)" ; then \ | ||
135 | 111 | $(INSTALL_SHARED) $(DLLLIBRARY) $(DESTDIR)$(BINDIR); \ | ||
136 | 112 | @@ -1048,7 +1051,7 @@ | ||
137 | 113 | |||
138 | 114 | # Install the dynamically loadable modules | ||
139 | 115 | # This goes into $(exec_prefix) | ||
140 | 116 | -sharedinstall: sharedmods | ||
141 | 117 | +sharedinstall: $(BUILDPYTHON) sharedmods | ||
142 | 118 | $(RUNSHARED) ./$(BUILDPYTHON) -E $(srcdir)/setup.py install \ | ||
143 | 119 | --prefix=$(prefix) \ | ||
144 | 120 | --install-scripts=$(BINDIR) \ | ||
145 | 121 | @@ -1073,7 +1076,7 @@ | ||
146 | 122 | |||
147 | 123 | frameworkinstallframework: frameworkinstallstructure install frameworkinstallmaclib | ||
148 | 124 | |||
149 | 125 | -frameworkinstallstructure: $(LDLIBRARY) | ||
150 | 126 | +frameworkinstallstructure: $(BUILDPYTHON) $(LDLIBRARY) | ||
151 | 127 | @if test "$(PYTHONFRAMEWORKDIR)" = no-framework; then \ | ||
152 | 128 | echo Not configured with --enable-framework; \ | ||
153 | 129 | exit 1; \ | ||
154 | 130 | @@ -1120,7 +1123,7 @@ | ||
155 | 131 | cd Mac && $(MAKE) installextras DESTDIR="$(DESTDIR)" | ||
156 | 132 | |||
157 | 133 | # This installs a few of the useful scripts in Tools/scripts | ||
158 | 134 | -scriptsinstall: | ||
159 | 135 | +scriptsinstall: $(BUILDPYTHON) | ||
160 | 136 | SRCDIR=$(srcdir) $(RUNSHARED) \ | ||
161 | 137 | ./$(BUILDPYTHON) $(srcdir)/Tools/scripts/setup.py install \ | ||
162 | 138 | --prefix=$(prefix) \ | ||
163 | 139 | @@ -1136,14 +1139,14 @@ | ||
164 | 140 | config.status: $(srcdir)/configure | ||
165 | 141 | $(SHELL) $(srcdir)/configure $(CONFIG_ARGS) | ||
166 | 142 | |||
167 | 143 | -.PRECIOUS: config.status $(BUILDPYTHON) Makefile Makefile.pre | ||
168 | 144 | +.PRECIOUS: config.status $(PYTHON) Makefile Makefile.pre | ||
169 | 145 | |||
170 | 146 | # Some make's put the object file in the current directory | ||
171 | 147 | .c.o: | ||
172 | 148 | $(CC) -c $(PY_CFLAGS) -o $@ $< | ||
173 | 149 | |||
174 | 150 | # Run reindent on the library | ||
175 | 151 | -reindent: | ||
176 | 152 | +reindent: $(BUILDPYTHON) | ||
177 | 153 | ./$(BUILDPYTHON) $(srcdir)/Tools/scripts/reindent.py -r $(srcdir)/Lib | ||
178 | 154 | |||
179 | 155 | # Rerun configure with the same options as it was run last time, | ||
180 | 156 | @@ -1188,7 +1191,7 @@ | ||
181 | 157 | find . -name '*.gc??' -exec rm -f {} ';' | ||
182 | 158 | |||
183 | 159 | clobber: clean profile-removal | ||
184 | 160 | - -rm -f $(BUILDPYTHON) $(PGEN) $(LIBRARY) $(LDLIBRARY) $(DLLLIBRARY) \ | ||
185 | 161 | + -rm -f $(PYTHON) $(PGEN) $(LIBRARY) $(LDLIBRARY) $(DLLLIBRARY) \ | ||
186 | 162 | tags TAGS Parser/pgen.stamp \ | ||
187 | 163 | config.cache config.log pyconfig.h Modules/config.c | ||
188 | 164 | -rm -rf build platform | ||
189 | 165 | @@ -1246,7 +1249,7 @@ | ||
190 | 166 | -o -print | ||
191 | 167 | |||
192 | 168 | # Perform some verification checks on any modified files. | ||
193 | 169 | -patchcheck: | ||
194 | 170 | +patchcheck: $(BUILDPYTHON) | ||
195 | 171 | $(RUNSHARED) ./$(BUILDPYTHON) $(srcdir)/Tools/scripts/patchcheck.py | ||
196 | 172 | |||
197 | 173 | # Dependencies | ||
198 | 174 | Index: python2.7/Modules/Setup.dist | ||
199 | 175 | =================================================================== | ||
200 | 176 | --- python2.7.orig/Modules/Setup.dist 2011-04-07 10:41:23.000000000 +0000 | ||
201 | 177 | +++ python2.7/Modules/Setup.dist 2011-04-07 10:41:23.000000000 +0000 | ||
202 | 178 | @@ -458,7 +458,9 @@ | ||
203 | 179 | # Andrew Kuchling's zlib module. | ||
204 | 180 | # This require zlib 1.1.3 (or later). | ||
205 | 181 | # See http://www.gzip.org/zlib/ | ||
206 | 182 | -#zlib zlibmodule.c -I$(prefix)/include -L$(exec_prefix)/lib -lz | ||
207 | 183 | +# Well behaved toolchains should not require -L$(exec_prefix)/lib or -I$(prefix)/include | ||
208 | 184 | +# - using them breaks cross builds | ||
209 | 185 | +#zlib zlibmodule.c -lz | ||
210 | 186 | |||
211 | 187 | # Interface to the Expat XML parser | ||
212 | 188 | # | ||
213 | 189 | Index: python2.7/setup.py | ||
214 | 190 | =================================================================== | ||
215 | 191 | --- python2.7.orig/setup.py 2011-04-07 10:41:23.000000000 +0000 | ||
216 | 192 | +++ python2.7/setup.py 2011-04-07 10:46:20.000000000 +0000 | ||
217 | 193 | @@ -225,6 +225,23 @@ | ||
218 | 194 | # When you run "make CC=altcc" or something similar, you really want | ||
219 | 195 | # those environment variables passed into the setup.py phase. Here's | ||
220 | 196 | # a small set of useful ones. | ||
221 | 197 | + | ||
222 | 198 | + # Change the environment for cross compiling | ||
223 | 199 | + # - may want to use environment variables for settings? | ||
224 | 200 | + if os.environ.get('CROSS_COMPILE'): | ||
225 | 201 | + host_gnu_type=os.environ.get('CROSS_COMPILE') | ||
226 | 202 | + os.environ["CC"] = host_gnu_type + '-gcc' | ||
227 | 203 | + os.environ["CXX"] = host_gnu_type + '-g++' | ||
228 | 204 | + os.environ["LDSHARED"] = host_gnu_type + '-gcc -shared' | ||
229 | 205 | + os.environ["CPP"] = host_gnu_type + '-cpp' | ||
230 | 206 | + # Add in the multiarch locations here. | ||
231 | 207 | + os.environ["LDFLAGS"] = '-L /usr/' + host_gnu_type + '/lib -L /usr/' + host_gnu_type + '/usr/lib' | ||
232 | 208 | + os.environ["CFLAGS"] = '-I/usr/' + host_gnu_type + '/include -I/usr/' + host_gnu_type + '/usr/include' | ||
233 | 209 | + # Use -D markers to detect if/where used | ||
234 | 210 | + os.environ["CPPFLAGS"] = '-DCROSSCPPFLAGS' | ||
235 | 211 | + os.environ["BASECFLAGS"] = '-DCROSSBASECFLAGS' | ||
236 | 212 | + os.environ["OPT"] = '-DCROSSOPT' | ||
237 | 213 | + | ||
238 | 214 | compiler = os.environ.get('CC') | ||
239 | 215 | args = {} | ||
240 | 216 | # unfortunately, distutils doesn't let us provide separate C and C++ | ||
241 | 217 | @@ -304,6 +321,13 @@ | ||
242 | 218 | self.announce('WARNING: skipping import check for Cygwin-based "%s"' | ||
243 | 219 | % ext.name) | ||
244 | 220 | return | ||
245 | 221 | + | ||
246 | 222 | + # Cant import cross built modules | ||
247 | 223 | + if os.environ.get('CROSS_COMPILE'): | ||
248 | 224 | + self.announce('WARNING: skipping import check for %s, cross built for %s' | ||
249 | 225 | + % (ext.name, os.environ.get('CROSS_COMPILE'))) | ||
250 | 226 | + return | ||
251 | 227 | + | ||
252 | 228 | ext_filename = os.path.join( | ||
253 | 229 | self.build_lib, | ||
254 | 230 | self.get_ext_filename(self.get_ext_fullname(ext.name))) | ||
255 | 231 | @@ -389,7 +413,8 @@ | ||
256 | 232 | add_dir_to_list(dir_list, directory) | ||
257 | 233 | |||
258 | 234 | if os.path.normpath(sys.prefix) != '/usr' \ | ||
259 | 235 | - and not sysconfig.get_config_var('PYTHONFRAMEWORK'): | ||
260 | 236 | + and not sysconfig.get_config_var('PYTHONFRAMEWORK') \ | ||
261 | 237 | + and not os.environ.get('CROSS_COMPILE'): | ||
262 | 238 | # OSX note: Don't add LIBDIR and INCLUDEDIR to building a framework | ||
263 | 239 | # (PYTHONFRAMEWORK is set) to avoid # linking problems when | ||
264 | 240 | # building a framework with different architectures than | ||
265 | 241 | @@ -1846,6 +1871,11 @@ | ||
266 | 242 | mkpath(ffi_builddir) | ||
267 | 243 | config_args = [] | ||
268 | 244 | |||
269 | 245 | + if os.environ.get('CROSS_COMPILE'): | ||
270 | 246 | + host_gnu_type = os.environ.get('CROSS_COMPILE') | ||
271 | 247 | + print "Configuring _ctypes module for cross building %s" % (host_gnu_type) | ||
272 | 248 | + config_args = [ '--host ' + host_gnu_type] | ||
273 | 249 | + | ||
274 | 250 | # Pass empty CFLAGS because we'll just append the resulting | ||
275 | 251 | # CFLAGS to Python's; -g or -O2 is to be avoided. | ||
276 | 252 | cmd = "cd %s && env CFLAGS='' '%s/configure' %s" \ | ||
277 | 0 | 253 | ||
278 | === modified file 'debian/patches/series.in' | |||
279 | --- debian/patches/series.in 2011-02-24 06:01:42 +0000 | |||
280 | +++ debian/patches/series.in 2011-04-07 14:02:15 +0000 | |||
281 | @@ -50,3 +50,4 @@ | |||
282 | 50 | issue9054.diff | 50 | issue9054.diff |
283 | 51 | link-system-expat.diff | 51 | link-system-expat.diff |
284 | 52 | plat-gnukfreebsd.diff | 52 | plat-gnukfreebsd.diff |
285 | 53 | cross.diff | ||
286 | 53 | 54 | ||
287 | === modified file 'debian/rules' | |||
288 | --- debian/rules 2011-02-24 06:01:42 +0000 | |||
289 | +++ debian/rules 2011-04-07 14:02:15 +0000 | |||
290 | @@ -11,6 +11,8 @@ | |||
291 | 11 | 11 | ||
292 | 12 | DEB_HOST_ARCH ?= $(shell dpkg-architecture -qDEB_HOST_ARCH) | 12 | DEB_HOST_ARCH ?= $(shell dpkg-architecture -qDEB_HOST_ARCH) |
293 | 13 | DEB_HOST_ARCH_OS ?= $(shell dpkg-architecture -qDEB_HOST_ARCH_OS) | 13 | DEB_HOST_ARCH_OS ?= $(shell dpkg-architecture -qDEB_HOST_ARCH_OS) |
294 | 14 | DEB_BUILD_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE) | ||
295 | 15 | DEB_HOST_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE) | ||
296 | 14 | 16 | ||
297 | 15 | changelog_values := $(shell dpkg-parsechangelog \ | 17 | changelog_values := $(shell dpkg-parsechangelog \ |
298 | 16 | | awk '/^(Version|Source):/ {print $$2}') | 18 | | awk '/^(Version|Source):/ {print $$2}') |
299 | @@ -26,6 +28,10 @@ | |||
300 | 26 | ifneq (,$(findstring nobench, $(DEB_BUILD_OPTIONS))) | 28 | ifneq (,$(findstring nobench, $(DEB_BUILD_OPTIONS))) |
301 | 27 | WITHOUT_BENCH := yes | 29 | WITHOUT_BENCH := yes |
302 | 28 | endif | 30 | endif |
303 | 31 | ifneq ($(DEB_BUILD_GNU_TYPE),$(DEB_HOST_GNU_TYPE)) | ||
304 | 32 | WITHOUT_BENCH := yes | ||
305 | 33 | WITHOUT_CHECK := yes | ||
306 | 34 | endif | ||
307 | 29 | ifeq ($(on_buildd),yes) | 35 | ifeq ($(on_buildd),yes) |
308 | 30 | ifneq (,$(findstring $(DEB_HOST_ARCH), hppa mips mipsel s390)) | 36 | ifneq (,$(findstring $(DEB_HOST_ARCH), hppa mips mipsel s390)) |
309 | 31 | WITHOUT_CHECK := yes | 37 | WITHOUT_CHECK := yes |
310 | @@ -92,7 +98,17 @@ | |||
311 | 92 | endif | 98 | endif |
312 | 93 | with_fpectl = yes | 99 | with_fpectl = yes |
313 | 94 | 100 | ||
315 | 95 | CC = gcc | 101 | ifeq ($(DEB_BUILD_GNU_TYPE),$(DEB_HOST_GNU_TYPE)) |
316 | 102 | CC = gcc | ||
317 | 103 | CROSS = | ||
318 | 104 | else | ||
319 | 105 | CC = $(DEB_HOST_GNU_TYPE)-gcc | ||
320 | 106 | # Note that make runs the binaries as ./$(app), | ||
321 | 107 | # - so they must not be absolutely pathed | ||
322 | 108 | CROSS = BUILDPYTHON=../build-cross/python \ | ||
323 | 109 | BUILDPGEN=../build-cross/Parser/pgen \ | ||
324 | 110 | CROSS_COMPILE=$(DEB_HOST_GNU_TYPE) | ||
325 | 111 | endif | ||
326 | 96 | 112 | ||
327 | 97 | # on alpha, use -O2 only, use -mieee | 113 | # on alpha, use -O2 only, use -mieee |
328 | 98 | ifeq ($(DEB_HOST_ARCH),alpha) | 114 | ifeq ($(DEB_HOST_ARCH),alpha) |
329 | @@ -104,6 +120,9 @@ | |||
330 | 104 | endif | 120 | endif |
331 | 105 | 121 | ||
332 | 106 | PWD := $(shell pwd) | 122 | PWD := $(shell pwd) |
333 | 123 | ifneq ($(DEB_BUILD_GNU_TYPE),$(DEB_HOST_GNU_TYPE)) | ||
334 | 124 | buildd_cross := $(CURDIR)/build-cross | ||
335 | 125 | endif | ||
336 | 107 | buildd_static := $(CURDIR)/build-static | 126 | buildd_static := $(CURDIR)/build-static |
337 | 108 | buildd_shared := $(CURDIR)/build-shared | 127 | buildd_shared := $(CURDIR)/build-shared |
338 | 109 | buildd_debug := $(CURDIR)/build-debug | 128 | buildd_debug := $(CURDIR)/build-debug |
339 | @@ -143,7 +162,9 @@ | |||
340 | 143 | else | 162 | else |
341 | 144 | make_build_target = profile-opt | 163 | make_build_target = profile-opt |
342 | 145 | endif | 164 | endif |
344 | 146 | make_build_target = profile-opt | 165 | ifeq ($(DEB_BUILD_GNU_TYPE),$(DEB_HOST_GNU_TYPE)) |
345 | 166 | make_build_target = profile-opt | ||
346 | 167 | endif | ||
347 | 147 | 168 | ||
348 | 148 | build: $(build_target) | 169 | build: $(build_target) |
349 | 149 | build-all: stamps/stamp-build | 170 | build-all: stamps/stamp-build |
350 | @@ -168,30 +189,30 @@ | |||
351 | 168 | 189 | ||
352 | 169 | stamps/stamp-build-static: stamps/stamp-configure-static | 190 | stamps/stamp-build-static: stamps/stamp-configure-static |
353 | 170 | dh_testdir | 191 | dh_testdir |
355 | 171 | $(MAKE) $(NJOBS) -C $(buildd_static) \ | 192 | $(MAKE) $(NJOBS) -C $(buildd_static) $(CROSS) \ |
356 | 172 | PROFILE_TASK='$(PROFILE_TASK)' $(make_build_target) | 193 | PROFILE_TASK='$(PROFILE_TASK)' $(make_build_target) |
357 | 173 | touch stamps/stamp-build-static | 194 | touch stamps/stamp-build-static |
358 | 174 | 195 | ||
359 | 175 | stamps/stamp-build-shared: stamps/stamp-configure-shared | 196 | stamps/stamp-build-shared: stamps/stamp-configure-shared |
360 | 176 | dh_testdir | 197 | dh_testdir |
362 | 177 | $(MAKE) $(NJOBS) -C $(buildd_shared) | 198 | $(MAKE) $(NJOBS) -C $(buildd_shared) $(CROSS) |
363 | 178 | # : # build the shared library | 199 | # : # build the shared library |
365 | 179 | # $(MAKE) $(NJOBS) -C $(buildd_shared) \ | 200 | # $(MAKE) $(NJOBS) -C $(buildd_shared) $(CROSS) \ |
366 | 180 | # libpython$(VER).so | 201 | # libpython$(VER).so |
367 | 181 | : # build a static library with PIC objects | 202 | : # build a static library with PIC objects |
369 | 182 | $(MAKE) $(NJOBS) -C $(buildd_shared) \ | 203 | $(MAKE) $(NJOBS) -C $(buildd_shared) $(CROSS) \ |
370 | 183 | LIBRARY=libpython$(VER)-pic.a libpython$(VER)-pic.a | 204 | LIBRARY=libpython$(VER)-pic.a libpython$(VER)-pic.a |
371 | 184 | touch stamps/stamp-build-shared | 205 | touch stamps/stamp-build-shared |
372 | 185 | 206 | ||
373 | 186 | stamps/stamp-build-debug: stamps/stamp-configure-debug | 207 | stamps/stamp-build-debug: stamps/stamp-configure-debug |
374 | 187 | dh_testdir | 208 | dh_testdir |
376 | 188 | $(MAKE) $(NJOBS) -C $(buildd_debug) | 209 | $(MAKE) $(NJOBS) -C $(buildd_debug) $(CROSS) |
377 | 189 | touch stamps/stamp-build-debug | 210 | touch stamps/stamp-build-debug |
378 | 190 | 211 | ||
379 | 191 | stamps/stamp-build-shared-debug: stamps/stamp-configure-shared-debug | 212 | stamps/stamp-build-shared-debug: stamps/stamp-configure-shared-debug |
380 | 192 | dh_testdir | 213 | dh_testdir |
381 | 193 | : # build the shared debug library | 214 | : # build the shared debug library |
383 | 194 | $(MAKE) $(NJOBS) -C $(buildd_shdebug) \ | 215 | $(MAKE) $(NJOBS) -C $(buildd_shdebug) $(CROSS) \ |
384 | 195 | libpython$(VER)_d.so | 216 | libpython$(VER)_d.so |
385 | 196 | touch stamps/stamp-build-shared-debug | 217 | touch stamps/stamp-build-shared-debug |
386 | 197 | 218 | ||
387 | @@ -208,11 +229,52 @@ | |||
388 | 208 | common_configure_args += --with-system-ffi | 229 | common_configure_args += --with-system-ffi |
389 | 209 | endif | 230 | endif |
390 | 210 | 231 | ||
391 | 232 | ifneq ($(DEB_BUILD_GNU_TYPE),$(DEB_HOST_GNU_TYPE)) | ||
392 | 233 | common_configure_args += \ | ||
393 | 234 | --host=$(DEB_HOST_GNU_TYPE) --build=$(DEB_BUILD_GNU_TYPE) | ||
394 | 235 | endif | ||
395 | 236 | |||
396 | 211 | ifeq ($(with_fpectl),yes) | 237 | ifeq ($(with_fpectl),yes) |
397 | 212 | common_configure_args += \ | 238 | common_configure_args += \ |
398 | 213 | --with-fpectl | 239 | --with-fpectl |
399 | 214 | endif | 240 | endif |
400 | 215 | 241 | ||
401 | 242 | ifneq ($(DEB_BUILD_GNU_TYPE),$(DEB_HOST_GNU_TYPE)) | ||
402 | 243 | |||
403 | 244 | stamps/stamp-configure-cross: stamps/stamp-patch | ||
404 | 245 | rm -rf $(buildd_cross) | ||
405 | 246 | mkdir -p $(buildd_cross) | ||
406 | 247 | cd $(buildd_cross) && \ | ||
407 | 248 | CC=gcc CONFIG_SITE= $(OPTSETTINGS) \ | ||
408 | 249 | ../configure --build $(DEB_BUILD_GNU_TYPE) | ||
409 | 250 | egrep \ | ||
410 | 251 | "^#($$(awk '$$2 ~ /^extension$$/ {print $$1}' debian/PVER-minimal.README.Debian.in | tr '\012' '|')XX)" \ | ||
411 | 252 | Modules/Setup.dist \ | ||
412 | 253 | | sed -e 's/^#//' -e 's/-Wl,-Bdynamic//;s/-Wl,-Bstatic//' \ | ||
413 | 254 | >> $(buildd_cross)/Modules/Setup.local | ||
414 | 255 | cd $(buildd_cross) && \ | ||
415 | 256 | ../Modules/makesetup -c ../Modules/config.c.in -s Modules \ | ||
416 | 257 | Modules/Setup.config Modules/Setup.local Modules/Setup | ||
417 | 258 | mv $(buildd_cross)/config.c $(buildd_cross)/Modules/ | ||
418 | 259 | |||
419 | 260 | @echo "Each build should use it's own pyconfig.h & Makefile variables" | ||
420 | 261 | cp $(buildd_cross)/pyconfig.h $(buildd_cross)/pyconfig.h.cross | ||
421 | 262 | cp $(buildd_cross)/Makefile $(buildd_cross)/Makefile.cross | ||
422 | 263 | |||
423 | 264 | touch stamps/stamp-configure-cross | ||
424 | 265 | |||
425 | 266 | stamps/stamp-build-cross: stamps/stamp-configure-cross | ||
426 | 267 | dh_testdir | ||
427 | 268 | $(MAKE) $(NJOBS) -C $(buildd_cross) python Parser/pgen | ||
428 | 269 | touch stamps/stamp-build-cross | ||
429 | 270 | |||
430 | 271 | stamps/stamp-configure-shared: stamps/stamp-build-cross | ||
431 | 272 | stamps/stamp-configure-static: stamps/stamp-build-cross | ||
432 | 273 | stamps/stamp-configure-debug: stamps/stamp-build-cross | ||
433 | 274 | stamps/stamp-configure-shared-debug: stamps/stamp-build-cross | ||
434 | 275 | |||
435 | 276 | endif | ||
436 | 277 | |||
437 | 216 | stamps/stamp-configure-shared: stamps/stamp-patch | 278 | stamps/stamp-configure-shared: stamps/stamp-patch |
438 | 217 | rm -rf $(buildd_shared) | 279 | rm -rf $(buildd_shared) |
439 | 218 | mkdir -p $(buildd_shared) | 280 | mkdir -p $(buildd_shared) |
440 | @@ -231,6 +293,12 @@ | |||
441 | 231 | Modules/Setup.config Modules/Setup.local Modules/Setup | 293 | Modules/Setup.config Modules/Setup.local Modules/Setup |
442 | 232 | mv $(buildd_shared)/config.c $(buildd_shared)/Modules/ | 294 | mv $(buildd_shared)/config.c $(buildd_shared)/Modules/ |
443 | 233 | 295 | ||
444 | 296 | ifneq ($(DEB_BUILD_GNU_TYPE),$(DEB_HOST_GNU_TYPE)) | ||
445 | 297 | @echo "Build python should use the new pyconfig.h & Makefile " | ||
446 | 298 | cp $(buildd_shared)/pyconfig.h $(buildd_cross)/pyconfig.h | ||
447 | 299 | cp $(buildd_shared)/Makefile $(buildd_cross)/Makefile | ||
448 | 300 | endif | ||
449 | 301 | |||
450 | 234 | touch stamps/stamp-configure-shared | 302 | touch stamps/stamp-configure-shared |
451 | 235 | 303 | ||
452 | 236 | stamps/stamp-configure-static: stamps/stamp-patch | 304 | stamps/stamp-configure-static: stamps/stamp-patch |
453 | @@ -255,6 +323,12 @@ | |||
454 | 255 | mv -f $(buildd_static)/pyconfig.h.new $(buildd_static)/pyconfig.h | 323 | mv -f $(buildd_static)/pyconfig.h.new $(buildd_static)/pyconfig.h |
455 | 256 | mv $(buildd_static)/config.c $(buildd_static)/Modules/ | 324 | mv $(buildd_static)/config.c $(buildd_static)/Modules/ |
456 | 257 | 325 | ||
457 | 326 | ifneq ($(DEB_BUILD_GNU_TYPE),$(DEB_HOST_GNU_TYPE)) | ||
458 | 327 | @echo "Build python should use the new pyconfig.h" | ||
459 | 328 | cp $(buildd_static)/pyconfig.h $(buildd_cross)/pyconfig.h | ||
460 | 329 | cp $(buildd_static)/Makefile $(buildd_cross)/Makefile | ||
461 | 330 | endif | ||
462 | 331 | |||
463 | 258 | touch stamps/stamp-configure-static | 332 | touch stamps/stamp-configure-static |
464 | 259 | 333 | ||
465 | 260 | stamps/stamp-configure-debug: stamps/stamp-patch | 334 | stamps/stamp-configure-debug: stamps/stamp-patch |
466 | @@ -280,6 +354,12 @@ | |||
467 | 280 | touch -r $(buildd_debug)/pyconfig.h $(buildd_debug)/pyconfig.h.new | 354 | touch -r $(buildd_debug)/pyconfig.h $(buildd_debug)/pyconfig.h.new |
468 | 281 | mv -f $(buildd_debug)/pyconfig.h.new $(buildd_debug)/pyconfig.h | 355 | mv -f $(buildd_debug)/pyconfig.h.new $(buildd_debug)/pyconfig.h |
469 | 282 | 356 | ||
470 | 357 | ifneq ($(DEB_BUILD_GNU_TYPE),$(DEB_HOST_GNU_TYPE)) | ||
471 | 358 | @echo "Build python should use the new pyconfig.h" | ||
472 | 359 | cp $(buildd_debug)/pyconfig.h $(buildd_cross)/pyconfig.h | ||
473 | 360 | cp $(buildd_debug)/Makefile $(buildd_cross)/Makefile | ||
474 | 361 | endif | ||
475 | 362 | |||
476 | 283 | touch stamps/stamp-configure-debug | 363 | touch stamps/stamp-configure-debug |
477 | 284 | 364 | ||
478 | 285 | stamps/stamp-configure-shared-debug: stamps/stamp-patch | 365 | stamps/stamp-configure-shared-debug: stamps/stamp-patch |
479 | @@ -307,9 +387,16 @@ | |||
480 | 307 | touch -r $(buildd_shdebug)/pyconfig.h $(buildd_shdebug)/pyconfig.h.new | 387 | touch -r $(buildd_shdebug)/pyconfig.h $(buildd_shdebug)/pyconfig.h.new |
481 | 308 | mv -f $(buildd_shdebug)/pyconfig.h.new $(buildd_shdebug)/pyconfig.h | 388 | mv -f $(buildd_shdebug)/pyconfig.h.new $(buildd_shdebug)/pyconfig.h |
482 | 309 | 389 | ||
483 | 390 | ifneq ($(DEB_BUILD_GNU_TYPE),$(DEB_HOST_GNU_TYPE)) | ||
484 | 391 | @echo "Build python should use the new pyconfig.h" | ||
485 | 392 | cp $(buildd_shdebug)/pyconfig.h $(buildd_cross)/pyconfig.h | ||
486 | 393 | cp $(buildd_shdebug)/Makefile $(buildd_cross)/Makefile | ||
487 | 394 | endif | ||
488 | 395 | |||
489 | 310 | touch stamps/stamp-configure-shared-debug | 396 | touch stamps/stamp-configure-shared-debug |
490 | 311 | 397 | ||
491 | 312 | stamps/stamp-mincheck: stamps/stamp-build-static debian/PVER-minimal.README.Debian.in | 398 | stamps/stamp-mincheck: stamps/stamp-build-static debian/PVER-minimal.README.Debian.in |
492 | 399 | ifeq ($(DEB_BUILD_GNU_TYPE),$(DEB_HOST_GNU_TYPE)) | ||
493 | 313 | for m in $(MIN_MODS) $(MIN_PACKAGES) $(MIN_EXTS) $(MIN_BUILTINS); do \ | 400 | for m in $(MIN_MODS) $(MIN_PACKAGES) $(MIN_EXTS) $(MIN_BUILTINS); do \ |
494 | 314 | echo "import $$m"; \ | 401 | echo "import $$m"; \ |
495 | 315 | done > $(buildd_static)/minmods.py | 402 | done > $(buildd_static)/minmods.py |
496 | @@ -323,6 +410,9 @@ | |||
497 | 323 | else true; fi | 410 | else true; fi |
498 | 324 | cd $(buildd_static) && ./python ../debian/mincheck.py \ | 411 | cd $(buildd_static) && ./python ../debian/mincheck.py \ |
499 | 325 | minmods.py mindeps.txt | 412 | minmods.py mindeps.txt |
500 | 413 | else | ||
501 | 414 | @echo "No mincheck for cross build" | ||
502 | 415 | endif | ||
503 | 326 | touch stamps/stamp-mincheck | 416 | touch stamps/stamp-mincheck |
504 | 327 | 417 | ||
505 | 328 | TEST_RESOURCES = all | 418 | TEST_RESOURCES = all |
506 | @@ -419,6 +509,7 @@ | |||
507 | 419 | touch stamps/stamp-check | 509 | touch stamps/stamp-check |
508 | 420 | 510 | ||
509 | 421 | stamps/stamp-pystone: | 511 | stamps/stamp-pystone: |
510 | 512 | ifeq ($(DEB_BUILD_GNU_TYPE),$(DEB_HOST_GNU_TYPE)) | ||
511 | 422 | @echo "BEGIN pystone static" | 513 | @echo "BEGIN pystone static" |
512 | 423 | cd $(buildd_static) && ./python ../Lib/test/pystone.py | 514 | cd $(buildd_static) && ./python ../Lib/test/pystone.py |
513 | 424 | cd $(buildd_static) && ./python ../Lib/test/pystone.py | 515 | cd $(buildd_static) && ./python ../Lib/test/pystone.py |
514 | @@ -433,6 +524,10 @@ | |||
515 | 433 | cd $(buildd_debug) && ./python ../Lib/test/pystone.py | 524 | cd $(buildd_debug) && ./python ../Lib/test/pystone.py |
516 | 434 | cd $(buildd_debug) && ./python ../Lib/test/pystone.py | 525 | cd $(buildd_debug) && ./python ../Lib/test/pystone.py |
517 | 435 | @echo "END pystone debug" | 526 | @echo "END pystone debug" |
518 | 527 | else | ||
519 | 528 | @echo "No pystone for cross build" | ||
520 | 529 | endif | ||
521 | 530 | |||
522 | 436 | touch stamps/stamp-pystone | 531 | touch stamps/stamp-pystone |
523 | 437 | 532 | ||
524 | 438 | #ifeq (,$(filter $(DEB_HOST_ARCH), arm armel avr32 hppa mips mipsel m68k)) | 533 | #ifeq (,$(filter $(DEB_HOST_ARCH), arm armel avr32 hppa mips mipsel m68k)) |
525 | @@ -494,7 +589,7 @@ | |||
526 | 494 | 589 | ||
527 | 495 | stamps/stamp-doc-html: | 590 | stamps/stamp-doc-html: |
528 | 496 | dh_testdir | 591 | dh_testdir |
530 | 497 | $(MAKE) -C Doc html | 592 | $(MAKE) -C Doc html $(CROSS) |
531 | 498 | touch stamps/stamp-doc-html | 593 | touch stamps/stamp-doc-html |
532 | 499 | 594 | ||
533 | 500 | build-doc: stamps/stamp-patch stamps/stamp-build-doc | 595 | build-doc: stamps/stamp-patch stamps/stamp-build-doc |
534 | @@ -525,14 +620,17 @@ | |||
535 | 525 | clean: control-file | 620 | clean: control-file |
536 | 526 | dh_testdir | 621 | dh_testdir |
537 | 527 | dh_testroot | 622 | dh_testroot |
539 | 528 | $(MAKE) -f debian/rules unpatch | 623 | $(MAKE) -f debian/rules unpatch $(CROSS) |
540 | 529 | rm -rf stamps .pc | 624 | rm -rf stamps .pc |
541 | 530 | rm -f debian/test_results | 625 | rm -f debian/test_results |
542 | 531 | 626 | ||
545 | 532 | $(MAKE) -C Doc clean | 627 | $(MAKE) -C Doc clean $(CROSS) |
546 | 533 | sed 's/^@/#/' Makefile.pre.in | $(MAKE) -f - srcdir=. distclean | 628 | sed 's/^@/#/' Makefile.pre.in | $(MAKE) -f - srcdir=. distclean $(CROSS) |
547 | 534 | rm -rf Lib/test/db_home | 629 | rm -rf Lib/test/db_home |
548 | 535 | rm -rf $(buildd_static) $(buildd_shared) $(buildd_debug) $(buildd_shdebug) | 630 | rm -rf $(buildd_static) $(buildd_shared) $(buildd_debug) $(buildd_shdebug) |
549 | 631 | ifneq ($(DEB_BUILD_GNU_TYPE),$(DEB_HOST_GNU_TYPE)) | ||
550 | 632 | rm -rf $(buildd_cross) | ||
551 | 633 | endif | ||
552 | 536 | find -name '*.py[co]' | xargs -r rm -f | 634 | find -name '*.py[co]' | xargs -r rm -f |
553 | 537 | rm -f Lib/lib2to3/*.pickle | 635 | rm -f Lib/lib2to3/*.pickle |
554 | 538 | rm -rf locales | 636 | rm -rf locales |
555 | @@ -575,9 +673,19 @@ | |||
556 | 575 | : # their packages' directories. | 673 | : # their packages' directories. |
557 | 576 | install -d $(d)/usr | 674 | install -d $(d)/usr |
558 | 577 | ifeq ($(with_interp),static) | 675 | ifeq ($(with_interp),static) |
560 | 578 | $(MAKE) -C $(buildd_static) install prefix=$(CURDIR)/$(d)/usr | 676 | ifneq ($(DEB_BUILD_GNU_TYPE),$(DEB_HOST_GNU_TYPE)) |
561 | 677 | @echo "Build python should use the new pyconfig.h" | ||
562 | 678 | cp $(buildd_static)/pyconfig.h $(buildd_cross)/pyconfig.h | ||
563 | 679 | cp $(buildd_static)/Makefile $(buildd_cross)/Makefile | ||
564 | 680 | endif | ||
565 | 681 | $(MAKE) -C $(buildd_static) install prefix=$(CURDIR)/$(d)/usr $(CROSS) | ||
566 | 579 | else | 682 | else |
568 | 580 | $(MAKE) -C $(buildd_shared) install prefix=$(CURDIR)/$(d)/usr | 683 | ifneq ($(DEB_BUILD_GNU_TYPE),$(DEB_HOST_GNU_TYPE)) |
569 | 684 | @echo "Build python should use the new pyconfig.h" | ||
570 | 685 | cp $(buildd_static)/pyconfig.h $(buildd_cross)/pyconfig.h | ||
571 | 686 | cp $(buildd_static)/Makefile $(buildd_cross)/Makefile | ||
572 | 687 | endif | ||
573 | 688 | $(MAKE) -C $(buildd_shared) install prefix=$(CURDIR)/$(d)/usr $(CROSS) | ||
574 | 581 | endif | 689 | endif |
575 | 582 | -find $(d)/usr/lib/python$(VER) -name '*_failed*.so' | 690 | -find $(d)/usr/lib/python$(VER) -name '*_failed*.so' |
576 | 583 | find $(d)/usr/lib/python$(VER) -name '*_failed*.so' | xargs -r rm -f | 691 | find $(d)/usr/lib/python$(VER) -name '*_failed*.so' | xargs -r rm -f |
577 | @@ -815,8 +923,13 @@ | |||
578 | 815 | 923 | ||
579 | 816 | : # generate binfmt file | 924 | : # generate binfmt file |
580 | 817 | mkdir -p $(d_min)/usr/share/binfmts | 925 | mkdir -p $(d_min)/usr/share/binfmts |
581 | 926 | ifeq ($(DEB_BUILD_GNU_TYPE),$(DEB_HOST_GNU_TYPE)) | ||
582 | 818 | $(buildd_static)/python debian/mkbinfmt.py $(PVER) \ | 927 | $(buildd_static)/python debian/mkbinfmt.py $(PVER) \ |
584 | 819 | > $(d_min)/usr/share/binfmts/$(PVER) | 928 | > $(d_min)/usr/share/binfmts/$(PVER) |
585 | 929 | else | ||
586 | 930 | $(buildd_cross)/python debian/mkbinfmt.py $(PVER) \ | ||
587 | 931 | > $(d_min)/usr/share/binfmts/$(PVER) | ||
588 | 932 | endif | ||
589 | 820 | 933 | ||
590 | 821 | : # desktop entry | 934 | : # desktop entry |
591 | 822 | mkdir -p $(d_base)/usr/share/applications | 935 | mkdir -p $(d_base)/usr/share/applications |
592 | @@ -832,7 +945,7 @@ | |||
593 | 832 | 945 | ||
594 | 833 | : # install debug package | 946 | : # install debug package |
595 | 834 | rm -rf $(d)-dbg | 947 | rm -rf $(d)-dbg |
597 | 835 | $(MAKE) -C $(buildd_debug) install DESTDIR=$(CURDIR)/$(d)-dbg | 948 | $(MAKE) -C $(buildd_debug) install DESTDIR=$(CURDIR)/$(d)-dbg $(CROSS) |
598 | 836 | dh_installdirs -p$(p_dbg) \ | 949 | dh_installdirs -p$(p_dbg) \ |
599 | 837 | usr/bin \ | 950 | usr/bin \ |
600 | 838 | usr/share/man/man1 \ | 951 | usr/share/man/man1 \ |