packages: febootstrap/0001-Fix-Python-code-when-_bestPackageFromList-return...
baggins
baggins at pld-linux.org
Sun Jan 22 19:38:40 CET 2012
Author: baggins Date: Sun Jan 22 18:38:40 2012 GMT
Module: packages Tag: HEAD
---- Log message:
- new
---- Files affected:
packages/febootstrap:
0001-Fix-Python-code-when-_bestPackageFromList-returns-No.patch (NONE -> 1.1) (NEW), febootstrap.spec (NONE -> 1.1) (NEW)
---- Diffs:
================================================================
Index: packages/febootstrap/0001-Fix-Python-code-when-_bestPackageFromList-returns-No.patch
diff -u /dev/null packages/febootstrap/0001-Fix-Python-code-when-_bestPackageFromList-returns-No.patch:1.1
--- /dev/null Sun Jan 22 19:38:40 2012
+++ packages/febootstrap/0001-Fix-Python-code-when-_bestPackageFromList-returns-No.patch Sun Jan 22 19:38:35 2012
@@ -0,0 +1,27 @@
+From 61c565bc06a83da75b57f8568fe76f393e665d70 Mon Sep 17 00:00:00 2001
+From: "Richard W.M. Jones" <rjones at redhat.com>
+Date: Tue, 8 Nov 2011 14:40:18 +0000
+Subject: [PATCH] Fix Python code when _bestPackageFromList returns None.
+
+Yet Another Bug caused by lack of strong typing and nullable types in
+this sad excuse for a programming language.
+---
+ src/febootstrap_yum_rpm.ml | 2 +-
+ 1 files changed, 1 insertions(+), 1 deletions(-)
+
+diff --git a/src/febootstrap_yum_rpm.ml b/src/febootstrap_yum_rpm.ml
+index bfda11e..1def619 100644
+--- a/src/febootstrap_yum_rpm.ml
++++ b/src/febootstrap_yum_rpm.ml
+@@ -78,7 +78,7 @@ while not stable:
+ for r in pkg.requires:
+ ps = yb.whatProvides (r[0], r[1], r[2])
+ best = yb._bestPackageFromList (ps.returnPackages ())
+- if best.name != pkg.name:
++ if best and best.name != pkg.name:
+ deps[pkg].append (best)
+ if not deps.has_key (best):
+ deps[best] = False
+--
+1.7.6
+
================================================================
Index: packages/febootstrap/febootstrap.spec
diff -u /dev/null packages/febootstrap/febootstrap.spec:1.1
--- /dev/null Sun Jan 22 19:38:40 2012
+++ packages/febootstrap/febootstrap.spec Sun Jan 22 19:38:35 2012
@@ -0,0 +1,90 @@
+# $Revision$, $Date$
+Summary: Bootstrapping tool for creating supermin appliances
+Name: febootstrap
+Version: 3.12
+Release: 1
+License: GPL v2
+Group: Applications
+Source0: http://people.redhat.com/~rjones/febootstrap/files/%{name}-%{version}.tar.gz
+# Source0-md5: 8d0143c96c538909bf0bbc13d09604c4
+Patch0: 0001-Fix-Python-code-when-_bestPackageFromList-returns-No.patch
+URL: http://people.redhat.com/~rjones/febootstrap/
+BuildRequires: ocaml >= 3.04-7
+BuildRequires: ocaml-findlib
+BuildRequires: e2fsprogs-devel
+BuildRequires: libcom_err-devel
+BuildRequires: zlib-devel
+BuildRequires: perl-perldoc
+BuildRequires: gawk
+Suggests: yum >= 3.2
+Suggests: yum-utils
+Suggests: qemu
+Suggests: filelight
+Requires: %{name}-supermin-helper = %{version}-%{release}
+BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+Febootstrap is a tool for building supermin appliances.
+These are tiny appliances [similar to virtual machines], usually
+around 100KB in size, which get fully instantiated on-the-fly
+in a fraction of a second when you need to boot one of them.
+
+Currently we support Fedora and Debian.
+We hope to support many other distros in future.
+
+%package supermin-helper
+Summary: Runtime support for febootstrap
+Group: Development/Tools
+Requires: util-linux
+Requires: cpio
+Requires: /sbin/mke2fs
+
+%description supermin-helper
+This package contains the runtime support for febootstrap.
+
+%prep
+%setup -q
+%patch0 -p1
+
+%build
+%configure \
+ YUM="yum" \
+ RPM="rpm" \
+ YUMDOWNLOADER="yumdownloader" \
+ APTITUDE="aptitude" \
+ APT_CACHE="apg-cache" \
+ DPKG="dpkg" \
+ PACMAN="pacman"
+
+%{__make}
+
+%install
+rm -rf $RPM_BUILD_ROOT
+
+%{__make} install \
+ DESTDIR=$RPM_BUILD_ROOT
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(644,root,root,755)
+%doc README
+%attr(755,root,root) %{_bindir}/febootstrap
+%{_mandir}/man8/febootstrap.8*
+
+%files supermin-helper
+%defattr(644,root,root,755)
+%doc helper/README
+%attr(755,root,root) %{_bindir}/febootstrap-supermin-helper
+%{_mandir}/man8/febootstrap-supermin-helper.8*
+
+%define date %(echo `LC_ALL="C" date +"%a %b %d %Y"`)
+%changelog
+* %{date} PLD Team <feedback at pld-linux.org>
+All persons listed below can be reached at <cvs_login>@pld-linux.org
+
+$Log$
+Revision 1.1 2012/01/22 18:38:35 baggins
+- new
+
================================================================
More information about the pld-cvs-commit
mailing list