commit aws-c-compression for openSUSE:Factory
Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package aws-c-compression for openSUSE:Factory checked in at 2024-10-27 11:25:07 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/aws-c-compression (Old) and /work/SRC/openSUSE:Factory/.aws-c-compression.new.2020 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Package is "aws-c-compression" Sun Oct 27 11:25:07 2024 rev:3 rq:1218378 version:0.3.0 Changes: -------- --- /work/SRC/openSUSE:Factory/aws-c-compression/aws-c-compression.changes 2024-02-21 17:59:07.781190149 +0100 +++ /work/SRC/openSUSE:Factory/.aws-c-compression.new.2020/aws-c-compression.changes 2024-10-27 11:25:23.706703142 +0100 @@ -1,0 +2,6 @@ +Thu Oct 24 12:15:37 UTC 2024 - John Paul Adrian Glaubitz <adrian.glaubitz@suse.com> + +- Update to version 0.3.0 + * Update CMake to 3.9 by @waahm7 in (#70) + +------------------------------------------------------------------- Old: ---- v0.2.18.tar.gz New: ---- v0.3.0.tar.gz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ aws-c-compression.spec ++++++ --- /var/tmp/diff_new_pack.jZrT1M/_old 2024-10-27 11:25:24.350729838 +0100 +++ /var/tmp/diff_new_pack.jZrT1M/_new 2024-10-27 11:25:24.350729838 +0100 @@ -19,7 +19,7 @@ %define library_version 1.0.0 %define library_soversion 1_0_0 Name: aws-c-compression -Version: 0.2.18 +Version: 0.3.0 Release: 0 Summary: C99 implementation of Huffman encoding/decoding License: Apache-2.0 ++++++ v0.2.18.tar.gz -> v0.3.0.tar.gz ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/aws-c-compression-0.2.18/.github/workflows/ci.yml new/aws-c-compression-0.3.0/.github/workflows/ci.yml --- old/aws-c-compression-0.2.18/.github/workflows/ci.yml 2024-02-12 18:24:08.000000000 +0100 +++ new/aws-c-compression-0.3.0/.github/workflows/ci.yml 2024-10-23 19:03:04.000000000 +0200 @@ -6,7 +6,7 @@ - 'main' env: - BUILDER_VERSION: v0.9.55 + BUILDER_VERSION: v0.9.62 BUILDER_SOURCE: releases BUILDER_HOST: https://d19elf31gohf1l.cloudfront.net PACKAGE_NAME: aws-c-compression @@ -120,8 +120,17 @@ run: | python .\aws-c-compression\build\deps\aws-c-common\scripts\appverifier_ctest.py --build_directory .\aws-c-compression\build\aws-c-compression - osx: - runs-on: macos-12 # latest + macos: + runs-on: macos-14 # latest + steps: + - name: Build ${{ env.PACKAGE_NAME }} + consumers + run: | + python3 -c "from urllib.request import urlretrieve; urlretrieve('${{ env.BUILDER_HOST }}/${{ env.BUILDER_SOURCE }}/${{ env.BUILDER_VERSION }}/builder.pyz?run=${{ env.RUN }}', 'builder')" + chmod a+x builder + ./builder build -p ${{ env.PACKAGE_NAME }} + + macos-x64: + runs-on: macos-14-large # latest steps: - name: Build ${{ env.PACKAGE_NAME }} + consumers run: | diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/aws-c-compression-0.2.18/.github/workflows/clang-format.yml new/aws-c-compression-0.3.0/.github/workflows/clang-format.yml --- old/aws-c-compression-0.2.18/.github/workflows/clang-format.yml 2024-02-12 18:24:08.000000000 +0100 +++ new/aws-c-compression-0.3.0/.github/workflows/clang-format.yml 2024-10-23 19:03:04.000000000 +0200 @@ -5,14 +5,12 @@ jobs: clang-format: - runs-on: ubuntu-20.04 # latest + runs-on: ubuntu-24.04 # latest steps: - name: Checkout Sources - uses: actions/checkout@v1 + uses: actions/checkout@v4 - name: clang-format lint - uses: DoozyX/clang-format-lint-action@v0.3.1 - with: - # List of extensions to check - extensions: c,h + run: | + ./format-check.py diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/aws-c-compression-0.2.18/CMakeLists.txt new/aws-c-compression-0.3.0/CMakeLists.txt --- old/aws-c-compression-0.2.18/CMakeLists.txt 2024-02-12 18:24:08.000000000 +0100 +++ new/aws-c-compression-0.3.0/CMakeLists.txt 2024-10-23 19:03:04.000000000 +0200 @@ -1,10 +1,6 @@ -cmake_minimum_required(VERSION 3.1) +cmake_minimum_required(VERSION 3.9) project(aws-c-compression C) -if (POLICY CMP0069) - cmake_policy(SET CMP0069 NEW) # Enable LTO/IPO if available in the compiler, see AwsCFlags -endif() - if (DEFINED CMAKE_PREFIX_PATH) file(TO_CMAKE_PATH "${CMAKE_PREFIX_PATH}" CMAKE_PREFIX_PATH) endif() diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/aws-c-compression-0.2.18/format-check.py new/aws-c-compression-0.3.0/format-check.py --- old/aws-c-compression-0.2.18/format-check.py 1970-01-01 01:00:00.000000000 +0100 +++ new/aws-c-compression-0.3.0/format-check.py 2024-10-23 19:03:04.000000000 +0200 @@ -0,0 +1,47 @@ +#!/usr/bin/env python3 +import argparse +import os +from pathlib import Path +import re +from subprocess import list2cmdline, run +from tempfile import NamedTemporaryFile + +CLANG_FORMAT_VERSION = '18.1.6' + +INCLUDE_REGEX = re.compile( + r'^(include|source|tests|verification)/.*\.(c|h|inl)$') +EXCLUDE_REGEX = re.compile(r'^$') + +arg_parser = argparse.ArgumentParser(description="Check with clang-format") +arg_parser.add_argument('-i', '--inplace-edit', action='store_true', + help="Edit files inplace") +args = arg_parser.parse_args() + +os.chdir(Path(__file__).parent) + +# create file containing list of all files to format +filepaths_file = NamedTemporaryFile(delete=False) +for dirpath, dirnames, filenames in os.walk('.'): + for filename in filenames: + # our regexes expect filepath to use forward slash + filepath = Path(dirpath, filename).as_posix() + if not INCLUDE_REGEX.match(filepath): + continue + if EXCLUDE_REGEX.match(filepath): + continue + + filepaths_file.write(f"{filepath}\n".encode()) +filepaths_file.close() + +# use pipx to run clang-format from PyPI +# this is a simple way to run the same clang-format version regardless of OS +cmd = ['pipx', 'run', f'clang-format=={CLANG_FORMAT_VERSION}', + f'--files={filepaths_file.name}'] +if args.inplace_edit: + cmd += ['-i'] +else: + cmd += ['--Werror', '--dry-run'] + +print(f"{Path.cwd()}$ {list2cmdline(cmd)}") +if run(cmd).returncode: + exit(1) diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/aws-c-compression-0.2.18/format-check.sh new/aws-c-compression-0.3.0/format-check.sh --- old/aws-c-compression-0.2.18/format-check.sh 2024-02-12 18:24:08.000000000 +0100 +++ new/aws-c-compression-0.3.0/format-check.sh 1970-01-01 01:00:00.000000000 +0100 @@ -1,24 +0,0 @@ -#!/usr/bin/env bash - -if [[ -z $CLANG_FORMAT ]] ; then - CLANG_FORMAT=clang-format -fi - -if NOT type $CLANG_FORMAT 2> /dev/null ; then - echo "No appropriate clang-format found." - exit 1 -fi - -FAIL=0 -SOURCE_FILES=`find source include tests -type f \( -name '*.h' -o -name '*.c' \) -not -name 'test_huffman_static.c'` -for i in $SOURCE_FILES -do - $CLANG_FORMAT -output-replacements-xml $i | grep -c "<replacement " > /dev/null - if [ $? -ne 1 ] - then - echo "$i failed clang-format check." - FAIL=1 - fi -done - -exit $FAIL diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/aws-c-compression-0.2.18/source/compression.c new/aws-c-compression-0.3.0/source/compression.c --- old/aws-c-compression-0.2.18/source/compression.c 2024-02-12 18:24:08.000000000 +0100 +++ new/aws-c-compression-0.3.0/source/compression.c 2024-10-23 19:03:04.000000000 +0200 @@ -6,7 +6,7 @@ #include <aws/compression/compression.h> #define DEFINE_ERROR_INFO(CODE, STR) \ - [(CODE)-AWS_ERROR_ENUM_BEGIN_RANGE(AWS_C_COMPRESSION_PACKAGE_ID)] = \ + [(CODE) - AWS_ERROR_ENUM_BEGIN_RANGE(AWS_C_COMPRESSION_PACKAGE_ID)] = \ AWS_DEFINE_ERROR_INFO(CODE, STR, "aws-c-compression") /* clang-format off */
participants (1)
-
Source-Sync