Your message dated Tue, 21 Nov 2006 22:24:41 +0000
with message-id <[EMAIL PROTECTED]>
and subject line Bug#397619: fixed in cfitsio3 3.006-1.2
has caused the attached Bug report 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 I am
talking about this indicates a serious mail system misconfiguration
somewhere. Please contact me immediately.)
Debian bug tracking system administrator
(administrator, Debian Bugs database)
--- Begin Message ---
Package: libcfitsio2
Version: 2.510-1
Severity: normal
Tags: upstream patch
The libfitsio2 library does not work on arm and mipsel. I discovered this
from the buildd logs for the slcfitsio package:
http://buildd.debian.org/fetch.php?&pkg=slcfitsio&ver=0.3.2b-4&arch=arm&stamp=1132249413&file=log&as=raw
http://buildd.debian.org/fetch.php?&pkg=slcfitsio&ver=0.3.2b-4&arch=mipsel&stamp=1132283865&file=log&as=raw
The simple test program attached below fails on vaughan.debian.org (a
mipsel machine) with the following error message:
[EMAIL PROTECTED]:~$ ./test
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
Byteswapping is not being done correctly on this system.
Check the MACHINE and BYTESWAPPED definitions in fitsio2.h
Please report this problem to the author at
[EMAIL PROTECTED]
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
fits_create_file returned status=1
[As this error message suggests, I am Cc:ing this bug report to the
address mentioned above.]
The following patch to the upstream source fixes the problem on vaughan:
--- fitsio2.h 2005-11-18 16:51:07.000000000 +0000
+++ fitsio2.h-new 2005-11-18 16:49:57.000000000 +0000
@@ -132,6 +132,12 @@
#define MACHINE PC64BIT
#define LONGSIZE 64
+#elif defined(MIPSEL) || defined(arm)
+
+/* mipsel and arm architectures */
+#define BYTESWAPPED TRUE
+#define MACHINE NATIVE
+
#else
/* assume machine uses the same IEEE formats as used in FITS files */
[Please, notice that I only tested the patch above on vaughan, a mipsel
machine. There is currently no arm machine available to Debian
developers.]
-- System Information:
Debian Release: testing/unstable
APT prefers unstable
APT policy: (500, 'unstable')
Architecture: i386 (i686)
Shell: /bin/sh linked to /bin/dash
Kernel: Linux 2.6.8-1-686
Locale: LANG=en_US, LC_CTYPE=en_US (charmap=ISO-8859-1)
Versions of packages libcfitsio2 depends on:
ii libc6 2.3.5-6 GNU C Library: Shared libraries an
libcfitsio2 recommends no packages.
-- no debconf information
#include <stdio.h>
#include <unistd.h>
#include <fitsio.h>
int main ()
{
fitsfile *f;
char *file = "/tmp/foo.fits";
int status = 0;
(void) remove (file);
fits_create_file (&f, file, &status);
if (status)
fprintf (stderr, "fits_create_file returned status=%d\n", status);
if (f != NULL)
{
status = 0;
fits_close_file (f, &status);
}
return 0;
}
--- End Message ---
--- Begin Message ---
Source: cfitsio3
Source-Version: 3.006-1.2
We believe that the bug you reported is fixed in the latest version of
cfitsio3, which is due to be installed in the Debian FTP archive:
cfitsio3_3.006-1.2.diff.gz
to pool/main/c/cfitsio3/cfitsio3_3.006-1.2.diff.gz
cfitsio3_3.006-1.2.dsc
to pool/main/c/cfitsio3/cfitsio3_3.006-1.2.dsc
libcfitsio3-dev_3.006-1.2_i386.deb
to pool/main/c/cfitsio3/libcfitsio3-dev_3.006-1.2_i386.deb
libcfitsio3-doc_3.006-1.2_all.deb
to pool/main/c/cfitsio3/libcfitsio3-doc_3.006-1.2_all.deb
libcfitsio3_3.006-1.2_i386.deb
to pool/main/c/cfitsio3/libcfitsio3_3.006-1.2_i386.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.
Andreas Barth <[EMAIL PROTECTED]> (supplier of updated cfitsio3 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.7
Date: Tue, 21 Nov 2006 20:55:58 +0100
Source: cfitsio3
Binary: libcfitsio3 libcfitsio3-doc libcfitsio3-dev
Architecture: source all i386
Version: 3.006-1.2
Distribution: unstable
Urgency: low
Maintainer: Gopal Narayanan <[EMAIL PROTECTED]>
Changed-By: Andreas Barth <[EMAIL PROTECTED]>
Description:
libcfitsio3 - shared library for I/O with FITS format data files
libcfitsio3-dev - static library for I/O with FITS format data files
libcfitsio3-doc - documentation for cfitsio
Closes: 397619
Changes:
cfitsio3 (3.006-1.2) unstable; urgency=low
.
* Non-maintainer upload.
* Fixing FTBFS on some arches with taking upstream changelog.
Closes: #397619
Files:
76376416e44ec4d1a623990adc9955e2 651 devel optional cfitsio3_3.006-1.2.dsc
ffb3ad1ee8baabc619f2d43fe32e1753 18410 devel optional
cfitsio3_3.006-1.2.diff.gz
7e41a2874758f4eba994cc9dac124961 1124528 doc optional
libcfitsio3-doc_3.006-1.2_all.deb
93a27a2b7c36dfb2b8f18392cc7f6eda 655834 devel optional
libcfitsio3-dev_3.006-1.2_i386.deb
1cc377290f1355fb96c7c5b109978f6d 504128 devel optional
libcfitsio3_3.006-1.2_i386.deb
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (GNU/Linux)
iD8DBQFFY2sgmdOZoew2oYURAnhRAJ9TYbGEsXyDiNlcIDfFprvOTqU8ywCgqCRn
BdgQp6OrR17hoy/nhmq7L0o=
=tRqz
-----END PGP SIGNATURE-----
--- End Message ---