mirror of
https://github.com/netblue30/firejail.git
synced 2026-05-21 06:45:29 -06:00
--git-install: default disabled in ./configure script
This commit is contained in:
parent
d17ce1322e
commit
6730f4c0cc
5 changed files with 16 additions and 8 deletions
7
configure
vendored
7
configure
vendored
|
|
@ -1351,7 +1351,7 @@ Optional Features:
|
||||||
--enable-busybox-workaround
|
--enable-busybox-workaround
|
||||||
enable busybox workaround
|
enable busybox workaround
|
||||||
--enable-gcov Gcov instrumentation
|
--enable-gcov Gcov instrumentation
|
||||||
--disable-git-install disable git install feature
|
--enable-git-install enable git install feature
|
||||||
|
|
||||||
Some influential environment variables:
|
Some influential environment variables:
|
||||||
CC C compiler command
|
CC C compiler command
|
||||||
|
|
@ -3103,6 +3103,7 @@ if test "x$enable_apparmor" = "xyes"; then :
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
ac_ext=c
|
ac_ext=c
|
||||||
ac_cpp='$CPP $CPPFLAGS'
|
ac_cpp='$CPP $CPPFLAGS'
|
||||||
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
|
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
|
||||||
|
|
@ -3713,20 +3714,20 @@ if test "x$enable_gcov" = "xyes"; then :
|
||||||
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
||||||
HAVE_GIT_INSTALL=""
|
HAVE_GIT_INSTALL=""
|
||||||
# Check whether --enable-git-install was given.
|
# Check whether --enable-git-install was given.
|
||||||
if test "${enable_git_install+set}" = set; then :
|
if test "${enable_git_install+set}" = set; then :
|
||||||
enableval=$enable_git_install;
|
enableval=$enable_git_install;
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if test "x$enable_git_install" != "xno"; then :
|
if test "x$enable_git_install" = "xyes"; then :
|
||||||
|
|
||||||
HAVE_GIT_INSTALL="-DHAVE_GIT_INSTALL"
|
HAVE_GIT_INSTALL="-DHAVE_GIT_INSTALL"
|
||||||
|
|
||||||
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
||||||
# checking pthread library
|
# checking pthread library
|
||||||
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lpthread" >&5
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lpthread" >&5
|
||||||
$as_echo_n "checking for main in -lpthread... " >&6; }
|
$as_echo_n "checking for main in -lpthread... " >&6; }
|
||||||
|
|
|
||||||
|
|
@ -17,6 +17,7 @@ AS_IF([test "x$enable_apparmor" = "xyes"], [
|
||||||
AC_SUBST(HAVE_APPARMOR)
|
AC_SUBST(HAVE_APPARMOR)
|
||||||
])
|
])
|
||||||
|
|
||||||
|
|
||||||
AS_IF([test "x$enable_apparmor" = "xyes"], [
|
AS_IF([test "x$enable_apparmor" = "xyes"], [
|
||||||
AC_CHECK_HEADER(sys/apparmor.h, , [AC_MSG_ERROR(
|
AC_CHECK_HEADER(sys/apparmor.h, , [AC_MSG_ERROR(
|
||||||
[Couldn't find sys/apparmor.h... please install apparmor user space library and development files] )])
|
[Couldn't find sys/apparmor.h... please install apparmor user space library and development files] )])
|
||||||
|
|
@ -145,15 +146,15 @@ AS_IF([test "x$enable_gcov" = "xyes"], [
|
||||||
AC_SUBST(HAVE_GCOV)
|
AC_SUBST(HAVE_GCOV)
|
||||||
])
|
])
|
||||||
|
|
||||||
|
|
||||||
HAVE_GIT_INSTALL=""
|
HAVE_GIT_INSTALL=""
|
||||||
AC_ARG_ENABLE([git-install],
|
AC_ARG_ENABLE([git-install],
|
||||||
AS_HELP_STRING([--disable-git-install], [disable git install feature]))
|
AS_HELP_STRING([--enable-git-install], [enable git install feature]))
|
||||||
AS_IF([test "x$enable_git_install" != "xno"], [
|
AS_IF([test "x$enable_git_install" = "xyes"], [
|
||||||
HAVE_GIT_INSTALL="-DHAVE_GIT_INSTALL"
|
HAVE_GIT_INSTALL="-DHAVE_GIT_INSTALL"
|
||||||
AC_SUBST(HAVE_GIT_INSTALL)
|
AC_SUBST(HAVE_GIT_INSTALL)
|
||||||
])
|
])
|
||||||
|
|
||||||
|
|
||||||
# checking pthread library
|
# checking pthread library
|
||||||
AC_CHECK_LIB([pthread], [main], [], AC_MSG_ERROR([*** POSIX thread support not installed ***]))
|
AC_CHECK_LIB([pthread], [main], [], AC_MSG_ERROR([*** POSIX thread support not installed ***]))
|
||||||
AC_CHECK_HEADER(pthread.h,,AC_MSG_ERROR([*** POSIX thread support not installed ***]))
|
AC_CHECK_HEADER(pthread.h,,AC_MSG_ERROR([*** POSIX thread support not installed ***]))
|
||||||
|
|
|
||||||
|
|
@ -6,7 +6,7 @@ set -e # exit immediately if one of the commands fails
|
||||||
cd /tmp # by the time we start this, we should have a tmpfs mounted on top of /tmp
|
cd /tmp # by the time we start this, we should have a tmpfs mounted on top of /tmp
|
||||||
git clone --depth=1 https://www.github.com/netblue30/firejail.git
|
git clone --depth=1 https://www.github.com/netblue30/firejail.git
|
||||||
cd firejail
|
cd firejail
|
||||||
./configure
|
./configure --enable-git-install
|
||||||
make
|
make
|
||||||
sudo make install-strip
|
sudo make install-strip
|
||||||
echo "**********************************************************************"
|
echo "**********************************************************************"
|
||||||
|
|
|
||||||
|
|
@ -6,7 +6,7 @@ set -e # exit immediately if one of the commands fails
|
||||||
cd /tmp # by the time we start this, we should have a tmpfs mounted on top of /tmp
|
cd /tmp # by the time we start this, we should have a tmpfs mounted on top of /tmp
|
||||||
git clone --depth=1 https://www.github.com/netblue30/firejail.git
|
git clone --depth=1 https://www.github.com/netblue30/firejail.git
|
||||||
cd firejail
|
cd firejail
|
||||||
./configure
|
./configure --enable-git-install
|
||||||
sudo make uninstall
|
sudo make uninstall
|
||||||
echo "**********************************************************************"
|
echo "**********************************************************************"
|
||||||
echo "Firejail mainline git version uninstalled from /usr/local"
|
echo "Firejail mainline git version uninstalled from /usr/local"
|
||||||
|
|
|
||||||
|
|
@ -2143,6 +2143,12 @@ int main(int argc, char **argv) {
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
else if (strcmp(argv[i], "--git-install") == 0 ||
|
||||||
|
strcmp(argv[i], "--git-uninstall") == 0) {
|
||||||
|
fprintf(stderr, "This feature is not enabled in the current build\n");
|
||||||
|
exit(1);
|
||||||
|
}
|
||||||
|
|
||||||
else if (strcmp(argv[i], "--") == 0) {
|
else if (strcmp(argv[i], "--") == 0) {
|
||||||
// double dash - positional params to follow
|
// double dash - positional params to follow
|
||||||
arg_doubledash = 1;
|
arg_doubledash = 1;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue