From 7c8e00941a16463e1f34ead484512fa295b91099 Mon Sep 17 00:00:00 2001 From: Panu Matilainen Date: Jul 14 2008 08:59:41 +0000 Subject: - 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 +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 +- 4.5.90-0.git8426.7 +- fix mono dependency extraction (adjust for libmagic string change) + * Sat Jul 12 2008 Panu Matilainen - 4.5.90-0.git8426.6 - fix type mismatch causing funky breakage on ppc64