public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
To: git-commits@fedoraproject.org
Subject: [rpms/python-setuptools] rawhide: Do not install the setuptools.whl with executable permissions
Date: Tue, 08 Sep 2026 11:47:33 GMT	[thread overview]
Message-ID: <178886805397.1.2272308734732199509.rpms-python-setuptools-fd17ee7a11ca@fedoraproject.org> (raw)

            A new commit has been pushed.

            Repo   : rpms/python-setuptools
            Branch : rawhide
            Commit : fd17ee7a11ca3d526485deb2ef5f59db5fb52bec
            Author : Miro Hrončok <miro@hroncok.cz>
            Date   : 2026-09-04T11:56:06+02:00
            Stats  : +1/-1 in 1 file(s)
            URL    : https://src.fedoraproject.org/rpms/python-setuptools/c/fd17ee7a11ca3d526485deb2ef5f59db5fb52bec?branch=rawhide

            Log:
            Do not install the setuptools.whl with executable permissions

The wheel file is never executed, it has no shebang
(yes, zips can have shebangs).

    bash: /usr/share/python-wheels/setuptools-....whl: cannot execute binary file: Exec format error

This executable permission was never intended,
it only happens to be the default for the install command.

---
diff --git a/python-setuptools.spec b/python-setuptools.spec
index 50e0543..6c36208 100644
--- a/python-setuptools.spec
+++ b/python-setuptools.spec
@@ -152,7 +152,7 @@ sed -Ei '/\/tests\b/d' %{pyproject_files}
 # Install the wheel for the python-setuptools-wheel package
 # and inject SBOM into it (if the macro is available)
 mkdir -p %{buildroot}%{python_wheel_dir}
-install -p %{_pyproject_wheeldir}/%{python_wheel_name} -t %{buildroot}%{python_wheel_dir}
+install -pm0644 %{_pyproject_wheeldir}/%{python_wheel_name} -t %{buildroot}%{python_wheel_dir}
 %{?python_wheel_inject_sbom:%python_wheel_inject_sbom %{buildroot}%{python_wheel_dir}/%{python_wheel_name}}
 
 

                 reply	other threads:[~2026-09-08 11:47 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=178886805397.1.2272308734732199509.rpms-python-setuptools-fd17ee7a11ca@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