0003-Skip-version-check-and-symlink-installation.patch 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. The exim install script installs a binary named exim-<version>, plus a symlink
  2. to it named exim.
  3. In order to achieve this "feature" (of dubious usefulness) it runs the
  4. executable (on the host) and then filters its output to grab the version number.
  5. This clearly cannot work if the executable is cross-compiled, so get rid of all
  6. of it and just install an executable file called exim.
  7. Inspired by:
  8. http://patch-tracker.debian.org/patch/series/view/exim4/4.76-2/35_install.dpatch
  9. Signed-off-by: Luca Ceresoli <luca@lucaceresoli.net>
  10. [Bernd: rebased for version 4.89 & 4.97.1]
  11. Signed-off-by: Bernd Kuhls <bernd@kuhls.net>
  12. ---
  13. scripts/exim_install | 7 +++++--
  14. 1 files changed, 5 insertions(+), 2 deletions(-)
  15. diff --git a/scripts/exim_install b/scripts/exim_install
  16. index e68e7d5..487a4e1 100755
  17. --- a/scripts/exim_install
  18. +++ b/scripts/exim_install
  19. @@ -61,6 +61,8 @@
  20. shift
  21. done
  22. +do_symlink=no
  23. +
  24. # Get the values of BIN_DIRECTORY, CONFIGURE_FILE, INFO_DIRECTORY, NO_SYMLINK,
  25. # SYSTEM_ALIASES_FILE, and EXE from the global Makefile (in the build
  26. # directory). EXE is empty except in the Cygwin environment. In each case, keep
  27. @@ -220,9 +223,7 @@
  28. # The exim binary is handled specially
  29. if [ $name = exim${EXE} ]; then
  30. - exim="./exim -bV -C /dev/null"
  31. - version=exim-`$exim 2>/dev/null | \
  32. - awk '/Exim version/ { OFS=""; print $3,"-",substr($4,2,length($4)-1) }'`${EXE}
  33. + version=exim
  34. if [ "${version}" = "exim-${EXE}" ]; then
  35. echo $com ""