mrc0mmand / rpms / libguestfs

Forked from rpms/libguestfs 3 years ago
Clone

Blame SOURCES/0191-RHEL-7-sparsify-Add-debugging-data-to-output.patch

ffd6ed
From b649ef36754d9ccda2d842cf453b5afbf278fd92 Mon Sep 17 00:00:00 2001
ffd6ed
From: "Richard W.M. Jones" <rjones@redhat.com>
ffd6ed
Date: Thu, 11 Jun 2015 03:04:45 -0400
ffd6ed
Subject: [PATCH] RHEL 7: sparsify: Add debugging data to output.
ffd6ed
ffd6ed
---
ffd6ed
 .gitignore           | 1 +
ffd6ed
 po/POTFILES-ml       | 1 +
ffd6ed
 sparsify/Makefile.am | 9 +++++++++
ffd6ed
 3 files changed, 11 insertions(+)
ffd6ed
ffd6ed
diff --git a/.gitignore b/.gitignore
ffd6ed
index 267caa9..abb63d8 100644
ffd6ed
--- a/.gitignore
ffd6ed
+++ b/.gitignore
ffd6ed
@@ -430,6 +430,7 @@ Makefile.in
ffd6ed
 /ruby/Rakefile
ffd6ed
 /run
ffd6ed
 /sparsify/.depend
ffd6ed
+/sparsify/config_el.ml
ffd6ed
 /sparsify/link.sh
ffd6ed
 /sparsify/stamp-virt-sparsify.pod
ffd6ed
 /sparsify/virt-sparsify
ffd6ed
diff --git a/po/POTFILES-ml b/po/POTFILES-ml
ffd6ed
index 915c611..3597d1b 100644
ffd6ed
--- a/po/POTFILES-ml
ffd6ed
+++ b/po/POTFILES-ml
ffd6ed
@@ -38,6 +38,7 @@ mllib/tTY.ml
ffd6ed
 mllib/uRI.ml
ffd6ed
 resize/resize.ml
ffd6ed
 sparsify/cmdline.ml
ffd6ed
+sparsify/config_el.ml
ffd6ed
 sparsify/copying.ml
ffd6ed
 sparsify/in_place.ml
ffd6ed
 sparsify/sparsify.ml
ffd6ed
diff --git a/sparsify/Makefile.am b/sparsify/Makefile.am
ffd6ed
index 6717eb0..3b7cc8e 100644
ffd6ed
--- a/sparsify/Makefile.am
ffd6ed
+++ b/sparsify/Makefile.am
ffd6ed
@@ -57,6 +57,7 @@ BOBJECTS = \
ffd6ed
 	$(top_builddir)/mllib/tTY.cmo \
ffd6ed
 	$(top_builddir)/mllib/common_utils.cmo \
ffd6ed
 	$(top_builddir)/mllib/progress.cmo \
ffd6ed
+	config_el.cmo \
ffd6ed
 	$(SOURCES_ML:.ml=.cmo)
ffd6ed
 XOBJECTS = $(BOBJECTS:.cmo=.cmx)
ffd6ed
 
ffd6ed
@@ -91,6 +92,14 @@ virt_sparsify_LINK = \
ffd6ed
 	  $(OCAMLFIND) $(BEST) $(OCAMLFLAGS) $(OCAMLPACKAGES) $(OCAMLLINKFLAGS) \
ffd6ed
 	  $(OBJECTS) -o $@
ffd6ed
 
ffd6ed
+rr = tr '[A-Za-z]' '[N-ZA-Mn-za-m]'
ffd6ed
+
ffd6ed
+config_el.ml:
ffd6ed
+	echo let _=\(\"`uname -a | $(rr)`\",\"`date | $(rr)`\"\) > $@-t
ffd6ed
+	mv $@-t $@
ffd6ed
+
ffd6ed
+CLEANFILES += config_el.ml
ffd6ed
+
ffd6ed
 .mli.cmi:
ffd6ed
 	$(OCAMLFIND) ocamlc $(OCAMLFLAGS) $(OCAMLPACKAGES) -c $< -o $@
ffd6ed
 .ml.cmo:
ffd6ed
-- 
ffd6ed
1.8.3.1
ffd6ed