public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/zstd] rawhide: add a verification check for IBT and SHSTK properties
@ 2026-11-24 17:23 
  0 siblings, 0 replies; only message in thread
From:  @ 2026-11-24 17:23 UTC (permalink / raw)
  To: git-commits

            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

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2026-11-24 17:23 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-11-24 17:23 [rpms/zstd] rawhide: add a verification check for IBT and SHSTK properties 

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox