Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.debian.bugs.dist > #1004559 > unrolled thread

Bug#956734: gnucobol FTCBFS: lots of AC_RUN_IFELSE

Started byHelmut Grohne <helmut@subdivi.de>
First post2020-04-14 22:40 +0200
Last post2020-04-21 09:40 +0200
Articles 2 — 2 participants

Back to article view | Back to linux.debian.bugs.dist


Contents

  Bug#956734: gnucobol FTCBFS: lots of AC_RUN_IFELSE Helmut Grohne <helmut@subdivi.de> - 2020-04-14 22:40 +0200
    Bug#956734: gnucobol FTCBFS: lots of AC_RUN_IFELSE Petter Reinholdtsen <pere@hungry.com> - 2020-04-21 09:40 +0200

#1004559 — Bug#956734: gnucobol FTCBFS: lots of AC_RUN_IFELSE

FromHelmut Grohne <helmut@subdivi.de>
Date2020-04-14 22:40 +0200
SubjectBug#956734: gnucobol FTCBFS: lots of AC_RUN_IFELSE
Message-ID<zVAvE-eM-7@gated-at.bofh.it>

[Multipart message — attachments visible in raw view] — view raw

Source: gnucobol
Version: 2.2-5
Tags: patch upstream
User: debian-cross@lists.debian.org
Usertags: ftcbfs

gnucobol fails to cross build from source, because it uses AC_RUN_IFELSE
a lot. Running a compiled program is what doesn't work during cross
compilation, so the use of this macro needs to be minimized and the
remaining uses need workarounds. In many occasions (checking macro
existence, computing sizeof something, calculating integer values), one
doesn't actually need AC_RUN_IFELSE (AC_COMPILE_IFELSE, AC_CHECK_SIZEOF,
and AC_COMPUTE_INT may suffice). The attached patch replaced a large
chunk of AC_RUN_IFELSE with alternatives that better support cross
compilation. It doesn't make gnucobol cross buildable just yet. Please
consider applying it and close this bug when doing so. Even partially
applying the patch helps a little. You'll also notice that it poses a
noticeable reduction in complexity.

Helmut

[toc] | [next] | [standalone]


#1005652

FromPetter Reinholdtsen <pere@hungry.com>
Date2020-04-21 09:40 +0200
Message-ID<zXVFD-5T9-5@gated-at.bofh.it>
In reply to#1004559
[Helmut Grohne]
> The attached patch replaced a large
> chunk of AC_RUN_IFELSE with alternatives that better support cross
> compilation.

Do you have time to bring this patch to the attention of upstream,
perhaps by opening an issue on
<URL: https://sourceforge.net/projects/open-cobol/ >?

This is the kind of problem that is best solved upstream.

Note, I am not involved in maintaining gnucobol, just a passing
developer noticing the package status. :)
-- 
Happy hacking
Petter Reinholdtsen

[toc] | [prev] | [standalone]


Back to top | Article view | linux.debian.bugs.dist


csiph-web