Bug 702897 - Cross-compilation failure with 9.53.0
Summary: Cross-compilation failure with 9.53.0
Status: RESOLVED FIXED
Alias: None
Product: Ghostscript
Classification: Unclassified
Component: Build Process (show other bugs)
Version: 9.53.0
Hardware: PC Linux
: P4 normal
Assignee: Default assignee
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-09-12 10:00 UTC by fontaine.fabrice
Modified: 2020-09-14 12:42 UTC (History)
1 user (show)

See Also:
Customer:
Word Size: ---


Attachments
Patch (1.35 KB, patch)
2020-09-12 10:00 UTC, fontaine.fabrice
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description fontaine.fabrice 2020-09-12 10:00:43 UTC
Created attachment 19822 [details]
Patch

Cross-compilation fails since version 9.53.0 and
https://git.ghostscript.com/?p=ghostpdl.git;a=commit;h=3ff82b33f24ed54c2d3bb88ec31da7d2f9fd2765

Indeed, when x"$host" != x"$build", a recursive call to configure script
(for auxiliary tools) is being made. In this call,
--enable-auxtools_only and --without-libtiff are passed which will
result in the following build failure because SHARE_LIBTIFF is not set
and SHARE_LIBJPEG is set to 0:

checking for local lcms2mt library source... configure: error: Mixing local libtiff with shared libjpeg not supported
configure: error: Recursive call to configure script failed
Comment 1 Chris Liddell (chrisl) 2020-09-14 09:14:52 UTC
I think I prefer the following:

https://git.ghostscript.com/?p=user/chrisl/ghostpdl.git;a=commitdiff;h=f0d19bf181a1


It makes it more explicit what the reasoning is.
Comment 2 fontaine.fabrice 2020-09-14 09:43:01 UTC
Indeed, your fix is a lot better than mine.
Comment 3 Chris Liddell (chrisl) 2020-09-14 12:42:59 UTC
Fixed in:

https://git.ghostscript.com/?p=ghostpdl.git;a=commitdiff;h=f0d19bf181a1


Thanks for spotting the problem.