From a3e4272bd328778c1d35fd0f688fa29eef6a01f4 Mon Sep 17 00:00:00 2001 From: Eli Schwartz Date: Thu, 17 Feb 2022 14:19:16 -0500 Subject: test cases: rename shared library('c') avoid libc collision In a bunch of cases we create a series of sample libraries named "a", "b", "c" etc. This breaks on musl. Originally reported with muon via commit https://git.sr.ht/~lattis/muon/commit/ca5c37171423e9884047a85349e1b236d7449510 and also breaks the testsuite when packaging meson for alpine linux. libc.so is an existing library which is linked in by default for all the obvious reasons. You can get away with this on glibc, because that includes a soversion of "6", but it loads the wrong library on musl. --- test cases/common/120 extract all shared library/meson.build | 3 ++- .../custom_subproject_dir/C/meson.build | 3 ++- test cases/common/72 shared subproject/subprojects/C/meson.build | 3 ++- test cases/common/73 shared subproject 2/subprojects/C/meson.build | 3 ++- .../75 custom subproject dir/custom_subproject_dir/C/meson.build | 3 ++- 5 files changed, 10 insertions(+), 5 deletions(-) diff --git a/test cases/common/120 extract all shared library/meson.build b/test cases/common/120 extract all shared library/meson.build index 340c031..e7c5809 100644 --- a/test cases/common/120 extract all shared library/meson.build +++ b/test cases/common/120 extract all shared library/meson.build @@ -6,7 +6,8 @@ endif a = static_library('a', 'one.c', 'two.c') b = static_library('b', 'three.c', 'four.c') -c = shared_library('c', +# libc.so cannot be used, it already exists as a reserved name +c = shared_library('cee', objects : [a.extract_all_objects(), b.extract_all_objects()], vs_module_defs : 'func1234.def') diff --git a/test cases/common/155 subproject dir name collision/custom_subproject_dir/C/meson.build b/test cases/common/155 subproject dir name collision/custom_subproject_dir/C/meson.build index 5d89097..1f05f9e 100644 --- a/test cases/common/155 subproject dir name collision/custom_subproject_dir/C/meson.build +++ b/test cases/common/155 subproject dir name collision/custom_subproject_dir/C/meson.build @@ -1,2 +1,3 @@ project('C', 'c') -c = library('c', 'c.c') +# libc.so cannot be used, it already exists as a reserved name +c = library('cee', 'c.c') diff --git a/test cases/common/72 shared subproject/subprojects/C/meson.build b/test cases/common/72 shared subproject/subprojects/C/meson.build index 5d89097..1f05f9e 100644 --- a/test cases/common/72 shared subproject/subprojects/C/meson.build +++ b/test cases/common/72 shared subproject/subprojects/C/meson.build @@ -1,2 +1,3 @@ project('C', 'c') -c = library('c', 'c.c') +# libc.so cannot be used, it already exists as a reserved name +c = library('cee', 'c.c') diff --git a/test cases/common/73 shared subproject 2/subprojects/C/meson.build b/test cases/common/73 shared subproject 2/subprojects/C/meson.build index 5d89097..1f05f9e 100644 --- a/test cases/common/73 shared subproject 2/subprojects/C/meson.build +++ b/test cases/common/73 shared subproject 2/subprojects/C/meson.build @@ -1,2 +1,3 @@ project('C', 'c') -c = library('c', 'c.c') +# libc.so cannot be used, it already exists as a reserved name +c = library('cee', 'c.c') diff --git a/test cases/common/75 custom subproject dir/custom_subproject_dir/C/meson.build b/test cases/common/75 custom subproject dir/custom_subproject_dir/C/meson.build index abf0b1e..3ac6217 100644 --- a/test cases/common/75 custom subproject dir/custom_subproject_dir/C/meson.build +++ b/test cases/common/75 custom subproject dir/custom_subproject_dir/C/meson.build @@ -1,2 +1,3 @@ project('C', 'c') -c = shared_library('c', 'c.c') +# libc.so cannot be used, it already exists as a reserved name +c = shared_library('cee', 'c.c') -- cgit v1.1