mirror of
https://git.yoctoproject.org/meta-security
synced 2026-01-11 15:00:34 +00:00
.patch: remove probably unused patches
There could be some false possitives (the script is far from perfect), so please test it on your QA, I've only double checked with "git grep" (the script looks only in parent directory). @ ~/layers/meta-security $ /OE/extra-layers/meta-ros/scripts/check-patch-files.sh . ./recipes-ids/tripwire/files/add_armeb_arch.patch: not used in any recipe ./dynamic-layers/meta-python/recipes-security/fail2ban/files/0001-To-fix-build-error-of-xrang.patch: not used in any recipe ./recipes-scanners/clamav/files/fix2_libcurl_check.patch: not used in any recipe ./recipes-scanners/arpwatch/files/postfix_workaround.patch: not used in any recipe ./meta-tpm/recipes-tpm/libtpm/files/Use-format-s-for-call-to-dprintf.patch: not used in any recipe ./meta-tpm/recipes-tpm/libtpm/files/fix_signed_issue.patch: not used in any recipe ./meta-tpm/recipes-tpm/libtpm/files/Convert-another-vdprintf-to-dprintf.patch: not used in any recipe ./meta-tpm/recipes-tpm/swtpm/files/fix_lib_search_path.patch: not used in any recipe ./meta-tpm/recipes-tpm/swtpm/files/fix_fcntl_h.patch: not used in any recipe ./recipes-mac/AppArmor/files/disable_perl_h_check.patch: not used in any recipe @ ~/layers/meta-security $ git grep add_armeb_arch.patch @ ~/layers/meta-security $ git grep 0001-To-fix-build-error-of-xrang.patch @ ~/layers/meta-security $ git grep fix2_libcurl_check.patch @ ~/layers/meta-security $ git grep postfix_workaround.patch @ ~/layers/meta-security $ git grep Use-format-s-for-call-to-dprintf.patch @ ~/layers/meta-security $ git grep fix_signed_issue.patch @ ~/layers/meta-security $ git grep Convert-another-vdprintf-to-dprintf.patch @ ~/layers/meta-security $ git grep fix_lib_search_path.patch @ ~/layers/meta-security $ git grep fix_fcntl_h.patch @ ~/layers/meta-security $ git grep disable_perl_h_check.patch Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com> Signed-off-by: Armin Kuster <akuster808@gmail.com>
This commit is contained in:
committed by
Armin Kuster
parent
df8a1eb479
commit
405cca4028
@@ -1,91 +0,0 @@
|
||||
Sendmail exists after the system boots. We are using postfix
|
||||
so no need to check if it exists.
|
||||
|
||||
Upstream-Status: Inappropriate [embedded specific]
|
||||
|
||||
Signed-off-by: Armin Kuster <akuster808@gmail.com>
|
||||
|
||||
Index: arpwatch-3.0/configure
|
||||
===================================================================
|
||||
--- arpwatch-3.0.orig/configure
|
||||
+++ arpwatch-3.0/configure
|
||||
@@ -636,7 +636,6 @@ LBL_LIBS
|
||||
HAVE_FREEBSD_TRUE
|
||||
HAVE_FREEBSD_FALSE
|
||||
PYTHON
|
||||
-V_SENDMAIL
|
||||
LIBOBJS
|
||||
INSTALL_DATA
|
||||
INSTALL_SCRIPT
|
||||
@@ -5573,53 +5572,6 @@ fi
|
||||
done
|
||||
|
||||
|
||||
-# Extract the first word of "sendmail", so it can be a program name with args.
|
||||
-set dummy sendmail; ac_word=$2
|
||||
-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
||||
-$as_echo_n "checking for $ac_word... " >&6; }
|
||||
-if ${ac_cv_path_V_SENDMAIL+:} false; then :
|
||||
- $as_echo_n "(cached) " >&6
|
||||
-else
|
||||
- case $V_SENDMAIL in
|
||||
- [\\/]* | ?:[\\/]*)
|
||||
- ac_cv_path_V_SENDMAIL="$V_SENDMAIL" # Let the user override the test with a path.
|
||||
- ;;
|
||||
- *)
|
||||
- as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
||||
-as_dummy="$PATH:/usr/sbin:/usr/lib:/usr/bin:/usr/ucblib:/usr/local/etc"
|
||||
-for as_dir in $as_dummy
|
||||
-do
|
||||
- IFS=$as_save_IFS
|
||||
- test -z "$as_dir" && as_dir=.
|
||||
- for ac_exec_ext in '' $ac_executable_extensions; do
|
||||
- if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
||||
- ac_cv_path_V_SENDMAIL="$as_dir/$ac_word$ac_exec_ext"
|
||||
- $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
||||
- break 2
|
||||
- fi
|
||||
-done
|
||||
- done
|
||||
-IFS=$as_save_IFS
|
||||
-
|
||||
- ;;
|
||||
-esac
|
||||
-fi
|
||||
-V_SENDMAIL=$ac_cv_path_V_SENDMAIL
|
||||
-if test -n "$V_SENDMAIL"; then
|
||||
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $V_SENDMAIL" >&5
|
||||
-$as_echo "$V_SENDMAIL" >&6; }
|
||||
-else
|
||||
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
||||
-$as_echo "no" >&6; }
|
||||
-fi
|
||||
-
|
||||
-
|
||||
-
|
||||
-if test -z "${V_SENDMAIL}" ; then
|
||||
- as_fn_error $? "Can't find sendmail" "$LINENO" 5
|
||||
-fi
|
||||
-
|
||||
-
|
||||
python=${PYTHON:-python}
|
||||
# Extract the first word of "${python}", so it can be a program name with args.
|
||||
set dummy ${python}; ac_word=$2
|
||||
Index: arpwatch-3.0/configure.in
|
||||
===================================================================
|
||||
--- arpwatch-3.0.orig/configure.in
|
||||
+++ arpwatch-3.0/configure.in
|
||||
@@ -76,13 +76,6 @@ AC_LBL_UNION_WAIT
|
||||
AC_CHECK_LIB(resolv, res_query)
|
||||
AC_LBL_LIBPCAP(V_PCAPDEP, V_INCLS)
|
||||
|
||||
-AC_PATH_PROG(V_SENDMAIL, sendmail,,
|
||||
- $PATH:/usr/sbin:/usr/lib:/usr/bin:/usr/ucblib:/usr/local/etc)
|
||||
-
|
||||
-if test -z "${V_SENDMAIL}" ; then
|
||||
- AC_MSG_ERROR([Can't find sendmail])
|
||||
-fi
|
||||
-
|
||||
dnl AC_LBL_CHECK_TYPE(int32_t, int)
|
||||
dnl AC_LBL_CHECK_TYPE(u_int32_t, u_int)
|
||||
|
||||
@@ -1,122 +0,0 @@
|
||||
clamav .102.2 tries to find clamav using culf_config. Use EO pkg_config instead
|
||||
|
||||
Upstream-Status: Inappropriate [OE specific]
|
||||
Signed-off-by: Armin Kuster <akuster808@gmail.com>
|
||||
|
||||
Index: git/configure
|
||||
===================================================================
|
||||
--- git.orig/configure
|
||||
+++ git/configure
|
||||
@@ -28850,39 +28850,14 @@ $as_echo_n "checking for libcurl install
|
||||
if test "${with_libcurl+set}" = set; then :
|
||||
withval=$with_libcurl;
|
||||
find_curl="no"
|
||||
-if test "X$withval" = "Xyes"; then
|
||||
- find_curl="yes"
|
||||
-else
|
||||
- if test "X$withval" != "Xno"; then
|
||||
- if test -f "${withval}/bin/curl-config"; then
|
||||
- LIBCURL_HOME="$withval"
|
||||
- have_curl="yes"
|
||||
- fi
|
||||
- fi
|
||||
-fi
|
||||
-
|
||||
-else
|
||||
- find_curl="yes"
|
||||
-fi
|
||||
-
|
||||
-
|
||||
-if test "X$find_curl" = "Xyes"; then
|
||||
- for p in /usr/local /usr ; do
|
||||
- if test -f "${p}/bin/curl-config"; then
|
||||
- LIBCURL_HOME=$p
|
||||
- have_curl="yes"
|
||||
- fi
|
||||
- done
|
||||
-fi
|
||||
-
|
||||
-if test "X$have_curl" = "Xyes"; then
|
||||
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBCURL_HOME" >&5
|
||||
-$as_echo "$LIBCURL_HOME" >&6; }
|
||||
- if test -f "$LIBCURL_HOME/bin/curl-config"; then
|
||||
+ #save_LDFLAGS="$LDFLAGS"
|
||||
+ if test "X$withval" != "Xno"; then
|
||||
+ LIBCURL_HOME="$withval"
|
||||
+ if test "${PKG_CONFIG} libcurl --exists"; then
|
||||
CURL_LDFLAGS="$LDFLAGS"
|
||||
- CURL_LIBS=$($LIBCURL_HOME/bin/curl-config --libs)
|
||||
- CURL_CPPFLAGS=$($LIBCURL_HOME/bin/curl-config --cflags)
|
||||
- else
|
||||
+ CURL_LIBS=$($PKG_CONFIG libcurl --libs)
|
||||
+ CURL_CPPFLAGS=$($PKG_CONFIG libcurl --cflags)
|
||||
+ else
|
||||
if test "$LIBCURL_HOME" != "/usr"; then
|
||||
CURL_LDFLAGS="-L$LIBCURL_HOME/lib"
|
||||
CURL_CPPFLAGS="-I$LIBCURL_HOME/include"
|
||||
@@ -28891,60 +28866,12 @@ $as_echo "$LIBCURL_HOME" >&6; }
|
||||
CURL_CPPFLAGS=""
|
||||
fi
|
||||
CURL_LIBS="-lcurl"
|
||||
- fi
|
||||
- save_LDFLAGS="$LDFLAGS"
|
||||
- LDFLAGS="$CURL_LDFLAGS $CURL_LIBS"
|
||||
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for curl_easy_init in -lcurl" >&5
|
||||
-$as_echo_n "checking for curl_easy_init in -lcurl... " >&6; }
|
||||
-if ${ac_cv_lib_curl_curl_easy_init+:} false; then :
|
||||
- $as_echo_n "(cached) " >&6
|
||||
-else
|
||||
- ac_check_lib_save_LIBS=$LIBS
|
||||
-LIBS="-lcurl $CURL_LIBS
|
||||
- $LIBS"
|
||||
-cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
||||
-/* end confdefs.h. */
|
||||
-
|
||||
-/* Override any GCC internal prototype to avoid an error.
|
||||
- Use char because int might match the return type of a GCC
|
||||
- builtin and then its argument prototype would still apply. */
|
||||
-#ifdef __cplusplus
|
||||
-extern "C"
|
||||
-#endif
|
||||
-char curl_easy_init ();
|
||||
-int
|
||||
-main ()
|
||||
-{
|
||||
-return curl_easy_init ();
|
||||
- ;
|
||||
- return 0;
|
||||
-}
|
||||
-_ACEOF
|
||||
-if ac_fn_c_try_link "$LINENO"; then :
|
||||
- ac_cv_lib_curl_curl_easy_init=yes
|
||||
-else
|
||||
- ac_cv_lib_curl_curl_easy_init=no
|
||||
-fi
|
||||
-rm -f core conftest.err conftest.$ac_objext \
|
||||
- conftest$ac_exeext conftest.$ac_ext
|
||||
-LIBS=$ac_check_lib_save_LIBS
|
||||
-fi
|
||||
-{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_curl_curl_easy_init" >&5
|
||||
-$as_echo "$ac_cv_lib_curl_curl_easy_init" >&6; }
|
||||
-if test "x$ac_cv_lib_curl_curl_easy_init" = xyes; then :
|
||||
-
|
||||
- curl_msg="";
|
||||
- have_curl="yes";
|
||||
- CLAMSUBMIT_LIBS="$CLAMSUBMIT_LIBS $CURL_LDFLAGS $CURL_LIBS";
|
||||
- CLAMSUBMIT_CFLAGS="$CLAMSUBMIT_CFLAGS $CURL_CPPFLAGS";
|
||||
- FRESHCLAM_LIBS="$FRESHCLAM_LIBS $CURL_LDFLAGS $CURL_LIBS";
|
||||
- FRESHCLAM_CPPFLAGS="$FRESHCLAM_CPPFLAGS $CURL_CPPFLAGS"
|
||||
-
|
||||
-else
|
||||
-
|
||||
- as_fn_error $? "Your libcurl is misconfigured. libcurl (e.g. libcurl-devel) is required in order to build freshclam and clamsubmit." "$LINENO" 5
|
||||
+ fi
|
||||
|
||||
-fi
|
||||
+ have_curl="yes"
|
||||
+ LDFLAGS="$save_LDFLAGS"
|
||||
+ LDFLAGS="$CURL_LDFLAGS $CURL_LIBS"
|
||||
+ fi
|
||||
|
||||
LDFLAGS="$save_LDFLAGS"
|
||||
else
|
||||
Reference in New Issue
Block a user