Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package clang-extract for openSUSE:Factory checked in at 2024-07-05 19:50:33 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/clang-extract (Old) and /work/SRC/openSUSE:Factory/.clang-extract.new.2080 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "clang-extract" Fri Jul 5 19:50:33 2024 rev:3 rq:1185728 version:0~20240704.16ab0bf Changes: -------- --- /work/SRC/openSUSE:Factory/clang-extract/clang-extract.changes 2024-07-04 16:23:33.324126476 +0200 +++ /work/SRC/openSUSE:Factory/.clang-extract.new.2080/clang-extract.changes 2024-07-05 19:57:19.107774515 +0200 @@ -1,0 +2,20 @@ +Fri Jul 05 07:22:03 UTC 2024 - mvet...@suse.com + +- Update to version 0~20240704.16ab0bf: + * IncludeTree: Always check for full name of the header + * Remove unused python packages +- Remove unneeded python BR + +------------------------------------------------------------------- +Thu Jul 04 14:21:48 UTC 2024 - mvet...@suse.com + +- Update to version 0~20240704.d14d609: + * libcextract: ArgvParser: Change path to /usr/lib on x86 32bit + * testsuite: attr: Use esp for current stack point on x86 32bit + +------------------------------------------------------------------- +Thu Jul 4 13:52:13 UTC 2024 - Michael Vetter <mvet...@suse.com> + +- Put version requirement on llvm-devel + +------------------------------------------------------------------- Old: ---- clang-extract-0~20240703.0b3e33c.tar.xz New: ---- clang-extract-0~20240704.16ab0bf.tar.xz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ clang-extract.spec ++++++ --- /var/tmp/diff_new_pack.48BhQU/_old 2024-07-05 19:57:19.563791258 +0200 +++ /var/tmp/diff_new_pack.48BhQU/_new 2024-07-05 19:57:19.563791258 +0200 @@ -17,7 +17,7 @@ Name: clang-extract -Version: 0~20240703.0b3e33c +Version: 0~20240704.16ab0bf Release: 0 Summary: A tool to extract code content from source files License: Apache-2.0 WITH LLVM-exception AND NCSA @@ -28,12 +28,11 @@ BuildRequires: clang-tools BuildRequires: cmake BuildRequires: libelf-devel -BuildRequires: llvm-devel +# At least 16 is needed but 18 has some fixes that we like. +# Leap 15.6 has only 17. +BuildRequires: llvm-devel >= 17 BuildRequires: meson BuildRequires: ninja -BuildRequires: python3-pexpect -BuildRequires: python3-psutil -BuildRequires: python3-pytest %description A tool to extract code content from source files using the clang and LLVM infrastructure. ++++++ _service ++++++ --- /var/tmp/diff_new_pack.48BhQU/_old 2024-07-05 19:57:19.595792433 +0200 +++ /var/tmp/diff_new_pack.48BhQU/_new 2024-07-05 19:57:19.599792580 +0200 @@ -2,7 +2,7 @@ <service name="tar_scm" mode="manual"> <param name="scm">git</param> <param name="url">https://github.com/SUSE/clang-extract</param> - <param name="revision">0b3e33c774708b32937c21c8a61dec4bd4fa5027</param> + <param name="revision">16ab0bf863703b682e9b8a6880195d22981bba79</param> <param name="versionformat">0~%cd.%h</param> <param name="changesgenerate">enable</param> <param name="changesauthor">mvet...@suse.com</param> ++++++ clang-extract-0~20240703.0b3e33c.tar.xz -> clang-extract-0~20240704.16ab0bf.tar.xz ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/clang-extract-0~20240703.0b3e33c/.github/workflows/testsuite.yml new/clang-extract-0~20240704.16ab0bf/.github/workflows/testsuite.yml --- old/clang-extract-0~20240703.0b3e33c/.github/workflows/testsuite.yml 2024-07-03 21:24:37.000000000 +0200 +++ new/clang-extract-0~20240704.16ab0bf/.github/workflows/testsuite.yml 2024-07-04 21:00:03.000000000 +0200 @@ -29,7 +29,7 @@ run: zypper -n install libelf-devel llvm16-libclang13 clang16-devel libclang-cpp16 clang-tools libLLVM16 llvm16 llvm16-devel meson ninja - python311-psutil python311-pexpect python311-pytest gcc findutils bash + gcc findutils bash - uses: actions/checkout@v2 - name: meson run: meson setup build --buildtype=${{ matrix.build-type }} --native-file ce-native.ini diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/clang-extract-0~20240703.0b3e33c/README.md new/clang-extract-0~20240704.16ab0bf/README.md --- old/clang-extract-0~20240703.0b3e33c/README.md 2024-07-03 21:24:37.000000000 +0200 +++ new/clang-extract-0~20240704.16ab0bf/README.md 2024-07-04 21:00:03.000000000 +0200 @@ -6,13 +6,11 @@ ### Compiling clang-extract -clang-extract requires clang, LLVM, libelf, python3-pexpect, python3-psuti, -meson and ninja in order to build. +clang-extract requires clang, LLVM, libelf, meson and ninja in order to build. On openSUSE, you can install them by running: ``` $ sudo zypper install clang18 clang18-devel libclang-cpp18 \ - clang-tools libLLVM18 llvm18 llvm18-devel libelf-devel meson ninja \ - python311-psutil python311-pexpect python311-pytest + clang-tools libLLVM18 llvm18 llvm18-devel libelf-devel meson ninja ``` It's advised to use LLVM 18 and higher, since it's well tested. But there support for LLVM 16 and 17 as well, but you might find issues with it. diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/clang-extract-0~20240703.0b3e33c/libcextract/ArgvParser.cpp new/clang-extract-0~20240704.16ab0bf/libcextract/ArgvParser.cpp --- old/clang-extract-0~20240703.0b3e33c/libcextract/ArgvParser.cpp 2024-07-03 21:24:37.000000000 +0200 +++ new/clang-extract-0~20240704.16ab0bf/libcextract/ArgvParser.cpp 2024-07-04 21:00:03.000000000 +0200 @@ -87,7 +87,11 @@ std::vector<const char *> priv_args = { "-Xclang", "-detailed-preprocessing-record", // For some reason libtooling do not pass the clang include folder. Pass this then. +#ifdef __i386__ + "-I/usr/lib/clang/" STRINGFY_VALUE(CLANG_VERSION_MAJOR) "/include", +#else "-I/usr/lib64/clang/" STRINGFY_VALUE(CLANG_VERSION_MAJOR) "/include", +#endif "-Wno-gnu-variable-sized-type-not-at-end", "-Wno-incompatible-pointer-types-discards-qualifiers", // this can be triggered for older codestreams "-Wno-missing-prototypes", // We remove the static keyword from the diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/clang-extract-0~20240703.0b3e33c/libcextract/IncludeTree.cpp new/clang-extract-0~20240704.16ab0bf/libcextract/IncludeTree.cpp --- old/clang-extract-0~20240703.0b3e33c/libcextract/IncludeTree.cpp 2024-07-03 21:24:37.000000000 +0200 +++ new/clang-extract-0~20240704.16ab0bf/libcextract/IncludeTree.cpp 2024-07-04 21:00:03.000000000 +0200 @@ -123,15 +123,14 @@ bool expand = In_Set(must_expand_set, id->getFileName().str(), /*remove=*/true) || In_Set(must_expand_set, id->getFile()->getName().str(), /*remove=*/true); -#if CLANG_VERSION_MAJOR >= 18 - /* Starting from LLVM-18, the behaviour of FileEntry::getName() changed. - * Now it returns the full path of the file rather than the relative path - * to it, so here we account it for now onwards. + + /* Starting from LLVM-18 and in some platforms (s390x), the behaviour of + * FileEntry::getName() changed. Now it returns the full path of the file + * rather than the relative path to it, so here we account it for now onwards. */ expand |= In_Set(must_expand_set, id->getFile()->getFileEntry().tryGetRealPathName().str(), /*remove=*/true); -#endif bool output = already_seen_main && current->Should_Be_Expanded() && !expand; diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/clang-extract-0~20240703.0b3e33c/meson.build new/clang-extract-0~20240704.16ab0bf/meson.build --- old/clang-extract-0~20240703.0b3e33c/meson.build 2024-07-03 21:24:37.000000000 +0200 +++ new/clang-extract-0~20240704.16ab0bf/meson.build 2024-07-04 21:00:03.000000000 +0200 @@ -49,7 +49,6 @@ clang_dep += cpp.find_library('LLVM', dirs : llvm_libdir) ############################# ######################### elf_dep = dependency('libelf') # libelf -python = import('python').find_installation('python3', modules : ['pexpect', 'psutil']) find_program('gcc', version : '>=7.5.0') subdir('libcextract') diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/clang-extract-0~20240703.0b3e33c/testsuite/lib/libtest.py new/clang-extract-0~20240704.16ab0bf/testsuite/lib/libtest.py --- old/clang-extract-0~20240703.0b3e33c/testsuite/lib/libtest.py 2024-07-03 21:24:37.000000000 +0200 +++ new/clang-extract-0~20240704.16ab0bf/testsuite/lib/libtest.py 2024-07-04 21:00:03.000000000 +0200 @@ -11,10 +11,6 @@ import tempfile import glob -# Third-party libraries -import pexpect -import psutil - RESET = '\033[0m' GREEN = '\033[32m' HGREEN = '\033[0;92m' diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/clang-extract-0~20240703.0b3e33c/testsuite/small/attr-1.c new/clang-extract-0~20240704.16ab0bf/testsuite/small/attr-1.c --- old/clang-extract-0~20240703.0b3e33c/testsuite/small/attr-1.c 2024-07-03 21:24:37.000000000 +0200 +++ new/clang-extract-0~20240704.16ab0bf/testsuite/small/attr-1.c 2024-07-04 21:00:03.000000000 +0200 @@ -2,6 +2,8 @@ /* { dg-skip-on-archs "s390x" }*/ #ifdef __x86_64__ register unsigned long current_stack_pointer asm("rsp"); +#elif __i386__ +register unsigned long current_stack_pointer asm("esp"); #elif __aarch64__ register unsigned long current_stack_pointer asm("sp"); #elif __PPC64__ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/clang-extract-0~20240703.0b3e33c/testsuite/small/attr-6.c new/clang-extract-0~20240704.16ab0bf/testsuite/small/attr-6.c --- old/clang-extract-0~20240703.0b3e33c/testsuite/small/attr-6.c 2024-07-03 21:24:37.000000000 +0200 +++ new/clang-extract-0~20240704.16ab0bf/testsuite/small/attr-6.c 2024-07-04 21:00:03.000000000 +0200 @@ -2,6 +2,8 @@ /* { dg-skip-on-archs "s390x" }*/ #ifdef __x86_64__ #define REG "rsp" +#elif __i386__ +#define REG "esp" #elif __aarch64__ #define REG "sp" #elif __PPC64__ @@ -15,6 +17,6 @@ return current_stack_pointer; } -/* { dg-final { scan-tree-dump "#define REG \"(rsp|sp|r1)\"" } } */ +/* { dg-final { scan-tree-dump "#define REG \"(rsp|esp|sp|r1)\"" } } */ /* { dg-final { scan-tree-dump "current_stack_pointer asm\(REG\)" } } */ /* { dg-final { scan-tree-dump "unsigned long f" } } */