public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/sjasm] rawhide: Fix annocheck hardening failures and use '%license' for license file
@ 2026-07-15 20:03 Michal Schorm
  0 siblings, 0 replies; only message in thread
From: Michal Schorm @ 2026-07-15 20:03 UTC (permalink / raw)
  To: git-commits

            A new commit has been pushed.

            Repo   : rpms/sjasm
            Branch : rawhide
            Commit : cfa2c62bd2f9f3764eaa2b9bd5ee49bfbc0b0937
            Author : Michal Schorm <mschorm@redhat.com>
            Date   : 2026-07-15T00:53:43+02:00
            Stats  : +8/-3 in 1 file(s)
            URL    : https://src.fedoraproject.org/rpms/sjasm/c/cfa2c62bd2f9f3764eaa2b9bd5ee49bfbc0b0937?branch=rawhide

            Log:
            Fix annocheck hardening failures and use '%license' for license file

The Makefile's 'LDFLAGS = ' (empty assignment) was discarding
'%{build_ldflags}' from the environment. Pass 'LDFLAGS' on the make
command line so '-Wl,-z,now' (bind-now) and the
'-specs=redhat-hardened-ld' (PIE) reach the linker.

Mark 'sjasm.txt' with '%license' instead of '%doc' since the file
contains the Zlib license text.

Co-Authored-By: Claude AI <noreply@anthropic.com>

---
diff --git a/sjasm.spec b/sjasm.spec
index 2e5cab4..be5ac4a 100644
--- a/sjasm.spec
+++ b/sjasm.spec
@@ -1,6 +1,6 @@
 Name:           sjasm
 Version:        0.42c
-Release:        10%{?dist}
+Release:        11%{?dist}
 Summary:        A z80 cross assembler
 License:        Zlib
 URL:            http://www.xl2s.tk
@@ -34,7 +34,7 @@ iconv -f iso8859-1 %{name}.txt -t utf8 > %{name}.txt.conv \
 
 
 %build
-make -C sjasmsrc42c %{?_smp_mflags} CXXFLAGS="%{optflags} -DMAX_PATH=MAXPATHLEN"
+make -C sjasmsrc42c %{?_smp_mflags} CXXFLAGS="%{optflags} -DMAX_PATH=MAXPATHLEN" LDFLAGS="%{build_ldflags}"
 
 
 %install
@@ -45,10 +45,15 @@ make -C sjasmsrc42c install DESTDIR=%{buildroot}
 
 %files
 %{_bindir}/%{name}
-%doc %{name}.txt
+%license %{name}.txt
 
 
 %changelog
+* Wed Jul 15 2026 Michal Schorm <mschorm@redhat.com> - 0.42c-11
+- Pass '%{build_ldflags}' to the Makefile to fix annocheck 'bind-now' and 'pie'
+  hardening failures
+- Mark 'sjasm.txt' as '%license' instead of '%doc' (contains Zlib license text)
+
 * Tue Jul 14 2026 Michal Schorm <mschorm@redhat.com> - 0.42c-10
 - Fix SPDX license tag: 'LicenseRef-Callaway-BSD' -> 'Zlib'
 

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

only message in thread, other threads:[~2026-07-15 20:03 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-07-15 20:03 [rpms/sjasm] rawhide: Fix annocheck hardening failures and use '%license' for license file Michal Schorm

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