Your message dated Tue, 09 Sep 2025 08:43:05 +0000
with message-id <[email protected]>
and subject line Bug#1113978: fixed in zdbsp 1.19+20181027+dfsg.1-6
has caused the Debian Bug report #1113978,
regarding zdbsp: FTBFS on hppa - ambiguous LittleShort(int) and
LittleLong(long) on big endian
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.)
--
1113978: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1113978
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Source: zdbsp
Version: 1.19+20181027+dfsg.1-5
Severity: normal
Tags: lfs patch
Dear Maintainer,
zdbsp does not build on 32-bit big endian arches. See for example:
https://buildd.debian.org/status/fetch.php?pkg=zdbsp&arch=hppa&ver=1.19%2B20181027%2Bdfsg.1-5&stamp=1756941003&raw=0
There are no implimentations of LittleShort(int) and LittleLong(long)
for big endian.. ftell returns long but LittleLong is implemented for
int and unsigned int. I believe this affects LFS support.
The attached patch fixes the build on hppa but it's only a quick hack.
Regards,
Dave Anglin
-- System Information:
Debian Release: forky/sid
APT prefers unreleased
APT policy: (500, 'unreleased'), (500, 'unstable')
Architecture: hppa (parisc64)
Kernel: Linux 6.12.43-dirty (SMP w/4 CPU threads)
Kernel taint flags: TAINT_WARN
Locale: LANG=en_CA.UTF-8, LC_CTYPE=en_CA.UTF-8 (charmap=UTF-8),
LANGUAGE=en_CA:en
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
--- wad.cpp.save 2025-09-03 20:06:38.695875760 -0400
+++ wad.cpp 2025-09-03 20:07:18.984627648 -0400
@@ -381,7 +381,7 @@
int32_t head[2];
head[0] = LittleLong(Lumps.Size());
- head[1] = LittleLong(ftell (File));
+ head[1] = LittleLong((int)ftell (File));
SafeWrite (&Lumps[0], sizeof(WadLump)*Lumps.Size());
fseek (File, 4, SEEK_SET);
@@ -396,7 +396,7 @@
WadLump lump;
strncpy (lump.Name, name, 8);
- lump.FilePos = LittleLong(ftell (File));
+ lump.FilePos = LittleLong((int)ftell (File));
lump.Size = 0;
Lumps.Push (lump);
}
@@ -406,7 +406,7 @@
WadLump lump;
strncpy (lump.Name, name, 8);
- lump.FilePos = LittleLong(ftell (File));
+ lump.FilePos = LittleLong((int)ftell (File));
lump.Size = LittleLong(len);
Lumps.Push (lump);
--- zdbsp.h.save 2025-09-03 19:55:28.829379064 -0400
+++ zdbsp.h 2025-09-03 20:03:30.106356619 -0400
@@ -241,12 +241,12 @@
// Swap 16bit, that is, MSB and LSB byte.
// No masking with 0xFF should be necessary.
-inline short LittleShort (short x)
+inline short LittleShort (int x)
{
return (short)((((unsigned short)x)>>8) | (((unsigned short)x)<<8));
}
-inline unsigned short LittleShort (unsigned short x)
+inline unsigned short LittleShort (unsigned int x)
{
return (unsigned short)((x>>8) | (x<<8));
}
--- End Message ---
--- Begin Message ---
Source: zdbsp
Source-Version: 1.19+20181027+dfsg.1-6
Done: Jonathan Dowland <[email protected]>
We believe that the bug you reported is fixed in the latest version of
zdbsp, 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.
Jonathan Dowland <[email protected]> (supplier of updated zdbsp 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: Mon, 08 Sep 2025 21:22:50 +0100
Source: zdbsp
Architecture: source
Version: 1.19+20181027+dfsg.1-6
Distribution: unstable
Urgency: medium
Maintainer: Jonathan Dowland <[email protected]>
Changed-By: Jonathan Dowland <[email protected]>
Closes: 1113978
Changes:
zdbsp (1.19+20181027+dfsg.1-6) unstable; urgency=medium
.
* 0001-Use-runtime-endian-test-for-byte-swap-functions.patch:
move host endian test from CPP to runtime (optimised
away at compile time), meaning we don't have separate BE and LE
function implementations; add some missing variants that caused
FTBFS on BE. Closes: #1113978.
Checksums-Sha1:
1d49ea546d275621137924e2e332c38586258fc1 1932 zdbsp_1.19+20181027+dfsg.1-6.dsc
a6394edcf1206270b068306f0ec37b51086d292f 5124
zdbsp_1.19+20181027+dfsg.1-6.debian.tar.xz
c1f2535ba1ee8fb68a406174678566bf1121ca74 6829
zdbsp_1.19+20181027+dfsg.1-6_amd64.buildinfo
Checksums-Sha256:
dbdaf92cddf003235e2f5990791f29e75c310429d8af343f84577fdb5ca9eb0a 1932
zdbsp_1.19+20181027+dfsg.1-6.dsc
1fb8336ebf6ba9332cc79698b2d1bf9770b1f8d81418288c49572aca58ef584a 5124
zdbsp_1.19+20181027+dfsg.1-6.debian.tar.xz
757cba789b89a9ace710fd50305c56861bf09c6b60503d0932abcbc84c032cd9 6829
zdbsp_1.19+20181027+dfsg.1-6_amd64.buildinfo
Files:
844c9794b29a9b549cf4772bce35f489 1932 utils optional
zdbsp_1.19+20181027+dfsg.1-6.dsc
da06c89cbca8bca371cde9f9f4704403 5124 utils optional
zdbsp_1.19+20181027+dfsg.1-6.debian.tar.xz
ec75012d52060a3b902846cfa0d7e3e4 6829 utils optional
zdbsp_1.19+20181027+dfsg.1-6_amd64.buildinfo
-----BEGIN PGP SIGNATURE-----
iQJEBAEBCgAuFiEE4DfLKhoAYblDNjyLCQdAlgaqqqoFAmi/3HYQHGptdGRAZGVi
aWFuLm9yZwAKCRAJB0CWBqqqqkj0EADUllPRlI9WR4ckKMX7AaFSn9F77sXScUp7
vR0MfQ7zEKa+l8wQcUKBZ+8kmaRfs/J+/NN5qr9FdGp1feoMLcJU0PGtoAwSFq/L
ZxS5TRM7yavIoZK3hiGacOtGJTyBnEdcOB/29TiPzXEymMXx9Ryt7GR4O4ADX7Cd
DWQ8L0IbvAVxb85hfkNJ/Ks7Hiy9ou4j6DeGVcX24e/p7+00IiM7xN/LgzYnMsdz
gaKwQSIWC5RsEZMAYNMzZXvOdM8tH6+2ZzXZC/UESVczj8h47IAjkkp2VTETvAoC
6mNUtJuBD+yQn05XOgkLp2ayu2f43bZdjnV6aX/ZHKm9IKuv8+nz+0jiD1EULW1e
lgYQECWDuLwka5GrgKn2xxXvoU3rQIxW8xMYSwc4a4LmRVMCsc3zQUZB2EwxyOQ8
nmPcf65VesVYFADPCJak7bRJfl+FIx0ugdwa863hvT2TA5SSCS1WlXUH/4oXmdaK
EpTzJJJ9it+j7TgPrikjto2SINUPb9ejMWNUbgxeNaVI3jlIy3zgyPb8TY8+/LpN
QrBuhlah3GpKS5gE/wSFRJfoQpL7bTJmoyJ1Iy/litJt/7e0ZIgg/YvI3E2L/aW4
igSYCcYMqnVFz8mpy5+AAAK3A1gbImqFMBvsRRaVW9Q54FvTWVLs+vxe1DGmnuLd
qrWrnsFU9A==
=CXDJ
-----END PGP SIGNATURE-----
pgpZZ0ESEMu7y.pgp
Description: PGP signature
--- End Message ---