Hello community, here is the log from the commit of package llvm4 for openSUSE:Factory checked in at 2017-08-24 17:39:43 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/llvm4 (Old) and /work/SRC/openSUSE:Factory/.llvm4.new (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "llvm4" Thu Aug 24 17:39:43 2017 rev:7 rq:515148 version:4.0.1 Changes: -------- --- /work/SRC/openSUSE:Factory/llvm4/llvm4.changes 2017-07-21 22:37:43.423547650 +0200 +++ /work/SRC/openSUSE:Factory/.llvm4.new/llvm4.changes 2017-08-24 17:39:46.935031653 +0200 @@ -1,0 +2,6 @@ +Tue Aug 8 08:02:38 UTC 2017 - [email protected] + +- xlocale.patch: don't use obsolete <xlocale.h> +- libsanitizer.patch: fix use of undocumented types + +------------------------------------------------------------------- New: ---- libsanitizer.patch xlocale.patch ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ lldb4.spec ++++++ --- /var/tmp/diff_new_pack.bLYji2/_old 2017-08-24 17:39:51.366407774 +0200 +++ /var/tmp/diff_new_pack.bLYji2/_new 2017-08-24 17:39:51.378406084 +0200 @@ -64,8 +64,8 @@ %package -n liblldb%{_sonum} Summary: LLDB software debugger runtime library -# Avoid multiple provider errors Group: System/Libraries +# Avoid multiple provider errors Requires: libLLVM%{_sonum} = %{version} Requires: libclang%{_sonum} = %{version} @@ -74,8 +74,8 @@ %package devel Summary: Development files for LLDB -# Avoid multiple provider errors Group: Development/Languages/Other +# Avoid multiple provider errors Requires: clang%{_sonum}-devel = %{version} Requires: cmake Requires: liblldb%{_sonum} = %{version} @@ -93,8 +93,8 @@ %package -n python%{_sonum}-lldb Summary: Python bindings for liblldb -# Avoid multiple provider errors Group: Development/Languages/Python +# Avoid multiple provider errors Requires: liblldb%{_sonum} = %{version} Requires: python Provides: %{python_sitearch}/lldb/ ++++++ llvm4.spec ++++++ --- /var/tmp/diff_new_pack.bLYji2/_old 2017-08-24 17:39:51.442397075 +0200 +++ /var/tmp/diff_new_pack.bLYji2/_new 2017-08-24 17:39:51.454395386 +0200 @@ -69,6 +69,8 @@ Patch7: aarch64-disable-memorytest.patch # PATCH-FIX-OPENSUSE arm_suse_support.diff -- Enable ARM suse toolchain support Patch8: arm_suse_support.diff +Patch9: xlocale.patch +Patch10: libsanitizer.patch BuildRequires: binutils-devel >= 2.21.90 BuildRequires: bison BuildRequires: cmake @@ -155,8 +157,8 @@ %package -n clang%{_sonum} Summary: CLANG frontend for LLVM -# Avoid multiple provider errors Group: Development/Languages/Other +# Avoid multiple provider errors Requires: libLTO%{_sonum} Requires: libclang%{_sonum} Recommends: clang-checker @@ -174,8 +176,8 @@ %package -n clang%{_sonum}-checker Summary: Static code analyzer for CLANG -# Avoid multiple provider errors Group: Development/Languages/Other +# Avoid multiple provider errors Requires: libclang%{_sonum} # Due to a packaging error in clang3_8 we have to conflict. Conflicts: clang3_8 @@ -190,8 +192,8 @@ %package -n clang%{_sonum}-include-fixer Summary: Automatically add missing includes -# Avoid multiple provider errors Group: Development/Languages/Other +# Avoid multiple provider errors Requires: libclang%{_sonum} = %{version} Conflicts: clang-include-fixer Conflicts: find-all-symbols @@ -212,8 +214,8 @@ %package -n libclang%{_sonum} Summary: Library files needed for clang -# Avoid multiple provider errors Group: Development/Libraries/C and C++ +# Avoid multiple provider errors Requires: libLLVM%{_sonum} Requires: libstdc++-devel @@ -233,8 +235,8 @@ %package -n libLTO%{_sonum} Summary: Link-time optimizer for LLVM -# Avoid multiple provider errors Group: Development/Languages/Other +# Avoid multiple provider errors Requires: libLLVM%{_sonum} %description -n libLTO%{_sonum} @@ -242,8 +244,8 @@ %package LTO-devel Summary: Link-time optimizer for LLVM (devel package) -# Avoid multiple provider errors Group: Development/Languages/Other +# Avoid multiple provider errors Requires: %{name}-devel = %{version} Requires: libLTO%{_sonum} Conflicts: libLTO.so @@ -255,8 +257,8 @@ %package gold Summary: Gold linker plugin for LLVM -# Avoid multiple provider errors Group: Development/Languages/Other +# Avoid multiple provider errors Requires: %{name}-devel = %{version} Requires: libLLVM%{_sonum} Conflicts: LLVMgold.so()(64bit) @@ -267,8 +269,8 @@ %package -n libomp%{_sonum}-devel Summary: MPI plugin for LLVM -# Avoid multiple provider errors Group: Development/Languages/Other +# Avoid multiple provider errors Requires: libLLVM%{_sonum} Conflicts: libomp-devel Provides: libomp-devel @@ -287,8 +289,8 @@ %package -n libc++-devel Summary: C++ standard library implementation (devel package) -# Avoid multiple provider errors Group: Development/Languages/C and C++ +# Avoid multiple provider errors Requires: libc++%{_socxx} = %{version} Requires: libc++abi-devel = %{version} Conflicts: libc++.so @@ -308,8 +310,8 @@ %package -n libc++abi-devel Summary: C++ standard library ABI (devel package) -# Avoid multiple provider errors Group: Development/Languages/C and C++ +# Avoid multiple provider errors Requires: libc++-devel Conflicts: libc++abi.so Provides: libc++abi.so @@ -375,6 +377,8 @@ %patch7 -p1 %endif %patch8 +%patch9 +%patch10 # Move into right place mv cfe-%{version}.src tools/clang ++++++ libsanitizer.patch ++++++ Index: compiler-rt-4.0.1.src/lib/esan/esan_sideline_linux.cpp =================================================================== --- compiler-rt-4.0.1.src/lib/esan/esan_sideline_linux.cpp.orig +++ compiler-rt-4.0.1.src/lib/esan/esan_sideline_linux.cpp @@ -70,7 +70,7 @@ int SidelineThread::runSideline(void *Ar // Set up a signal handler on an alternate stack for safety. InternalScopedBuffer<char> StackMap(SigAltStackSize); - struct sigaltstack SigAltStack; + stack_t SigAltStack; SigAltStack.ss_sp = StackMap.data(); SigAltStack.ss_size = SigAltStackSize; SigAltStack.ss_flags = 0; Index: compiler-rt-4.0.1.src/lib/sanitizer_common/sanitizer_linux.cc =================================================================== --- compiler-rt-4.0.1.src/lib/sanitizer_common/sanitizer_linux.cc.orig +++ compiler-rt-4.0.1.src/lib/sanitizer_common/sanitizer_linux.cc @@ -607,8 +607,8 @@ uptr internal_prctl(int option, uptr arg } #endif -uptr internal_sigaltstack(const struct sigaltstack *ss, - struct sigaltstack *oss) { +uptr internal_sigaltstack(const void *ss, + void *oss) { return internal_syscall(SYSCALL(sigaltstack), (uptr)ss, (uptr)oss); } Index: compiler-rt-4.0.1.src/lib/sanitizer_common/sanitizer_linux.h =================================================================== --- compiler-rt-4.0.1.src/lib/sanitizer_common/sanitizer_linux.h.orig +++ compiler-rt-4.0.1.src/lib/sanitizer_common/sanitizer_linux.h @@ -21,7 +21,6 @@ #include "sanitizer_platform_limits_posix.h" struct link_map; // Opaque type returned by dlopen(). -struct sigaltstack; namespace __sanitizer { // Dirent structure for getdents(). Note that this structure is different from @@ -30,8 +29,8 @@ struct linux_dirent; // Syscall wrappers. uptr internal_getdents(fd_t fd, struct linux_dirent *dirp, unsigned int count); -uptr internal_sigaltstack(const struct sigaltstack* ss, - struct sigaltstack* oss); +uptr internal_sigaltstack(const void* ss, + void* oss); uptr internal_sigprocmask(int how, __sanitizer_sigset_t *set, __sanitizer_sigset_t *oldset); Index: compiler-rt-4.0.1.src/lib/sanitizer_common/sanitizer_stoptheworld_linux_libcdep.cc =================================================================== --- compiler-rt-4.0.1.src/lib/sanitizer_common/sanitizer_stoptheworld_linux_libcdep.cc.orig +++ compiler-rt-4.0.1.src/lib/sanitizer_common/sanitizer_stoptheworld_linux_libcdep.cc @@ -275,7 +275,7 @@ static int TracerThread(void* argument) // Alternate stack for signal handling. InternalScopedBuffer<char> handler_stack_memory(kHandlerStackSize); - struct sigaltstack handler_stack; + stack_t handler_stack; internal_memset(&handler_stack, 0, sizeof(handler_stack)); handler_stack.ss_sp = handler_stack_memory.data(); handler_stack.ss_size = kHandlerStackSize; Index: compiler-rt-4.0.1.src/lib/tsan/rtl/tsan_platform_linux.cc =================================================================== --- compiler-rt-4.0.1.src/lib/tsan/rtl/tsan_platform_linux.cc.orig +++ compiler-rt-4.0.1.src/lib/tsan/rtl/tsan_platform_linux.cc @@ -51,7 +51,6 @@ #include <sched.h> #include <dlfcn.h> #if SANITIZER_LINUX -#define __need_res_state #include <resolv.h> #endif @@ -289,7 +288,7 @@ void InitializePlatform() { int ExtractResolvFDs(void *state, int *fds, int nfd) { #if SANITIZER_LINUX && !SANITIZER_ANDROID int cnt = 0; - __res_state *statp = (__res_state*)state; + res_state statp = (res_state)state; for (int i = 0; i < MAXNS && cnt < nfd; i++) { if (statp->_u._ext.nsaddrs[i] && statp->_u._ext.nssocks[i] != -1) fds[cnt++] = statp->_u._ext.nssocks[i]; ++++++ xlocale.patch ++++++ Index: libcxx-4.0.1.src/projects/include/__locale =================================================================== --- libcxx-4.0.1.src.orig/include/__locale +++ libcxx-4.0.1.src/include/__locale @@ -34,7 +34,7 @@ # include <support/solaris/xlocale.h> #elif defined(_NEWLIB_VERSION) # include <support/newlib/xlocale.h> -#elif (defined(__GLIBC__) || defined(__APPLE__) || defined(__FreeBSD__) \ +#elif (defined(__APPLE__) || defined(__FreeBSD__) \ || defined(__EMSCRIPTEN__) || defined(__IBMCPP__)) # include <xlocale.h> #elif defined(_LIBCPP_HAS_MUSL_LIBC)
