diff --git a/1000-loongarch-compatible-with-2.27.patch b/1000-loongarch-compatible-with-2.27.patch new file mode 100644 index 0000000000000000000000000000000000000000..76c8401aaa1598f267503411455291059ed7fbc6 --- /dev/null +++ b/1000-loongarch-compatible-with-2.27.patch @@ -0,0 +1,24 @@ +From a7dfb771f7fd2542e18121127dc06087ffd2aca9 Mon Sep 17 00:00:00 2001 +From: Liwei Ge +Date: Tue, 1 Nov 2022 19:13:43 +0800 +Subject: [PATCH] loongarch: compatible with 2.27 + +--- + test/dlwrap.c | 1 + + 1 file changed, 1 insertion(+) + +diff --git a/test/dlwrap.c b/test/dlwrap.c +index c0c24c2..68bfa00 100644 +--- a/test/dlwrap.c ++++ b/test/dlwrap.c +@@ -237,6 +237,7 @@ dlwrap_real_dlsym(void *handle, const char *name) + * In the meantime, I'll just keep augmenting this + * hard-coded version list as people report bugs. */ + const char *version[] = { ++ "GLIBC_2.27", + "GLIBC_2.17", + "GLIBC_2.4", + "GLIBC_2.3", +-- +2.27.0 + diff --git a/1001-loongarch-skip-glx_beginend-for-loongarch.patch b/1001-loongarch-skip-glx_beginend-for-loongarch.patch new file mode 100644 index 0000000000000000000000000000000000000000..0e521cfc8dde96b56aabc80e9acab52a327ecc67 --- /dev/null +++ b/1001-loongarch-skip-glx_beginend-for-loongarch.patch @@ -0,0 +1,38 @@ +From f2e3468ee6f18b32a9c922b973e4c003745ca183 Mon Sep 17 00:00:00 2001 +From: Liwei Ge +Date: Tue, 1 Nov 2022 20:42:34 +0800 +Subject: [PATCH] loongarch: skip glx_beginend for loongarch + +llvm not support JIT so far + +WARNING: This target JIT is not designed for the +host you are running. If bad things happen, +please choose a different -march switch. +LLVM ERROR: Relocation type not implemented yet! +--- + test/meson.build | 2 ++ + 1 file changed, 2 insertions(+) + +diff --git a/test/meson.build b/test/meson.build +index 862d57a..886893a 100644 +--- a/test/meson.build ++++ b/test/meson.build +@@ -89,6 +89,7 @@ if build_glx and build_x11_tests + c_args: common_cflags, + install: false) + ++ if not host_machine.cpu().contains('loongarch') + # glx_beginend links directly with the GL library, so we need to check it + # separately + test('glx_beginend', executable('glx_beginend', 'glx_beginend.c', +@@ -96,6 +97,7 @@ if build_glx and build_x11_tests + include_directories: libepoxy_inc, + dependencies: [ libepoxy_dep, x11_dep, gl_dep, dl_dep ], + link_with: glx_common_lib)) ++ endif + + glx_tests = [ + [ 'glx_public_api', [ 'glx_public_api.c' ], [], [], true ], +-- +2.27.0 + diff --git a/libepoxy.spec b/libepoxy.spec index 8540a90d869a8005ba60b55d75f3d15b9f67d00d..96c634c9dde2f2e5292d0654eaf87b210beb772e 100644 --- a/libepoxy.spec +++ b/libepoxy.spec @@ -7,6 +7,9 @@ License: MIT URL: https://github.com/anholt/libepoxy Source0: %{url}/releases/download/%{version}/%{name}-%{version}.tar.xz +Patch1000: 1000-loongarch-compatible-with-2.27.patch +Patch1001: 1001-loongarch-skip-glx_beginend-for-loongarch.patch + BuildRequires: meson BuildRequires: gcc BuildRequires: pkgconfig(gl) @@ -66,6 +69,9 @@ xvfb-run -d -s "-screen 0 640x480x24" ninja -C %{_vpath_builddir} test || \ %doc README.md %changelog +* Tue Nov 1 2022 Liwei Ge - 1.5.8-1.0.2 +- make test compatible with glibc 2.27 + * Fri Jul 15 2022 Chang Gao - 1.5.8-1.0.1 - Add doc sub package