Change-Id: I90638ea8a6f5ffa9d7ccc53a889084cff54fe33d
Reviewed-on: http://photon-jenkins.eng.vmware.com:8082/2772
Tested-by: gerrit-photon <photon-checkins@vmware.com>
Reviewed-by: Alexey Makhalov <amakhalov@vmware.com>
... | ... |
@@ -16,3 +16,12 @@ diff -Naur a/scripts/find-debuginfo.sh b/scripts/find-debuginfo.sh |
16 | 16 |
|
17 | 17 |
(cd "${RPM_BUILD_ROOT}/usr" |
18 | 18 |
test ! -d lib/debug || find lib/debug ! -type d |
19 |
+@@ -467,7 +467,7 @@ |
|
20 |
+ mv "${LISTFILE}.new" "$LISTFILE" |
|
21 |
+ ((++i)) |
|
22 |
+ done |
|
23 |
+-if ((nout > 0)); then |
|
24 |
++if ((0 && nout > 0)); then |
|
25 |
+ # Now add the right %dir lines to each output list. |
|
26 |
+ (cd "${RPM_BUILD_ROOT}"; find usr/lib/debug -type d) | |
|
27 |
+ sed 's#^.*$#\\@^/&/@{h;s@^.*$@%dir /&@p;g;}#' | |
19 | 28 |
deleted file mode 100644 |
... | ... |
@@ -1,11 +0,0 @@ |
1 |
-+++ b/scripts/find-debuginfo.sh 2017-04-23 20:24:52.579860254 +0000 |
|
2 |
-@@ -314,7 +314,7 @@ |
|
3 |
- $strict && exit 2 |
|
4 |
- fi |
|
5 |
- |
|
6 |
-- [ type gdb-add-index >/dev/null 2>&1 && gdb-add-index "$f" > /dev/null 2>&1 |
|
7 |
-+ type gdb-add-index >/dev/null 2>&1 && gdb-add-index "$f" > /dev/null 2>&1 |
|
8 |
- |
|
9 |
- # A binary already copied into /usr/lib/debug doesn't get stripped, |
|
10 |
- # just has its file names collected and adjusted. |
... | ... |
@@ -3,7 +3,7 @@ |
3 | 3 |
|
4 | 4 |
Summary: Package manager |
5 | 5 |
Name: rpm |
6 |
-Version: 4.13.0 |
|
6 |
+Version: 4.13.0.1 |
|
7 | 7 |
Release: 1%{?dist} |
8 | 8 |
License: GPLv2+ |
9 | 9 |
URL: http://rpm.org |
... | ... |
@@ -11,18 +11,17 @@ Group: Applications/System |
11 | 11 |
Vendor: VMware, Inc. |
12 | 12 |
Distribution: Photon |
13 | 13 |
Source0: https://github.com/rpm-software-management/rpm/archive/%{name}-%{version}-release.tar.gz |
14 |
-%define sha1 rpm=67f4c9607460d5f71fc8f6206b40d812090f652f |
|
15 |
-Source1: http://download.oracle.com/berkeley-db/db-5.3.28.tar.gz |
|
16 |
-%define sha1 db=fa3f8a41ad5101f43d08bc0efb6241c9b6fc1ae9 |
|
17 |
-Source2: macros |
|
18 |
-Source3: brp-strip-debug-symbols |
|
19 |
-Source4: brp-strip-unneeded |
|
14 |
+%define sha1 rpm=2119489397d7e4da19320ef9330ab717ac05587d |
|
15 |
+Source1: macros |
|
16 |
+Source2: brp-strip-debug-symbols |
|
17 |
+Source3: brp-strip-unneeded |
|
20 | 18 |
Patch0: find-debuginfo-do-not-generate-non-existing-build-id.patch |
21 | 19 |
Patch1: find-debuginfo-do-not-generate-dir-entries.patch |
22 |
-Patch2: find-debuginfo-script-fix.patch |
|
23 | 20 |
Requires: bash |
21 |
+Requires: libdb |
|
24 | 22 |
Requires: rpm-libs = %{version}-%{release} |
25 | 23 |
BuildRequires: libarchive-devel |
24 |
+BuildRequires: libdb-devel |
|
26 | 25 |
BuildRequires: python2 |
27 | 26 |
BuildRequires: python2-libs |
28 | 27 |
BuildRequires: python2-devel |
... | ... |
@@ -91,11 +90,11 @@ Python3 rpm. |
91 | 91 |
%setup -n rpm-%{name}-%{version}-release |
92 | 92 |
%patch0 -p1 |
93 | 93 |
%patch1 -p1 |
94 |
-%patch2 -p1 |
|
95 |
-%setup -n rpm-%{name}-%{version}-release -T -D -a 1 |
|
96 |
-mv db-5.3.28 db |
|
94 |
+ |
|
97 | 95 |
%build |
98 | 96 |
sed -i '/define _GNU_SOURCE/a #include "../config.h"' tools/sepdebugcrcfix.c |
97 |
+sed -i '/^ *include_dirs = /d' python/setup.py.in |
|
98 |
+sed -i '/^ *libraries = /d' python/setup.py.in |
|
99 | 99 |
./autogen.sh --noconfigure |
100 | 100 |
./configure \ |
101 | 101 |
CPPFLAGS='-I/usr/include/nspr -I/usr/include/nss -DLUA_COMPAT_APIINTCASTS' \ |
... | ... |
@@ -118,7 +117,8 @@ sed -i '/define _GNU_SOURCE/a #include "../config.h"' tools/sepdebugcrcfix.c |
118 | 118 |
--enable-python \ |
119 | 119 |
--with-cap \ |
120 | 120 |
--without-lua \ |
121 |
- --disable-silent-rules |
|
121 |
+ --disable-silent-rules \ |
|
122 |
+ --with-external-db |
|
122 | 123 |
make %{?_smp_mflags} |
123 | 124 |
|
124 | 125 |
pushd python |
... | ... |
@@ -132,9 +132,9 @@ find %{buildroot} -name '*.la' -delete |
132 | 132 |
%find_lang %{name} |
133 | 133 |
# System macros and prefix |
134 | 134 |
install -dm 755 %{buildroot}%{_sysconfdir}/rpm |
135 |
-install -vm644 %{SOURCE2} %{buildroot}%{_sysconfdir}/rpm/ |
|
135 |
+install -vm644 %{SOURCE1} %{buildroot}%{_sysconfdir}/rpm/ |
|
136 |
+install -vm755 %{SOURCE2} %{buildroot}%{_libdir}/rpm/ |
|
136 | 137 |
install -vm755 %{SOURCE3} %{buildroot}%{_libdir}/rpm/ |
137 |
-install -vm755 %{SOURCE4} %{buildroot}%{_libdir}/rpm/ |
|
138 | 138 |
|
139 | 139 |
pushd python |
140 | 140 |
python2 setup.py install --skip-build --prefix=%{_prefix} --root=%{buildroot} |
... | ... |
@@ -263,6 +263,8 @@ rm -rf %{buildroot} |
263 | 263 |
%{python3_sitelib}/* |
264 | 264 |
|
265 | 265 |
%changelog |
266 |
+* Wed May 10 2017 Priyesh Padmavilasom <ppadmavilasom@vmware.com> 4.13.0.1-1 |
|
267 |
+- Update to 4.13.0.1 |
|
266 | 268 |
* Fri Apr 21 2017 Priyesh Padmavilasom <ppadmavilasom@vmware.com> 4.13.0-1 |
267 | 269 |
- Update to 4.13.0 |
268 | 270 |
* Wed Apr 19 2017 Alexey Makhalov <amakhalov@vmware.com> 4.11.2-22 |
... | ... |
@@ -92,6 +92,7 @@ class constants(object): |
92 | 92 |
"automake", |
93 | 93 |
"openssl", |
94 | 94 |
"python2", |
95 |
+ "libdb", |
|
95 | 96 |
"rpm", |
96 | 97 |
"groff", |
97 | 98 |
"man-pages", |
... | ... |
@@ -185,6 +186,8 @@ class constants(object): |
185 | 185 |
"python2-libs", |
186 | 186 |
"python2-devel", |
187 | 187 |
"libcap", |
188 |
+ "libdb", |
|
189 |
+ "libdb-devel", |
|
188 | 190 |
"rpm", |
189 | 191 |
"rpm-build", |
190 | 192 |
"rpm-devel", |
... | ... |
@@ -287,6 +290,7 @@ class constants(object): |
287 | 287 |
"iana-etc", |
288 | 288 |
"yum-metadata-parser", |
289 | 289 |
"yum", |
290 |
+ "libdb", |
|
290 | 291 |
"rpm-devel", |
291 | 292 |
"rpm", |
292 | 293 |
"libxml2", |