diff --git a/cmake-zerojvm.patch b/cmake-zerojvm.patch new file mode 100644 index 0000000..d413d6c --- /dev/null +++ b/cmake-zerojvm.patch @@ -0,0 +1,10 @@ +--- cmake-3.28.1/Modules/FindJNI.cmake 2024-02-14 13:10:42.173018608 +0100 ++++ cmake-3.28.1/Modules/FindJNI.cmake 2024-02-14 17:43:00.956527142 +0100 +@@ -344,6 +344,7 @@ + "${dir}" + "${dir}/client" + "${dir}/server" ++ "${dir}/zero" + # IBM SDK, Java Technology Edition, specific paths + "${dir}/j9vm" + "${dir}/default" diff --git a/cmake.changes b/cmake.changes index 7a43dc0..8b8f9b4 100644 --- a/cmake.changes +++ b/cmake.changes @@ -1,3 +1,27 @@ +------------------------------------------------------------------- +Wed Feb 14 16:46:22 UTC 2024 - Fridrich Strba + +- Added patch: + * cmake-zerojvm.patch + + fix JVM detection on JDKs with ZERO virtual machine, like + java-21-openjdk for armv6l + +------------------------------------------------------------------- +Fri Jan 19 15:26:23 UTC 2024 - Dirk Müller + +- fix incorrect requires on libuv1 on non-suse distributions + +------------------------------------------------------------------- +Thu Jan 18 15:00:58 UTC 2024 - Ludwig Nussel + +- Revert "-Wl,--no-undefined" as it still breaks packages (boo#1218620) + +------------------------------------------------------------------- +Wed Jan 17 19:54:04 UTC 2024 - Björn Bidar + +- macros: Set some more variables notable %{_docdir} so that GNUInstallDirs + works fully on openSUSE. Packages using CMAKE_INSTALL_DOCDIR fail otherwise. + ------------------------------------------------------------------- Thu Jan 11 10:21:03 UTC 2024 - Michal Suchanek @@ -15,7 +39,7 @@ Wed Dec 27 12:56:45 UTC 2023 - Stefan Brüns - Re-add "-Wl,--no-undefined" linker flags for executables and regular shared libraries. Shared library targets which are used as plugins/modules should use `add_library(... MODULE ...), which - uses the "CMAKE_MODULE_LINKER_FLAGS". + uses the "CMAKE_MODULE_LINKER_FLAGS". ------------------------------------------------------------------- Thu Dec 14 21:06:23 UTC 2023 - Christoph G @@ -65,7 +89,7 @@ Wed Nov 29 21:07:37 UTC 2023 - Andreas Stieger even if they are inside the top-level source directory, now fixed. Clients must be updated to expect relative paths under the top-level source directory. - * Fortran: Revert 3.27.0 change to module dependency scanning + * Fortran: Revert 3.27.0 change to module dependency scanning ------------------------------------------------------------------- Mon Nov 27 08:30:38 UTC 2023 - Dirk Müller diff --git a/cmake.macros b/cmake.macros index a1e312b..15d6ce9 100644 --- a/cmake.macros +++ b/cmake.macros @@ -32,6 +32,9 @@ -DCMAKE_INSTALL_LIBDIR:PATH=%{__cmake_make_prefix_relative %{_libdir}} \\\ -DCMAKE_INSTALL_INCLUDEDIR:PATH=%{__cmake_make_prefix_relative %{_includedir}} \\\ -DCMAKE_INSTALL_DATAROOTDIR:PATH=%{__cmake_make_prefix_relative %{_datadir}} \\\ + -DCMAKE_INSTALL_DOCDIR:PATH=%{__cmake_make_prefix_relative %{_docdir}/%{name}} \\\ + -DCMAKE_INSTALL_MANDIR:PATH=%{__cmake_make_prefix_relative %{_mandir}} \\\ + -DCMAKE_INSTALL_INFODIR:PATH=%{__cmake_make_prefix_relative %{_infodir}} \\\ -DINCLUDE_INSTALL_DIR:PATH=%{_includedir} \\\ -DLIB_INSTALL_DIR:PATH=%{_libdir} \\\ -DSYSCONF_INSTALL_DIR:PATH=%{_sysconfdir} \\\ @@ -40,9 +43,9 @@ -DCMAKE_C_FLAGS="${CFLAGS:-%optflags}" \\\ -DCMAKE_CXX_FLAGS="${CXXFLAGS:-%optflags}" \\\ -DCMAKE_Fortran_FLAGS="${FFLAGS:-%optflags%{?_fmoddir: -I%_fmoddir}}" \\\ - -DCMAKE_EXE_LINKER_FLAGS="%{?build_ldflags} -Wl,--as-needed -Wl,--no-undefined -Wl,-z,now" \\\ + -DCMAKE_EXE_LINKER_FLAGS="%{?build_ldflags} -Wl,--as-needed -Wl,-z,now" \\\ -DCMAKE_MODULE_LINKER_FLAGS="%{?build_ldflags} -Wl,--as-needed" \\\ - -DCMAKE_SHARED_LINKER_FLAGS="%{?build_ldflags} -Wl,--as-needed -Wl,--no-undefined -Wl,-z,now" \\\ + -DCMAKE_SHARED_LINKER_FLAGS="%{?build_ldflags} -Wl,--as-needed -Wl,-z,now" \\\ %if "%{?_lib}" == "lib64" \ -DLIB_SUFFIX=64 \\\ %endif \ diff --git a/cmake.spec b/cmake.spec index 0004479..3e6e75d 100644 --- a/cmake.spec +++ b/cmake.spec @@ -1,7 +1,7 @@ # -# spec file +# spec file for package cmake # -# Copyright (c) 2023 SUSE LLC +# Copyright (c) 2024 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -63,6 +63,7 @@ Source99: README.SUSE Patch0: cmake-fix-ruby-test.patch # Search for python interpreters from newest to oldest rather then picking up /usr/bin/python as first choice Patch1: feature-suse-python-interp-search-order.patch +Patch2: cmake-zerojvm.patch BuildRequires: fdupes BuildRequires: gcc-c++ BuildRequires: pkgconfig @@ -76,15 +77,13 @@ BuildRequires: pkgconfig(ncurses) BuildRequires: pkgconfig(zlib) %if 0%{?suse_version} > 1500 BuildRequires: pkgconfig(libuv) >= 1.28 -%endif -%if "%{flavor}" == "" -Requires: cmake-implementation = %{version} -%endif -%if %{with full} # Needs a rebuild as libuv will otherwise abort the program with: # fatal error: libuv version too new: running with libuv 1.X+1 when compiled with libuv 1.X will lead to libuv failures %requires_eq libuv1 %endif +%if "%{flavor}" == "" +Requires: cmake-implementation = %{version} +%endif %if 0%{?suse_version} && 0%{?suse_version} <= 1500 %define pyver 311 %else @@ -170,7 +169,9 @@ export CXXFLAGS="$CFLAGS" %endif --parallel=0%{jobs} \ --verbose \ -%if 0%{?suse_version} < 1550 +%if 0%{?suse_version} > 1500 + --system-libuv \ +%else --no-system-libuv \ %endif %if %{with qhelp}