File newer-pythons.patch of Package virtualbox.20250220080120

From: Jan Engelhardt <ej@inai.de>
Date: 2025-02-19 11:09:20.509506861 +0100

Like most other software projects, use a ">="-style test for versions,
as the chance for compatibility is high.

---
 configure |    5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

Index: VirtualBox-7.1.4/configure
===================================================================
--- VirtualBox-7.1.4.orig/configure
+++ VirtualBox-7.1.4/configure
@@ -2187,7 +2187,10 @@ extern "C" int main(void)
 }
 EOF
   found=
-  SUPPYTHONLIBS="python2.7 python2.6 python3.1 python3.2 python3.3 python3.4 python3.4m python3.5 python3.5m python3.6 python3.6m python3.7 python3.7m python3.8 python3.9 python3.10 python3.11 python3.12"
+  SUPPYTHONLIBS=""
+  for i in /usr/bin/python[23]*; do
+  	SUPPYTHONLIBS="$SUPPYTHONLIBS ${i##*/}"
+  done
   for p in $PYTHONDIR; do
     for d in $SUPPYTHONLIBS; do
       for b in lib/x86_64-linux-gnu lib/i386-linux-gnu lib64 lib/64 lib; do
openSUSE Build Service is sponsored by