public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
To: git-commits@fedoraproject.org
Subject: [rpms/zstd] rawhide: add a verification check for IBT and SHSTK properties
Date: Tue, 24 Nov 2026 17:23:26 GMT [thread overview]
Message-ID: <179554100685.1.2316144797262885035.rpms-zstd-2e8b45660108@fedoraproject.org> (raw)
A new commit has been pushed.
Repo : rpms/zstd
Branch : rawhide
Commit : 2e8b45660108c6c62cc36c25c092c2d973ff14b9
Author : Pádraig Brady <P@draigBrady.com>
Date : 2026-11-24T14:50:16+00:00
Stats : +6/-1 in 1 file(s)
URL : https://src.fedoraproject.org/rpms/zstd/c/2e8b45660108c6c62cc36c25c092c2d973ff14b9?branch=rawhide
Log:
add a verification check for IBT and SHSTK properties
These have regressed a couple of times,
so add a check at the link stage to flag this.
Related to: rhbz#2581510
---
diff --git a/zstd.spec b/zstd.spec
index 0517d13..328a1f0 100644
--- a/zstd.spec
+++ b/zstd.spec
@@ -80,7 +80,12 @@ export CPPFLAGS=-DZSTD_DISABLE_ASM
%endif
%global _vpath_srcdir build/cmake
%global _vpath_builddir build/shared
-%cmake %{?with_pzstd:-DZSTD_BUILD_CONTRIB=ON} -DZSTD_BUILD_STATIC=NO -DZSTD_PROGRAMS_LINK_SHARED=YES
+%ifarch x86_64
+# Fail the shared library link if an input lacks IBT or SHSTK.
+%global cet_check -DCMAKE_SHARED_LINKER_FLAGS="$LDFLAGS -Wl,-z,cet-report=error"
+%endif
+%cmake %{?with_pzstd:-DZSTD_BUILD_CONTRIB=ON} -DZSTD_BUILD_STATIC=NO -DZSTD_PROGRAMS_LINK_SHARED=YES \
+ %{?cet_check}
%cmake_build
%global _vpath_builddir build/static
%cmake %{?with_pzstd:-DZSTD_BUILD_CONTRIB=ON} -DZSTD_BUILD_SHARED=NO -DBUILD_TESTING=YES
reply other threads:[~2026-11-24 17:23 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=179554100685.1.2316144797262885035.rpms-zstd-2e8b45660108@fedoraproject.org \
--to=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