0005-Use-GZIPPROG-instead-of-GZIP-to-avoid-install-issues.patch 8.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301
  1. From f376c469919beeb3e75d40879dcda4288983e897 Mon Sep 17 00:00:00 2001
  2. From: Michael R Sweet <michael.r.sweet@gmail.com>
  3. Date: Wed, 12 Jun 2019 08:37:06 -0400
  4. Subject: [PATCH] Use GZIPPROG instead of GZIP to avoid install issues (Issue
  5. #5595)
  6. (cherry picked from commit 3676fc318a458f71df76620a7e66f5c5807cf9b1)
  7. Signed-off-by: Sam Bobroff <sbobroff@linux.ibm.com>
  8. ---
  9. Makedefs.in | 4 +--
  10. config-scripts/cups-common.m4 | 20 ++++++------
  11. configure | 59 ++++++++++++++++++-----------------
  12. 3 files changed, 42 insertions(+), 41 deletions(-)
  13. diff --git a/Makedefs.in b/Makedefs.in
  14. index f614c0c1d..8541b4976 100644
  15. --- a/Makedefs.in
  16. +++ b/Makedefs.in
  17. @@ -1,7 +1,7 @@
  18. #
  19. # Common makefile definitions for CUPS.
  20. #
  21. -# Copyright 2007-2018 by Apple Inc.
  22. +# Copyright 2007-2019 by Apple Inc.
  23. # Copyright 1997-2007 by Easy Software Products, all rights reserved.
  24. #
  25. # These coded instructions, statements, and computer programs are the
  26. @@ -29,7 +29,7 @@ CHMOD = @CHMOD@
  27. CXX = @LIBTOOL_CXX@ @CXX@
  28. DSO = @DSO@
  29. DSOXX = @DSOXX@
  30. -GZIP = @GZIP@
  31. +GZIPPROG = @GZIPPROG@
  32. INSTALL = @INSTALL@
  33. LD = @LD@
  34. LD_CC = @LD_CC@
  35. diff --git a/config-scripts/cups-common.m4 b/config-scripts/cups-common.m4
  36. index a1185bccc..0859efe08 100644
  37. --- a/config-scripts/cups-common.m4
  38. +++ b/config-scripts/cups-common.m4
  39. @@ -1,7 +1,7 @@
  40. dnl
  41. dnl Common configuration stuff for CUPS.
  42. dnl
  43. -dnl Copyright 2007-2017 by Apple Inc.
  44. +dnl Copyright 2007-2019 by Apple Inc.
  45. dnl Copyright 1997-2007 by Easy Software Products, all rights reserved.
  46. dnl
  47. dnl These coded instructions, statements, and computer programs are the
  48. @@ -42,7 +42,11 @@ AC_PROG_CXX(clang++ c++ g++)
  49. AC_PROG_RANLIB
  50. AC_PATH_PROG(AR,ar)
  51. AC_PATH_PROG(CHMOD,chmod)
  52. -AC_PATH_PROG(GZIP,gzip)
  53. +AC_PATH_PROG(GZIPPROG,gzip)
  54. +AC_MSG_CHECKING(for install-sh script)
  55. +INSTALL="`pwd`/install-sh"
  56. +AC_SUBST(INSTALL)
  57. +AC_MSG_RESULT(using $INSTALL)
  58. AC_PATH_PROG(LD,ld)
  59. AC_PATH_PROG(LN,ln)
  60. AC_PATH_PROG(MKDIR,mkdir)
  61. @@ -51,6 +55,7 @@ AC_PATH_PROG(RM,rm)
  62. AC_PATH_PROG(RMDIR,rmdir)
  63. AC_PATH_PROG(SED,sed)
  64. AC_PATH_PROG(XDGOPEN,xdg-open)
  65. +
  66. if test "x$XDGOPEN" = x; then
  67. CUPS_HTMLVIEW="htmlview"
  68. else
  69. @@ -58,11 +63,6 @@ else
  70. fi
  71. AC_SUBST(CUPS_HTMLVIEW)
  72. -AC_MSG_CHECKING(for install-sh script)
  73. -INSTALL="`pwd`/install-sh"
  74. -AC_SUBST(INSTALL)
  75. -AC_MSG_RESULT(using $INSTALL)
  76. -
  77. if test "x$AR" = x; then
  78. AC_MSG_ERROR([Unable to find required library archive command.])
  79. fi
  80. @@ -266,14 +266,14 @@ dnl ZLIB
  81. INSTALL_GZIP=""
  82. LIBZ=""
  83. AC_CHECK_HEADER(zlib.h,
  84. - AC_CHECK_LIB(z, gzgets,
  85. + AC_CHECK_LIB(z, gzgets,[
  86. AC_DEFINE(HAVE_LIBZ)
  87. LIBZ="-lz"
  88. LIBS="$LIBS -lz"
  89. AC_CHECK_LIB(z, inflateCopy, AC_DEFINE(HAVE_INFLATECOPY))
  90. - if test "x$GZIP" != z; then
  91. + if test "x$GZIPPROG" != x; then
  92. INSTALL_GZIP="-z"
  93. - fi))
  94. + fi]))
  95. AC_SUBST(INSTALL_GZIP)
  96. AC_SUBST(LIBZ)
  97. diff --git a/configure b/configure
  98. index 368906141..629fdddba 100755
  99. --- a/configure
  100. +++ b/configure
  101. @@ -1,6 +1,6 @@
  102. #! /bin/sh
  103. # Guess values for system-dependent variables and create Makefiles.
  104. -# Generated by GNU Autoconf 2.69 for CUPS 2.2.11.
  105. +# Generated by GNU Autoconf 2.69 for CUPS 2.2.12.
  106. #
  107. # Report bugs to <https://github.com/apple/cups/issues>.
  108. #
  109. @@ -580,8 +580,8 @@ MAKEFLAGS=
  110. # Identity of this package.
  111. PACKAGE_NAME='CUPS'
  112. PACKAGE_TARNAME='cups'
  113. -PACKAGE_VERSION='2.2.11'
  114. -PACKAGE_STRING='CUPS 2.2.11'
  115. +PACKAGE_VERSION='2.2.12'
  116. +PACKAGE_STRING='CUPS 2.2.12'
  117. PACKAGE_BUGREPORT='https://github.com/apple/cups/issues'
  118. PACKAGE_URL='https://www.cups.org/'
  119. @@ -762,7 +762,6 @@ LIBPAPER
  120. LIBMALLOC
  121. PKGCONFIG
  122. INSTALLSTATIC
  123. -INSTALL
  124. CUPS_HTMLVIEW
  125. XDGOPEN
  126. SED
  127. @@ -772,7 +771,8 @@ MV
  128. MKDIR
  129. LN
  130. LD
  131. -GZIP
  132. +INSTALL
  133. +GZIPPROG
  134. CHMOD
  135. AR
  136. RANLIB
  137. @@ -1480,7 +1480,7 @@ if test "$ac_init_help" = "long"; then
  138. # Omit some internal or obsolete options to make the list less imposing.
  139. # This message is too long to be a string in the A/UX 3.1 sh.
  140. cat <<_ACEOF
  141. -\`configure' configures CUPS 2.2.11 to adapt to many kinds of systems.
  142. +\`configure' configures CUPS 2.2.12 to adapt to many kinds of systems.
  143. Usage: $0 [OPTION]... [VAR=VALUE]...
  144. @@ -1545,7 +1545,7 @@ fi
  145. if test -n "$ac_init_help"; then
  146. case $ac_init_help in
  147. - short | recursive ) echo "Configuration of CUPS 2.2.11:";;
  148. + short | recursive ) echo "Configuration of CUPS 2.2.12:";;
  149. esac
  150. cat <<\_ACEOF
  151. @@ -1726,7 +1726,7 @@ fi
  152. test -n "$ac_init_help" && exit $ac_status
  153. if $ac_init_version; then
  154. cat <<\_ACEOF
  155. -CUPS configure 2.2.11
  156. +CUPS configure 2.2.12
  157. generated by GNU Autoconf 2.69
  158. Copyright (C) 2012 Free Software Foundation, Inc.
  159. @@ -2190,7 +2190,7 @@ cat >config.log <<_ACEOF
  160. This file contains any messages produced by compilers while
  161. running configure, to aid debugging if configure makes a mistake.
  162. -It was created by CUPS $as_me 2.2.11, which was
  163. +It was created by CUPS $as_me 2.2.12, which was
  164. generated by GNU Autoconf 2.69. Invocation command line was
  165. $ $0 $@
  166. @@ -2711,7 +2711,7 @@ done
  167. ac_config_headers="$ac_config_headers config.h"
  168. -CUPS_VERSION="2.2.11"
  169. +CUPS_VERSION="2.2.12"
  170. CUPS_REVISION=""
  171. CUPS_BUILD="cups-$CUPS_VERSION"
  172. @@ -3948,12 +3948,12 @@ fi
  173. set dummy gzip; ac_word=$2
  174. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  175. $as_echo_n "checking for $ac_word... " >&6; }
  176. -if ${ac_cv_path_GZIP+:} false; then :
  177. +if ${ac_cv_path_GZIPPROG+:} false; then :
  178. $as_echo_n "(cached) " >&6
  179. else
  180. - case $GZIP in
  181. + case $GZIPPROG in
  182. [\\/]* | ?:[\\/]*)
  183. - ac_cv_path_GZIP="$GZIP" # Let the user override the test with a path.
  184. + ac_cv_path_GZIPPROG="$GZIPPROG" # Let the user override the test with a path.
  185. ;;
  186. *)
  187. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  188. @@ -3963,7 +3963,7 @@ do
  189. test -z "$as_dir" && as_dir=.
  190. for ac_exec_ext in '' $ac_executable_extensions; do
  191. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  192. - ac_cv_path_GZIP="$as_dir/$ac_word$ac_exec_ext"
  193. + ac_cv_path_GZIPPROG="$as_dir/$ac_word$ac_exec_ext"
  194. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  195. break 2
  196. fi
  197. @@ -3974,16 +3974,22 @@ IFS=$as_save_IFS
  198. ;;
  199. esac
  200. fi
  201. -GZIP=$ac_cv_path_GZIP
  202. -if test -n "$GZIP"; then
  203. - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GZIP" >&5
  204. -$as_echo "$GZIP" >&6; }
  205. +GZIPPROG=$ac_cv_path_GZIPPROG
  206. +if test -n "$GZIPPROG"; then
  207. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GZIPPROG" >&5
  208. +$as_echo "$GZIPPROG" >&6; }
  209. else
  210. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  211. $as_echo "no" >&6; }
  212. fi
  213. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for install-sh script" >&5
  214. +$as_echo_n "checking for install-sh script... " >&6; }
  215. +INSTALL="`pwd`/install-sh"
  216. +
  217. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: using $INSTALL" >&5
  218. +$as_echo "using $INSTALL" >&6; }
  219. # Extract the first word of "ld", so it can be a program name with args.
  220. set dummy ld; ac_word=$2
  221. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  222. @@ -4304,6 +4310,7 @@ $as_echo "no" >&6; }
  223. fi
  224. +
  225. if test "x$XDGOPEN" = x; then
  226. CUPS_HTMLVIEW="htmlview"
  227. else
  228. @@ -4311,13 +4318,6 @@ else
  229. fi
  230. -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for install-sh script" >&5
  231. -$as_echo_n "checking for install-sh script... " >&6; }
  232. -INSTALL="`pwd`/install-sh"
  233. -
  234. -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: using $INSTALL" >&5
  235. -$as_echo "using $INSTALL" >&6; }
  236. -
  237. if test "x$AR" = x; then
  238. as_fn_error $? "Unable to find required library archive command." "$LINENO" 5
  239. fi
  240. @@ -5718,7 +5718,8 @@ fi
  241. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_gzgets" >&5
  242. $as_echo "$ac_cv_lib_z_gzgets" >&6; }
  243. if test "x$ac_cv_lib_z_gzgets" = xyes; then :
  244. - $as_echo "#define HAVE_LIBZ 1" >>confdefs.h
  245. +
  246. + $as_echo "#define HAVE_LIBZ 1" >>confdefs.h
  247. LIBZ="-lz"
  248. LIBS="$LIBS -lz"
  249. @@ -5763,7 +5764,7 @@ if test "x$ac_cv_lib_z_inflateCopy" = xyes; then :
  250. fi
  251. - if test "x$GZIP" != z; then
  252. + if test "x$GZIPPROG" != x; then
  253. INSTALL_GZIP="-z"
  254. fi
  255. fi
  256. @@ -10832,7 +10833,7 @@ cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  257. # report actual input values of CONFIG_FILES etc. instead of their
  258. # values after options handling.
  259. ac_log="
  260. -This file was extended by CUPS $as_me 2.2.11, which was
  261. +This file was extended by CUPS $as_me 2.2.12, which was
  262. generated by GNU Autoconf 2.69. Invocation command line was
  263. CONFIG_FILES = $CONFIG_FILES
  264. @@ -10895,7 +10896,7 @@ _ACEOF
  265. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  266. ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
  267. ac_cs_version="\\
  268. -CUPS config.status 2.2.11
  269. +CUPS config.status 2.2.12
  270. configured by $0, generated by GNU Autoconf 2.69,
  271. with options \\"\$ac_cs_config\\"
  272. --
  273. 2.21.0