public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Michal Schorm <mschorm@redhat.com>
To: git-commits@fedoraproject.org
Subject: [rpms/sjasm] rawhide: Fix annocheck hardening failures and use '%license' for license file
Date: Wed, 15 Jul 2026 20:03:36 GMT	[thread overview]
Message-ID: <178414581628.1.5398857724668370939.rpms-sjasm-cfa2c62bd2f9@fedoraproject.org> (raw)

            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'
 

                 reply	other threads:[~2026-07-15 20:03 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=178414581628.1.5398857724668370939.rpms-sjasm-cfa2c62bd2f9@fedoraproject.org \
    --to=mschorm@redhat.com \
    --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