Browse code

change cflags in sqlite.spec and rebuild sqlite and perl-DBD-SQLite. (Bug 2130575)

Change-Id: I1ca3a270ce134a2b629ac31db719b98a4c719537
Reviewed-on: http://photon-jenkins.eng.vmware.com:8082/5217
Tested-by: gerrit-photon <photon-checkins@vmware.com>
Reviewed-by: gerrit-photon <photon-checkins@vmware.com>

Xiaolin Li authored on 2018/06/01 07:26:47
Showing 2 changed files
... ...
@@ -2,7 +2,7 @@
2 2
 Summary:        SQLite DBI Driver
3 3
 Name:           perl-DBD-SQLite
4 4
 Version:        1.54
5
-Release:        3%{?dist}
5
+Release:        4%{?dist}
6 6
 Group:          Development/Libraries
7 7
 License:        (GPL+ or Artistic) and Public Domain
8 8
 URL:            http://search.cpan.org/dist/DBD-SQLite/
... ...
@@ -11,11 +11,12 @@ Source0:        http://search.cpan.org/CPAN/authors/id/I/IS/ISHIGAKI/DBD-SQLite-
11 11
 Vendor:         VMware, Inc.
12 12
 Distribution:   Photon
13 13
 Patch0:         enable_sqlite_location.patch
14
-BuildRequires:  sqlite-devel >= 3.22.0
14
+BuildRequires:  sqlite-devel >= 3.22.0-3
15 15
 BuildRequires:  perl
16 16
 BuildRequires:  perl-DBI
17 17
 Requires:       perl-DBI
18 18
 Requires:       perl
19
+Requires:       sqlite-libs >= 3.22.0-3
19 20
 
20 21
 %description
21 22
 SQLite is a public domain RDBMS database engine that you can find at
... ...
@@ -47,6 +48,8 @@ make test
47 47
 %{_mandir}/man3/*
48 48
 
49 49
 %changelog
50
+*   Thu May 31 2018 Xiaolin Li <xiaolinl@vmware.com> 1.54-4
51
+-   Rebuild perl-DBD-SQLite after changed cflags in sqlite.spec.
50 52
 *   Thu May 24 2018 Xiaolin Li <xiaolinl@vmware.com> 1.54-3
51 53
 -   Build perl-DBD-SQLite with system sqlite.
52 54
 *   Tue Feb 20 2018 Xiaolin Li <xiaolinl@vmware.com> 1.54-2
... ...
@@ -2,7 +2,7 @@
2 2
 Summary:        A portable, high level programming interface to various calling conventions
3 3
 Name:           sqlite
4 4
 Version:        3.22.0
5
-Release:        2%{?dist}
5
+Release:        3%{?dist}
6 6
 License:        Public Domain
7 7
 URL:            http://www.sqlite.org
8 8
 Group:          System Environment/GeneralLibraries
... ...
@@ -42,10 +42,14 @@ The sqlite3 library.
42 42
 
43 43
 %build
44 44
 ./configure \
45
-    CFLAGS="%{optflags}"                \
45
+    CFLAGS="%{optflags}\
46
+    -DSQLITE_ENABLE_FTS3=1              \
47
+    -DSQLITE_ENABLE_COLUMN_METADATA     \
48
+    -DSQLITE_ENABLE_UNLOCK_NOTIFY=1     \
49
+    -DSQLITE_SECURE_DELETE=1"           \
46 50
     CXXFLAGS="%{optflags}               \
47 51
     -DSQLITE_ENABLE_FTS3=1              \
48
-    -DSQLITE_ENABLE_COLUMN_METADATA=1   \
52
+    -DSQLITE_ENABLE_COLUMN_METADATA     \
49 53
     -DSQLITE_ENABLE_UNLOCK_NOTIFY=1     \
50 54
     -DSQLITE_SECURE_DELETE=1"           \
51 55
     --prefix=%{_prefix}                 \
... ...
@@ -90,6 +94,8 @@ rm -rf %{buildroot}/*
90 90
 %{_libdir}/libsqlite3.so.0.8.6
91 91
 
92 92
 %changelog
93
+*   Thu May 31 2018 Xiaolin Li <xiaolinl@vmware.com> 3.22.0-3
94
+-   Change cflags.
93 95
 *   Tue Apr 17 2018 Xiaolin Li <xiaolinl@vmware.com> 3.22.0-2
94 96
 -   Apply patch for CVE-2018-8740
95 97
 *   Tue Feb 20 2018 Xiaolin Li <xiaolinl@vmware.com> 3.22.0-1