Your message dated Thu, 28 May 2009 10:32:35 +0000
with message-id <[email protected]>
and subject line Bug#497180: fixed in gawk 1:3.1.6.dfsg-3
has caused the Debian Bug report #497180,
regarding [gawk 1:3.1.6.dfsg-1/experimental] Fix rand.awk testcase regression
on arm
to be marked as done.
This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.
(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)
--
497180: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=497180
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: gawk
Version: 1:3.1.6.dfsg-1
Severity: important
Tags: patch
Hi,
There is a regression in the testsuite on arm, from the build log:
[...]
|rand
|./rand.ok _rand differ: char 2, line 1
|make[2]: [rand] Error 1 (ignored)
[...]
|1 TESTS FAILED
[...]
Here is a patch taken from upstream CVS to fix it.
Thanks,
Arthur.
#! /bin/sh -e
## 05_arm_align.dpatch
##
## DP: Description: Fix rand.awk test case alignment problem on arm.
## DP: Author: Duncan Moore <[email protected]>
## DP: Upstream status: Applied to CVS
## DP: URL:
http://lists.gnu.org/archive/html/bug-gnu-utils/2008-03/msg00018.html
## DP: Date: 2008-04-23
if [ $# -lt 1 ]; then
echo "`basename $0`: script expects -patch|-unpatch as argument" >&2
exit 1
fi
[ -f debian/patches/00patch-opts ] && . debian/patches/00patch-opts
patch_opts="${patch_opts:--f --no-backup-if-mismatch} ${2:+-d $2}"
case "$1" in
-patch) patch -p1 ${patch_opts} < $0;;
-unpatch) patch -R -p1 ${patch_opts} < $0;;
*)
echo "`basename $0`: script expects -patch|-unpatch as argument" >&2
exit 1;;
esac
exit 0
Wed Apr 23 22:30:27 2008 Duncan Moore <[email protected]>
* builtin.c (state): Do as an integer array for systems that need it.
(do_rand, init_rand): Modify call to `initstate' as needed.
@DPATCH@
--- gawk-3.1.6/builtin.c 2008/03/15 20:27:35 1.24
+++ gawk-3.1.6/builtin.c 2008/04/23 19:35:57 1.25
@@ -2042,14 +2042,17 @@
/* do_rand --- do the rand function */
static int firstrand = TRUE;
-static char state[256];
+/* Some systems require this array to be integer aligned. Sigh. */
+#define SIZEOF_STATE 256
+static uint32_t istate[SIZEOF_STATE/sizeof(uint32_t)];
+static char *const state = (char *const) istate;
/* ARGSUSED */
NODE *
do_rand(NODE *tree ATTRIBUTE_UNUSED)
{
if (firstrand) {
- (void) initstate((unsigned) 1, state, sizeof state);
+ (void) initstate((unsigned) 1, state, SIZEOF_STATE);
/* don't need to srandom(1), initstate() does it for us. */
firstrand = FALSE;
setstate(state);
@@ -2072,7 +2075,7 @@
long ret = save_seed; /* SVR4 awk srand returns previous seed */
if (firstrand) {
- (void) initstate((unsigned) 1, state, sizeof state);
+ (void) initstate((unsigned) 1, state, SIZEOF_STATE);
/* don't need to srandom(1), we're changing the seed below */
firstrand = FALSE;
(void) setstate(state);
signature.asc
Description: Digital signature
--- End Message ---
--- Begin Message ---
Source: gawk
Source-Version: 1:3.1.6.dfsg-3
We believe that the bug you reported is fixed in the latest version of
gawk, which is due to be installed in the Debian FTP archive:
gawk_3.1.6.dfsg-3.diff.gz
to pool/main/g/gawk/gawk_3.1.6.dfsg-3.diff.gz
gawk_3.1.6.dfsg-3.dsc
to pool/main/g/gawk/gawk_3.1.6.dfsg-3.dsc
gawk_3.1.6.dfsg-3_amd64.deb
to pool/main/g/gawk/gawk_3.1.6.dfsg-3_amd64.deb
A summary of the changes between this version and the previous one is
attached.
Thank you for reporting the bug, which will now be closed. If you
have further comments please address them to [email protected],
and the maintainer will reopen the bug report if appropriate.
Debian distribution maintenance software
pp.
Arthur Loiret <[email protected]> (supplier of updated gawk package)
(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing [email protected])
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Format: 1.8
Date: Thu, 28 May 2009 09:24:47 +0000
Source: gawk
Binary: gawk
Architecture: source amd64
Version: 1:3.1.6.dfsg-3
Distribution: unstable
Urgency: low
Maintainer: Arthur Loiret <[email protected]>
Changed-By: Arthur Loiret <[email protected]>
Description:
gawk - GNU awk, a pattern scanning and processing language
Closes: 497180 497181
Changes:
gawk (1:3.1.6.dfsg-3) unstable; urgency=low
.
* debian/patches/05_arm_align.dpatch: Add, fixes rand.awk test case
alignment problem on arm/armel. Closes: #497180.
* debian/rules: Fail the build in case of regression in the testsuite.
* debian/copyright: Update for GPL v3.
* debian/watch: Add. Closes: #497181.
Checksums-Sha1:
1af274de3a002bff8154a4465b6df900bd2f5bca 1040 gawk_3.1.6.dfsg-3.dsc
1df91e60fe6a72acdbbb3983ac3c790c8a611f9d 12703 gawk_3.1.6.dfsg-3.diff.gz
38f93ef1fb9ff1b79311939f3c28828705edda0d 769102 gawk_3.1.6.dfsg-3_amd64.deb
Checksums-Sha256:
bad3638f4756e95bc069772cc4a7eb02c277925f888f9e809f04a3acbfda1626 1040
gawk_3.1.6.dfsg-3.dsc
5faf139b48492798f03c26600902699c64e6a660843ac5383999869d86f3f631 12703
gawk_3.1.6.dfsg-3.diff.gz
1428ddc1a0e216d0109be5ba17560cf77053c70a2035e21a5891cb1897b21003 769102
gawk_3.1.6.dfsg-3_amd64.deb
Files:
a761e6e9557c9660f1b657df24db8dfe 1040 interpreters optional
gawk_3.1.6.dfsg-3.dsc
b145534f93d401cbe2ab1a069ffec544 12703 interpreters optional
gawk_3.1.6.dfsg-3.diff.gz
2318de1d46a270a2ff3aeea61cf7e409 769102 interpreters optional
gawk_3.1.6.dfsg-3_amd64.deb
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)
iEYEARECAAYFAkoeZcMACgkQHeT0QCEnXMSKGwCfaZUJpLwcgSSbbRB6x7O9b2ZN
GWAAnRBP1pXim/J58G6JCGPdRMTrOgaH
=wzxy
-----END PGP SIGNATURE-----
--- End Message ---