public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Remi Collet <remi@fedoraproject.org>
To: git-commits@fedoraproject.org
Subject: [rpms/php-pecl-yac] rawhide: v3.0.2
Date: Thu, 29 Oct 2026 07:19:49 GMT	[thread overview]
Message-ID: <179325838986.1.1687130080405325179.rpms-php-pecl-yac-bc82aeb09afa@fedoraproject.org> (raw)

A new commit has been pushed.

Repo   : rpms/php-pecl-yac
Branch : rawhide
Commit : bc82aeb09afae5f0af51d6588a96cfab756dd676
Author : Remi Collet <remi@fedoraproject.org>
Date   : 2026-10-29T08:19:40+01:00
Stats  : +7/-145 in 4 file(s)
URL    : https://src.fedoraproject.org/rpms/php-pecl-yac/c/bc82aeb09afae5f0af51d6588a96cfab756dd676?branch=rawhide

Log:
v3.0.2

---
diff --git a/.gitignore b/.gitignore
index 18eea23..18e81c2 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,3 +1,4 @@
 clog
 /yac-2.4.2.tar.gz
 /yac-3.0.1.tar.gz
+/yac-3.0.2.tar.gz

diff --git a/php-pecl-yac.spec b/php-pecl-yac.spec
index 1919639..7a1bc82 100644
--- a/php-pecl-yac.spec
+++ b/php-pecl-yac.spec
@@ -24,14 +24,12 @@
 Name:           php-pecl-%{pecl_name}
 Summary:        Lockless user data cache
 License:        PHP-3.01
-Version:        3.0.1
-Release:        2%{?dist}
+Version:        3.0.2
+Release:        1%{?dist}
 %forgemeta
 URL:            %{forgeurl}
 Source0:        %{forgesource}
 
-Patch0:         upstream.patch
-
 ExcludeArch:    %{ix86}
 
 BuildRequires:  make
@@ -68,7 +66,6 @@ that your product is not very sensitive to that.
 
 %prep
 %forgesetup
-%patch -P0 -p1
 
 # drop bundled lz4 to ensure it is not used
 rm -r compressor/lz4
@@ -141,6 +138,9 @@ TEST_PHP_ARGS="$OPTS -d extension=$PWD/modules/%{pecl_name}.so" \
 
 
 %changelog
+* Thu Oct 29 2026 Remi Collet <remi@remirepo.net> - 3.0.2-1
+- update to 3.0.2
+
 * Thu Oct 29 2026 Remi Collet <remi@remirepo.net> - 3.0.1-2
 - fix big endian build using upstream patch
 

diff --git a/sources b/sources
index d730a12..e07d605 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-SHA512 (yac-3.0.1.tar.gz) = 02fccb2e8a4c463f9e2833625c31fa7aabb295b9425606e32fec11c221fbf0b3befdfa01c3f9b812115834ba4a4518ec7b8fb4ba29a93f98ffea6de442d41c6f
+SHA512 (yac-3.0.2.tar.gz) = fce214a2313c639fc5f69f961e75a5949219b3755f72d99b0ed1dcb1a30663cb317ac9d41ddd979fc3fba5ce8b1f67b6503a547c7540e0c34df3cd20049a8323

diff --git a/upstream.patch b/upstream.patch
deleted file mode 100644
index dd14d47..0000000
--- a/upstream.patch
+++ /dev/null
@@ -1,139 +0,0 @@
-From 45f5c2bbb6dd75566eb9dfbd69c2979b024a71eb Mon Sep 17 00:00:00 2001
-From: Xinchen Hui <laruence@gmail.com>
-Date: Thu, 29 Oct 2026 11:46:38 +0800
-Subject: [PATCH] Try to fix big-endian CRC-32C in the slicing-by-8 fallback
- (issue #134)
-
----
- .github/workflows/s390x.yml | 42 +++++++++++++++++++++++++++++++++++++
- storage/crc/yac_crc32.c     |  8 +++++++
- 2 files changed, 50 insertions(+)
- create mode 100644 .github/workflows/s390x.yml
-
-diff --git a/.github/workflows/s390x.yml b/.github/workflows/s390x.yml
-new file mode 100644
-index 0000000..042011d
---- /dev/null
-+++ b/.github/workflows/s390x.yml
-@@ -0,0 +1,42 @@
-+name: s390x
-+on:
-+  workflow_dispatch:
-+
-+jobs:
-+  s390x:
-+    name: "Linux s390x (big endian, QEMU)"
-+    runs-on: ubuntu-latest
-+    timeout-minutes: 90
-+    steps:
-+      - name: Checkout
-+        uses: actions/checkout@v5
-+        with:
-+          submodules: true
-+      - name: Setup QEMU
-+        run: |
-+          sudo apt-get update
-+          sudo apt-get install -y qemu-user-static binfmt-support
-+          # register the s390x interpreter for the host kernel
-+          docker run --rm --privileged multiarch/qemu-user-static --reset -p yes || true
-+      - name: Build and test in an s390x container
-+        run: |
-+          docker run --rm --platform linux/s390x \
-+            -v "$PWD:/yac" -w /yac \
-+            ubuntu:24.04 \
-+            bash -euxc '
-+              uname -m;
-+              echo -e "deb [trusted=yes] https://ports.ubuntu.com/ubuntu-ports noble main universe\n\
-+          deb [trusted=yes] https://ports.ubuntu.com/ubuntu-ports noble-updates main universe" \
-+                > /etc/apt/sources.list;
-+              apt-get update;
-+              DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends \
-+                php-cli php-dev liblz4-dev re2c build-essential pkg-config;
-+              php -v | head -1;
-+              phpize;
-+              ./configure;
-+              make -j"$(nproc)";
-+              php -n -d extension=$PWD/modules/yac.so -m | grep -qx yac;
-+              TEST_PHP_EXECUTABLE=$(which php) \
-+              NO_INTERACTION=1 REPORT_EXIT_STATUS=1 \
-+              php run-tests.php -q -n -p "$(which php)" -d extension=$PWD/modules/yac.so --show-diff
-+            '
-diff --git a/storage/crc/yac_crc32.c b/storage/crc/yac_crc32.c
-index a2e5ea9..e86ae51 100644
---- a/storage/crc/yac_crc32.c
-+++ b/storage/crc/yac_crc32.c
-@@ -356,6 +356,11 @@ static uint32_t snapshot_interleaved(char *dst, const char *buf, unsigned int si
-  * bit for bit; tables in yac_crc32_tab.h, verified against RFC 3720 B.4
-  * ("123456789" -> 0xe3069283)
-  *
-+ * the table indexing below assumes the word is laid out little-endian
-+ * (first byte in memory == low byte of w); byteswap on big-endian so the
-+ * checksum matches hardware builds and, crucially, does not depend on
-+ * the buffer's alignment (issue #134)
-+ *
-  * x86 needs this at runtime (the SSE4.2 probe can fail) and a build with
-  * neither ISA has nothing else, but an ARM build is arch-gated rather than
-  * probed, so yac_crc32_startup() below cannot reach the fallback there --
-@@ -381,6 +386,9 @@ static uint32_t slice8_core(char *dst, const char *data, unsigned int size) {
- 		uint64_t w;
- 
- 		memcpy(&w, p, sizeof(uint64_t));
-+#if __BYTE_ORDER__ == __ORDER_BIG_ENDIAN__
-+		w = __builtin_bswap64(w);
-+#endif
- 		if (dst) {
- 			memcpy(dst, &w, sizeof(uint64_t));
- 			dst += sizeof(uint64_t);
-From 953def636e5e00cdbe0bece79261ce11f1e04d7d Mon Sep 17 00:00:00 2001
-From: Xinchen Hui <laruence@gmail.com>
-Date: Thu, 29 Oct 2026 11:51:09 +0800
-Subject: [PATCH] Guard the big-endian bswap behind defined(__BYTE_ORDER__),
- MSVC leaves it undefined
-
----
- storage/crc/yac_crc32.c | 2 +-
- 1 file changed, 1 insertion(+), 1 deletion(-)
-
-diff --git a/storage/crc/yac_crc32.c b/storage/crc/yac_crc32.c
-index 1800218..d4ac2c7 100644
---- a/storage/crc/yac_crc32.c
-+++ b/storage/crc/yac_crc32.c
-@@ -381,7 +381,7 @@ static uint32_t slice8_core(char *dst, const char *data, unsigned int size) {
- 		uint64_t w;
- 
- 		memcpy(&w, p, sizeof(uint64_t));
--#if __BYTE_ORDER__ == __ORDER_BIG_ENDIAN__
-+#if defined(__BYTE_ORDER__) && __BYTE_ORDER__ == __ORDER_BIG_ENDIAN__
- 		w = __builtin_bswap64(w);
- #endif
- 		if (dst) {
-From cca98d159d31da3e0e0315db39cb1e8f3f315000 Mon Sep 17 00:00:00 2001
-From: Xinchen Hui <laruence@gmail.com>
-Date: Thu, 29 Oct 2026 12:48:45 +0800
-Subject: [PATCH] Fix snapshot bytes swapped on big-endian in the CRC fix
-
----
- storage/crc/yac_crc32.c | 6 +++---
- 1 file changed, 3 insertions(+), 3 deletions(-)
-
-diff --git a/storage/crc/yac_crc32.c b/storage/crc/yac_crc32.c
-index d4ac2c7..117eaea 100644
---- a/storage/crc/yac_crc32.c
-+++ b/storage/crc/yac_crc32.c
-@@ -381,13 +381,13 @@ static uint32_t slice8_core(char *dst, const char *data, unsigned int size) {
- 		uint64_t w;
- 
- 		memcpy(&w, p, sizeof(uint64_t));
--#if defined(__BYTE_ORDER__) && __BYTE_ORDER__ == __ORDER_BIG_ENDIAN__
--		w = __builtin_bswap64(w);
--#endif
- 		if (dst) {
- 			memcpy(dst, &w, sizeof(uint64_t));
- 			dst += sizeof(uint64_t);
- 		}
-+#if defined(__BYTE_ORDER__) && __BYTE_ORDER__ == __ORDER_BIG_ENDIAN__
-+		w = __builtin_bswap64(w);
-+#endif
- 		crc ^= (uint32_t)w;
- 		crc = yac_crc32c_tab[7][crc & 0xFF]
- 			^ yac_crc32c_tab[6][(crc >> 8) & 0xFF]

                 reply	other threads:[~2026-10-29  7:19 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=179325838986.1.1687130080405325179.rpms-php-pecl-yac-bc82aeb09afa@fedoraproject.org \
    --to=remi@fedoraproject.org \
    --cc=git-commits@fedoraproject.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox