Browse code

Packages update: XML-XPath, ansible, clang ..

..., cni, lldb, llvm, sqlite

Rename sqlite-autoconf to sqlite

Change-Id: Ibe8fb01b8c9444b8f1d0a52be941d301183e5af9
Reviewed-on: http://photon-jenkins.eng.vmware.com:8082/2331
Tested-by: gerrit-photon <photon-checkins@vmware.com>
Reviewed-by: Divya Thaluru <dthaluru@vmware.com>

Alexey Makhalov authored on 2017/04/08 07:15:38
Showing 17 changed files
... ...
@@ -1,11 +1,11 @@
1 1
 Summary:        XML-XPath perl module
2 2
 Name:           XML-XPath
3
-Version:        1.37
3
+Version:        1.40
4 4
 Release:        1%{?dist}
5 5
 License:        GPL+
6 6
 URL:            http://search.cpan.org/~toddr/%{name}-%{version}/
7 7
 Source0:        https://cpan.metacpan.org/authors/id/M/MA/MANWAR/%{name}-%{version}.tar.gz
8
-%define sha1 XML-XPath=8cedbb3073e064f6c827697aad5539f26147a4f5
8
+%define sha1 XML-XPath=a373c9d071a6c675c77320a905053baa5e7a99ff
9 9
 Group:          Development/Tools
10 10
 Vendor:         VMware, Inc.
11 11
 Distribution:   Photon
... ...
@@ -31,5 +31,7 @@ make %{?_smp_mflags} -k test
31 31
 %{_mandir}/man3/*
32 32
 %{_mandir}/man1/*
33 33
 %changelog
34
+*   Fri Apr 7 2017 Alexey Makhalov <amakhalov@vmware.com> 1.40-1
35
+-   Version update
34 36
 *   Tue Sep 6 2016 Xiaolin Li <xiaolinl@vmware.com> 1.37-1
35 37
 -   Initial build. First version
... ...
@@ -1,6 +1,6 @@
1 1
 Summary:        Configuration-management, application deployment, cloud provisioning system
2 2
 Name:           ansible
3
-Version:        2.1.1.0
3
+Version:        2.2.2.0
4 4
 Release:        1%{?dist}
5 5
 License:        GPLv3+
6 6
 URL:            https://www.ansible.com
... ...
@@ -8,7 +8,8 @@ Group:          Development/Libraries
8 8
 Vendor:         VMware, Inc.
9 9
 Distribution:   Photon
10 10
 Source0:        http://releases.ansible.com/ansible/%{name}-%{version}.tar.gz
11
-%define sha1 ansible=f596a7950ebe839eaf650643e9afeb8c1307817a
11
+%define sha1 ansible=8ff8f39d8d65751e902ab26f06fee7b61b68f056
12
+
12 13
 
13 14
 BuildArch:      noarch
14 15
 
... ...
@@ -39,5 +40,7 @@ Ansible is a radically simple IT automation system. It handles configuration-man
39 39
 %{python_sitelib}/*
40 40
 
41 41
 %changelog
42
+*   Thu Apr 6 2017 Alexey Makhalov <amakhalov@vmware.com> 2.2.2.0-1
43
+-   Version update
42 44
 *   Wed Sep 21 2016 Xiaolin Li <xiaolinl@vmware.com> 2.1.1.0-1
43 45
 -   Initial build. First version
... ...
@@ -1,6 +1,6 @@
1 1
 Summary:        C, C++, Objective C and Objective C++ front-end for the LLVM compiler.
2 2
 Name:           clang
3
-Version:        3.9.1
3
+Version:        4.0.0
4 4
 Release:        1%{?dist}
5 5
 License:        NCSA
6 6
 URL:            http://clang.llvm.org
... ...
@@ -8,7 +8,7 @@ Group:          Development/Tools
8 8
 Vendor:         VMware, Inc.
9 9
 Distribution:   Photon
10 10
 Source0:        http://releases.llvm.org/%{version}/cfe-%{version}.src.tar.xz
11
-%define sha1    cfe=95e4be54b70f32cf98a8de36821ea5495b84add8
11
+%define sha1    cfe=e2762800c93d9335781ea6a45af3f80845542ef5
12 12
 BuildRequires:  cmake
13 13
 BuildRequires:  llvm-devel = %{version}
14 14
 BuildRequires:  ncurses-devel
... ...
@@ -75,5 +75,7 @@ rm -rf %{buildroot}/*
75 75
 %{_includedir}/*
76 76
 
77 77
 %changelog
78
+*   Fri Apr 7 2017 Alexey Makhalov <amakhalov@vmware.com> 4.0.0-1
79
+-   Version update
78 80
 *   Wed Jan 11 2017 Xiaolin Li <xiaolinl@vmware.com>  3.9.1-1
79 81
 -   Initial build.
... ...
@@ -1,11 +1,11 @@
1 1
 Summary:        Container Network Interface (CNI) plugins
2 2
 Name:           cni
3
-Version:        0.4.0
3
+Version:        0.5.1
4 4
 Release:        1%{?dist}
5 5
 License:        ASL 2.0
6 6
 URL:            https://github.com/containernetworking/cni
7 7
 Source0:        https://github.com/containernetworking/cni/archive/%{name}-v%{version}.tar.gz
8
-%define sha1 cni=86386f12730db7d6ba666956f851529b9d951366
8
+%define sha1 cni=c704cff26d8e786ca0efbd1751bf51fb7f64f1b3
9 9
 Group:          Development/Tools
10 10
 Vendor:         VMware, Inc.
11 11
 Distribution:   Photon
... ...
@@ -37,5 +37,7 @@ make -k check |& tee %{_specdir}/%{name}-check-log || %{nocheck}
37 37
 %{_default_cni_plugins_dir}/*
38 38
 
39 39
 %changelog
40
+*   Fri Apr 7 2017 Alexey Makhalov <amakhalov@vmware.com> 0.5.1-1
41
+-   Version update
40 42
 *   Thu Feb 16 2017 Vinay Kulkarni <kulkarniv@vmware.com> 0.4.0-1
41 43
 -   Add CNI plugins package to PhotonOS.
42 44
deleted file mode 100644
... ...
@@ -1,196 +0,0 @@
1
-SUMMARY
2
-Remove MIUtilParse once https://reviews.llvm.org/D23882 is accepted.
3
-
4
-From:
5
-https://reviews.llvm.org/file/data/e4yr2fu3vndsceyt6xv7/PHID-FILE-pgisidny2ro3tylncbpm/D23883.diff
6
-
7
-Index: tools/lldb-mi/CMakeLists.txt
8
-===================================================================
9
-+++ tools/lldb-mi/CMakeLists.txt
10
-@@ -65,7 +65,6 @@
11
-   MIDriverBase.cpp
12
-   MIDriverMain.cpp
13
-   MIDriverMgr.cpp
14
--  MIUtilParse.cpp
15
-   MIUtilDateTimeStd.cpp
16
-   MIUtilDebug.cpp
17
-   MIUtilFileStd.cpp
18
-Index: tools/lldb-mi/MIUtilParse.h
19
-===================================================================
20
-+++ /dev/null
21
-@@ -1,93 +0,0 @@
22
--//===-- MIUtilParse.h ------------------------------------------*- C++ -*-===//
23
--//
24
--//                     The LLVM Compiler Infrastructure
25
--//
26
--// This file is distributed under the University of Illinois Open Source
27
--// License. See LICENSE.TXT for details.
28
--//
29
--//===----------------------------------------------------------------------===//
30
-- 
31
--#pragma once
32
-- 
33
--// Third party headers:
34
--#include "../lib/Support/regex_impl.h"
35
--
36
--// In-house headers:
37
--#include "MIUtilString.h"
38
-- 
39
--namespace MIUtilParse
40
--{
41
-- 
42
--//++ ============================================================================
43
--// Details: MI common code utility class. Used to parse the output
44
--//          returned from lldb commands using regex.
45
--//--
46
--class CRegexParser
47
--{
48
--  public:
49
--    // Helper class for keeping track of regex matches.
50
--    class Match
51
--    {
52
--        friend CRegexParser;
53
--      public:
54
--        /* ctor */ explicit Match(size_t nmatches)
55
--            : m_matchStrs(nmatches), m_maxMatches(nmatches)
56
--        {
57
--        }
58
--        size_t
59
--        GetMatchCount() const
60
--        {
61
--            return m_matchStrs.size();
62
--        }
63
--        CMIUtilString
64
--        GetMatchAtIndex(size_t i) const
65
--        {
66
--            if (m_matchStrs.size() > i)
67
--                return m_matchStrs[i];
68
--            return CMIUtilString();
69
--        }
70
--      private:
71
--        CMIUtilString::VecString_t m_matchStrs;
72
--        const size_t m_maxMatches;
73
--    };
74
-- 
75
--    // Methods:
76
--    // Compile the regular expression.
77
--    /* ctor */ explicit CRegexParser(const char *regexStr);
78
-- 
79
--    // Free the memory used by the regular expression.
80
--    /* dtor */ ~CRegexParser();
81
-- 
82
--    // No copies
83
--    CRegexParser(const CRegexParser&) = delete;
84
--    void operator=(CRegexParser&) = delete;
85
-- 
86
--    // Return the match at the index.
87
--    int
88
--    GetMatchCount(const Match& match) const
89
--    {
90
--        if (m_isValid)
91
--            return match.GetMatchCount();
92
--        return 0;
93
--    }
94
-- 
95
--    bool
96
--    IsValid() const
97
--    {
98
--        return m_isValid;
99
--    }
100
-- 
101
--    // Match the input against the regular expression.  Return an error
102
--    // if the number of matches is less than minMatches.  If the default
103
--    // minMatches value of 0 is passed, an error will be returned if
104
--    // the number of matches is less than the maxMatches value used to
105
--    // initialize Match.
106
--    bool
107
--    Execute(const char *input, Match& match, size_t minMatches = 0);
108
-- 
109
--  private:
110
--    llvm_regex_t m_emma;
111
--    const bool m_isValid;
112
--};
113
--
114
--}
115
-Index: tools/lldb-mi/MIUtilParse.cpp
116
-===================================================================
117
-+++ /dev/null
118
-@@ -1,75 +0,0 @@
119
--//===-- MIUtilParse.cpp ----------------------------------------*- C++ -*-===//
120
--//
121
--//                     The LLVM Compiler Infrastructure
122
--//
123
--// This file is distributed under the University of Illinois Open Source
124
--// License. See LICENSE.TXT for details.
125
--//
126
--//===----------------------------------------------------------------------===//
127
-- 
128
--// Third party headers:
129
--#include <memory>
130
--
131
--// In-house headers:
132
--#include "MIUtilParse.h"
133
-- 
134
--//++ ------------------------------------------------------------------------------------
135
--// Details: CRegexParser constructor.
136
--// Type:    Method.
137
--// Args:    regexStr - Pointer to the regular expression to compile.
138
--// Return:  None.
139
--// Throws:  None.
140
--//--
141
--MIUtilParse::CRegexParser::CRegexParser(const char *regexStr)
142
--    : m_isValid(llvm_regcomp(&m_emma, regexStr, REG_EXTENDED) == 0)
143
--{
144
--}
145
-- 
146
--//++ ------------------------------------------------------------------------------------
147
--// Details: CRegexParser destructor.
148
--// Type:    Method.
149
--// Args:    None.
150
--// Return:  None.
151
--// Throws:  None.
152
--//--
153
--MIUtilParse::CRegexParser::~CRegexParser()
154
--{
155
--    // Free up memory held within regex.
156
--    if (m_isValid)
157
--        llvm_regfree(&m_emma);
158
--}
159
-- 
160
--//++ ------------------------------------------------------------------------------------
161
--// Details: CRegexParser regex executer.
162
--//          Match the input against the regular expression.  Return an error
163
--//          if the number of matches is less than minMatches.  If the default
164
--//          minMatches value of 0 is passed, an error will be returned if
165
--//          the number of matches is less than the maxMatches value used to
166
--//          initialize Match.
167
--// Type:    Method.
168
--// Args:    input (R) - Pointer to UTF8 text data to be parsed.
169
--//          match (RW) - Reference to Match class.
170
--//          minMatches (R) - Minimum number of regex matches expected.
171
--// Return:  bool - True = minimum matches were met,
172
--//                 false = minimum matches were not met or regex failed.
173
--// Throws:  None.
174
--//--
175
--bool
176
--MIUtilParse::CRegexParser::Execute(const char *input, Match& match, size_t minMatches)
177
--{
178
--    if (!m_isValid)
179
--        return false;
180
-- 
181
--    std::unique_ptr<llvm_regmatch_t[]> matches(new llvm_regmatch_t[match.m_maxMatches]); // Array of matches
182
--   
183
--    if (llvm_regexec(&m_emma, input, match.m_maxMatches, matches.get(), 0) != 0)
184
--        return false;
185
-- 
186
--    size_t i;
187
--    for (i = 0; i < match.m_maxMatches && matches[i].rm_so >= 0; i++)
188
--    {
189
--        const int n = matches[i].rm_eo - matches[i].rm_so;
190
--        match.m_matchStrs[i].assign(input + matches[i].rm_so, n);
191
--    }
192
--    return i >= minMatches;
193
--}
194 1
deleted file mode 100644
... ...
@@ -1,146 +0,0 @@
1
-SUMMARY
2
-Replace uses of the local MIUtilParse::CRegexParser class with the LLVM support class llvm::Regex. This reduces duplication of code, and makes it possible to remove the MIUtilParse::CRegexParser class that requires LLVM internal implementation headers.
3
-
4
-Bug: https://llvm.org/bugs/show_bug.cgi?id=29138
5
-
6
-From:
7
-https://reviews.llvm.org/file/data/ne2lqkdbc54c2ismicnp/PHID-FILE-nxy5llvyrv2t6fgjeqef/D23882.diff
8
-Index: tools/lldb-mi/MICmdCmdData.cpp
9
-===================================================================
10
-+++ tools/lldb-mi/MICmdCmdData.cpp
11
-@@ -25,6 +25,9 @@
12
- #include "lldb/API/SBInstruction.h"
13
- #include "lldb/API/SBInstructionList.h"
14
- #include "lldb/API/SBStream.h"
15
-+#include "llvm/ADT/SmallVector.h"
16
-+#include "llvm/ADT/StringRef.h"
17
-+#include "llvm/Support/Regex.h"
18
- 
19
- // In-house headers:
20
- #include "MICmdCmdData.h"
21
-@@ -42,7 +45,6 @@
22
- #include "MICmdArgValConsume.h"
23
- #include "MICmnLLDBDebugSessionInfoVarObj.h"
24
- #include "MICmnLLDBUtilSBValue.h"
25
--#include "MIUtilParse.h"
26
- 
27
- //++ ------------------------------------------------------------------------------------
28
- // Details: CMICmdCmdDataEvaluateExpression constructor.
29
-@@ -1651,24 +1653,24 @@
30
-     // is remains is assumed to be the filename.
31
- 
32
-     // Match LineEntry using regex.
33
--    static MIUtilParse::CRegexParser g_lineentry_nocol_regex( 
34
--        "^ *LineEntry: \\[(0x[0-9a-fA-F]+)-(0x[0-9a-fA-F]+)\\): (.+):([0-9]+)$");
35
--    static MIUtilParse::CRegexParser g_lineentry_col_regex( 
36
--        "^ *LineEntry: \\[(0x[0-9a-fA-F]+)-(0x[0-9a-fA-F]+)\\): (.+):([0-9]+):[0-9]+$");
37
--        //                ^1=start         ^2=end               ^3=f ^4=line ^5=:col(opt)
38
-+    static llvm::Regex g_lineentry_nocol_regex(
39
-+        llvm::StringRef("^ *LineEntry: \\[(0x[0-9a-fA-F]+)-(0x[0-9a-fA-F]+)\\): (.+):([0-9]+)$"));
40
-+    static llvm::Regex g_lineentry_col_regex(
41
-+        llvm::StringRef("^ *LineEntry: \\[(0x[0-9a-fA-F]+)-(0x[0-9a-fA-F]+)\\): (.+):([0-9]+):[0-9]+$"));
42
-+        //                                ^1=start         ^2=end               ^3=f ^4=line ^5=:col(opt)
43
- 
44
--    MIUtilParse::CRegexParser::Match match(6);
45
-+    llvm::SmallVector<llvm::StringRef, 6> match;
46
- 
47
-     // First try matching the LineEntry with the column,
48
-     // then try without the column.
49
--    const bool ok = g_lineentry_col_regex.Execute(input, match) ||
50
--                    g_lineentry_nocol_regex.Execute(input, match);
51
-+    const bool ok = g_lineentry_col_regex.match(input, &match) ||
52
-+                    g_lineentry_nocol_regex.match(input, &match);
53
-     if (ok)
54
-     {
55
--        start = match.GetMatchAtIndex(1);
56
--        end   = match.GetMatchAtIndex(2);
57
--        file  = match.GetMatchAtIndex(3);
58
--        line  = match.GetMatchAtIndex(4);
59
-+        start = match[1];
60
-+        end   = match[2];
61
-+        file  = match[3];
62
-+        line  = match[4];
63
-     }
64
-     return ok;
65
- }
66
-Index: tools/lldb-mi/MICmdCmdSymbol.cpp
67
-===================================================================
68
-+++ tools/lldb-mi/MICmdCmdSymbol.cpp
69
-@@ -11,15 +11,17 @@
70
- 
71
- // Third Party Headers:
72
- #include "lldb/API/SBCommandInterpreter.h"
73
-+#include "llvm/ADT/SmallVector.h"
74
-+#include "llvm/ADT/StringRef.h"
75
-+#include "llvm/Support/Regex.h"
76
- 
77
- // In-house headers:
78
- #include "MICmdArgValFile.h"
79
- #include "MICmdCmdSymbol.h"
80
- #include "MICmnLLDBDebugSessionInfo.h"
81
- #include "MICmnMIResultRecord.h"
82
- #include "MICmnMIValueList.h"
83
- #include "MICmnMIValueTuple.h"
84
--#include "MIUtilParse.h"
85
- 
86
- //++ ------------------------------------------------------------------------------------
87
- // Details: CMICmdCmdSymbolListLines constructor.
88
-@@ -105,15 +107,15 @@
89
- ParseLLDBLineAddressHeader(const char *input, CMIUtilString &file)
90
- {
91
-     // Match LineEntry using regex.
92
--    static MIUtilParse::CRegexParser g_lineentry_header_regex( 
93
--        "^ *Lines found for file (.+) in compilation unit (.+) in `(.+)$");
94
--        //                       ^1=file                  ^2=cu    ^3=module
95
-+    static llvm::Regex g_lineentry_header_regex(
96
-+        llvm::StringRef("^ *Lines found for file (.+) in compilation unit (.+) in `(.+)$"));
97
-+        //                                       ^1=file                  ^2=cu    ^3=module
98
- 
99
--    MIUtilParse::CRegexParser::Match match(4);
100
-+    llvm::SmallVector<llvm::StringRef, 4> match;
101
- 
102
--    const bool ok = g_lineentry_header_regex.Execute(input, match);
103
-+    const bool ok = g_lineentry_header_regex.match(input, &match);
104
-     if (ok)
105
--        file = match.GetMatchAtIndex(1);
106
-+        file = match[1];
107
-     return ok;
108
- }
109
- 
110
-@@ -141,23 +143,23 @@
111
-     // is remains is assumed to be the filename.
112
- 
113
-     // Match LineEntry using regex.
114
--    static MIUtilParse::CRegexParser g_lineentry_nocol_regex( 
115
--        "^ *\\[(0x[0-9a-fA-F]+)-(0x[0-9a-fA-F]+)\\): (.+):([0-9]+)$");
116
--    static MIUtilParse::CRegexParser g_lineentry_col_regex( 
117
--        "^ *\\[(0x[0-9a-fA-F]+)-(0x[0-9a-fA-F]+)\\): (.+):([0-9]+):[0-9]+$");
118
--        //     ^1=start         ^2=end               ^3=f ^4=line ^5=:col(opt)
119
-+    static llvm::Regex g_lineentry_nocol_regex(
120
-+        llvm::StringRef("^ *\\[(0x[0-9a-fA-F]+)-(0x[0-9a-fA-F]+)\\): (.+):([0-9]+)$"));
121
-+    static llvm::Regex g_lineentry_col_regex(
122
-+        llvm::StringRef("^ *\\[(0x[0-9a-fA-F]+)-(0x[0-9a-fA-F]+)\\): (.+):([0-9]+):[0-9]+$"));
123
-+        //                     ^1=start         ^2=end               ^3=f ^4=line ^5=:col(opt)
124
- 
125
--    MIUtilParse::CRegexParser::Match match(6);
126
-+    llvm::SmallVector<llvm::StringRef, 6> match;
127
- 
128
-     // First try matching the LineEntry with the column,
129
-     // then try without the column.
130
--    const bool ok = g_lineentry_col_regex.Execute(input, match) ||
131
--                    g_lineentry_nocol_regex.Execute(input, match);
132
-+    const bool ok = g_lineentry_col_regex.match(input, &match) ||
133
-+                    g_lineentry_nocol_regex.match(input, &match);
134
-     if (ok)
135
-     {
136
--        addr = match.GetMatchAtIndex(1);
137
--        file = match.GetMatchAtIndex(3);
138
--        line = match.GetMatchAtIndex(4);
139
-+        addr = match[1];
140
-+        file = match[3];
141
-+        line = match[4];
142
-     }
143
-     return ok;
144
- }
... ...
@@ -1,6 +1,6 @@
1 1
 Summary:        A next generation, high-performance debugger.
2 2
 Name:           lldb
3
-Version:        3.9.1
3
+Version:        4.0.0
4 4
 Release:        1%{?dist}
5 5
 License:        NCSA
6 6
 URL:            http://lldb.llvm.org
... ...
@@ -8,9 +8,7 @@ Group:          Development/Tools
8 8
 Vendor:         VMware, Inc.
9 9
 Distribution:   Photon
10 10
 Source0:        http://releases.llvm.org/%{version}/%{name}-%{version}.src.tar.xz
11
-%define sha1    lldb=f6da59c9ed570c4c7091c25f0abe59aba0e29de3
12
-Patch0:         Replace-uses-of-MIUtilParse-CRegexParser-with-llvm-Regex.patch
13
-Patch1:         Remove-MIUtilParse.patch
11
+%define sha1    lldb=da78ed1453a5e62ff058bebf0cd91c8f51ec5504
14 12
 BuildRequires:  cmake
15 13
 BuildRequires:  llvm-devel = %{version}
16 14
 BuildRequires:  clang-devel = %{version}
... ...
@@ -38,8 +36,6 @@ for developing applications that use lldb.
38 38
 
39 39
 %prep
40 40
 %setup -q -n %{name}-%{version}.src
41
-%patch0
42
-%patch1
43 41
 
44 42
 %build
45 43
 mkdir -p build
... ...
@@ -81,5 +77,7 @@ rm -rf %{buildroot}/*
81 81
 %{_includedir}/*
82 82
 
83 83
 %changelog
84
+*   Fri Apr 7 2017 Alexey Makhalov <amakhalov@vmware.com> 4.0.0-1
85
+-   Version update
84 86
 *   Wed Jan 11 2017 Xiaolin Li <xiaolinl@vmware.com>  3.9.1-1
85 87
 -   Initial build.
86 88
deleted file mode 100644
... ...
@@ -1,24 +0,0 @@
1
-cmake: Install CheckAtomic.cmake (needed by lldb)
2
-
3
-Summary:
4
-Install CheckAtomic.cmake along with other LLVM modules, therefore making it possible for other projects to use it. This file is needed for LLDB to be built standalone, and installing it was suggested in https://reviews.llvm.org/D23881.
5
-
6
-Patch by: Michał Górny
7
-
8
-Reviewers: krytarowski, zturner, eugenis, jyknight, labath, beanz
9
-
10
-Subscribers: beanz, llvm-commits
11
-
12
-Differential Revision: https://reviews.llvm.org/D23887
13
-Index: llvm/trunk/cmake/modules/CMakeLists.txt
14
-===================================================================
15
-+++ b/cmake/modules/CMakeLists.txt
16
-@@ -91,6 +91,5 @@ if (NOT LLVM_INSTALL_TOOLCHAIN_ONLY)
17
-     PATTERN LLVMConfig.cmake EXCLUDE
18
-     PATTERN LLVMConfigVersion.cmake EXCLUDE
19
-     PATTERN LLVM-Config.cmake EXCLUDE
20
--    PATTERN GetHostTriple.cmake EXCLUDE
21
--    PATTERN CheckAtomic.cmake EXCLUDE)
22
-+    PATTERN GetHostTriple.cmake EXCLUDE)
23
- endif()
... ...
@@ -1,6 +1,6 @@
1 1
 Summary:        A collection of modular and reusable compiler and toolchain technologies.
2 2
 Name:           llvm
3
-Version:        3.9.1
3
+Version:        4.0.0
4 4
 Release:        1%{?dist}
5 5
 License:        NCSA
6 6
 URL:            http://lldb.llvm.org
... ...
@@ -8,8 +8,7 @@ Group:          Development/Tools
8 8
 Vendor:         VMware, Inc.
9 9
 Distribution:   Photon
10 10
 Source0:        http://releases.llvm.org/%{version}/%{name}-%{version}.src.tar.xz
11
-%define sha1    llvm=6349f3aa23250d6c56d709946415237e665a2d0d
12
-Patch0:         Install-CheckAtomic.cmake-needed-by-lldb.patch
11
+%define sha1    llvm=aee4524e2407f9fe5afc6f70c753180b907011d0
13 12
 BuildRequires:  cmake
14 13
 BuildRequires:  libxml2-devel
15 14
 Requires:       libxml2
... ...
@@ -27,7 +26,6 @@ for developing applications that use llvm.
27 27
 
28 28
 %prep
29 29
 %setup -q -n %{name}-%{version}.src
30
-#%patch0 -p1
31 30
 
32 31
 %build
33 32
 mkdir -p build
... ...
@@ -58,6 +56,7 @@ rm -rf %{buildroot}/*
58 58
 %defattr(-,root,root)
59 59
 %{_bindir}/*
60 60
 %{_libdir}/*.so
61
+%{_libdir}/*.so.*
61 62
 
62 63
 %files devel
63 64
 %{_libdir}/*.a
... ...
@@ -65,5 +64,7 @@ rm -rf %{buildroot}/*
65 65
 %{_includedir}/*
66 66
 
67 67
 %changelog
68
+*   Fri Apr 7 2017 Alexey Makhalov <amakhalov@vmware.com> 4.0.0-1
69
+-   Version update
68 70
 *   Wed Jan 11 2017 Xiaolin Li <xiaolinl@vmware.com>  3.9.1-1
69 71
 -   Initial build.
70 72
deleted file mode 100644
... ...
@@ -1,98 +0,0 @@
1
-%define sourcever 3110000
2
-Summary:	A portable, high level programming interface to various calling conventions
3
-Name:		sqlite-autoconf
4
-Version:	3.11.0
5
-Release:	4%{?dist}
6
-License:	Public Domain
7
-URL:		http://www.sqlite.org
8
-Group:		System Environment/GeneralLibraries
9
-Vendor:		VMware, Inc.
10
-Distribution: Photon
11
-Source0:	http://sqlite.org/2016/%{name}-3110000.tar.gz
12
-%define sha1 sqlite-autoconf=e2d300e4b24af5ecd67a1396488893fa44864e36
13
-Obsoletes:	libsqlite
14
-Requires:	sqlite-libs = %{version}-%{release}
15
-Provides:	sqlite3
16
-%description
17
-This package contains most of the static files that comprise the
18
-www.sqlite.org website including all of the SQL Syntax and the 
19
-C/C++ interface specs and other miscellaneous documentation.
20
-
21
-%package -n sqlite-devel
22
-Summary:	sqlite3 link library & header files
23
-Group:		Development/Libraries
24
-Requires:	%{name} = %{version}-%{release}
25
-%description -n sqlite-devel
26
-The sqlite devel package include the needed library link and
27
-header files for development.
28
-
29
-%package -n sqlite-libs
30
-Summary:	sqlite3 library
31
-Group:		Libraries
32
-Provides:	pkgconfig(sqlite3)
33
-%description -n sqlite-libs
34
-The sqlite3 library.
35
-
36
-%prep
37
-%setup -q -n %{name}-%{sourcever}
38
-%build
39
-./configure \
40
-	CFLAGS="%{optflags}" \
41
-	CXXFLAGS="%{optflags} -DSQLITE_ENABLE_FTS3=1 \
42
-	-DSQLITE_ENABLE_COLUMN_METADATA=1 \
43
-	-DSQLITE_ENABLE_UNLOCK_NOTIFY=1 \
44
-	-DSQLITE_SECURE_DELETE=1" \
45
-	--prefix=%{_prefix} \
46
-	--bindir=%{_bindir} \
47
-	--libdir=%{_libdir} \
48
-	--disable-static
49
-make
50
-%install
51
-[ %{buildroot} != "/"] && rm -rf %{buildroot}/*
52
-make DESTDIR=%{buildroot} install
53
-install -D -m644 sqlite3.1 %{buildroot}/%{_mandir}/man1/sqlite3.1
54
-find %{buildroot}/%{_libdir} -name '*.la' -delete
55
-rm -rf %{buildroot}/%{_infodir}
56
-%{_fixperms} %{buildroot}/*
57
-
58
-%check
59
-make %{?_smp_mflags} check
60
-
61
-%post -n sqlite-libs
62
-/sbin/ldconfig
63
-
64
-%postun	-n sqlite-libs
65
-/sbin/ldconfig
66
-
67
-%clean
68
-rm -rf %{buildroot}/*
69
-
70
-%files
71
-%defattr(-,root,root)
72
-%{_bindir}/*
73
-%{_mandir}/man1/*
74
-
75
-%files -n sqlite-devel
76
-%defattr(-,root,root)
77
-%{_libdir}/libsqlite3.so
78
-%{_libdir}/libsqlite3.so.0
79
-%{_libdir}/pkgconfig/*
80
-%{_includedir}/*
81
-
82
-%files -n sqlite-libs
83
-%defattr(-,root,root)
84
-%{_libdir}/libsqlite3.so.0.8.6
85
-
86
-%changelog
87
-*   Wed Nov 16 2016 Alexey Makhalov <amakhalov@vmware.com> 3.11.0-4
88
--   Added -devel and -libs subpackages
89
-*   Mon Oct 04 2016 ChangLee <changlee@vmware.com> 3.11.0-3
90
--   Modified %check
91
-*   Tue May 24 2016 Priyesh Padmavilasom <ppadmavilasom@vmware.com> 3.11.0-2
92
--   GA - Bump release of all rpms
93
-*   Tue Feb 23 2016 Xiaolin Li <xiaolinl@vmware.com> 3.11.0-1
94
--   Updated to version 3.11.0
95
-*   Wed Feb 03 2016 Anish Swaminathan <anishs@vmware.com> - 3.8.3.1-2
96
--   Fix versioning
97
-*   Mon Oct 7 2014 Divya Thaluru <dthaluru@vmware.com> 3080301-1
98
--   Initial build. First version
99 1
new file mode 100644
... ...
@@ -0,0 +1,102 @@
0
+%define sourcever 3180000
1
+Summary:	A portable, high level programming interface to various calling conventions
2
+Name:		sqlite
3
+Version:	3.18.0
4
+Release:	1%{?dist}
5
+License:	Public Domain
6
+URL:		http://www.sqlite.org
7
+Group:		System Environment/GeneralLibraries
8
+Vendor:		VMware, Inc.
9
+Distribution: Photon
10
+Source0:	http://sqlite.org/2016/%{name}-autoconf-3180000.tar.gz
11
+%define sha1 sqlite=74559194e1dd9b9d577cac001c0e9d370856671b
12
+Obsoletes:	sqlite-autoconf
13
+Requires:	sqlite-libs = %{version}-%{release}
14
+Provides:	sqlite3
15
+%description
16
+This package contains most of the static files that comprise the
17
+www.sqlite.org website including all of the SQL Syntax and the 
18
+C/C++ interface specs and other miscellaneous documentation.
19
+
20
+%package devel
21
+Summary:	sqlite3 link library & header files
22
+Group:		Development/Libraries
23
+Requires:	%{name} = %{version}-%{release}
24
+%description devel
25
+The sqlite devel package include the needed library link and
26
+header files for development.
27
+
28
+%package libs
29
+Summary:	sqlite3 library
30
+Group:		Libraries
31
+Provides:	pkgconfig(sqlite3)
32
+Obsoletes:	libsqlite
33
+%description libs
34
+The sqlite3 library.
35
+
36
+%prep
37
+%setup -q -n %{name}-autoconf-%{sourcever}
38
+%build
39
+./configure \
40
+	CFLAGS="%{optflags}" \
41
+	CXXFLAGS="%{optflags} -DSQLITE_ENABLE_FTS3=1 \
42
+	-DSQLITE_ENABLE_COLUMN_METADATA=1 \
43
+	-DSQLITE_ENABLE_UNLOCK_NOTIFY=1 \
44
+	-DSQLITE_SECURE_DELETE=1" \
45
+	--prefix=%{_prefix} \
46
+	--bindir=%{_bindir} \
47
+	--libdir=%{_libdir} \
48
+	--disable-static
49
+make
50
+%install
51
+[ %{buildroot} != "/"] && rm -rf %{buildroot}/*
52
+make DESTDIR=%{buildroot} install
53
+install -D -m644 sqlite3.1 %{buildroot}/%{_mandir}/man1/sqlite3.1
54
+find %{buildroot}/%{_libdir} -name '*.la' -delete
55
+rm -rf %{buildroot}/%{_infodir}
56
+%{_fixperms} %{buildroot}/*
57
+
58
+%check
59
+make %{?_smp_mflags} check
60
+
61
+%post libs
62
+/sbin/ldconfig
63
+
64
+%postun	libs
65
+/sbin/ldconfig
66
+
67
+%clean
68
+rm -rf %{buildroot}/*
69
+
70
+%files
71
+%defattr(-,root,root)
72
+%{_bindir}/*
73
+%{_mandir}/man1/*
74
+
75
+%files devel
76
+%defattr(-,root,root)
77
+%{_libdir}/libsqlite3.so
78
+%{_libdir}/libsqlite3.so.0
79
+%{_libdir}/pkgconfig/*
80
+%{_includedir}/*
81
+
82
+%files libs
83
+%defattr(-,root,root)
84
+%{_libdir}/libsqlite3.so.0.8.6
85
+
86
+%changelog
87
+*   Fri Apr 7 2017 Alexey Makhalov <amakhalov@vmware.com> 3.18.0-1
88
+-   Version update
89
+-   Package rename: sqlite-autoconf -> sqlite
90
+*   Wed Nov 16 2016 Alexey Makhalov <amakhalov@vmware.com> 3.11.0-4
91
+-   Added -devel and -libs subpackages
92
+*   Mon Oct 04 2016 ChangLee <changlee@vmware.com> 3.11.0-3
93
+-   Modified %check
94
+*   Tue May 24 2016 Priyesh Padmavilasom <ppadmavilasom@vmware.com> 3.11.0-2
95
+-   GA - Bump release of all rpms
96
+*   Tue Feb 23 2016 Xiaolin Li <xiaolinl@vmware.com> 3.11.0-1
97
+-   Updated to version 3.11.0
98
+*   Wed Feb 03 2016 Anish Swaminathan <anishs@vmware.com> - 3.8.3.1-2
99
+-   Fix versioning
100
+*   Mon Oct 7 2014 Divya Thaluru <dthaluru@vmware.com> 3080301-1
101
+-   Initial build. First version
... ...
@@ -3,7 +3,7 @@
3 3
                   "bzip2","pkg-config","ncurses","ncurses-compat","cracklib","cracklib-dicts","cracklib-python",
4 4
                   "shadow","coreutils","grep","readline","findutils","xz","util-linux","e2fsprogs",
5 5
                   "libffi","expat","linux","cpio","Linux-PAM","attr","libcap", "systemd","dbus",
6
-                  "gzip", "sqlite-autoconf","nspr","nss","popt","lua","rpm","gptfdisk","tar", "librepo",
6
+                  "gzip", "sqlite","nspr","nss","popt","lua","rpm","gptfdisk","tar", "librepo",
7 7
                   "hawkey", "python2","python2-libs","pcre","glib", "tdnf", "python-requests",
8 8
                   "grub2", "grub2-efi", "efibootmgr", "efivar","dracut", "curl", "dosfstools"]
9 9
 }
... ...
@@ -37,7 +37,7 @@ mkdir $TEMP_CHROOT
37 37
 rpm --root $TEMP_CHROOT/ --initdb
38 38
 # TODO: remove this line after updating photon-build image with new
39 39
 # versions of sqlite and rpm with -libs subpackages
40
-tdnf upgrade -y -v sqlite-autoconf rpm
40
+tdnf upgrade -y -v sqlite rpm
41 41
 
42 42
 tdnf upgrade -y tdnf
43 43
 tdnf --installroot $TEMP_CHROOT/ install -y bash coreutils filesystem findutils glibc grep photon-release photon-repos tdnf util-linux vim which
... ...
@@ -689,8 +689,8 @@ sed-lang.deploy=optional
689 689
 shadow.package-name=shadow
690 690
 shadow.deploy=micro,minimal,iso
691 691
 
692
-sqlite-autoconf.package-name=sqlite-autoconf
693
-sqlite-autoconf.deploy=micro,minimal,iso
692
+sqlite.package-name=sqlite
693
+sqlite.deploy=micro,minimal,iso
694 694
 
695 695
 sudo.package-name=sudo
696 696
 sudo.deploy=optional
... ...
@@ -116,6 +116,9 @@ class ToolChainUtils(object):
116 116
             pkgUtils=PackageUtils(self.logName,self.logPath)
117 117
             rpmFile=pkgUtils.findRPMFileForGivenPackage(package)
118 118
             if rpmFile is None:
119
+                # sqlite-autoconf package was renamed, but it still published as sqlite-autoconf
120
+                if package == "sqlite":
121
+                    package = "sqlite-autoconf"
119 122
                 rpmFile=self.findRPMFileInGivenLocation(package, constants.prevPublishRPMRepo)
120 123
                 if rpmFile is None:
121 124
                     if package in constants.listOfRPMsProvidedAfterBuild:
... ...
@@ -280,7 +280,7 @@
280 280
         <package id="sed-lang"
281 281
                  spec="sed"/>
282 282
         <package id="shadow"/>
283
-        <package id="sqlite-autoconf"/>
283
+        <package id="sqlite"/>
284 284
         <package id="sudo"/>
285 285
         <package id="swig"/>
286 286
         <package id="systemd"/>
... ...
@@ -382,7 +382,7 @@
382 382
         <pkgref id="rpm"/>
383 383
         <pkgref id="sed"/>
384 384
         <pkgref id="shadow"/>
385
-        <pkgref id="sqlite-autoconf"/>
385
+        <pkgref id="sqlite"/>
386 386
         <pkgref id="systemd"/>
387 387
         <pkgref id="tar"/>
388 388
         <pkgref id="texinfo"/>
... ...
@@ -447,7 +447,7 @@
447 447
         <pkgref id="readline"/>
448 448
         <pkgref id="rpm"/>
449 449
         <pkgref id="shadow"/>
450
-        <pkgref id="sqlite-autoconf"/>
450
+        <pkgref id="sqlite"/>
451 451
         <pkgref id="systemd"/>
452 452
         <pkgref id="tdnf"/>
453 453
         <pkgref id="util-linux"/>
... ...
@@ -533,7 +533,7 @@
533 533
         <pkgref id="rpm"/>
534 534
         <pkgref id="sed"/>
535 535
         <pkgref id="shadow"/>
536
-        <pkgref id="sqlite-autoconf"/>
536
+        <pkgref id="sqlite"/>
537 537
         <pkgref id="systemd"/>
538 538
         <pkgref id="tdnf"/>
539 539
         <pkgref id="util-linux"/>
... ...
@@ -78,7 +78,7 @@ class constants(object):
78 78
         "lua",
79 79
         "popt",
80 80
         "nspr",
81
-        "sqlite-autoconf",
81
+        "sqlite",
82 82
         "nss",
83 83
         "elfutils",
84 84
         "expat",
... ...
@@ -154,7 +154,7 @@ class constants(object):
154 154
         "popt",
155 155
         "popt-devel",
156 156
         "nspr",
157
-        "sqlite-autoconf",
157
+        "sqlite",
158 158
         "sqlite-libs",
159 159
         "nss",
160 160
         "nss-devel",
... ...
@@ -190,6 +190,7 @@ class constants(object):
190 190
     listOfRPMsProvidedAfterBuild=[
191 191
         "util-linux-devel",
192 192
         "flex-devel",
193
+        "sqlite",
193 194
         "sqlite-libs",
194 195
         "rpm-libs"]
195 196
 
... ...
@@ -225,6 +226,7 @@ class constants(object):
225 225
         "openssl-devel",
226 226
         "net-tools",
227 227
         "less",
228
+        "iana-etc",
228 229
         "yum-metadata-parser",
229 230
         "yum",
230 231
         "rpm-devel",