[supermin/f20] Upstream patch for RHBZ#1155586 / RHBZ#1168409.
Richard W.M. Jones
rjones at fedoraproject.org
Wed Nov 26 22:13:57 UTC 2014
commit 1003d9122aaa500aba5bc83abdfc16dda5048825
Author: Richard W.M. Jones <rjones at redhat.com>
Date: Wed Nov 26 22:07:45 2014 +0000
Upstream patch for RHBZ#1155586 / RHBZ#1168409.
...move-trailing-slash-from-readlink-filenam.patch | 31 ++++++++++++++++++++
supermin.spec | 9 +++++-
2 files changed, 39 insertions(+), 1 deletions(-)
---
diff --git a/0001-supermin-Remove-trailing-slash-from-readlink-filenam.patch b/0001-supermin-Remove-trailing-slash-from-readlink-filenam.patch
new file mode 100644
index 0000000..a224f05
--- /dev/null
+++ b/0001-supermin-Remove-trailing-slash-from-readlink-filenam.patch
@@ -0,0 +1,31 @@
+From d7bb984889257f5b87963dcca6456fc6e4cc804e Mon Sep 17 00:00:00 2001
+From: "Richard W.M. Jones" <rjones at redhat.com>
+Date: Sat, 25 Oct 2014 22:51:20 +0100
+Subject: [PATCH] supermin: Remove trailing slash from readlink filenames
+ (RHBZ#1155586).
+
+---
+ src/build.ml | 7 +++++++
+ 1 file changed, 7 insertions(+)
+
+diff --git a/src/build.ml b/src/build.ml
+index 500ce33..b9b44ac 100644
+--- a/src/build.ml
++++ b/src/build.ml
+@@ -402,6 +402,13 @@ and munge files =
+ realpath (parent // target)
+ else
+ target in
++ (* Remove trailing slash from filenames (RHBZ#1155586). *)
++ let target =
++ let len = String.length target in
++ if len >= 2 && target.[len-1] = '/' then
++ String.sub target 0 (len-1)
++ else
++ target in
+ if not (dir_seen target) then (
+ let target =
+ {ft_path = target; ft_source_path = target; ft_config = false} in
+--
+2.1.0
+
diff --git a/supermin.spec b/supermin.spec
index 9cb58f9..1c33e6b 100644
--- a/supermin.spec
+++ b/supermin.spec
@@ -1,7 +1,7 @@
Summary: Tool for creating supermin appliances
Name: supermin
Version: 5.1.9
-Release: 2%{?dist}
+Release: 3%{?dist}
License: GPLv2+
%if 0%{?rhel} >= 7
@@ -14,6 +14,9 @@ Source0: http://libguestfs.org/download/supermin/%{name}-%{version}.tar.gz
# Upstream patch which avoids endless loop in Rawhide.
Patch1: 0001-build-Another-corner-case-in-munge-function.patch
+# Upstream patch for RHBZ#1155586 / RHBZ#1168409
+Patch2: 0001-supermin-Remove-trailing-slash-from-readlink-filenam.patch
+
BuildRequires: /usr/bin/pod2man
BuildRequires: rpm
BuildRequires: yum-utils
@@ -56,6 +59,7 @@ second when you need to boot one of them.
%setup -q
%patch1 -p1
+%patch2 -p1
%build
@@ -89,6 +93,9 @@ make check || {
%changelog
+* Wed Nov 26 2014 Richard W.M. Jones <rjones at redhat.com> - 5.1.9-3
+- Upstream patch for RHBZ#1155586 / RHBZ#1168409.
+
* Sun Aug 3 2014 Richard W.M. Jones <rjones at redhat.com> - 5.1.9-2
- Add upstream patch to avoid endless loop in Rawhide.
More information about the scm-commits
mailing list