Package: mingw32
Version: 4.2.1.dfsg-1
Severity: wishlist
Tags: patch

A new upstream version (gcc 4.3) is available.  It is required to compile
mingw-w64.  Please could you update the package?

I notice this package is currently shipping its own gcc source tarball.  This
can be easily avoided by build-depending on gcc-x.y-source, so the attached
patch does that (as well as adjusting the build-dependencies for gcc 4.3).

Note: only the compiler itself is built, since libgcc etc requires runtime
      headers/libraries which are not yet packaged (and can't be packaged
      without the compiler ;-)).

-- System Information:
Debian Release: 5.0
  APT prefers unstable
  APT policy: (500, 'unstable')
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.18-6-amd64 (SMP w/2 CPU cores)
Locale: LANG=ca_AD.UTF-8, LC_CTYPE=ca_AD.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages mingw32 depends on:
ii  libc6                 2.7-18             GNU C Library: Shared libraries
ii  libgmp3c2             2:4.2.2+dfsg-3     Multiprecision arithmetic library
ii  libmpfr1ldbl          2.3.2.dfsg.1-1     multiple precision floating-point 
ii  mingw32-binutils      2.18.50-20080109-1 Minimalist GNU win32 (cross) binut
ii  mingw32-runtime       3.13-1             Minimalist GNU win32 (cross) runti

mingw32 recommends no packages.

Versions of packages mingw32 suggests:
pn  cpp-doc                       <none>     (no description available)
pn  gcc-doc                       <none>     (no description available)
diff -ur mingw32-4.2.1.dfsg/debian/control mingw32-4.2.1.dfsg.gcc-source/debian/control
--- mingw32-4.2.1.dfsg/debian/control	2009-02-05 00:34:32.000000000 +0100
+++ mingw32-4.2.1.dfsg.gcc-source/debian/control	2009-02-04 22:58:25.000000000 +0100
@@ -1,7 +1,7 @@
 Source: mingw32
 Section: devel
 Priority: optional
-Build-Depends: mingw32-binutils, mingw32-runtime, debhelper (>= 4.0), gettext, bison, flex, perl, texinfo
+Build-Depends: mingw32-binutils, mingw32-runtime, debhelper (>= 4.0), gettext, bison, flex, perl, texinfo, libgmp3-dev (>= 2:4.1), libmpfr-dev (>= 2.3.0), gcc-4.3-source, lzma
 Maintainer: Ron Lee <[email protected]>
 Standards-Version: 3.7.2.2
 
diff -ur mingw32-4.2.1.dfsg/debian/rules mingw32-4.2.1.dfsg.gcc-source/debian/rules
--- mingw32-4.2.1.dfsg/debian/rules	2009-02-05 00:34:32.000000000 +0100
+++ mingw32-4.2.1.dfsg.gcc-source/debian/rules	2009-02-04 23:19:40.000000000 +0100
@@ -10,7 +10,7 @@
 target  = i586-mingw32msvc
 
 top_dir      := $(shell pwd)
-upstream_dir := $(top_dir)/upstream
+upstream_dir := /usr/src/gcc-4.3
 patch_dir    := $(top_dir)/debian/patches
 build_dir    := $(top_dir)/build_dir
 build_src    := $(build_dir)/src
@@ -18,11 +18,9 @@
 
 man1dir = usr/share/man/man1
 
-#XXX
-version_extra := -sjlj
-version := $(shell expr $(notdir $(wildcard $(upstream_dir)/gcc-core*)) : gcc-core-\\\([^-]*\\\))$(version_extra)
-release := $(shell expr $(notdir $(wildcard $(upstream_dir)/gcc-core*)) : gcc-core-\\\(.*\\\)-src)
-upstream_packages := $(patsubst %-src.tar,%,$(basename $(notdir $(wildcard $(upstream_dir)/gcc-*))))
+version := $(shell expr $(notdir $(wildcard $(upstream_dir)/gcc*)) : gcc-\\\([^-]*\\\))
+release := $(shell expr $(notdir $(wildcard $(upstream_dir)/gcc*)) : gcc-\\\(.*\\\)-dfsg)
+upstream_packages := $(patsubst %.tar,%,$(basename $(notdir $(wildcard $(upstream_dir)/gcc-*))))
 
 ifneq ($(words $(version)),1)
   $(error version defined as '$(version)')
@@ -91,10 +89,12 @@
 	@cd $(build_src)							\
 		&& for f in $(upstream_packages) ; do				\
 			echo "unpacking $$f";					\
-			if [ -r $(upstream_dir)/$$f-src.tar.gz ]; then		\
-				tar zxf $(upstream_dir)/$$f-src.tar.gz;		\
-			elif [ -r $(upstream_dir)/$$f-src.tar.bz2 ]; then	\
-				tar jxf $(upstream_dir)/$$f-src.tar.bz2;	\
+			if [ -r $(upstream_dir)/$$f.tar.gz ]; then		\
+				tar zxf $(upstream_dir)/$$f.tar.gz;		\
+			elif [ -r $(upstream_dir)/$$f.tar.lzma ]; then	\
+				lzma -d < $(upstream_dir)/$$f.tar.lzma | tar xf -;	\
+			elif [ -r $(upstream_dir)/$$f.tar.bz2 ]; then	\
+				tar jxf $(upstream_dir)/$$f.tar.bz2;	\
 			else							\
 				echo " *** Error: Failed to unpack $$f";	\
 				exit 1;						\

Reply via email to