rpms/libguestfs/devel libguestfs-1.3.12-ensure-ordinary-appliance-is-updated.patch, NONE, 1.1 libguestfs.spec, 1.188, 1.189

Richard W.M. Jones rjones at fedoraproject.org
Fri May 14 15:37:48 UTC 2010


Author: rjones

Update of /cvs/pkgs/rpms/libguestfs/devel
In directory cvs01.phx2.fedoraproject.org:/tmp/cvs-serv1974

Modified Files:
	libguestfs.spec 
Added Files:
	libguestfs-1.3.12-ensure-ordinary-appliance-is-updated.patch 
Log Message:
* Fri May 14 2010 Richard W.M. Jones <rjones at redhat.com> - 1:1.3.12-3
- Backport supermin build fix from upstream.
- Further changes required for new layout of supermin appliance.


libguestfs-1.3.12-ensure-ordinary-appliance-is-updated.patch:
 Makefile.am |    4 ++--
 Makefile.in |    4 ++--
 2 files changed, 4 insertions(+), 4 deletions(-)

--- NEW FILE libguestfs-1.3.12-ensure-ordinary-appliance-is-updated.patch ---
diff -ur libguestfs-1.3.12/appliance/Makefile.am libguestfs-1.3.12.new/appliance/Makefile.am
--- libguestfs-1.3.12/appliance/Makefile.am	2010-05-13 18:30:37.000000000 +0100
+++ libguestfs-1.3.12.new/appliance/Makefile.am	2010-05-14 15:44:54.941717073 +0100
@@ -87,13 +87,13 @@
 if SUPERMIN
 
 supermin.d/base.img supermin.d/hostfiles: stamp-supermin
-stamp-supermin: $(top_builddir)/initramfs/fakeroot.log $(top_builddir)/initramfs/init
+stamp-supermin: $(INITRAMFSIMG)
 	mkdir -p supermin.d
 	rm -f $@ supermin.d/base.img supermin.d/hostfiles
 	febootstrap-to-supermin $(top_builddir)/initramfs supermin.d/base.img supermin.d/hostfiles
 	touch $@
 
-supermin.d/daemon.img: $(top_builddir)/initramfs/sbin/guestfsd
+supermin.d/daemon.img: $(INITRAMFSIMG)
 	mkdir -p supermin.d
 	rm -f $@ $@-t
 	(cd $(top_builddir)/initramfs && \
diff -ur libguestfs-1.3.12/appliance/Makefile.in libguestfs-1.3.12.new/appliance/Makefile.in
--- libguestfs-1.3.12/appliance/Makefile.in	2010-05-14 12:19:39.000000000 +0100
+++ libguestfs-1.3.12.new/appliance/Makefile.in	2010-05-14 15:44:59.237342261 +0100
@@ -1275,13 +1275,13 @@
 # to read the README file.
 
 @SUPERMIN_TRUE at supermin.d/base.img supermin.d/hostfiles: stamp-supermin
- at SUPERMIN_TRUE@stamp-supermin: $(top_builddir)/initramfs/fakeroot.log $(top_builddir)/initramfs/init
+ at SUPERMIN_TRUE@stamp-supermin: $(INITRAMFSIMG)
 @SUPERMIN_TRUE@	mkdir -p supermin.d
 @SUPERMIN_TRUE@	rm -f $@ supermin.d/base.img supermin.d/hostfiles
 @SUPERMIN_TRUE@	febootstrap-to-supermin $(top_builddir)/initramfs supermin.d/base.img supermin.d/hostfiles
 @SUPERMIN_TRUE@	touch $@
 
- at SUPERMIN_TRUE@supermin.d/daemon.img: $(top_builddir)/initramfs/sbin/guestfsd
+ at SUPERMIN_TRUE@supermin.d/daemon.img: $(INITRAMFSIMG)
 @SUPERMIN_TRUE@	mkdir -p supermin.d
 @SUPERMIN_TRUE@	rm -f $@ $@-t
 @SUPERMIN_TRUE@	(cd $(top_builddir)/initramfs && \


Index: libguestfs.spec
===================================================================
RCS file: /cvs/pkgs/rpms/libguestfs/devel/libguestfs.spec,v
retrieving revision 1.188
retrieving revision 1.189
diff -u -p -r1.188 -r1.189
--- libguestfs.spec	14 May 2010 13:33:38 -0000	1.188
+++ libguestfs.spec	14 May 2010 15:37:48 -0000	1.189
@@ -42,7 +42,7 @@ Summary:       Access and modify virtual
 Name:          libguestfs
 Epoch:         1
 Version:       1.3.12
-Release:       1%{?dist}
+Release:       3%{?dist}
 License:       LGPLv2+
 Group:         Development/Libraries
 URL:           http://libguestfs.org/
@@ -52,6 +52,9 @@ BuildRoot:     %{_tmppath}/%{name}-%{ver
 # Disable FUSE tests, not supported in Koji at the moment.
 Patch0:        libguestfs-1.0.79-no-fuse-test.patch
 
+# Small build fix for supermin backported from upstream.
+Patch1:        libguestfs-1.3.12-ensure-ordinary-appliance-is-updated.patch
+
 # Basic build requirements:
 BuildRequires: /usr/bin/pod2man
 BuildRequires: /usr/bin/pod2text
@@ -389,6 +392,7 @@ Requires:      jpackage-utils
 %setup -q
 
 %patch0 -p1
+%patch1 -p1
 
 mkdir -p daemon/m4
 
@@ -430,8 +434,8 @@ make INSTALLDIRS=vendor %{?_smp_mflags}
 echo "==== files in initramfs ===="
 find initramfs -type f
 echo "==== hostfiles ===="
-ls -l appliance/*.supermin.hostfiles
-cat appliance/*.supermin.hostfiles
+ls -l appliance/supermin.d/hostfiles
+cat appliance/supermin.d/hostfiles
 echo "============"
 
 
@@ -497,11 +501,7 @@ make DESTDIR=$RPM_BUILD_ROOT install
 
 # Delete the ordinary appliance, leaving just the supermin appliance.
 rm $RPM_BUILD_ROOT%{_libdir}/guestfs/vmlinuz.*
-mkdir keep
-mv $RPM_BUILD_ROOT%{_libdir}/guestfs/initramfs.*.supermin.img keep
-rm $RPM_BUILD_ROOT%{_libdir}/guestfs/initramfs.*.img
-mv keep/* $RPM_BUILD_ROOT%{_libdir}/guestfs/
-rmdir keep
+rm $RPM_BUILD_ROOT%{_libdir}/guestfs/initramfs.*
 
 # Delete static libraries, libtool files.
 rm $RPM_BUILD_ROOT%{_libdir}/libguestfs.a
@@ -568,7 +568,6 @@ rm -rf $RPM_BUILD_ROOT
 %files -f %{name}.lang
 %defattr(-,root,root,-)
 %doc COPYING
-%{_bindir}/libguestfs-supermin-helper
 %{_bindir}/libguestfs-test-tool
 %{_libdir}/guestfs/
 %{_libdir}/libguestfs.so.*
@@ -696,6 +695,10 @@ rm -rf $RPM_BUILD_ROOT
 
 
 %changelog
+* Fri May 14 2010 Richard W.M. Jones <rjones at redhat.com> - 1:1.3.12-3
+- Backport supermin build fix from upstream.
+- Further changes required for new layout of supermin appliance.
+
 * Fri May 14 2010 Richard W.M. Jones <rjones at redhat.com> - 1:1.3.12-1
 - New upstream version 1.3.12.
 - febootstrap >= 2.7 is required at compile time and at runtime (at runtime



More information about the scm-commits mailing list