Package: cpio
Version: 2.11-7
Severity: wishlist
Tags: patch

Hi,

mingw-w64, which is intended to eventually replace mingw32 and the
assorted packages, is now available in Debian along with new builds of
binutils and gcc. The attached patch allows cpio to build using
mingw-w64 rather than mingw32. I've checked the resulting executable
and it works fine.

Regards,

Stephen


-- System Information:
Debian Release: wheezy/sid
  APT prefers testing
  APT policy: (500, 'testing'), (500, 'stable'), (200, 'unstable'), (1, 
'experimental')
Architecture: i386 (i686)

Kernel: Linux 2.6.38-2-686-bigmem (SMP w/2 CPU cores)
Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages cpio depends on:
ii  dpkg                      1.16.0.2       Debian package management system
ii  install-info              4.13a.dfsg.1-6 Manage installed documentation in 
ii  libc6                     2.11.2-11      Embedded GNU C Library: Shared lib

cpio recommends no packages.

Versions of packages cpio suggests:
ii  libarchive1                   2.8.4-1    Single library to read/write tar, 

-- no debconf information
diff -urN cpio-2.11.orig/debian/changelog cpio-2.11/debian/changelog
--- cpio-2.11.orig/debian/changelog	2011-02-11 05:17:58.000000000 +0100
+++ cpio-2.11/debian/changelog	2011-04-19 23:41:33.000000000 +0200
@@ -1,3 +1,10 @@
+cpio (2.11-7.1) unstable; urgency=low
+
+  * Non-maintainer upload.
+  * Build using mingw-w64 instead of mingw32.
+
+ -- Stephen Kitt <[email protected]>  Tue, 19 Apr 2011 23:41:33 +0200
+
 cpio (2.11-7) unstable; urgency=low
 
   * New mantainer. Closes: #609990.
diff -urN cpio-2.11.orig/debian/control cpio-2.11/debian/control
--- cpio-2.11.orig/debian/control	2011-02-11 05:01:15.000000000 +0100
+++ cpio-2.11/debian/control	2011-04-19 23:37:18.000000000 +0200
@@ -4,7 +4,7 @@
 Maintainer: Ruben Molina <[email protected]>
 Uploaders: Anibal Monsalve Salazar <[email protected]>
 Build-Depends: texinfo, gettext
-Build-Depends-Indep: mingw32
+Build-Depends-Indep: mingw-w64
 Standards-Version: 3.9.1
 Homepage: http://www.gnu.org/software/cpio/
 Vcs-Git: git://git.debian.org/git/private/schizo/cpio
diff -urN cpio-2.11.orig/debian/rules cpio-2.11/debian/rules
--- cpio-2.11.orig/debian/rules	2010-12-16 10:15:46.000000000 +0100
+++ cpio-2.11/debian/rules	2011-04-19 23:38:02.000000000 +0200
@@ -41,7 +41,7 @@
 obj-win32/Makefile:
 	$(checkdir)
 	mkdir -p obj-win32
-	cd obj-win32 && CFLAGS='$(CFLAGS)' ../configure --host i586-mingw32msvc
+	cd obj-win32 && CFLAGS='$(CFLAGS)' ../configure --host i686-w64-mingw32
 
 build:	obj/Makefile
 	$(checkdir)
@@ -77,7 +77,7 @@
 		debian/tmp-win32/usr/share/win32
 # Install files
 	install -m 755 obj-win32/src/cpio.exe debian/tmp-win32/usr/share/win32/
-	i586-mingw32msvc-strip debian/tmp-win32/usr/share/win32/cpio.exe
+	i686-w64-mingw32-strip debian/tmp-win32/usr/share/win32/cpio.exe
 # Install changelog & copyright
 	install -m 644 debian/changelog \
 	  debian/tmp-win32/usr/share/doc/$(package)-win32/changelog.Debian
diff -urN cpio-2.11.orig/.pc/applied-patches cpio-2.11/.pc/applied-patches

Reply via email to