diff -ruN unshield-0.5/debian/changelog unshield-0.5.NEW/debian/changelog --- unshield-0.5/debian/changelog 2007-09-17 19:49:39.000000000 +0200 +++ unshield-0.5.NEW/debian/changelog 2007-09-17 19:49:25.000000000 +0200 @@ -1,3 +1,11 @@ +unshield (0.5-3.1) unstable; urgency=low + + * Non-maintainer upload. + * Added patch system for the Debian package + * Added patch from SVN to fix issue with amd64 architecture (Closes: #350210) + + -- Julien Valroff Mon, 17 Sep 2007 19:48:54 +0200 + unshield (0.5-3) unstable; urgency=low * Added Build-Depends to libtool, autoconf, and automake diff -ruN unshield-0.5/debian/control unshield-0.5.NEW/debian/control --- unshield-0.5/debian/control 2007-09-17 19:49:39.000000000 +0200 +++ unshield-0.5.NEW/debian/control 2007-09-17 19:46:04.000000000 +0200 @@ -2,7 +2,7 @@ Section: utils Priority: optional Maintainer: Volker Christian -Build-Depends: debhelper (>= 4.0.0), zlib1g-dev (>= 1.2.1), libtool (>= 1.4), autoconf, automake1.7 +Build-Depends: debhelper (>= 4.0.0), zlib1g-dev (>= 1.2.1), libtool (>= 1.4), autoconf, automake1.7, dpatch Build-Conflicts: autoconf2.13, automake1.4 Standards-Version: 3.6.2 diff -ruN unshield-0.5/debian/patches/00list unshield-0.5.NEW/debian/patches/00list --- unshield-0.5/debian/patches/00list 1970-01-01 01:00:00.000000000 +0100 +++ unshield-0.5.NEW/debian/patches/00list 2007-09-17 19:44:14.000000000 +0200 @@ -0,0 +1 @@ +01_amd64-fix.dpatch diff -ruN unshield-0.5/debian/patches/01_amd64-fix.dpatch unshield-0.5.NEW/debian/patches/01_amd64-fix.dpatch --- unshield-0.5/debian/patches/01_amd64-fix.dpatch 1970-01-01 01:00:00.000000000 +0100 +++ unshield-0.5.NEW/debian/patches/01_amd64-fix.dpatch 2007-09-17 19:48:50.000000000 +0200 @@ -0,0 +1,31 @@ +#! /bin/sh /usr/share/dpatch/dpatch-run +## 01_amd64-fix.dpatch by +## +## All lines beginning with `## DP:' are a description of the patch. +## DP: AMD64 patch from upstream SVN. + +@DPATCH@ +diff -urNad unshield-0.5~/lib/md5/global.h unshield-0.5/lib/md5/global.h +--- unshield-0.5~/lib/md5/global.h 2003-08-25 13:45:20.000000000 +0200 ++++ unshield-0.5/lib/md5/global.h 2007-09-17 19:47:52.000000000 +0200 +@@ -17,7 +17,7 @@ + typedef unsigned short int UINT2; + + /* UINT4 defines a four byte word */ +-typedef unsigned long int UINT4; ++typedef unsigned int UINT4; + + /* PROTO_LIST is defined depending on how PROTOTYPES is defined above. + If using PROTOTYPES, then PROTO_LIST returns the list, otherwise it +diff -urNad unshield-0.5~/lib/md5/md5c.c unshield-0.5/lib/md5/md5c.c +--- unshield-0.5~/lib/md5/md5c.c 2003-08-25 13:45:20.000000000 +0200 ++++ unshield-0.5/lib/md5/md5c.c 2007-09-17 19:48:08.000000000 +0200 +@@ -68,7 +68,7 @@ + + /* ROTATE_LEFT rotates x left n bits. + */ +-#define ROTATE_LEFT(x, n) (((x) << (n)) | ((x) >> (32-(n)))) ++#define ROTATE_LEFT(x, n) ((((x) << (n)) & 0xffffffffU) | ((x) >> (32-(n)))) + + /* FF, GG, HH, and II transformations for rounds 1, 2, 3, and 4. + Rotation is separate from addition to prevent recomputation. diff -ruN unshield-0.5/debian/rules unshield-0.5.NEW/debian/rules --- unshield-0.5/debian/rules 2007-09-17 19:49:39.000000000 +0200 +++ unshield-0.5.NEW/debian/rules 2007-09-17 19:47:00.000000000 +0200 @@ -6,6 +6,7 @@ # Uncomment this to turn on verbose mode. #export DH_VERBOSE=1 +include /usr/share/dpatch/dpatch.make # These are used for cross-compiling and for saving the configure script # from having to guess our platform (since we know it already) @@ -24,7 +25,7 @@ INSTALL_PROGRAM += -s endif -config.status: configure +config.status: patch configure chmod +x bootstrap ./bootstrap dh_testdir @@ -35,7 +36,7 @@ --infodir=\$${prefix}/share/info -build: build-stamp +build: patch build-stamp build-stamp: config.status dh_testdir @@ -46,7 +47,7 @@ touch build-stamp -clean: +clean: unpatch dh_testdir dh_testroot rm -f build-stamp @@ -65,7 +66,7 @@ dh_clean -install: build +install: patch build dh_testdir dh_testroot dh_clean -k