Your message dated Mon, 11 Aug 2025 19:20:47 +0000
with message-id <[email protected]>
and subject line Bug#1078930: fixed in lp-solve 5.5.2.14-2
has caused the Debian Bug report #1078930,
regarding lp-solve FTCBFS: multiple reasons
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.)


-- 
1078930: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1078930
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Source: lp-solve
Version: 5.5.2.11-2
Tags: patch
User: [email protected]
Usertags: ftcbfs

lp-solve fails to cross build from source for multiple reason. Number
one is that debian/rules does not tell the upstream builds scripts about
what architecture we are building for in any way. The upstream build
scripts also provide no way of picking up this information and just hard
code the build architecture compiler. They also run a test program to
determine whether we're on a 64bit or 32bit system. I'm attaching a
patch to address all of these aspects. A significant portion of it
likely should go upstream and generally helps with cross building also
on other distributions such as Yocto or PtxDist.

Helmut
diff --minimal -Nru lp-solve-5.5.2.11/debian/changelog 
lp-solve-5.5.2.11/debian/changelog
--- lp-solve-5.5.2.11/debian/changelog  2024-08-04 21:40:47.000000000 +0200
+++ lp-solve-5.5.2.11/debian/changelog  2024-08-17 18:26:34.000000000 +0200
@@ -1,3 +1,14 @@
+lp-solve (5.5.2.11-2.1) UNRELEASED; urgency=medium
+
+  * Non-maintainer upload.
+  * Fix FTCBFS: (Closes: #-1)
+    + Pass a host compiler to the compilation scripts.
+    + cross.patch: Pick up the passed compiler.
+    + Rewrite platform check as compile-only test.
+    + Do not fail removal of temporary files that may be missing.
+
+ -- Helmut Grohne <[email protected]>  Sat, 17 Aug 2024 18:26:34 +0200
+
 lp-solve (5.5.2.11-2) unstable; urgency=medium
 
   * upload to unstable
diff --minimal -Nru lp-solve-5.5.2.11/debian/patches/cross.patch 
lp-solve-5.5.2.11/debian/patches/cross.patch
--- lp-solve-5.5.2.11/debian/patches/cross.patch        1970-01-01 
01:00:00.000000000 +0100
+++ lp-solve-5.5.2.11/debian/patches/cross.patch        2024-08-17 
18:26:34.000000000 +0200
@@ -0,0 +1,72 @@
+--- lp-solve-5.5.2.11.orig/lp_solve/ccc
++++ lp-solve-5.5.2.11/lp_solve/ccc
+@@ -1,6 +1,6 @@
+ :
+ src="lp_solve.c"
+-c=cc
++c="${CC:-cc}"
+ 
+ MYTMP=`mktemp -d "${TMPDIR:-/tmp}"/lp_solve_XXXXXX`
+ 
+@@ -8,10 +8,12 @@
+ >"$MYTMP"/platform.c
+ echo '#include <stdlib.h>'>>"$MYTMP"/platform.c
+ echo '#include <stdio.h>'>>"$MYTMP"/platform.c
+-echo 'int main(){printf("ux%d", (int) (sizeof(void 
*)*8));}'>>"$MYTMP"/platform.c
+-$c "$MYTMP"/platform.c -o "$MYTMP"/platform
+-PLATFORM=`"$MYTMP"/platform`
+-rm "$MYTMP"/platform "$MYTMP"/platform.c >/dev/null 2>&1
++echo 'int main(){char x[6-sizeof(void *)]; return 0 * 
x[0];}'>>"$MYTMP"/platform.c
++if $c "$MYTMP"/platform.c -o "$MYTMP"/platform 2>/dev/null
++then PLATFORM=ux32
++else PLATFORM=ux64
++fi
++rm -f "$MYTMP"/platform "$MYTMP"/platform.c >/dev/null 2>&1
+ 
+ mkdir bin bin/$PLATFORM >/dev/null 2>&1
+ 
+@@ -28,7 +30,7 @@
+ then NOISNAN=
+ else NOISNAN=-DNOISNAN
+ fi
+-rm "$MYTMP"/isnan.c "$MYTMP"/isnan >/dev/null 2>&1
++rm -f "$MYTMP"/isnan.c "$MYTMP"/isnan >/dev/null 2>&1
+ 
+ opts='-O2'
+ 
+--- lp-solve-5.5.2.11.orig/lpsolve55/ccc
++++ lp-solve-5.5.2.11/lpsolve55/ccc
+@@ -1,6 +1,6 @@
+ :
+ src='../lp_MDO.c ../shared/commonlib.c ../shared/mmio.c ../shared/myblas.c 
../ini.c ../fortify.c ../lp_rlp.c ../lp_crash.c ../bfp/bfp_LUSOL/lp_LUSOL.c 
../bfp/bfp_LUSOL/LUSOL/lusol.c ../lp_Hash.c ../lp_lib.c ../lp_wlp.c 
../lp_matrix.c ../lp_mipbb.c ../lp_MPS.c ../lp_params.c ../lp_presolve.c 
../lp_price.c ../lp_pricePSE.c ../lp_report.c ../lp_scale.c ../lp_simplex.c 
../lp_SOS.c ../lp_utils.c ../yacc_read.c'
+-c=cc
++c="${CC:-cc}"
+ 
+ MYTMP=`mktemp -d "${TMPDIR:-/tmp}"/lp_solve_XXXXXX`
+ 
+@@ -8,10 +8,12 @@
+ >"$MYTMP"/platform.c
+ echo '#include <stdlib.h>'>>"$MYTMP"/platform.c
+ echo '#include <stdio.h>'>>"$MYTMP"/platform.c
+-echo 'int main(){printf("ux%d", (int) (sizeof(void 
*)*8));}'>>"$MYTMP"/platform.c
+-$c "$MYTMP"/platform.c -o "$MYTMP"/platform
+-PLATFORM=`"$MYTMP"/platform`
+-rm "$MYTMP"/platform "$MYTMP"/platform.c >/dev/null 2>&1
++echo 'int main(){char x[6-sizeof(void *)]; return 0 * 
x[0];}'>>"$MYTMP"/platform.c
++if $c "$MYTMP"/platform.c -o "$MYTMP"/platform 2>/dev/null
++then PLATFORM=ux32
++else PLATFORM=ux64
++fi
++rm -f "$MYTMP"/platform "$MYTMP"/platform.c >/dev/null 2>&1
+ 
+ mkdir bin bin/$PLATFORM >/dev/null 2>&1
+ 
+@@ -26,7 +28,7 @@
+ then NOISNAN=
+ else NOISNAN=-DNOISNAN
+ fi
+-rm "$MYTMP"/isnan.c "$MYTMP"/isnan >/dev/null 2>&1
++rm -f "$MYTMP"/isnan.c "$MYTMP"/isnan >/dev/null 2>&1
+ 
+ rmdir "$MYTMP"
+ 
diff --minimal -Nru lp-solve-5.5.2.11/debian/patches/series 
lp-solve-5.5.2.11/debian/patches/series
--- lp-solve-5.5.2.11/debian/patches/series     2024-07-26 20:03:43.000000000 
+0200
+++ lp-solve-5.5.2.11/debian/patches/series     2024-08-17 18:26:09.000000000 
+0200
@@ -5,3 +5,4 @@
 07_fix_xli_CPLEX-segfault
 09_lp_solve.1
 10_int_main.diff
+cross.patch
diff --minimal -Nru lp-solve-5.5.2.11/debian/rules 
lp-solve-5.5.2.11/debian/rules
--- lp-solve-5.5.2.11/debian/rules      2016-05-23 15:06:35.000000000 +0200
+++ lp-solve-5.5.2.11/debian/rules      2024-08-17 18:26:32.000000000 +0200
@@ -10,6 +10,9 @@
 # Uncomment this to turn on verbose mode.
 #export DH_VERBOSE=1
 
+DPKG_EXPORT_BUILDTOOLS=1
+include /usr/share/dpkg/buildtools.mk
+
 build: build-arch build-indep
 
 build-arch: build-arch-stamp

--- End Message ---
--- Begin Message ---
Source: lp-solve
Source-Version: 5.5.2.14-2
Done: Rene Engelhard <[email protected]>

We believe that the bug you reported is fixed in the latest version of
lp-solve, 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.
Rene Engelhard <[email protected]> (supplier of updated lp-solve 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, 11 Aug 2025 20:53:25 +0200
Source: lp-solve
Architecture: source
Version: 5.5.2.14-2
Distribution: experimental
Urgency: medium
Maintainer: Juan Esteban Monsalve Tobon <[email protected]>
Changed-By: Rene Engelhard <[email protected]>
Closes: 1078930
Changes:
 lp-solve (5.5.2.14-2) experimental; urgency=medium
 .
   * add patch from Helmut Grohne to Fix FTCBFS: (Closes: #1078930)
     + Pass a host compiler to the compilation scripts.
     + Rewrite platform check as compile-only test.
     + Do not fail removal of temporary files that may be missing.
Checksums-Sha1:
 406a038f180cfcdebe94f1c9882f68bc4bd5023f 2284 lp-solve_5.5.2.14-2.dsc
 1f7252b4125842fefc5ef415b5d764a60a1d19ee 16736 
lp-solve_5.5.2.14-2.debian.tar.xz
 da3ded53c870e1700cdb4345858a21ccf2e1c085 6445 
lp-solve_5.5.2.14-2_source.buildinfo
Checksums-Sha256:
 5f377fb9ea3b8ba241c374bd86f6eaefd55e6eb3d7cdc62e14b478fea87a4491 2284 
lp-solve_5.5.2.14-2.dsc
 279cf28f6eab19daeff32c0e226e2ed16ecadbe4b737f06441c7979f83011cca 16736 
lp-solve_5.5.2.14-2.debian.tar.xz
 c63d0c4c82a90ebae647a6973a2ef0417d95b76e395bca64824db69597efa9d4 6445 
lp-solve_5.5.2.14-2_source.buildinfo
Files:
 a5b73b10a5255c0500c7116f78a26130 2284 math optional lp-solve_5.5.2.14-2.dsc
 5e5fad2f549a7c1f77bf5cb0a6df867e 16736 math optional 
lp-solve_5.5.2.14-2.debian.tar.xz
 869c8fc2fece89b7431af26f88876bf5 6445 math optional 
lp-solve_5.5.2.14-2_source.buildinfo

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

iQJEBAEBCgAuFiEE4S3qRnUGcM+pYIAdCqBFcdA+PnAFAmiaPkoQHHJlbmVAZGVi
aWFuLm9yZwAKCRAKoEVx0D4+cL7oEACwTwLN31b3jc9u+WC4DSOtQ02o//3B9aCx
65p2Qz3LQm8ynlAw2yck0gISWNNVL+gTuCJSe5OtiJYopOkKOGvBrZbpLGlFvpPN
QqJgEW2zFtUq88kJpCRdgrwg+Ztzom6ae995c+STv8iyT2f8ywqHVLbX/x6p/nge
NfqMpHSzbtAdw71IvVij48ZT6yRseGJdPVr1jWD5//9MqzTKHLuNC0fvXF7OIzMA
O5VWCQjE6PvzfgVVYXa4KCCBSiPhxVznxyQ7Fv0CNTeEQkkRomE7TUzyPtUPsDGC
waWX5QwKZwy5z4TeGz5evwKyFDldcIADgBXNAZOtTjE6u+B+8Sb8QjLTEG806CUE
HYLjNaua1j8yzzBWVJlaqCP2BqFwCkIitsCWF8HP+uY8NFCChQXfNnhq41m7oO1g
HivpiDUy9l77PgqV82GEX8SfeCkKeatj2J6JFXV4L5SFJXxoZ0ppAcgk5yVEc5c9
/+C8WcDj7+bWjkw0ZJ63GqbAaARtnuZBXuLs1NYJWt25Pw2pH0OiEIm3Kdxbcp0V
Eqc5IMV8IuDpfy9Xa6UQVqInQIvcYKH8YQ+CehrXO/9VvP60gV6Qm2jOEL/D/XHz
iWZkiI25YpZBfCUnUYuQ5Om9LPOe+AvmHxnqVYBWKVOb8qeeObrxzXUHi3Ui1VtE
jXgeDEAbXA==
=eBhM
-----END PGP SIGNATURE-----

Attachment: pgpj8gpGgbk5W.pgp
Description: PGP signature


--- End Message ---

Reply via email to