# --- T2-COPYRIGHT-BEGIN --- # t2/package/*/libblockdev/hotfix-udev.patch # Copyright (C) 2025 The T2 SDE Project # SPDX-License-Identifier: GPL-2.0 or patched project license # --- T2-COPYRIGHT-END --- --- a/configure.orig 2024-01-19 13:59:38.000000000 +0200 +++ b/configure 2025-01-01 18:06:46.051414943 +0200 @@ -15651,19 +15651,19 @@ pkg_failed=no -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libudev >= 216" >&5 -printf %s "checking for libudev >= 216... " >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libudev >= 182" >&5 +printf %s "checking for libudev >= 182... " >&6; } if test -n "$UDEV_CFLAGS"; then pkg_cv_UDEV_CFLAGS="$UDEV_CFLAGS" elif test -n "$PKG_CONFIG"; then if test -n "$PKG_CONFIG" && \ - { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libudev >= 216\""; } >&5 - ($PKG_CONFIG --exists --print-errors "libudev >= 216") 2>&5 + { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libudev >= 182\""; } >&5 + ($PKG_CONFIG --exists --print-errors "libudev >= 182") 2>&5 ac_status=$? printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then - pkg_cv_UDEV_CFLAGS=`$PKG_CONFIG --cflags "libudev >= 216" 2>/dev/null` + pkg_cv_UDEV_CFLAGS=`$PKG_CONFIG --cflags "libudev >= 182" 2>/dev/null` test "x$?" != "x0" && pkg_failed=yes else pkg_failed=yes @@ -15675,12 +15675,12 @@ pkg_cv_UDEV_LIBS="$UDEV_LIBS" elif test -n "$PKG_CONFIG"; then if test -n "$PKG_CONFIG" && \ - { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libudev >= 216\""; } >&5 - ($PKG_CONFIG --exists --print-errors "libudev >= 216") 2>&5 + { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libudev >= 182\""; } >&5 + ($PKG_CONFIG --exists --print-errors "libudev >= 182") 2>&5 ac_status=$? printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then - pkg_cv_UDEV_LIBS=`$PKG_CONFIG --libs "libudev >= 216" 2>/dev/null` + pkg_cv_UDEV_LIBS=`$PKG_CONFIG --libs "libudev >= 182" 2>/dev/null` test "x$?" != "x0" && pkg_failed=yes else pkg_failed=yes @@ -15701,9 +15701,9 @@ _pkg_short_errors_supported=no fi if test $_pkg_short_errors_supported = yes; then - UDEV_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libudev >= 216" 2>&1` + UDEV_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libudev >= 182" 2>&1` else - UDEV_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libudev >= 216" 2>&1` + UDEV_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libudev >= 182" 2>&1` fi # Put the nasty error message in config.log where it belongs echo "$UDEV_PKG_ERRORS" >&5