Skip to content

Commit 3c124e3

Browse files
committed
patch 7.4.1221
Problem: Including netbeans and channel support in small and tiny builds. Build fails with some interfaces. Solution: Only include these features in small build and above. Let configure fail if trying to enable an interface that won't build.
1 parent fa399af commit 3c124e3

3 files changed

Lines changed: 42 additions & 4 deletions

File tree

src/auto/configure

Lines changed: 21 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4858,6 +4858,10 @@ fi
48584858
$as_echo "$enable_luainterp" >&6; }
48594859

48604860
if test "$enable_luainterp" = "yes" -o "$enable_luainterp" = "dynamic"; then
4861+
if test "x$features" = "xtiny" -o "x$features" = "xsmall"; then
4862+
as_fn_error $? "cannot use Lua with tiny or small features" "$LINENO" 5
4863+
fi
4864+
48614865

48624866

48634867
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --with-lua-prefix argument" >&5
@@ -5598,6 +5602,9 @@ fi
55985602
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_perlinterp" >&5
55995603
$as_echo "$enable_perlinterp" >&6; }
56005604
if test "$enable_perlinterp" = "yes" -o "$enable_perlinterp" = "dynamic"; then
5605+
if test "x$features" = "xtiny" -o "x$features" = "xsmall"; then
5606+
as_fn_error $? "cannot use Perl with tiny or small features" "$LINENO" 5
5607+
fi
56015608

56025609
# Extract the first word of "perl", so it can be a program name with args.
56035610
set dummy perl; ac_word=$2
@@ -7235,8 +7242,14 @@ else
72357242
fi
72367243

72377244
if test "$enable_netbeans" = "yes"; then
7238-
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7245+
if test "x$features" = "xtiny" -o "x$features" = "xsmall"; then
7246+
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: cannot use NetBeans with tiny or small features" >&5
7247+
$as_echo "cannot use NetBeans with tiny or small features" >&6; }
7248+
enable_netbeans="no"
7249+
else
7250+
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
72397251
$as_echo "no" >&6; }
7252+
fi
72407253
else
72417254
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
72427255
$as_echo "yes" >&6; }
@@ -7252,8 +7265,14 @@ else
72527265
fi
72537266

72547267
if test "$enable_channel" = "yes"; then
7255-
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7268+
if test "x$features" = "xtiny" -o "x$features" = "xsmall"; then
7269+
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: cannot use channels with tiny or small features" >&5
7270+
$as_echo "cannot use channels with tiny or small features" >&6; }
7271+
enable_channel="no"
7272+
else
7273+
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
72567274
$as_echo "no" >&6; }
7275+
fi
72577276
else
72587277
if test "$enable_netbeans" = "yes"; then
72597278
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, netbeans also disabled" >&5

src/configure.in

Lines changed: 19 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -490,6 +490,10 @@ AC_ARG_ENABLE(luainterp,
490490
AC_MSG_RESULT($enable_luainterp)
491491

492492
if test "$enable_luainterp" = "yes" -o "$enable_luainterp" = "dynamic"; then
493+
if test "x$features" = "xtiny" -o "x$features" = "xsmall"; then
494+
AC_MSG_ERROR([cannot use Lua with tiny or small features])
495+
fi
496+
493497
dnl -- find the lua executable
494498
AC_SUBST(vi_cv_path_lua)
495499

@@ -950,6 +954,9 @@ AC_ARG_ENABLE(perlinterp,
950954
[enable_perlinterp="no"])
951955
AC_MSG_RESULT($enable_perlinterp)
952956
if test "$enable_perlinterp" = "yes" -o "$enable_perlinterp" = "dynamic"; then
957+
if test "x$features" = "xtiny" -o "x$features" = "xsmall"; then
958+
AC_MSG_ERROR([cannot use Perl with tiny or small features])
959+
fi
953960
AC_SUBST(vi_cv_path_perl)
954961
AC_PATH_PROG(vi_cv_path_perl, perl)
955962
if test "X$vi_cv_path_perl" != "X"; then
@@ -1937,7 +1944,12 @@ AC_ARG_ENABLE(netbeans,
19371944
[ --disable-netbeans Disable NetBeans integration support.],
19381945
, [enable_netbeans="yes"])
19391946
if test "$enable_netbeans" = "yes"; then
1940-
AC_MSG_RESULT(no)
1947+
if test "x$features" = "xtiny" -o "x$features" = "xsmall"; then
1948+
AC_MSG_RESULT([cannot use NetBeans with tiny or small features])
1949+
enable_netbeans="no"
1950+
else
1951+
AC_MSG_RESULT(no)
1952+
fi
19411953
else
19421954
AC_MSG_RESULT(yes)
19431955
fi
@@ -1947,7 +1959,12 @@ AC_ARG_ENABLE(channel,
19471959
[ --disable-channel Disable process communication support.],
19481960
, [enable_channel="yes"])
19491961
if test "$enable_channel" = "yes"; then
1950-
AC_MSG_RESULT(no)
1962+
if test "x$features" = "xtiny" -o "x$features" = "xsmall"; then
1963+
AC_MSG_RESULT([cannot use channels with tiny or small features])
1964+
enable_channel="no"
1965+
else
1966+
AC_MSG_RESULT(no)
1967+
fi
19511968
else
19521969
if test "$enable_netbeans" = "yes"; then
19531970
AC_MSG_RESULT([yes, netbeans also disabled])

src/version.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -746,6 +746,8 @@ static char *(features[]) =
746746

747747
static int included_patches[] =
748748
{ /* Add new patch number below this line */
749+
/**/
750+
1221,
749751
/**/
750752
1220,
751753
/**/

0 commit comments

Comments
 (0)