Your message dated Wed, 08 Mar 2023 18:35:04 +0000
with message-id <[email protected]>
and subject line Bug#1025745: fixed in libhdf4 4.2.16-1~exp1
has caused the Debian Bug report #1025745,
regarding libhdf4: add support for loongarch64
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.)
--
1025745: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1025745
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: libhdf4
Version: 4.2.15-5
Severity: wishlist
Tags: patch
User: [email protected]
Usertags: loongarch64
Dear maintainers,
I have added support for loongarch64 in libhdf4 source package.
The results of test-units(make check) all passed.
Please consider applying the attached patch.
thanks,
Dandan Zhang
diff --git a/hdf/src/hconv.h b/hdf/src/hconv.h
index 7f0cf0d..d0c4cdf 100644
--- a/hdf/src/hconv.h
+++ b/hdf/src/hconv.h
@@ -59,7 +59,7 @@
/* CONSTANT DEFINITIONS */
/*****************************************************************************/
/* Generally Big-Endian machines */
-#if !defined(INTEL86) && !defined(MIPSEL) && !defined(DEC_ALPHA) && !defined(I860) && !defined(SUN386) && !(defined(__ia64) && !(defined(hpux) || defined(__hpux))) && !defined(__x86_64__) && !(defined(__powerpc__) && defined(__LITTLE_ENDIAN__)) && !defined(__aarch64__) && !defined(__ARM_EABI__) && !defined(__riscv)
+#if !defined(INTEL86) && !defined(MIPSEL) && !defined(DEC_ALPHA) && !defined(I860) && !defined(SUN386) && !(defined(__ia64) && !(defined(hpux) || defined(__hpux))) && !defined(__x86_64__) && !(defined(__powerpc__) && defined(__LITTLE_ENDIAN__)) && !defined(__aarch64__) && !defined(__ARM_EABI__) && !defined(__riscv) && !defined(__loongarch64)
# define UI8_IN DFKnb1b /* Unsigned Integer, 8 bits */
# define UI8_OUT DFKnb1b
# define SI16_IN DFKnb2b /* S = Signed */
diff --git a/hdf/src/hdfi.h b/hdf/src/hdfi.h
index bdb94cc..f5ec978 100644
--- a/hdf/src/hdfi.h
+++ b/hdf/src/hdfi.h
@@ -84,6 +84,7 @@
#define DFMT_SH 0x4441
#define DFMT_SHEB 0x1111
#define DFMT_RISCV64 0x4441
+#define DFMT_LOONGARCH64 0x4441
/* I/O library constants */
#define UNIXUNBUFIO 1
@@ -1087,6 +1088,58 @@ typedef long hdf_pint_t; /* an integer the same size as a pointer
#endif /* Linux/aarch64 */
+#if defined (__linux__) && defined (__loongarch64)
+
+#ifdef GOT_MACHINE
+If you get an error on this line more than one machine type has been defined.
+Please check your Makefile.
+#endif
+#define GOT_MACHINE 1
+
+#include <fcntl.h>
+#include <sys/types.h> /* for unbuffered file I/O */
+#include <sys/stat.h>
+#include <unistd.h>
+#include <ctype.h> /* for character macros */
+
+#define DF_MT DFMT_LOONGARCH64
+
+typedef void VOID;
+typedef void * VOIDP;
+typedef char * _fcd;
+typedef char char8;
+typedef unsigned char uchar8;
+typedef signed char int8;
+typedef unsigned char uint8;
+typedef short int int16;
+typedef unsigned short int uint16;
+typedef int int32;
+typedef unsigned int uint32;
+typedef int intn;
+typedef unsigned int uintn;
+typedef float float32;
+typedef double float64;
+typedef int intf; /* size of INTEGERs in Fortran compiler */
+typedef long hdf_pint_t; /* an integer the same size as a pointer */
+#define FNAME_POST_UNDERSCORE
+#define _fcdtocp(desc) (desc)
+#define FILELIB UNIXBUFIO
+
+#ifndef BIG_LONGS
+#define BIG_LONGS
+#endif
+
+/* JPEG #define's - Look in the JPEG docs before changing - (Q) */
+
+/* Determine the memory manager we are going to use. Valid values are: */
+/* MEM_DOS, MEM_ANSI, MEM_NAME, MEM_NOBS. See the JPEG docs for details on */
+/* what each does */
+#define JMEMSYS MEM_ANSI
+#define HAVE_STDC
+#define INCLUDES_ARE_ANSI
+
+#endif /* Linux/loongarch64 */
+
#if defined (__linux__) && defined (__riscv) && (__riscv_xlen == 64)
#ifdef GOT_MACHINE
diff --git a/mfhdf/libsrc/netcdf.h.in b/mfhdf/libsrc/netcdf.h.in
index d8e8b0b..6de3477 100644
--- a/mfhdf/libsrc/netcdf.h.in
+++ b/mfhdf/libsrc/netcdf.h.in
@@ -293,7 +293,7 @@ typedef double ncdouble;
/*
* Variables/attributes of type NC_LONG should use the C type 'nclong'
*/
-#if defined __alpha || (_MIPS_SZLONG == 64) || defined __ia64 || (defined __sun && defined _LP64) || defined AIX5L64 || defined __x86_64__ || defined __powerpc64__ || (defined __sparc__ && defined __arch64__) || defined __s390x__ || defined __aarch64__ || (defined __riscv && __riscv_xlen == 64)
+#if defined __alpha || (_MIPS_SZLONG == 64) || defined __ia64 || (defined __sun && defined _LP64) || defined AIX5L64 || defined __x86_64__ || defined __powerpc64__ || (defined __sparc__ && defined __arch64__) || defined __s390x__ || defined __aarch64__ || (defined __riscv && __riscv_xlen == 64) || defined __loongarch64
/*
* LP64 (also known as 4/8/8) denotes long and pointer as 64 bit types.
* http://www.unix.org/version2/whatsnew/lp64_wp.html
diff --git a/mfhdf/ncgen/ncgen.l b/mfhdf/ncgen/ncgen.l
index cdaf0af..b19c82b 100644
--- a/mfhdf/ncgen/ncgen.l
+++ b/mfhdf/ncgen/ncgen.l
@@ -113,7 +113,7 @@ FloatInf|Infinity|Inf { /* float missing values */
yyerror(errstr);
}
-#if defined __alpha || (_MIPS_SZLONG == 64) || defined __ia64 || (defined __sun && defined _LP64) || defined AIX5L64 || defined __x86_64__ || __powerpc64__ || defined __s390x__ || defined __aarch64__ || (defined __riscv && __riscv_xlen == 64)
+#if defined __alpha || (_MIPS_SZLONG == 64) || defined __ia64 || (defined __sun && defined _LP64) || defined AIX5L64 || defined __x86_64__ || __powerpc64__ || defined __s390x__ || defined __aarch64__ || (defined __riscv && __riscv_xlen == 64) || defined __loongarch64
if (dd < INT_MIN || dd > INT_MAX)
#else
if (dd < LONG_MIN || dd > LONG_MAX)
diff --git a/mfhdf/ncgen/ncgenyy.c b/mfhdf/ncgen/ncgenyy.c
index 8ee3720..8ff0a82 100644
--- a/mfhdf/ncgen/ncgenyy.c
+++ b/mfhdf/ncgen/ncgenyy.c
@@ -991,7 +991,7 @@ YY_RULE_SETUP
yyerror(errstr);
}
-#if defined __alpha || (_MIPS_SZLONG == 64) || defined __ia64 || (defined __sun && defined _LP64) || defined AIX5L64 || defined __x86_64__ || defined __powerpc64__ || defined __aarch64__ || (defined __riscv && __riscv_xlen == 64)
+#if defined __alpha || (_MIPS_SZLONG == 64) || defined __ia64 || (defined __sun && defined _LP64) || defined AIX5L64 || defined __x86_64__ || defined __powerpc64__ || defined __aarch64__ || (defined __riscv && __riscv_xlen == 64) || defined __loongarch64
if (dd < INT_MIN || dd > INT_MAX)
#else
if (dd < LONG_MIN || dd > LONG_MAX)
--- End Message ---
--- Begin Message ---
Source: libhdf4
Source-Version: 4.2.16-1~exp1
Done: Bas Couwenberg <[email protected]>
We believe that the bug you reported is fixed in the latest version of
libhdf4, which is due to be installed in the Debian FTP archive.
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.
Bas Couwenberg <[email protected]> (supplier of updated libhdf4 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: SHA512
Format: 1.8
Date: Wed, 08 Mar 2023 18:47:19 +0100
Source: libhdf4
Architecture: source
Version: 4.2.16-1~exp1
Distribution: experimental
Urgency: medium
Maintainer: Debian GIS Project <[email protected]>
Changed-By: Bas Couwenberg <[email protected]>
Closes: 1025745
Changes:
libhdf4 (4.2.16-1~exp1) experimental; urgency=medium
.
* Team upload.
* New upstream release.
(closes: #1025745)
* Bump Standards-Version to 4.6.2, no changes.
* Update copyright file.
* Refresh patches.
* Update symbols for 4.2.16.
Checksums-Sha1:
cf8963efe10a9dfd649def92b55ffef96f00d7a8 2359 libhdf4_4.2.16-1~exp1.dsc
cd7ad337a53e672ca38a088dfd6fefb93fb106be 3640784 libhdf4_4.2.16.orig.tar.bz2
607b679d9f918dbde1c0b85eb522e0a9d99cf981 43232
libhdf4_4.2.16-1~exp1.debian.tar.xz
a6057f2048a832d8431030ed5eafd072f60bc825 9821
libhdf4_4.2.16-1~exp1_amd64.buildinfo
Checksums-Sha256:
a26068f61ab686bf670f50d750012ec46a823ed1b7ae9329c00452ba2cb3f925 2359
libhdf4_4.2.16-1~exp1.dsc
4b9c46b07f365a9150ddbf0e33589732be1ccdd7e7bbc978a37990259388b5e6 3640784
libhdf4_4.2.16.orig.tar.bz2
5a29fecdc6df9d7510d15999c255388c4583f055ce3cff1ccff78389d1c2a4b8 43232
libhdf4_4.2.16-1~exp1.debian.tar.xz
745b85e5d043934012bd46e232afe368a88d6678a4c182eeed37f6f71ec5a31c 9821
libhdf4_4.2.16-1~exp1_amd64.buildinfo
Files:
3eb8b383708e855c2ca9fb1fa67ea259 2359 graphics optional
libhdf4_4.2.16-1~exp1.dsc
563a4f7b50712c9a2550626e5b95c7af 3640784 graphics optional
libhdf4_4.2.16.orig.tar.bz2
fc82c111ffaf532fe38bf794d249b639 43232 graphics optional
libhdf4_4.2.16-1~exp1.debian.tar.xz
272de691f4538fe50545b3368f6ba4f1 9821 graphics optional
libhdf4_4.2.16-1~exp1_amd64.buildinfo
-----BEGIN PGP SIGNATURE-----
iQIzBAEBCgAdFiEEgYLeQXBWQI1hRlDRZ1DxCuiNSvEFAmQI0TMACgkQZ1DxCuiN
SvGhEg/+K8/YZO3zem2XBV6b4VQNxGvhEkaurXSwqbbH7PD3+nU4H5hhIHjI74tO
YGN0oJtEVblZiuRAJn0qxKyfMAJN+wN1gWxDriWibY4XARGNmpprtS/tgzBbuNB2
+UE/+fwCD3O6ddfq97HjIbzS318Sb4aXEEPBpvelUfI1z5I2gkhLBxILymEeuiTW
KC129EJ9FC6LZIYt38zFYECgdZ2YpI/DO0Be6d23ZyJwBj8X1tvX//C64v1PiBle
aVivo02alzG1jtDaIgkfUecneLUo73ywVjVwBHIrj/gxQJFJ6ghIQOme9cPt64xG
tIvhFZrKlWpFidYFK9vieq4G5I/CB8LhqZpIU7B/F2k/izX4PfB/DErT2cW22frn
MKA23YwmGmCZ+6Pxu8D4yGEeeJ2DsufsHHWDMXb4geSKYKcGceEL6ZWzW3gRjtr/
13cmTiHYACRSMIf9IYAvdTA2IVA0bMVYglaNelq8E/hCwP7xQWpJLnIefpacnRXr
yj4B16EKk70P2StW21AeDl22fwcHrSdRSAbL9DTH7SL1Xf9TUS6u5CLI4NdMKKI8
lIU6yIm12yD+le3NsGyk70VIbUr0BEeNjytsccEnWKyfTWbATssymdi0n+yQT2gS
GfNHt94JwifNgJbk2XrIhyZOzO0A2fDC4emiZmCnHO45Kdq7hhI=
=cZg3
-----END PGP SIGNATURE-----
--- End Message ---