[libsolv] rebase to af1465a2.
Ales Kozumplik
akozumpl at fedoraproject.org
Thu Apr 12 10:19:13 UTC 2012
commit f4c7379d23c04f23ee7f65b1a48a4d1104f3242d
Author: Ales Kozumplik <akozumpl at redhat.com>
Date: Thu Apr 12 10:59:10 2012 +0200
rebase to af1465a2.
also libsolv-repo_add_solv_without_stub.patch.
.gitignore | 1 +
libsolv-repo_add_solv_without_stub.patch | 30 ++++++++++++++++++++++++++++++
libsolv.spec | 14 ++++++++++----
sources | 2 +-
4 files changed, 42 insertions(+), 5 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index 0ebfb8f..7e261db 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,2 +1,3 @@
/libsolv-857fe28.tar.xz
/libsolv-80afaf7.tar.xz
+/libsolv-af1465a2.tar.xz
diff --git a/libsolv-repo_add_solv_without_stub.patch b/libsolv-repo_add_solv_without_stub.patch
new file mode 100644
index 0000000..bd108c6
--- /dev/null
+++ b/libsolv-repo_add_solv_without_stub.patch
@@ -0,0 +1,30 @@
+From 6b63ea994945195f02d8a04d2786959ed438f484 Mon Sep 17 00:00:00 2001
+From: Ales Kozumplik <akozumpl at redhat.com>
+Date: Thu, 12 Apr 2012 10:29:28 +0200
+Subject: [PATCH] make repo_add_solv() work without stub repodata.
+
+---
+ src/repo_solv.c | 7 ++++++-
+ 1 files changed, 6 insertions(+), 1 deletions(-)
+
+diff --git a/src/repo_solv.c b/src/repo_solv.c
+index 3f391ef..4e632ae 100644
+--- a/src/repo_solv.c
++++ b/src/repo_solv.c
+@@ -514,7 +514,12 @@ repo_add_solv(Repo *repo, FILE *fp, int flags)
+ extendstart = repo->start;
+ extendend = repo->end;
+ }
+-
++ else if ((flags & REPO_EXTEND_SOLVABLES) != 0)
++ {
++ parent = repo_add_repodata(repo, flags);
++ repodata_extend_block(parent, repo->start, repo->nsolvables);
++ }
++
+ memset(&data, 0, sizeof(data));
+ data.repo = repo;
+ data.fp = fp;
+--
+1.7.7.3
+
diff --git a/libsolv.spec b/libsolv.spec
index 1852d04..f582dfd 100644
--- a/libsolv.spec
+++ b/libsolv.spec
@@ -1,4 +1,4 @@
-%global gitrev 80afaf7
+%global gitrev af1465a2
%{!?ruby_sitearch: %global ruby_sitearch %(ruby -rrbconfig -e 'puts Config::CONFIG["sitearchdir"] ')}
%filter_provides_in %{perl_vendorarch}/.*\.so$
%filter_provides_in %{python_sitearch}/.*\.so$
@@ -7,7 +7,7 @@
Name: libsolv
Version: 0.0.0
-Release: 6.git%{gitrev}%{?dist}
+Release: 7.git%{gitrev}%{?dist}
License: BSD
Url: https://github.com/openSUSE/libsolv
# git clone https://github.com/openSUSE/libsolv.git
@@ -15,6 +15,7 @@ Url: https://github.com/openSUSE/libsolv
Source: libsolv-%{gitrev}.tar.xz
Patch0: libsolv-rubyinclude.patch
Patch1: libsolv-newruby.patch
+Patch2: libsolv-repo_add_solv_without_stub.patch
Group: Development/Libraries
Summary: Package dependency solver
BuildRequires: cmake libdb-devel expat-devel rpm-devel zlib-devel
@@ -83,6 +84,7 @@ Perl bindings for sat solver.
%setup -q -n libsolv
%patch0 -p1 -b .rubyinclude
%patch1 -p1 -b .newruby
+%patch2 -p1 -b .withoutstub
%build
%cmake -DCMAKE_BUILD_TYPE=RelWithDebInfo \
@@ -142,16 +144,20 @@ rm $RPM_BUILD_ROOT/usr/bin/testsolv
%{python_sitearch}/*
%changelog
+* Thu Apr 12 2012 Aleš Kozumplik <akozumpl at redhat.com> - 0.0.0-7.gitaf1465a2%{?dist}
+- Rebase to the upstream.
+- Make repo_add_solv() work without stub repodata.
+
* Thu Apr 5 2012 Karel Klíč <kklic at redhat.com> - 0.0.0-6.git80afaf7%{?dist}
- Rebuild for the new libdb package.
* Mon Apr 2 2012 Karel Klíč <kklic at redhat.com> - 0.0.0-5.git80afaf7%{?dist}
- Rebuild for the new rpm package.
-* Wed Mar 21 2012 Aleš Kozumplík <akozumpl at redhat.com> - 0.0.0-4.git%{gitrev}%{?dist}
+* Wed Mar 21 2012 Aleš Kozumplík <akozumpl at redhat.com> - 0.0.0-4.git80afaf7%{?dist}
- New upstream version, fix the .rpm release number.
-* Wed Mar 21 2012 Aleš Kozumplík <akozumpl at redhat.com> - 0.0.0-3.git%{gitrev}%{?dist}
+* Wed Mar 21 2012 Aleš Kozumplík <akozumpl at redhat.com> - 0.0.0-3.git80afaf7%{?dist}
- New upstream version.
* Tue Feb 7 2012 Karel Klíč <kklic at redhat.com> - 0.0.0-2.git857fe28%{?dist}
diff --git a/sources b/sources
index f6acbe2..9ef3939 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-321c78e3a69f23cf4dc512bf1c6c797f libsolv-80afaf7.tar.xz
+66dee055a766c25f02c2ba505a3f1710 libsolv-af1465a2.tar.xz
More information about the scm-commits
mailing list