Package: proxycheck
Version: 0.49a-8
Tags: patch
User: debian-cr...@lists.debian.org
Usertags: ftcbfs
X-Debbugs-Cc: debian-cr...@lists.debian.org
proxycheck FTCBFS due to it using a home-grown configure script
with non standard options without a configure.ac
as it seems, it is not really possible to replace this with debhelper
tooling and hence right CC should be passed in d/rules.
along with this, it tries to run sample programs in configure just
to check the compiler works. this in principle serves no real
functionality and converting them to compile checks is enough.
a patch is attached with these changes. please consider applying.
-n
From cfe524bc6200a1ecb2fccf58f56bd28eb5fc23d5 Mon Sep 17 00:00:00 2001
From: Nilesh Patra <nil...@debian.org>
Date: Fri, 15 Aug 2025 00:24:25 +0530
Subject: [PATCH] Get proxycheck cross-building
---
debian/patches/cross.patch | 29 +++++++++++++++++++++++++++++
debian/patches/series | 1 +
debian/rules | 2 ++
3 files changed, 32 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..f0c03a1
--- /dev/null
+++ b/debian/patches/cross.patch
@@ -0,0 +1,29 @@
+--- a/configure
++++ b/configure
+@@ -79,7 +79,7 @@
+ int main(int argc, char **argv) { return 0; }
+ EOF
+ if [ -n "$CC" ]; then
+- if $CC -o conftest conftest.c 2>&5 && ./conftest 2>&5 ; then
++ if $CC -o conftest conftest.c 2>&5 ; then
+ echo "\$CC ($CC)" >&2
+ else
+ echo no >&2
+@@ -87,7 +87,7 @@
+ fi
+ else
+ for cc in gcc cc ; do
+- if $cc -o conftest conftest.c 2>&5 && ./conftest 2>&5 ; then
++ if $cc -o conftest conftest.c 2>&5 ; then
+ echo $cc
+ CC=$cc
+ break
+@@ -158,7 +158,7 @@
+ fi
+ }
+
+-ac_run "whenever C compiler ($CC) works" <<EOF >/dev/null || exit 1
++ac_link "whenever C compiler ($CC) works" <<EOF || ac_error
+ #include <stdio.h>
+ int main(int argc, char **argv) {
+ puts("hello, world!");
diff --git a/debian/patches/series b/debian/patches/series
index d592b58..b77cf8b 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -4,3 +4,4 @@
040_import-cppflags.patch
050_fix-typo-in-manual.patch
missing-prototypes.patch
+cross.patch
diff --git a/debian/rules b/debian/rules
index 19d5d40..bc86d86 100755
--- a/debian/rules
+++ b/debian/rules
@@ -1,6 +1,8 @@
#!/usr/bin/make -f
export DEB_BUILD_MAINT_OPTIONS = hardening=+all
+DPKG_EXPORT_BUILDTOOLS=1
+include /usr/share/dpkg/buildtools.mk
%:
dh $@
--
2.47.2