[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#1110332: marked as done (apparix FTCBFS: Tries to AC_TRY_RUN va_copy)



Your message dated Mon, 01 Dec 2025 15:01:29 +0000
with message-id <E1vQ5P7-00FbqS-0k@fasolo.debian.org>
and subject line Bug#1110332: fixed in apparix 11-062-4
has caused the Debian Bug report #1110332,
regarding apparix FTCBFS: Tries to AC_TRY_RUN va_copy
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 owner@bugs.debian.org
immediately.)


-- 
1110332: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1110332
Debian Bug Tracking System
Contact owner@bugs.debian.org with problems
--- Begin Message ---
Package: apparix
Version: 11-062-3
Tags: patch
User: debian-cross@lists.debian.org
Usertags: ftcbfs
X-Debbugs-Cc: debian-cross@lists.debian.org

Dear Maintainer,

apparix checks for various implementations of va_copy and runs code to check the same.
This is not possible during cross compilation.
This is likely not required and compiling to check if va_copy is present should be enough.

Attached patch modifies that behavior. I've also shortened the function quite a bit to
just test if the function does its job. Please consider to review and apply if this looks good.

thanks
Nilesh
From 823f81810a256788723ff8ebf7138489f640e5c5 Mon Sep 17 00:00:00 2001
From: Nilesh Patra <nilesh@debian.org>
Date: Sun, 3 Aug 2025 17:57:14 +0530
Subject: [PATCH] Add patch to fixup FTCBFS

---
 debian/patches/cross.patch | 52 ++++++++++++++++++++++++++++++++++++++
 debian/patches/series      |  1 +
 2 files changed, 53 insertions(+)
 create mode 100644 debian/patches/cross.patch

diff --git a/debian/patches/cross.patch b/debian/patches/cross.patch
new file mode 100644
index 0000000..d8389a3
--- /dev/null
+++ b/debian/patches/cross.patch
@@ -0,0 +1,52 @@
+diff --git a/acinclude.m4 b/acinclude.m4
+index 5badc0d..e8909fe 100644
+--- a/acinclude.m4
++++ b/acinclude.m4
+@@ -234,34 +234,9 @@ dnl ##
+ dnl #   test program for va_copy() implementation
+ changequote(<<,>>)
+ m4_define(__va_copy_test, <<[
+-#include <stdlib.h>
+-#include <stdarg.h>
+-#include <string.h>
+ #define DO_VA_COPY(d, s) $1
+-void test(char *str, ...)
+-{
+-    va_list ap, ap2;
+-    int i;
+-    va_start(ap, str);
+-    DO_VA_COPY(ap2, ap);
+-    for (i = 1; i <= 9; i++) {
+-        int k = (int)va_arg(ap, int);
+-        if (k != i)
+-            abort();
+-    }
+-    DO_VA_COPY(ap, ap2);
+-    for (i = 1; i <= 9; i++) {
+-        int k = (int)va_arg(ap, int);
+-        if (k != i)
+-            abort();
+-    }
+-    va_end(ap);
+-}
+-int main(int argc, char *argv[])
+-{
+-    test("test", 1, 2, 3, 4, 5, 6, 7, 8, 9);
+-    exit(0);
+-}
++va_list ap, ap2;
++DO_VA_COPY(ap2, ap);
+ ]>>)
+ changequote([,])
+ 
+@@ -271,7 +246,9 @@ m4_define(__va_copy_check, [
+ [/* Predefined possible va_copy() implementation (id: $1) */
+ #define __VA_COPY_USE_$1(d, s) $2])
+     if test ".$ac_cv_va_copy" = .; then
+-        AC_TRY_RUN(__va_copy_test($2), [ac_cv_va_copy="$1"])
++        AC_TRY_COMPILE([
++			#include <stdarg.h>
++			],__va_copy_test($2), [ac_cv_va_copy="$1"])
+     fi
+ ])
+ 
diff --git a/debian/patches/series b/debian/patches/series
index 8889fdf..f292a7d 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -1 +1,2 @@
 00-fix-spelling.patch
+cross.patch
-- 
2.47.2


--- End Message ---
--- Begin Message ---
Source: apparix
Source-Version: 11-062-4
Done: Santiago Vila <sanvila@debian.org>

We believe that the bug you reported is fixed in the latest version of
apparix, 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 1110332@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Santiago Vila <sanvila@debian.org> (supplier of updated apparix 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 ftpmaster@ftp-master.debian.org)


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512

Format: 1.8
Date: Mon, 01 Dec 2025 15:30:00 +0100
Source: apparix
Architecture: source
Version: 11-062-4
Distribution: unstable
Urgency: medium
Maintainer: Debian QA Group <packages@qa.debian.org>
Changed-By: Santiago Vila <sanvila@debian.org>
Closes: 1043916 1110332
Changes:
 apparix (11-062-4) unstable; urgency=medium
 .
   * QA upload.
   * Fix clean target. Closes: #1043916.
   * Allow cross build. Closes: #1110332.
     Thanks to Nilesh Patra <nilesh@iki.fi>.
   * Drop debian/compat and use versioned BD on debhelper-compat.
   * Drop "Priority: optional" (default).
   * Update standards-version.
Checksums-Sha1:
 f43e5b4c460cd5492c7e9ddee87f9a1e5f9e1dea 1496 apparix_11-062-4.dsc
 9a964c3b81f37a7cd058081f378cf4ddbb641552 3864 apparix_11-062-4.debian.tar.xz
 b6603fd9b69d3409e50ac7a0f4ac47346e6cefa0 4903 apparix_11-062-4_source.buildinfo
Checksums-Sha256:
 8fab949069ad592dece09760e1b00e93d35f5fcc4e5a16440267d6ee2b9ee947 1496 apparix_11-062-4.dsc
 8a5e5bc65a460dfc75cfa40f1f0eb0018f7f5cd1a807c4aaa0b103f68ab01fde 3864 apparix_11-062-4.debian.tar.xz
 9f0dd68c24b2e2662553add44740935ecb298c99997556b3c1b56058fa81883f 4903 apparix_11-062-4_source.buildinfo
Files:
 4597adac867fff698877727858a8b7ac 1496 utils optional apparix_11-062-4.dsc
 59e2f83e5a3ab90d492f482879fb3e97 3864 utils optional apparix_11-062-4.debian.tar.xz
 97396d7495fa0a493164c7c7c3e464e2 4903 utils optional apparix_11-062-4_source.buildinfo

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

iQEzBAEBCgAdFiEE1Uw7+v+wQt44LaXXQc5/C58bizIFAmktqJkACgkQQc5/C58b
izKwWAf/XKz20wAeN/spz+f/KjOGEqyjaG2JtW5xRoUhOAyjyYlT/huJq4nBHT01
tbFyBTvtS+EQ+L6G5zVCtVNW3wu3Rp7JBfLcR4WJZhpFjVWO8ZnzBnDNcW/J1R3A
JjTO1LumNXSJ57SR8lMvagjKokU14NYz1sjoAQB6AKUltZZ/a2aAPYcQmxDaUZZ1
RVt71WlkHe2+tG7cb2DciIAx+uD2Tt4o6GKJ0QygfqRHCM2SbZx1YLa4EgxteXJ+
zqATSEndc/fiohVj32GQYAF3K/aAagKWPkOmsDLCsVYh1zhEsyKZRiftFR9X7y9o
sTHq1+ejoppgmWCQIKi61BzkSNy7wg==
=Ixzc
-----END PGP SIGNATURE-----

Attachment: pgptQI9V69Dib.pgp
Description: PGP signature


--- End Message ---

Reply to: