[libguestfs] Add patch to diagnose Perl configure problems.

Richard W.M. Jones rjones at fedoraproject.org
Thu Jul 21 16:03:55 UTC 2011


commit f0844aa4acd331df6ebebd81c6493bc0982eb2a2
Author: Richard W.M. Jones <rjones at redhat.com>
Date:   Thu Jul 21 17:03:25 2011 +0100

    Add patch to diagnose Perl configure problems.

 ...failed-Perl-test-configure-output-to-conf.patch |   25 ++++++++++++++++++++
 libguestfs-1.12.0-configure-for-patch5.patch       |   11 ++++++++
 libguestfs.spec                                    |   10 ++++++-
 3 files changed, 44 insertions(+), 2 deletions(-)
---
diff --git a/0001-build-Send-failed-Perl-test-configure-output-to-conf.patch b/0001-build-Send-failed-Perl-test-configure-output-to-conf.patch
new file mode 100644
index 0000000..999917d
--- /dev/null
+++ b/0001-build-Send-failed-Perl-test-configure-output-to-conf.patch
@@ -0,0 +1,25 @@
+From 610642491a4846f45c7b233060ffde46f6ca09f0 Mon Sep 17 00:00:00 2001
+From: "Richard W.M. Jones" <rjones at redhat.com>
+Date: Thu, 21 Jul 2011 17:00:48 +0100
+Subject: [PATCH] build: Send failed Perl test configure output to config.log.
+
+---
+ configure.ac |    2 +-
+ 1 files changed, 1 insertions(+), 1 deletions(-)
+
+diff --git a/configure.ac b/configure.ac
+index 24de092..ed88a2e 100644
+--- a/configure.ac
++++ b/configure.ac
+@@ -781,7 +781,7 @@ AS_IF([test "x$PERL" != "xno"],
+         missing_perl_modules=no
+         for pm in Pod::Usage Getopt::Long Sys::Virt Data::Dumper Locale::TextDomain Win::Hivex Win::Hivex::Regedit String::ShellQuote; do
+             AC_MSG_CHECKING([for $pm])
+-            if ! $PERL -M$pm -e1 >/dev/null 2>&1; then
++            if ! $PERL -M$pm -e1 >&AS_MESSAGE_LOG_FD 2>&1; then
+                 AC_MSG_RESULT([no])
+                 missing_perl_modules=yes
+             else
+-- 
+1.7.5.2
+
diff --git a/libguestfs-1.12.0-configure-for-patch5.patch b/libguestfs-1.12.0-configure-for-patch5.patch
new file mode 100644
index 0000000..8a8df5c
--- /dev/null
+++ b/libguestfs-1.12.0-configure-for-patch5.patch
@@ -0,0 +1,11 @@
+--- configure.orig	2011-07-21 16:53:04.508348683 +0100
++++ configure	2011-07-21 17:00:19.706803882 +0100
+@@ -41164,7 +41164,7 @@
+         for pm in Pod::Usage Getopt::Long Sys::Virt Data::Dumper Locale::TextDomain Win::Hivex Win::Hivex::Regedit String::ShellQuote; do
+             { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $pm" >&5
+ $as_echo_n "checking for $pm... " >&6; }
+-            if ! $PERL -M$pm -e1 >/dev/null 2>&1; then
++            if ! $PERL -M$pm -e1 >&5 2>&1; then
+                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
+ $as_echo "no" >&6; }
+                 missing_perl_modules=yes
diff --git a/libguestfs.spec b/libguestfs.spec
index d1706cf..18118d8 100644
--- a/libguestfs.spec
+++ b/libguestfs.spec
@@ -30,7 +30,7 @@ Summary:       Access and modify virtual machine disk images
 Name:          libguestfs
 Epoch:         1
 Version:       1.12.0
-Release:       6%{?dist}
+Release:       7%{?dist}
 License:       LGPLv2+
 Group:         Development/Libraries
 URL:           http://libguestfs.org/
@@ -51,6 +51,10 @@ Patch2:        libguestfs-1.12.0-configure-force-machine-accel-tcg.patch
 Patch3:        0001-build-Allow-make-quickcheck-test-tool-args-to-be-ove.patch
 Patch4:        libguestfs-1.12.0-Makefile.in-for-patch3.patch
 
+# Upstream patch to diagnose Perl configure problems.
+Patch5:        0001-build-Send-failed-Perl-test-configure-output-to-conf.patch
+Patch6:        libguestfs-1.12.0-configure-for-patch5.patch
+
 # Basic build requirements:
 BuildRequires: /usr/bin/pod2man
 BuildRequires: /usr/bin/pod2text
@@ -506,6 +510,8 @@ for %{name}.
 %patch2 -p1
 %patch3 -p1
 %patch4 -p1
+%patch5 -p1
+%patch6 -p0
 
 mkdir -p daemon/m4
 
@@ -871,7 +877,7 @@ rm -rf $RPM_BUILD_ROOT
 
 
 %changelog
-* Thu Jul 21 2011 Richard W.M. Jones <rjones at redhat.com> - 1:1.12.0-6
+* Thu Jul 21 2011 Richard W.M. Jones <rjones at redhat.com> - 1:1.12.0-7
 - Attempt rebuild in dist-f16-perl.
 
 * Thu Jul 21 2011 Richard W.M. Jones <rjones at redhat.com> - 1:1.12.0-4


More information about the scm-commits mailing list