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 mono dependency extraction (adjust for libmagic string change)
Date: Mon, 23 Nov 2026 09:25:00 GMT	[thread overview]
Message-ID: <179542590052.1.5494407936169325314.rpms-rpm-7c8e00941a16@fedoraproject.org> (raw)

A new commit has been pushed.

Repo   : rpms/rpm
Branch : pmatilai-v6
Commit : 7c8e00941a16463e1f34ead484512fa295b91099
Author : Panu Matilainen <pmatilai@fedoraproject.org>
Date   : 2008-07-14T08:59:41+00:00
Stats  : +31/-1 in 2 file(s)
URL    : https://src.fedoraproject.org/rpms/rpm/c/7c8e00941a16463e1f34ead484512fa295b91099?branch=pmatilai-v6

Log:
- fix mono dependency extraction (adjust for libmagic string change)

---
diff --git a/rpm-4.5.90-mono-magic.patch b/rpm-4.5.90-mono-magic.patch
new file mode 100644
index 0000000..dfde3c1
--- /dev/null
+++ b/rpm-4.5.90-mono-magic.patch
@@ -0,0 +1,22 @@
+commit b3bd21e9f07272a37c2259070f95b167e6301c79
+Author: Panu Matilainen <pmatilai@redhat.com>
+Date:   Mon Jul 14 11:53:10 2008 +0300
+
+    Fix mono dependency extraction
+    - use "Mono/.Net assembly" instead of "PE executable" for detection,
+      later file reports bitness (eg "PE32 executable"), we just care if its
+      mono or not. This is compatible with older libmagic too.
+
+diff --git a/build/rpmfc.c b/build/rpmfc.c
+index 3cc2d6d..6f15b2c 100644
+--- a/build/rpmfc.c
++++ b/build/rpmfc.c
+@@ -490,7 +490,7 @@ static const struct rpmfcTokens_s const rpmfcTokens[] = {
+ 
+   /* XXX .NET executables and libraries.  file(1) cannot differ from win32 
+    * executables unfortunately :( */
+-  { "PE executable",            RPMFC_MONO|RPMFC_INCLUDE },
++  { "Mono/.Net assembly",       RPMFC_MONO|RPMFC_INCLUDE },
+ 
+   { "current ar archive",	RPMFC_STATIC|RPMFC_LIBRARY|RPMFC_ARCHIVE|RPMFC_INCLUDE },
+ 

diff --git a/rpm.spec b/rpm.spec
index 5141eaa..0f295ef 100644
--- a/rpm.spec
+++ b/rpm.spec
@@ -18,7 +18,7 @@
 Summary: The RPM package management system
 Name: rpm
 Version: %{rpmver}
-Release: 0.%{snapver}.6
+Release: 0.%{snapver}.7
 Group: System Environment/Base
 Url: http://www.rpm.org/
 Source0: http://rpm.org/releases/testing/%{name}-%{srcver}.tar.bz2
@@ -31,7 +31,9 @@ Patch1: rpm-4.5.90-pkgconfig-path.patch
 # XXX only create provides for pkgconfig and libtool initially
 Patch100: rpm-4.6.x-no-pkgconfig-reqs.patch
 
+# These are already upstream, drop on next snapshot update:
 Patch200: rpm-4.5.90-digestlen.patch
+Patch201: rpm-4.5.90-mono-magic.patch
 
 # Partially GPL/LGPL dual-licensed and some bits with BSD
 # SourceLicense: (GPLv2+ and LGPLv2+ with exceptions) and BSD 
@@ -158,7 +160,9 @@ that will manipulate RPM packages and databases.
 %patch0 -p1 -b .devel-autodep
 %patch1 -p1 -b .pkgconfig-path
 %patch100 -p1 -b .pkgconfig-deps
+
 %patch200 -p1 -b .diglen
+%patch201 -p1 -b .mono-magic
 
 %if %{with int_bdb}
 ln -s db-%{bdbver} db
@@ -334,6 +338,10 @@ exit 0
 %doc doc/librpm/html/*
 
 %changelog
+* Mon Jul 14 2008 Panu Matilainen <pmatilai@redhat.com>
+- 4.5.90-0.git8426.7
+- fix mono dependency extraction (adjust for libmagic string change)
+
 * Sat Jul 12 2008 Panu Matilainen <pmatilai@redhat.com>
 - 4.5.90-0.git8426.6
 - fix type mismatch causing funky breakage on ppc64

                 reply	other threads:[~2026-11-23  9:25 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=179542590052.1.5494407936169325314.rpms-rpm-7c8e00941a16@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