Your message dated Thu, 09 Mar 2023 21:21:48 +0000
with message-id <[email protected]>
and subject line Bug#854472: fixed in nspr 2:4.35-1.1
has caused the Debian Bug report #854472,
regarding libreswan FTBFS on mips and mipsel: error: "_ABI64" is not defined 
[-Werror=undef]
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.)


-- 
854472: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=854472
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: libreswan
Version: 3.19-1
Severity: important
Tags: sid + patch
Justification: FTBFS
User: [email protected]
Usertags: mips-patch


Package libreswan_3.19-1 FTBFS on mips and mipsel with following error:

> In file included from /usr/include/nspr/prtypes.h:26:0,
>                  from /usr/include/nspr/plarena.h:15,
>                  from /usr/include/nss/cert.h:13,
>                  from /«PKGBUILDDIR»/lib/libswan/nss_copies.c:6:
> /usr/include/nspr/prcpucfg.h:511:18: error: "_ABI64" is not defined 
> [-Werror=undef]
>  #if _MIPS_SIM == _ABI64
>                   ^~~~~~
> cc1: all warnings being treated as errors
> ../../../mk/depend.mk:28: recipe for target 'nss_copies.o' failed
> make[5]: *** [nss_copies.o] Error 1

Full build log:
https://buildd.debian.org/status/fetch.php?pkg=libreswan&arch=mips&ver=3.19-1&stamp=1485409760&raw=0

On 32-bit mips (ABIO32) _ABI64 is not defined so using -Wundef flag causes 
build failure.

I have created and attached a patch that exclude this flag for mips/mipsel.
With this patch package builds successfully on mips, mipsel and  mips64el.

Regards,
Radovan
--- libreswan-3.19_orig/debian/rules	2017-01-25 23:37:04.000000000 +0000
+++ libreswan-3.19/debian/rules	2017-02-02 20:01:47.654502204 +0000
@@ -1,5 +1,12 @@
 #!/usr/bin/make -f
 
+DEB_BUILD_ARCH ?= $(shell dpkg-architecture -qDEB_BUILD_ARCH)
+ifneq (,$(filter $(DEB_BUILD_ARCH),mips mipsel))
+       ADDITIONAL_WARNING_CFLAGS = -Wall -Wextra -Wformat -Wformat-nonliteral -Wformat-security -Wmissing-declarations -Wredundant-decls -Wnested-externs
+else
+       ADDITIONAL_WARNING_CFLAGS = -Wall -Wextra -Wformat -Wformat-nonliteral -Wundef -Wformat-security -Wmissing-declarations -Wredundant-decls -Wnested-externs
+endif
+
 %:
 	dh $@ --with systemd
 
@@ -17,7 +24,8 @@ override_dh_auto_build:
 		USE_LIBCAP_NG=true \
 		USE_LABELED_IPSEC=false \
 		USE_KLIPS=false \
-		USE_DNSSEC=true
+		USE_DNSSEC=true \
+		WARNING_CFLAGS="$(ADDITIONAL_WARNING_CFLAGS)"
 
 override_dh_auto_install-arch:
 	# Add here commands to install the package into debian/libreswan

--- End Message ---
--- Begin Message ---
Source: nspr
Source-Version: 2:4.35-1.1
Done: Daniel Kahn Gillmor <[email protected]>

We believe that the bug you reported is fixed in the latest version of
nspr, 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.
Daniel Kahn Gillmor <[email protected]> (supplier of updated nspr 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: SHA256

Format: 1.8
Date: Wed, 22 Feb 2023 15:00:34 -0500
Source: nspr
Architecture: source
Version: 2:4.35-1.1
Distribution: unstable
Urgency: medium
Maintainer: Maintainers of Mozilla-related packages 
<[email protected]>
Changed-By: Daniel Kahn Gillmor <[email protected]>
Closes: 854472
Changes:
 nspr (2:4.35-1.1) unstable; urgency=medium
 .
   * Non-maintainer upload
   * Avoid libreswan build failures on mipsel (Closes: #854472)
Checksums-Sha1:
 a05ced3e6d8a13f8bcf071bc3b4bfef3ad3c771e 1374 nspr_4.35-1.1.dsc
 880fbcc54a0c4c21a3264abf3bcbac6af602bb84 11700 nspr_4.35-1.1.debian.tar.xz
 4085a7495a0d5166f67008ad4c2ef4d52309f07e 6628 nspr_4.35-1.1_source.buildinfo
Checksums-Sha256:
 5d78db8396c1fe095d171534e00684f0b60a5dfe759369e5d3b08d1e36419549 1374 
nspr_4.35-1.1.dsc
 4c0bcc717869ca22ef9b338c1b23b5efc0c7ea5767ca3570aca6151156fd12af 11700 
nspr_4.35-1.1.debian.tar.xz
 85e157c3b2c6246dc12239107637b38a14d4f3f4ab8a01509aadcbc64d73de78 6628 
nspr_4.35-1.1_source.buildinfo
Files:
 926cf50744b2a4e89fc77ba3866b7c0e 1374 libs optional nspr_4.35-1.1.dsc
 745c032c846fb30fd4a9c52947c42594 11700 libs optional 
nspr_4.35-1.1.debian.tar.xz
 10500d78a1ff7d31063e28b43cdf731d 6628 libs optional 
nspr_4.35-1.1_source.buildinfo

-----BEGIN PGP SIGNATURE-----

iHUEARYIAB0WIQQttUkcnfDcj0MoY88+nXFzcd5WXAUCY/Z2kgAKCRA+nXFzcd5W
XA16AP9Ibtv3Yu9h00KNj4h0sDGtDeZfXGZZBBVbDQEtX/PDOwEA1qvkoWxqDSeK
I6HB5QoxxLgD5ihnvcm24hp6MjFaaAI=
=8qMP
-----END PGP SIGNATURE-----

--- End Message ---

Reply via email to