openocd: avoid documentation rebuild to fix build issues
[buildroot-gz.git] / package / exim / 0003-Skip-version-check-and-symlink-installation.patch
blob94d21ae1143906a107337f99f785ed74ef82597d
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.
8 Inspired by:
9 http://patch-tracker.debian.org/patch/series/view/exim4/4.76-2/35_install.dpatch
11 Signed-off-by: Luca Ceresoli <luca@lucaceresoli.net>
12 ---
13 scripts/exim_install | 7 +++++--
14 1 files changed, 5 insertions(+), 2 deletions(-)
16 diff --git a/scripts/exim_install b/scripts/exim_install
17 index e68e7d5..487a4e1 100755
18 --- a/scripts/exim_install
19 +++ b/scripts/exim_install
20 @@ -59,6 +59,8 @@ while [ $# -gt 0 ] ; do
21 shift
22 done
24 +do_symlink=no
26 # Get the values of BIN_DIRECTORY, CONFIGURE_FILE, INFO_DIRECTORY, NO_SYMLINK,
27 # SYSTEM_ALIASES_FILE, and EXE from the global Makefile (in the build
28 # directory). EXE is empty except in the Cygwin environment. In each case, keep
29 @@ -218,8 +220,9 @@ while [ $# -gt 0 ]; do
30 # The exim binary is handled specially
32 if [ $name = exim${EXE} ]; then
33 - version=exim-`./exim -bV -C /dev/null | \
34 - awk '/Exim version/ { OFS=""; print $3,"-",substr($4,2,length($4)-1) }'`${EXE}
35 + version=exim
36 +# version=exim-`./exim -bV -C /dev/null | \
37 +# awk '/Exim version/ { OFS=""; print $3,"-",substr($4,2,length($4)-1) }'`${EXE}
39 if [ "${version}" = "exim-${EXE}" ]; then
40 echo $com ""