Package: mingw32-binutils
Version: 2.18.50-20080109-1
Severity: wishlist
Tags: patch

Please could you provide a 64-bit version of mingw32-binutils?  Patch
attached.

-- 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-binutils depends on:
ii  libc6                         2.7-18     GNU C Library: Shared libraries

mingw32-binutils recommends no packages.

Versions of packages mingw32-binutils suggests:
pn  mingw32                       <none>     (no description available)

-- no debconf information
diff -ur mingw32-binutils-2.18.50-20080109/debian/control mingw32-binutils-2.18.50-20080109.new/debian/control
--- mingw32-binutils-2.18.50-20080109/debian/control	2007-05-26 08:47:29.000000000 +0200
+++ mingw32-binutils-2.18.50-20080109.new/debian/control	2009-02-05 02:09:22.000000000 +0100
@@ -20,3 +20,16 @@
  only for build reasons, you'll need all the mingw* packages
  to actually build anything.
 
+Package: mingw64-binutils
+Architecture: any
+Suggests: mingw64
+Depends: ${shlibs:Depends}
+Description: Minimalist GNU win64 (cross) binutils
+ A Linux hosted, win64 target, cross compiler for C/C++
+ .
+ Freedom through obsolescence.  Those who still really need to
+ can now build windows executables from the comfort of Debian.
+ .
+ This package contains the toolchain binutils.  It is separate
+ only for build reasons, you'll need all the mingw* packages
+ to actually build anything.
diff -ur mingw32-binutils-2.18.50-20080109/debian/rules mingw32-binutils-2.18.50-20080109.new/debian/rules
--- mingw32-binutils-2.18.50-20080109/debian/rules	2009-02-05 02:08:40.000000000 +0100
+++ mingw32-binutils-2.18.50-20080109.new/debian/rules	2009-02-05 01:45:27.000000000 +0100
@@ -5,15 +5,19 @@
 # Created 30 Jan 2001, by Ron Lee <r...@debian.org>
 
 #export DH_VERBOSE=1
+SHELL = bash
 
 package = mingw32-binutils
+package64 = mingw64-binutils
 target  = i586-mingw32msvc
+target64 = amd64-mingw32msvc
 
 top_dir      := $(shell pwd)
 upstream_dir := $(top_dir)/upstream
 build_dir    := $(top_dir)/build_dir
 build_src    := $(build_dir)/src
 build_objs   := $(build_dir)/objs
+build_objs64 := $(build_dir)/objs64
 
 PACKAGE_BASENAME = $(patsubst %-src.tar,%,$(basename $(notdir $(wildcard $(upstream_dir)/$(1)*))))
 
@@ -24,7 +28,7 @@
 endif
 
 
-build : build-stamp
+build : build-stamp build64-stamp
 
 # XXX Work around another gratuitous change in the source dir name.
 #     They did so well for so long, *sigh*.
@@ -42,6 +46,13 @@
 					--target=$(target)
 	touch $@
 
+configure64-stamp: unpack-stamp
+	mkdir -p $(build_objs64)
+	cd $(build_objs64)					\
+		&& $(build_src)/$(binutils)/configure -v	\
+					--prefix=/usr		\
+					--target=$(target64)
+	touch $@
 
 build-stamp : configure-stamp
 	dh_testdir
@@ -49,6 +60,11 @@
 
 	touch $@
 
+build64-stamp : configure64-stamp
+	dh_testdir
+	cd $(build_objs64) && $(MAKE)
+
+	touch $@
 
 install : install-stamp
 
@@ -57,19 +73,23 @@
 	dh_testroot
 	dh_clean -k
 
-	dh_installdirs usr/share/lintian/overrides
+	dh_installdirs -A usr/share/lintian/overrides
 	cd $(build_objs)								\
 		&& $(MAKE) install prefix=$(top_dir)/debian/$(package)/usr		\
 				   mandir=$(top_dir)/debian/$(package)/usr/share/man
+	cd $(build_objs64)								\
+		&& $(MAKE) install prefix=$(top_dir)/debian/$(package64)/usr		\
+				   mandir=$(top_dir)/debian/$(package64)/usr/share/man
 
 	# remove some non-cross stuff that will clash with other packages
-	rm -rf debian/$(package)/usr/info
-	rm -rf debian/$(package)/usr/lib
-	rm -rf debian/$(package)/usr/share/locale
+	rm -rf debian/{$(package),$(package64)}/usr/info
+	rm -rf debian/{$(package),$(package64)}/usr/lib
+	rm -rf debian/{$(package),$(package64)}/usr/share/locale
 
 	# install override for the non fhs target dir gcc wants to use
 	# (until we find a better solution or change policy)
 	cp debian/lintian-overrides debian/$(package)/usr/share/lintian/overrides/$(package)
+	cp debian/lintian-overrides debian/$(package64)/usr/share/lintian/overrides/$(package64)
 
 	touch $@
 
@@ -106,17 +126,17 @@
 binary-arch: build install
 	dh_testdir
 	dh_testroot
-	dh_installdocs
-	dh_installman debian/$(target)-dllwrap.1
-	dh_installchangelogs
-	dh_strip
-	dh_compress
-	dh_fixperms
-	dh_installdeb
-	dh_shlibdeps
-	dh_gencontrol
-	dh_md5sums
-	dh_builddeb
+	dh_installdocs -s
+	dh_installman -p$(package) debian/$(target)-dllwrap.1
+	dh_installchangelogs -s
+	dh_strip -s
+	dh_compress -s
+	dh_fixperms -s
+	dh_installdeb -s
+	dh_shlibdeps -s
+	dh_gencontrol -s
+	dh_md5sums -s
+	dh_builddeb -s
 
 binary: binary-indep binary-arch
 

Reply via email to