public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Panu Matilainen <pmatilai@fedoraproject.org>
To: git-commits@fedoraproject.org
Subject: [rpms/rpm] pmatilai-v6: - fix noise from python bytecompile on non-python packages (#539635)
Date: Mon, 23 Nov 2026 09:26:16 GMT [thread overview]
Message-ID: <179542597641.1.11261120540659303882.rpms-rpm-a4433ba9bb48@fedoraproject.org> (raw)
A new commit has been pushed.
Repo : rpms/rpm
Branch : pmatilai-v6
Commit : a4433ba9bb4834978767171bc99303040c6d2d3b
Author : Panu Matilainen <pmatilai@fedoraproject.org>
Date : 2009-12-08T14:13:12+00:00
Stats : +37/-1 in 2 file(s)
URL : https://src.fedoraproject.org/rpms/rpm/c/a4433ba9bb4834978767171bc99303040c6d2d3b?branch=pmatilai-v6
Log:
- fix noise from python bytecompile on non-python packages (#539635)
---
diff --git a/rpm-4.7.90-python-bytecompile.patch b/rpm-4.7.90-python-bytecompile.patch
new file mode 100644
index 0000000..4fc210a
--- /dev/null
+++ b/rpm-4.7.90-python-bytecompile.patch
@@ -0,0 +1,30 @@
+commit 3ffc0373c4db9824a72a6356d04d862e51f42be0
+Author: Panu Matilainen <pmatilai@redhat.com>
+Date: Tue Dec 8 15:58:51 2009 +0200
+
+ Avoid noise from python bytecompile on non-python pkgs (RhBug:539635)
+ - If a pattern doesn't match, we'd prefer an empty list instead of
+ unexpanded garbage thank you... nullglob shell option is just what the
+ doctor ordered but unfortunately its a bash-specific thing. Otoh there
+ are number of other bash-specific scripts in rpm so probably not
+ much of an issue...
+ (cherry picked from commit d6bda5a1665d8d04526aea299781570ee7486b2e)
+
+diff --git a/scripts/brp-python-bytecompile b/scripts/brp-python-bytecompile
+index 1faa6db..9fac5a7 100644
+--- a/scripts/brp-python-bytecompile
++++ b/scripts/brp-python-bytecompile
+@@ -1,4 +1,4 @@
+-#!/bin/sh
++#!/bin/bash
+
+ # If using normal root, avoid changing anything.
+ if [ -z "$RPM_BUILD_ROOT" -o "$RPM_BUILD_ROOT" = "/" ]; then
+@@ -32,6 +32,7 @@ fi
+ # For example, below /usr/lib/python2.6/, we're targetting /usr/bin/python2.6
+ # and below /usr/lib/python3.1/, we're targetting /usr/bin/python3.1
+
++shopt -s nullglob
+ for python_libdir in $RPM_BUILD_ROOT/usr/lib*/python*/ ;
+ do
+ python_binary=/usr/bin/$(basename $python_libdir)
diff --git a/rpm.spec b/rpm.spec
index 357292c..f10144c 100644
--- a/rpm.spec
+++ b/rpm.spec
@@ -21,7 +21,7 @@
Summary: The RPM package management system
Name: rpm
Version: %{rpmver}
-Release: 0.%{snapver}.1
+Release: 0.%{snapver}.2
Group: System Environment/Base
Url: http://www.rpm.org/
Source0: http://rpm.org/releases/testing/%{name}-%{srcver}.tar.bz2
@@ -37,6 +37,7 @@ Patch2: rpm-4.5.90-gstreamer-provides.patch
Patch3: rpm-4.7.90-fedora-specspo.patch
# Patches already in upstream
+Patch200: rpm-4.7.90-python-bytecompile.patch
# These are not yet upstream
Patch301: rpm-4.6.0-niagara.patch
@@ -190,6 +191,8 @@ packages on a system.
%patch2 -p1 -b .gstreamer-prov
%patch3 -p1 -b .fedora-specspo
+%patch200 -p1 -b .python-bytecompile
+
%patch301 -p1 -b .niagara
%patch302 -p1 -b .geode
@@ -403,6 +406,9 @@ exit 0
%doc doc/librpm/html/*
%changelog
+* Mon Dec 07 2009 Panu Matilainen <pmatilai@redhat.com> - 4.8.0-0.beta1.2
+- fix noise from python bytecompile on non-python packages (#539635)
+
* Mon Dec 07 2009 Panu Matilainen <pmatilai@redhat.com> - 4.8.0-0.beta1.1
- update to 4.8.0-beta1 (http://rpm.org/wiki/Releases/4.8.0)
- rpm-build conflicts with current ocaml-runtime
reply other threads:[~2026-11-23 9:26 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=179542597641.1.11261120540659303882.rpms-rpm-a4433ba9bb48@fedoraproject.org \
--to=pmatilai@fedoraproject.org \
--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