Bug 702897

Summary: Cross-compilation failure with 9.53.0
Product: Ghostscript Reporter: fontaine.fabrice
Component: Build ProcessAssignee: Default assignee <ghostpdl-bugs>
Status: RESOLVED FIXED    
Severity: normal CC: chris.liddell
Priority: P4    
Version: 9.53.0   
Hardware: PC   
OS: Linux   
Customer: Word Size: ---
Attachments: Patch

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.