Merge lp:~peter-pearse/ubuntu/natty/tk8.4/prop001 into lp:ubuntu/natty/tk8.4

Proposed by Peter Pearse
Status: Needs review
Proposed branch: lp:~peter-pearse/ubuntu/natty/tk8.4/prop001
Merge into: lp:ubuntu/natty/tk8.4
Diff against target: 59 lines (+24/-3)
2 files modified
debian/changelog (+6/-0)
debian/rules (+18/-3)
To merge this branch: bzr merge lp:~peter-pearse/ubuntu/natty/tk8.4/prop001
Reviewer Review Type Date Requested Status
Steve Langasek Needs Fixing
Review via email: mp+49971@code.launchpad.net

Description of the change

Note that the crossed tclConfig.sh has to be crossed e.g. -L /usr/lib deleted.

To post a comment you must log in.
Revision history for this message
Steve Langasek (vorlon) wrote :

+ CONFIGURE_EXTRA_ARGS += --with-tcl=/usr/$(DEB_HOST_GNU_TYPE)/usr/lib/tcl$(v)

This is the path when extracting tcl with dpkg -x, not the path that would be given by a "properly" dpkg-crossed package. The path should be:

--with-tcl=/usr/$(DEB_HOST_GNU_TYPE)/lib/tcl$(v)

I don't want us hard-coding paths in the packages that are artifacts of a current (and hopefully temporary) dpkg bug.

+ CONFIGURE_ENV_SET = TK_LIBRARY="/usr/share/tcltk/tk$(v)"

This same value is being set in both the cross and native cases. is it meant to be different, or should this be moved back to the build-stamp target, reducing duplication?

review: Needs Fixing

Unmerged revisions

8. By Peter Pearse

Patch debian/rules for cross building

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 2009-09-05 12:12:26 +0000
3+++ debian/changelog 2011-02-16 13:45:49 +0000
4@@ -1,3 +1,9 @@
5+tk8.4 (8.4.19-4ubuntu1) natty; urgency=low
6+
7+ * Patch debian/rules for cross building
8+
9+ -- Peter Pearse <peter.pearse@linaro.org> Wed, 16 Feb 2011 13:41:21 +0000
10+
11 tk8.4 (8.4.19-4) unstable; urgency=low
12
13 * Removed Anselm Lingnau from uploaders list (closes: #540858).
14
15=== modified file 'debian/rules'
16--- debian/rules 2009-09-05 12:12:26 +0000
17+++ debian/rules 2011-02-16 13:45:49 +0000
18@@ -11,6 +11,19 @@
19
20 v = 8.4
21
22+ifneq ($(DEB_HOST_GNU_TYPE),$(DEB_BUILD_GNU_TYPE))
23+ CONFIGURE_ENV_SET = TK_LIBRARY="/usr/share/tcltk/tk$(v)"
24+ CONFIGURE_ENV_SET += CC=$(DEB_HOST_GNU_TYPE)-gcc
25+
26+ # Only pass --host where host & build differ
27+ # See /usr/share/doc/autotools-dev/README.Debian.gz
28+ CONFIGURE_EXTRA_ARGS = --host=$(DEB_HOST_GNU_TYPE)
29+ CONFIGURE_EXTRA_ARGS += --with-tcl=/usr/$(DEB_HOST_GNU_TYPE)/usr/lib/tcl$(v)
30+else
31+ CONFIGURE_ENV_SET = TK_LIBRARY="/usr/share/tcltk/tk$(v)"
32+ CONFIGURE_EXTRA_ARGS += --with-tcl=/usr/lib/tcl$(v)
33+endif
34+
35 ifneq (,$(findstring debug,$(DEB_BUILD_OPTIONS)))
36 CFLAGS=-g -O0
37 else
38@@ -33,8 +46,8 @@
39 build-stamp: patch-stamp
40 dh_testdir
41 cd unix && \
42- TK_LIBRARY="/usr/share/tcltk/tk$(v)" \
43- ./configure --host=$(DEB_HOST_GNU_TYPE) \
44+ $(CONFIGURE_ENV_SET) TCL_LIB_SPEC=online \
45+ ./configure \
46 --build=$(DEB_BUILD_GNU_TYPE) \
47 --prefix=/usr \
48 --includedir=/usr/include/tcl$(v) \
49@@ -42,7 +55,9 @@
50 --enable-shared \
51 --enable-threads \
52 --enable-man-symlinks \
53- --enable-man-compression=gzip && \
54+ --enable-man-compression=gzip \
55+ $(CONFIGURE_EXTRA_ARGS) \
56+ && \
57 $(MAKE) CFLAGS="$(CFLAGS)"
58 # Build the static library.
59 cd unix && \

Subscribers

People subscribed via source and target branches

to all changes: