Your message dated Wed, 06 Dec 2017 14:55:31 +0000
with message-id <[email protected]>
and subject line Bug#875736: fixed in glpk 4.64-1
has caused the Debian Bug report #875736,
regarding glpsol.1 breaks cross building and doesn't tell what glpsol does
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.)


-- 
875736: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=875736
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Source: glpk
Version: 4.63-1
User: [email protected]
Usertags: rebootstrap

glpk fails to cross build from source:

| help2man -N -n "large-scale linear and mixed integer programming solver" -o 
debian/tmp/glpsol.1 examples/glpsol
| help2man: can't get `--help' info from examples/glpsol
| Try `--no-discard-stderr' if option outputs to stderr
| debian/rules:10: recipe for target 'override_dh_auto_install' failed
| make[1]: *** [override_dh_auto_install] Error 126
| make[1]: Leaving directory '/<<PKGBUILDDIR>>'
| debian/rules:4: recipe for target 'binary-arch' failed
| make: *** [binary-arch] Error 2
| dpkg-buildpackage: error: fakeroot debian/rules binary-arch gave error exit 
status 2

Running help2man is always a bad idea, because it breaks cross
compilation and the manual page is of dubious value. I looked at the
generated one and couldn't figure out what glpsol is supposed to do.

The attached patch adds a script that extracts the --help output from
the source to avoid running it. While that doesn't improve the quality
of the manual page, it makes glpk cross build.

Please consider applying the attached patch or replacing the manual page
with a useful one. A short discussion on #debian-devel revealed that the
preferred solution is to replace it with a version that says what glpsol
does and directs readers to further documentation (e.g. running glpsol
--help or https://en.wikibooks.org/wiki/GLPK/Using_GLPSOL) rather than
extracting it.

Helmut
diff --minimal -Nru glpk-4.63/debian/changelog glpk-4.63/debian/changelog
--- glpk-4.63/debian/changelog  2017-07-29 10:17:30.000000000 +0200
+++ glpk-4.63/debian/changelog  2017-09-14 09:29:00.000000000 +0200
@@ -1,3 +1,10 @@
+glpk (4.63-1.1) UNRELEASED; urgency=medium
+
+  * Non-maintainer upload.
+  * Fix FTCBFS: Don't run help2man on host architecture code. (Closes: #-1)
+
+ -- Helmut Grohne <[email protected]>  Thu, 14 Sep 2017 09:29:00 +0200
+
 glpk (4.63-1) unstable; urgency=medium
 
   * New upstream version 4.63
diff --minimal -Nru glpk-4.63/debian/help2man/glpsol 
glpk-4.63/debian/help2man/glpsol
--- glpk-4.63/debian/help2man/glpsol    1970-01-01 01:00:00.000000000 +0100
+++ glpk-4.63/debian/help2man/glpsol    2017-09-14 09:29:00.000000000 +0200
@@ -0,0 +1,12 @@
+#!/bin/sh
+case "$1" in
+       --help)
+               sed '1,/^static void 
print_help/d;/^}/,$d;:a;/xprintf[^)]*[^;]*$/{N;ba};s/\n//;s/^\s*//;/^[^x]/d;s/%s/gplsol/;s/,
 my_name//;s/xprintf("\(.*\)\\n\"\s*)\s*;/\1/;s/"\s*"//;s/\\"/"/g' 
examples/glpsol.c
+       ;;
+       --version)
+               echo "GLPSOL: GLPK LP/MIP Solver, $(dpkg-parsechangelog 
-SVersion | sed 's/-.*//')"
+       ;;
+       *)
+               exit 1
+       ;;
+esac
diff --minimal -Nru glpk-4.63/debian/rules glpk-4.63/debian/rules
--- glpk-4.63/debian/rules      2017-07-28 11:55:22.000000000 +0200
+++ glpk-4.63/debian/rules      2017-09-14 09:28:58.000000000 +0200
@@ -8,7 +8,7 @@
 
 override_dh_auto_install:
        dh_auto_install
-       help2man -N -n "large-scale linear and mixed integer programming 
solver" -o debian/tmp/glpsol.1 examples/glpsol
+       help2man -N -n "large-scale linear and mixed integer programming 
solver" -o debian/tmp/glpsol.1 debian/help2man/glpsol
 
 override_dh_makeshlibs:
        dh_makeshlibs -V

--- End Message ---
--- Begin Message ---
Source: glpk
Source-Version: 4.64-1

We believe that the bug you reported is fixed in the latest version of
glpk, 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.
Sébastien Villemot <[email protected]> (supplier of updated glpk 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, 06 Dec 2017 14:50:11 +0100
Source: glpk
Binary: libglpk40 libglpk-dev glpk-doc glpk-utils
Architecture: source
Version: 4.64-1
Distribution: unstable
Urgency: medium
Maintainer: Debian Science Team 
<[email protected]>
Changed-By: Sébastien Villemot <[email protected]>
Description:
 glpk-doc   - linear programming kit - documentation files
 glpk-utils - linear programming kit - utility files
 libglpk-dev - linear programming kit - development files
 libglpk40  - linear programming kit with integer (MIP) support
Closes: 875736
Changes:
 glpk (4.64-1) unstable; urgency=medium
 .
   * New upstream version 4.64
   * d/watch: use secure URL.
   * Move libglpk40 to section libs (following lintian warning).
   * Bump Standards-Version to 4.1.2.
   * Add missing examples in glpk-utils.
   * Write a short manpage for glpsol, instead of generating it with help2man.
     (Closes: #875736)
Checksums-Sha1:
 9db3878d74897f40ed698712a69f17985a8d45f4 2445 glpk_4.64-1.dsc
 b7828320ad02530a47a3a65813b75626c2a308da 4143259 glpk_4.64.orig.tar.gz
 ad0719361b6edf5316f67a548026f0d7d23a8a6e 201 glpk_4.64.orig.tar.gz.asc
 f79389cb0f07080b47346f27e1730f14c1a5f16d 12860 glpk_4.64-1.debian.tar.xz
 1cd90dc88bc0ba267bab04462b6b137ba182e881 7544 glpk_4.64-1_amd64.buildinfo
Checksums-Sha256:
 a91007abee724d51894c1edc212eb90cf6bd9149a439a3fba2da6ea11205d06c 2445 
glpk_4.64-1.dsc
 539267f40ea3e09c3b76a31c8747f559e8a097ec0cda8f1a3778eec3e4c3cc24 4143259 
glpk_4.64.orig.tar.gz
 f52e2a089874bc1316ec2667eb339a0f88d7ffdb3bb3cbfd4e58c1b1a1dd2184 201 
glpk_4.64.orig.tar.gz.asc
 52dd205aed3306a818632affd2ad5def90d6337d42cc45b53dda1d6b4b24bdb9 12860 
glpk_4.64-1.debian.tar.xz
 85d005096004bbbb9fdd6ebd4453be6544e413ef00bb48f0f118bb18620df6fa 7544 
glpk_4.64-1_amd64.buildinfo
Files:
 7efe8a3b4c29a5759496bdc0ab35ba6e 2445 math optional glpk_4.64-1.dsc
 71a99d744589570f3ee98a566f27ea49 4143259 math optional glpk_4.64.orig.tar.gz
 758943d4d88c246010a69341c1354abf 201 math optional glpk_4.64.orig.tar.gz.asc
 3a616a8b3bcfe02683c6df0c1185c7ef 12860 math optional glpk_4.64-1.debian.tar.xz
 0cf088ae6e6a022e9ed8431079bbb4a3 7544 math optional glpk_4.64-1_amd64.buildinfo

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

iQIzBAEBCAAdFiEEU5UdlScuDFuCvoxKLOzpNQ7OvkoFAlon9okACgkQLOzpNQ7O
vkqI1w/+M6GrVligqDmPNKSyQaPheMewd+LnOlJzL8u8ig9JJoJ2vN8PfhnX0bUt
e3bOK5cPpeVbQaKZYV8z5OcwRq2c6yiO0KO1ZRSrANoEdTveckIsmEm0MWFXcTRN
cJL/h7sVR00dkMHH12ZVEmqgYXj4cCi5NXyjpHtD24LNKYjFmY7fnnYcUrwYLXTd
TMbxorm66tjGlkY6Oipg9okcbIEntNMJhkFBgNHU+JNv13rtZQTPH9wZghXuJm57
3meaL5De2G4wjrUo+eT/NWo+l+lWOlSVJ+8Iw4McGrihwt+v/IBv6J944W/4vEAu
Cui3AyJvKzZUT8gInZ/bdf9KHZCXFxKIYRC0AXYkWL7H7yFwy/V7VshL/vo61rS/
jTekyR+auRoVHGiuxiQinktS+X/eZaVkceaCBi9AVdF+XbYCqUwojGK+dHlrYOYf
psx6XcpQNwWT9nVL6w+x3ji/s5z0l91aW3tpSi/wmgy7yWmXojDHu7EU5b3KbhJ+
raZVCktdjVEA/+5piIzMcrHtAAo2/ut+DesdUWg//J0geoQx4pnydi4XXR3ttDBr
pPq5wBsGdu1cY3WDvRhy9+Rlb+OgYyhWh/TLutMXTNlp58PdaL980RPxnvXU30t3
xZysBq/ESIlOHW05l4Nd5VH5S8h2R2oLIOSUeogOahrmb0YEWjM=
=Byfn
-----END PGP SIGNATURE-----

--- End Message ---
-- 
debian-science-maintainers mailing list
[email protected]
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/debian-science-maintainers

Reply via email to