Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
openSUSE:Leap:15.2:Staging:N
llvm9
libcxx-tests-linux-distribution.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File libcxx-tests-linux-distribution.patch of Package llvm9
From: Aaron Puchert <aaronpuchert@alice-dsl.net> Date: Wed, 4 Dec 2019 00:41:27 +0100 Subject: [PATCH] Remove call to platform.linux_distribution Summary: Since Python 3.5, platform.linux_distribution is deprecated [1], and in Python 3.8 it has been removed entirely. To avoid adding an additional dependency, we remove the part of code that it depends on, because we don't need XFAIL on (open)SUSE. --- libcxx/utils/libcxx/test/target_info.py | 21 --------------------- 1 file changed, 21 deletions(-) diff --git a/libcxx/utils/libcxx/test/target_info.py b/libcxx/utils/libcxx/test/target_info.py index 6da30e672e1..b52a998e008 100644 --- a/libcxx/utils/libcxx/test/target_info.py +++ b/libcxx/utils/libcxx/test/target_info.py @@ -191,29 +191,8 @@ class LinuxLocalTI(DefaultTargetInfo): def platform(self): return 'linux' - def platform_name(self): - name, _, _ = platform.linux_distribution() - # Some distros have spaces, e.g. 'SUSE Linux Enterprise Server' - # lit features can't have spaces - name = name.lower().strip().replace(' ', '-') - return name # Permitted to be None - - def platform_ver(self): - _, ver, _ = platform.linux_distribution() - ver = ver.lower().strip().replace(' ', '-') - return ver # Permitted to be None. - def add_locale_features(self, features): add_common_locales(features, self.full_config.lit_config) - # Some linux distributions have different locale data than others. - # Insert the distributions name and name-version into the available - # features to allow tests to XFAIL on them. - name = self.platform_name() - ver = self.platform_ver() - if name: - features.add(name) - if name and ver: - features.add('%s-%s' % (name, ver)) def add_cxx_compile_flags(self, flags): flags += ['-D__STDC_FORMAT_MACROS', -- 2.24.0
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor