[Pkg-tcltk-commits] r524 - tk8.3/trunk/debian

sgolovan-guest at alioth.debian.org sgolovan-guest at alioth.debian.org
Mon Feb 25 07:34:29 UTC 2008


Author: sgolovan-guest
Date: 2008-02-25 07:34:29 +0000 (Mon, 25 Feb 2008)
New Revision: 524

Modified:
   tk8.3/trunk/debian/changelog
   tk8.3/trunk/debian/rules
Log:
[tk8.3]
  * Quoted CFLAGS in debian/rules when passing to the shell, not when
    assigning to a make variable; otherwise the quotes end up as part of
    the variable and many things go wrong, leading to a build failure.
  * Explicitly specified configure options --host and --build to make build
    results more predictable.


Modified: tk8.3/trunk/debian/changelog
===================================================================
--- tk8.3/trunk/debian/changelog	2008-02-25 07:34:09 UTC (rev 523)
+++ tk8.3/trunk/debian/changelog	2008-02-25 07:34:29 UTC (rev 524)
@@ -1,8 +1,12 @@
-tk8.3 (8.3.5-13) UNRELEASED; urgency=low
+tk8.3 (8.3.5-13) unstable; urgency=low
 
-  * NOT RELEASED YET
+  * Quoted CFLAGS in debian/rules when passing to the shell, not when
+    assigning to a make variable; otherwise the quotes end up as part of
+    the variable and many things go wrong, leading to a build failure.
+  * Explicitly specified configure options --host and --build to make build
+    results more predictable.
 
- -- Sergei Golovan <sgolovan at debian.org>  Mon,  4 Feb 2008 23:33:33 +0300
+ -- Sergei Golovan <sgolovan at debian.org>  Mon, 25 Feb 2008 10:29:01 +0300
 
 tk8.3 (8.3.5-12) unstable; urgency=high
 

Modified: tk8.3/trunk/debian/rules
===================================================================
--- tk8.3/trunk/debian/rules	2008-02-25 07:34:09 UTC (rev 523)
+++ tk8.3/trunk/debian/rules	2008-02-25 07:34:29 UTC (rev 524)
@@ -3,14 +3,17 @@
 # Uncomment this to turn on verbose mode. 
 #export DH_VERBOSE=1
 
+DEB_HOST_GNU_TYPE := $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE)
+DEB_BUILD_GNU_TYPE := $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE)
+
 export QUILT_PATCHES := debian/patches
 
 v = 8.3
 
 ifneq (,$(findstring debug,$(DEB_BUILD_OPTIONS)))
-CFLAGS="-g -O0 -D_REENTRANT=1"
+CFLAGS=-g -O0 -D_REENTRANT=1
 else
-CFLAGS="-g -O2 -D_REENTRANT=1"
+CFLAGS=-g -O2 -D_REENTRANT=1
 endif
 
 unpatch:
@@ -29,11 +32,13 @@
 	dh_testdir
 
 	cd unix && \
-	  ./configure --prefix=/usr \
+	  ./configure --host=$(DEB_HOST_GNU_TYPE) \
+		      --build=$(DEB_BUILD_GNU_TYPE) \
+		      --prefix=/usr \
 		      --includedir=/usr/include/tcl$(v) \
 		      --with-tcl=/usr/lib/tcl$(v) \
 		      --enable-shared && \
-	  $(MAKE) CFLAGS=$(CFLAGS) \
+	  $(MAKE) CFLAGS="$(CFLAGS)" \
 		  TK_LIBRARY="/usr/share/tcltk/tk$(v)"
 
 # Build the static library.




More information about the Pkg-tcltk-commits mailing list