Browse code

libxml2: Version upgrade to 2.9.12 and package optmization to reduce the image footprint. Also version bump up for dependent packages.

Change-Id: I4500c455416d61c3666ffb3050f374a2cc308ab4
Reviewed-on: http://photon-jenkins.eng.vmware.com:8082/14611
Tested-by: gerrit-photon <photon-checkins@vmware.com>
Reviewed-by: Tapas Kundu <tkundu@vmware.com>

Nitesh Kumar authored on 2021/11/02 19:52:31
Showing 27 changed files
... ...
@@ -1,7 +1,7 @@
1 1
 Summary:        C, C++, Objective C and Objective C++ front-end for the LLVM compiler.
2 2
 Name:           clang
3 3
 Version:        12.0.0
4
-Release:        1%{?dist}
4
+Release:        2%{?dist}
5 5
 License:        NCSA
6 6
 URL:            http://clang.llvm.org
7 7
 Group:          Development/Tools
... ...
@@ -34,7 +34,7 @@ Requires:       ncurses-devel
34 34
 The clang-devel package contains libraries, header files and documentation for developing applications that use clang.
35 35
 
36 36
 %prep
37
-%setup -q -n %{name}-%{version}.src
37
+%autosetup -n %{name}-%{version}.src -p1
38 38
 
39 39
 %build
40 40
 mkdir -p build
... ...
@@ -48,14 +48,14 @@ make %{?_smp_mflags}
48 48
 %install
49 49
 [ %{buildroot} != "/"] && rm -rf %{buildroot}/*
50 50
 cd build
51
-make DESTDIR=%{buildroot} install
51
+make DESTDIR=%{buildroot} install %{?_smp_mflags}
52 52
 
53 53
 %post   -p /sbin/ldconfig
54 54
 %postun -p /sbin/ldconfig
55 55
 
56 56
 %check
57 57
 cd build
58
-make clang-check
58
+make clang-check %{?_smp_mflags}
59 59
 
60 60
 %clean
61 61
 rm -rf %{buildroot}/*
... ...
@@ -76,6 +76,8 @@ rm -rf %{buildroot}/*
76 76
 %{_includedir}/*
77 77
 
78 78
 %changelog
79
+*   Wed Nov 17 2021 Nitesh Kumar <kunitesh@vmware.com> 12.0.0-2
80
+-   Release bump up to use libxml2 2.9.12-1.
79 81
 *   Mon Apr 12 2021 Gerrit Photon <photon-checkins@vmware.com> 12.0.0-1
80 82
 -   Automatic Version Bump
81 83
 *   Tue Mar 16 2021 Michael Paquier <mpaquier@vmware.com> 11.0.1-2
... ...
@@ -1,7 +1,7 @@
1 1
 Summary:        Creates a common metadata repository
2 2
 Name:           createrepo_c
3 3
 Version:        0.16.0
4
-Release:        3%{?dist}
4
+Release:        4%{?dist}
5 5
 License:        GPLv2+
6 6
 Group:          System Environment/Base
7 7
 Vendor:         VMware, Inc.
... ...
@@ -84,6 +84,8 @@ ln -sf %{_bindir}/modifyrepo_c %{buildroot}%{_bindir}/modifyrepo
84 84
 %{_lib64dir}/pkgconfig/%{name}.pc
85 85
 
86 86
 %changelog
87
+* Wed Nov 17 2021 Nitesh Kumar <kunitesh@vmware.com> 0.16.0-4
88
+- Release bump up to use libxml2 2.9.12-1.
87 89
 * Tue Nov 16 2021 Satya Naga Vasamsetty <svasamsetty@vmware.com> 0.16.0-3
88 90
 - Bump up release for openssl
89 91
 * Fri Aug 20 2021 Shreenidhi Shedi <sshedi@vmware.com> 0.16.0-2
... ...
@@ -1,7 +1,7 @@
1 1
 Summary:        Docbook-xml-4.5
2 2
 Name:           docbook-xml
3 3
 Version:        4.5
4
-Release:        8%{?dist}
4
+Release:        9%{?dist}
5 5
 License:        MIT
6 6
 URL:            http://www.docbook.org
7 7
 Source0:        http://www.docbook.org/xml/4.5/%{name}-%{version}.zip
... ...
@@ -15,12 +15,12 @@ BuildRequires:  unzip
15 15
 BuildArch:      noarch
16 16
 
17 17
 %description
18
-The DocBook XML DTD-4.5 package contains document type definitions for 
19
-verification of XML data files against the DocBook rule set. These are 
20
-useful for structuring books and software documentation to a standard 
18
+The DocBook XML DTD-4.5 package contains document type definitions for
19
+verification of XML data files against the DocBook rule set. These are
20
+useful for structuring books and software documentation to a standard
21 21
 allowing you to utilize transformations already written for that standard.
22 22
 %prep
23
-%setup -c -T
23
+%autosetup -c -T -p1
24 24
 unzip %{SOURCE0}
25 25
 if [ `id -u` -eq 0 ]; then
26 26
   chown -R root.root .
... ...
@@ -135,7 +135,7 @@ if [ $1 -eq 0 ] ; then
135 135
     if [ -f /etc/xml/docbook ]; then
136 136
         xmlcatalog --noout --del \
137 137
         "file:///usr/share/xml/docbook/docbook-xml-4.5" /etc/xml/docbook
138
-        
138
+
139 139
         for DTDVERSION in 4.1.2 4.2 4.3 4.4 %{version}
140 140
         do
141 141
             xmlcatalog --noout --del \
... ...
@@ -160,7 +160,10 @@ fi
160 160
 %defattr(-,root,root)
161 161
 /usr/share/xml/docbook/%{name}-%{version}
162 162
 /etc/xml
163
+
163 164
 %changelog
165
+*   Wed Nov 17 2021 Nitesh Kumar <kunitesh@vmware.com> 4.5-9
166
+-   Release bump up to use libxml2 2.9.12-1.
164 167
 *   Thu May 18 2017 Xiaolin Li <xiaolinl@vmware.com> 4.5-8
165 168
 -   Remove libxml2-python from requires.
166 169
 *   Tue Apr 25 2017 Priyesh Padmavilasom <ppadmavilasom@vmware.com> 4.5-7
... ...
@@ -1,7 +1,7 @@
1 1
 Summary:	Docbook-xsl-1.79.1
2 2
 Name:		docbook-xsl
3 3
 Version:	1.79.1
4
-Release:	7%{?dist}
4
+Release:	8%{?dist}
5 5
 License:	Apache License
6 6
 URL:		http://www.docbook.org
7 7
 Source0:	http://downloads.sourceforge.net/docbook/%{name}-%{version}.tar.bz2
... ...
@@ -9,7 +9,9 @@ Source0:	http://downloads.sourceforge.net/docbook/%{name}-%{version}.tar.bz2
9 9
 Group:		Development/Tools
10 10
 Vendor:		VMware, Inc.
11 11
 Distribution:	Photon
12
+
12 13
 Requires:	libxml2
14
+
13 15
 BuildRequires:	libxml2
14 16
 BuildRequires:  zip
15 17
 BuildArch:      noarch
... ...
@@ -20,7 +22,7 @@ verification of XML data files against the DocBook rule set. These are
20 20
 useful for structuring books and software documentation to a standard
21 21
 allowing you to utilize transformations already written for that standard.
22 22
 %prep
23
-%setup -q
23
+%autosetup -p1
24 24
 
25 25
 %build
26 26
 zip -d tools/lib/jython.jar Lib/distutils/command/wininst-6.exe
... ...
@@ -91,6 +93,8 @@ fi
91 91
 %{_docdir}/*
92 92
 
93 93
 %changelog
94
+*       Mon Nov 08 2021 Nitesh Kumar <kunitesh@vmware.com> 1.79.1-8
95
+-       Release bump up to use libxml2 2.9.12-1.
94 96
 *       Fri Jan 18 2019 Tapas Kundu <tkundu@vmware.com> 1.79.1-7
95 97
 -       Removed saxon jar files while installing
96 98
 *	Tue Dec 04 2018 Ashwin H<ashwinh@vmware.com> 1.79.1-6
... ...
@@ -1,7 +1,7 @@
1 1
 Summary:        Itstool-2.0.6
2 2
 Name:           itstool
3 3
 Version:        2.0.6
4
-Release:        2%{?dist}
4
+Release:        3%{?dist}
5 5
 License:        GPLv3+
6 6
 URL:            http://itstool.org
7 7
 Source0:        http://files.itstool.org/itstool/%{name}-%{version}.tar.bz2
... ...
@@ -23,20 +23,23 @@ Itstool extracts messages from XML files and outputs PO template files, then mer
23 23
 translations from MO files to create translated XML files. It determines what
24 24
 to translate and how to chunk it into messages using the W3C Internationalization Tag Set (ITS).
25 25
 %prep
26
-%setup -q
26
+%autosetup -p1
27 27
 %build
28 28
 export PYTHON=/usr/bin/python3
29 29
 %configure
30 30
 make %{?_smp_mflags}
31 31
 %install
32
-make DESTDIR=%{buildroot} install
32
+make DESTDIR=%{buildroot} install %{?_smp_mflags}
33 33
 
34 34
 %files
35 35
 %defattr(-,root,root)
36 36
 %{_bindir}/*
37 37
 /usr/share/%{name}/*
38 38
 %{_mandir}/man1/*
39
+
39 40
 %changelog
41
+*   Wed Nov 17 2021 Nitesh Kumar <kunitesh@vmware.com> 2.0.6-3
42
+-   Release bump up to use libxml2 2.9.12-1.
40 43
 *   Mon Jul 20 2020 Tapas Kundu <tkundu@vmware.com> 2.0.6-2
41 44
 -   Build with python3
42 45
 -   Mass removal python2
... ...
@@ -1,7 +1,7 @@
1 1
 Summary:        Libical — an implementation of iCalendar protocols and data formats
2 2
 Name:           libical
3 3
 Version:        3.0.10
4
-Release:        2%{?dist}
4
+Release:        3%{?dist}
5 5
 License:        MPL-2.0
6 6
 Group:          System Environment/Libraries
7 7
 Vendor:         VMware, Inc.
... ...
@@ -29,17 +29,17 @@ The libical-devel package contains libraries and header files for developing
29 29
 applications that use libical.
30 30
 
31 31
 %prep
32
-%setup -q
32
+%autosetup -p1
33 33
 
34 34
 %build
35 35
 mkdir build
36 36
 cd build
37 37
 cmake -DENABLE_GTK_DOC=OFF ..
38
-make
38
+make %{?_smp_mflags}
39 39
 
40 40
 %install
41 41
 cd build
42
-make DESTDIR=%{buildroot} install
42
+make DESTDIR=%{buildroot} install %{?_smp_mflags}
43 43
 
44 44
 %check
45 45
 make %{?_smp_mflags} -k check
... ...
@@ -61,6 +61,8 @@ make %{?_smp_mflags} -k check
61 61
 /usr/local/lib64/pkgconfig/*.pc
62 62
 
63 63
 %changelog
64
+* Wed Nov 17 2021 Nitesh Kumar <kunitesh@vmware.com> 3.0.10-3
65
+- Release bump up to use libxml2 2.9.12-1.
64 66
 * Wed Jun 30 2021 Tapas Kundu <tkundu@vmware.com> 3.0.10-2
65 67
 - Need libxml2 in requires
66 68
 * Tue Apr 13 2021 Gerrit Photon <photon-checkins@vmware.com> 3.0.10-1
... ...
@@ -1,7 +1,7 @@
1 1
 Summary:         libsoup HTTP client/server library
2 2
 Name:            libsoup
3 3
 Version:         2.72.0
4
-Release:         1%{?dist}
4
+Release:         2%{?dist}
5 5
 License:         GPLv2
6 6
 URL:             http://wiki.gnome.org/LibSoup
7 7
 Group:           System Environment/Development
... ...
@@ -64,8 +64,7 @@ Requires:        %{name} = %{version}-%{release}
64 64
 These are the additional language files of libsoup.
65 65
 
66 66
 %prep
67
-%setup -q
68
-%patch0 -p1
67
+%autosetup -p1
69 68
 
70 69
 %build
71 70
 mkdir build
... ...
@@ -104,6 +103,8 @@ ninja test
104 104
 %defattr(-,root,root)
105 105
 
106 106
 %changelog
107
+*   Wed Nov 17 2021 Nitesh Kumar <kunitesh@vmware.com> 2.72.0-2
108
+-   Release bump up to use libxml2 2.9.12-1.
107 109
 *   Mon Sep 21 2020 Gerrit Photon <photon-checkins@vmware.com> 2.72.0-1
108 110
 -   Automatic Version Bump
109 111
 *   Wed Sep 09 2020 Gerrit Photon <photon-checkins@vmware.com> 2.71.1-1
... ...
@@ -1,7 +1,7 @@
1 1
 Summary:        Virtualization API library that supports KVM, QEMU, Xen, ESX etc
2 2
 Name:           libvirt
3 3
 Version:        7.5.0
4
-Release:        1%{?dist}
4
+Release:        2%{?dist}
5 5
 License:        LGPL
6 6
 URL:            http://libvirt.org/
7 7
 Source0:        http://libvirt.org/sources/%{name}-%{version}.tar.xz
... ...
@@ -194,6 +194,8 @@ find %{buildroot} -name '*.la' -delete
194 194
 %{_datadir}/libvirt/test-screenshot.png
195 195
 
196 196
 %changelog
197
+* Wed Nov 17 2021 Nitesh Kumar <kunitesh@vmware.com> 7.5.0-2
198
+- Release bump up to use libxml2 2.9.12-1.
197 199
 * Wed Jul 14 2021 Susant Sahani <ssahani@vmware.com> 7.5.0-1
198 200
 - Version Bump and switch to meson
199 201
 * Mon May 03 2021 Gerrit Photon <photon-checkins@vmware.com> 7.3.0-1
200 202
new file mode 100644
... ...
@@ -0,0 +1,208 @@
0
+From 85b1792e37b131e7a51af98a37f92472e8de5f3f Mon Sep 17 00:00:00 2001
1
+From: Nick Wellnhofer <wellnhofer@aevum.de>
2
+Date: Tue, 18 May 2021 20:08:28 +0200
3
+Subject: [PATCH] Work around lxml API abuse
4
+
5
+Make xmlNodeDumpOutput and htmlNodeDumpFormatOutput work with corrupted
6
+parent pointers. This used to work with the old recursive code but the
7
+non-recursive rewrite required parent pointers to be set correctly.
8
+
9
+Unfortunately, lxml relies on the old behavior and passes subtrees with
10
+a corrupted structure. Fall back to a recursive function call if an
11
+invalid parent pointer is detected.
12
+
13
+Fixes #255.
14
+---
15
+ HTMLtree.c | 46 ++++++++++++++++++++++++++++------------------
16
+ xmlsave.c  | 31 +++++++++++++++++++++----------
17
+ 2 files changed, 49 insertions(+), 28 deletions(-)
18
+
19
+diff --git a/HTMLtree.c b/HTMLtree.c
20
+index 24434d453..bdd639c7f 100644
21
+--- a/HTMLtree.c
22
+@@ -744,7 +744,7 @@ void
23
+ htmlNodeDumpFormatOutput(xmlOutputBufferPtr buf, xmlDocPtr doc,
24
+ 	                 xmlNodePtr cur, const char *encoding ATTRIBUTE_UNUSED,
25
+                          int format) {
26
+-    xmlNodePtr root;
27
++    xmlNodePtr root, parent;
28
+     xmlAttrPtr attr;
29
+     const htmlElemDesc * info;
30
+ 
31
+@@ -755,6 +755,7 @@ htmlNodeDumpFormatOutput(xmlOutputBufferPtr buf, xmlDocPtr doc,
32
+     }
33
+ 
34
+     root = cur;
35
++    parent = cur->parent;
36
+     while (1) {
37
+         switch (cur->type) {
38
+         case XML_HTML_DOCUMENT_NODE:
39
+@@ -762,13 +763,25 @@ htmlNodeDumpFormatOutput(xmlOutputBufferPtr buf, xmlDocPtr doc,
40
+             if (((xmlDocPtr) cur)->intSubset != NULL) {
41
+                 htmlDtdDumpOutput(buf, (xmlDocPtr) cur, NULL);
42
+             }
43
+-            if (cur->children != NULL) {
44
++            /* Always validate cur->parent when descending. */
45
++            if ((cur->parent == parent) && (cur->children != NULL)) {
46
++                parent = cur;
47
+                 cur = cur->children;
48
+                 continue;
49
+             }
50
+             break;
51
+ 
52
+         case XML_ELEMENT_NODE:
53
++            /*
54
++             * Some users like lxml are known to pass nodes with a corrupted
55
++             * tree structure. Fall back to a recursive call to handle this
56
++             * case.
57
++             */
58
++            if ((cur->parent != parent) && (cur->children != NULL)) {
59
++                htmlNodeDumpFormatOutput(buf, doc, cur, encoding, format);
60
++                break;
61
++            }
62
++
63
+             /*
64
+              * Get specific HTML info for that node.
65
+              */
66
+@@ -817,6 +830,7 @@ htmlNodeDumpFormatOutput(xmlOutputBufferPtr buf, xmlDocPtr doc,
67
+                     (cur->name != NULL) &&
68
+                     (cur->name[0] != 'p')) /* p, pre, param */
69
+                     xmlOutputBufferWriteString(buf, "\n");
70
++                parent = cur;
71
+                 cur = cur->children;
72
+                 continue;
73
+             }
74
+@@ -825,9 +839,9 @@ htmlNodeDumpFormatOutput(xmlOutputBufferPtr buf, xmlDocPtr doc,
75
+                 (info != NULL) && (!info->isinline)) {
76
+                 if ((cur->next->type != HTML_TEXT_NODE) &&
77
+                     (cur->next->type != HTML_ENTITY_REF_NODE) &&
78
+-                    (cur->parent != NULL) &&
79
+-                    (cur->parent->name != NULL) &&
80
+-                    (cur->parent->name[0] != 'p')) /* p, pre, param */
81
++                    (parent != NULL) &&
82
++                    (parent->name != NULL) &&
83
++                    (parent->name[0] != 'p')) /* p, pre, param */
84
+                     xmlOutputBufferWriteString(buf, "\n");
85
+             }
86
+ 
87
+@@ -842,9 +856,9 @@ htmlNodeDumpFormatOutput(xmlOutputBufferPtr buf, xmlDocPtr doc,
88
+                 break;
89
+             if (((cur->name == (const xmlChar *)xmlStringText) ||
90
+                  (cur->name != (const xmlChar *)xmlStringTextNoenc)) &&
91
+-                ((cur->parent == NULL) ||
92
+-                 ((xmlStrcasecmp(cur->parent->name, BAD_CAST "script")) &&
93
+-                  (xmlStrcasecmp(cur->parent->name, BAD_CAST "style"))))) {
94
++                ((parent == NULL) ||
95
++                 ((xmlStrcasecmp(parent->name, BAD_CAST "script")) &&
96
++                  (xmlStrcasecmp(parent->name, BAD_CAST "style"))))) {
97
+                 xmlChar *buffer;
98
+ 
99
+                 buffer = xmlEncodeEntitiesReentrant(doc, cur->content);
100
+@@ -902,13 +916,9 @@ htmlNodeDumpFormatOutput(xmlOutputBufferPtr buf, xmlDocPtr doc,
101
+                 break;
102
+             }
103
+ 
104
+-            /*
105
+-             * The parent should never be NULL here but we want to handle
106
+-             * corrupted documents gracefully.
107
+-             */
108
+-            if (cur->parent == NULL)
109
+-                return;
110
+-            cur = cur->parent;
111
++            cur = parent;
112
++            /* cur->parent was validated when descending. */
113
++            parent = cur->parent;
114
+ 
115
+             if ((cur->type == XML_HTML_DOCUMENT_NODE) ||
116
+                 (cur->type == XML_DOCUMENT_NODE)) {
117
+@@ -939,9 +949,9 @@ htmlNodeDumpFormatOutput(xmlOutputBufferPtr buf, xmlDocPtr doc,
118
+                     (cur->next != NULL)) {
119
+                     if ((cur->next->type != HTML_TEXT_NODE) &&
120
+                         (cur->next->type != HTML_ENTITY_REF_NODE) &&
121
+-                        (cur->parent != NULL) &&
122
+-                        (cur->parent->name != NULL) &&
123
+-                        (cur->parent->name[0] != 'p')) /* p, pre, param */
124
++                        (parent != NULL) &&
125
++                        (parent->name != NULL) &&
126
++                        (parent->name[0] != 'p')) /* p, pre, param */
127
+                         xmlOutputBufferWriteString(buf, "\n");
128
+                 }
129
+             }
130
+diff --git a/xmlsave.c b/xmlsave.c
131
+index 61a40459b..aedbd5e70 100644
132
+--- a/xmlsave.c
133
+@@ -847,7 +847,7 @@ htmlNodeDumpOutputInternal(xmlSaveCtxtPtr ctxt, xmlNodePtr cur) {
134
+ static void
135
+ xmlNodeDumpOutputInternal(xmlSaveCtxtPtr ctxt, xmlNodePtr cur) {
136
+     int format = ctxt->format;
137
+-    xmlNodePtr tmp, root, unformattedNode = NULL;
138
++    xmlNodePtr tmp, root, unformattedNode = NULL, parent;
139
+     xmlAttrPtr attr;
140
+     xmlChar *start, *end;
141
+     xmlOutputBufferPtr buf;
142
+@@ -856,6 +856,7 @@ xmlNodeDumpOutputInternal(xmlSaveCtxtPtr ctxt, xmlNodePtr cur) {
143
+     buf = ctxt->buf;
144
+ 
145
+     root = cur;
146
++    parent = cur->parent;
147
+     while (1) {
148
+         switch (cur->type) {
149
+         case XML_DOCUMENT_NODE:
150
+@@ -868,7 +869,9 @@ xmlNodeDumpOutputInternal(xmlSaveCtxtPtr ctxt, xmlNodePtr cur) {
151
+             break;
152
+ 
153
+         case XML_DOCUMENT_FRAG_NODE:
154
+-            if (cur->children != NULL) {
155
++            /* Always validate cur->parent when descending. */
156
++            if ((cur->parent == parent) && (cur->children != NULL)) {
157
++                parent = cur;
158
+                 cur = cur->children;
159
+                 continue;
160
+             }
161
+@@ -887,7 +890,18 @@ xmlNodeDumpOutputInternal(xmlSaveCtxtPtr ctxt, xmlNodePtr cur) {
162
+             break;
163
+ 
164
+         case XML_ELEMENT_NODE:
165
+-	    if ((cur != root) && (ctxt->format == 1) && (xmlIndentTreeOutput))
166
++            /*
167
++             * Some users like lxml are known to pass nodes with a corrupted
168
++             * tree structure. Fall back to a recursive call to handle this
169
++             * case.
170
++             */
171
++            if ((cur->parent != parent) && (cur->children != NULL)) {
172
++                xmlNodeDumpOutputInternal(ctxt, cur);
173
++                break;
174
++            }
175
++
176
++	    if ((ctxt->level > 0) && (ctxt->format == 1) &&
177
++                (xmlIndentTreeOutput))
178
+ 		xmlOutputBufferWrite(buf, ctxt->indent_size *
179
+ 				     (ctxt->level > ctxt->indent_nr ?
180
+ 				      ctxt->indent_nr : ctxt->level),
181
+@@ -942,6 +956,7 @@ xmlNodeDumpOutputInternal(xmlSaveCtxtPtr ctxt, xmlNodePtr cur) {
182
+                 xmlOutputBufferWrite(buf, 1, ">");
183
+                 if (ctxt->format == 1) xmlOutputBufferWrite(buf, 1, "\n");
184
+                 if (ctxt->level >= 0) ctxt->level++;
185
++                parent = cur;
186
+                 cur = cur->children;
187
+                 continue;
188
+             }
189
+@@ -1058,13 +1073,9 @@ xmlNodeDumpOutputInternal(xmlSaveCtxtPtr ctxt, xmlNodePtr cur) {
190
+                 break;
191
+             }
192
+ 
193
+-            /*
194
+-             * The parent should never be NULL here but we want to handle
195
+-             * corrupted documents gracefully.
196
+-             */
197
+-            if (cur->parent == NULL)
198
+-                return;
199
+-            cur = cur->parent;
200
++            cur = parent;
201
++            /* cur->parent was validated when descending. */
202
++            parent = cur->parent;
203
+ 
204
+             if (cur->type == XML_ELEMENT_NODE) {
205
+                 if (ctxt->level > 0) ctxt->level--;
0 206
deleted file mode 100644
... ...
@@ -1,33 +0,0 @@
1
-From 7ffcd44d7e6c46704f8af0321d9314cd26e0e18a Mon Sep 17 00:00:00 2001
2
-From: Zhipeng Xie <xiezhipeng1@huawei.com>
3
-Date: Tue, 20 Aug 2019 16:33:06 +0800
4
-Subject: [PATCH] Fix memory leak in xmlSchemaValidateStream
5
-
6
-When ctxt->schema is NULL, xmlSchemaSAXPlug->xmlSchemaPreRun
7
-alloc a new schema for ctxt->schema and set vctxt->xsiAssemble
8
-to 1. Then xmlSchemaVStart->xmlSchemaPreRun initialize
9
-vctxt->xsiAssemble to 0 again which cause the alloced schema
10
-can not be freed anymore.
11
-
12
-Found with libFuzzer.
13
-
14
-Signed-off-by: Zhipeng Xie <xiezhipeng1@huawei.com>
15
- xmlschemas.c | 1 -
16
- 1 file changed, 1 deletion(-)
17
-
18
-diff --git a/xmlschemas.c b/xmlschemas.c
19
-index 301c84499..39d92182f 100644
20
-+++ b/xmlschemas.c
21
-@@ -28090,7 +28090,6 @@ xmlSchemaPreRun(xmlSchemaValidCtxtPtr vctxt) {
22
-     vctxt->nberrors = 0;
23
-     vctxt->depth = -1;
24
-     vctxt->skipDepth = -1;
25
--    vctxt->xsiAssemble = 0;
26
-     vctxt->hasKeyrefs = 0;
27
- #ifdef ENABLE_IDC_NODE_TABLES_TEST
28
-     vctxt->createIDCNodeTables = 1;
29
-GitLab
30
-
31 1
deleted file mode 100644
... ...
@@ -1,36 +0,0 @@
1
-From 50f06b3efb638efb0abd95dc62dca05ae67882c2 Mon Sep 17 00:00:00 2001
2
-From: Nick Wellnhofer <wellnhofer@aevum.de>
3
-Date: Fri, 7 Aug 2020 21:54:27 +0200
4
-Subject: [PATCH] Fix out-of-bounds read with 'xmllint --htmlout'
5
-
6
-Make sure that truncated UTF-8 sequences don't cause an out-of-bounds
7
-array access.
8
-
9
-Thanks to @SuhwanSong and the Agency for Defense Development (ADD) for
10
-the report.
11
-
12
-Fixes #178.
13
- xmllint.c | 6 ++++++
14
- 1 file changed, 6 insertions(+)
15
-
16
-diff --git a/xmllint.c b/xmllint.c
17
-index f6a8e4636..c647486f3 100644
18
-+++ b/xmllint.c
19
-@@ -528,6 +528,12 @@ static void
20
- xmlHTMLEncodeSend(void) {
21
-     char *result;
22
- 
23
-+    /*
24
-+     * xmlEncodeEntitiesReentrant assumes valid UTF-8, but the buffer might
25
-+     * end with a truncated UTF-8 sequence. This is a hack to at least avoid
26
-+     * an out-of-bounds read.
27
-+     */
28
-+    memset(&buffer[sizeof(buffer)-4], 0, 4);
29
-     result = (char *) xmlEncodeEntitiesReentrant(NULL, BAD_CAST buffer);
30
-     if (result) {
31
- 	xmlGenericError(xmlGenericErrorContext, "%s", result);
32
-GitLab
33
-
34 1
deleted file mode 100644
... ...
@@ -1,32 +0,0 @@
1
-From 0e1a49c8907645d2e155f0d89d4d9895ac5112b5 Mon Sep 17 00:00:00 2001
2
-From: Zhipeng Xie <xiezhipeng1@huawei.com>
3
-Date: Thu, 12 Dec 2019 17:30:55 +0800
4
-Subject: [PATCH] Fix infinite loop in xmlStringLenDecodeEntities
5
-
6
-When ctxt->instate == XML_PARSER_EOF,xmlParseStringEntityRef
7
-return NULL which cause a infinite loop in xmlStringLenDecodeEntities
8
-
9
-Found with libFuzzer.
10
-
11
-Signed-off-by: Zhipeng Xie <xiezhipeng1@huawei.com>
12
- parser.c | 3 ++-
13
- 1 file changed, 2 insertions(+), 1 deletion(-)
14
-
15
-diff --git a/parser.c b/parser.c
16
-index d1c31963..a34bb6cd 100644
17
-+++ b/parser.c
18
-@@ -2646,7 +2646,8 @@ xmlStringLenDecodeEntities(xmlParserCtxtPtr ctxt, const xmlChar *str, int len,
19
-     else
20
-         c = 0;
21
-     while ((c != 0) && (c != end) && /* non input consuming loop */
22
--	   (c != end2) && (c != end3)) {
23
-+           (c != end2) && (c != end3) &&
24
-+           (ctxt->instate != XML_PARSER_EOF)) {
25
- 
26
- 	if (c == 0) break;
27
-         if ((c == '&') && (str[1] == '#')) {
28
-2.24.1
29
-
30 1
deleted file mode 100644
... ...
@@ -1,91 +0,0 @@
1
-From edc7b6abb0c125eeb888748c334897f60aab0854 Mon Sep 17 00:00:00 2001
2
-From: =?UTF-8?q?Miro=20Hron=C4=8Dok?= <miro@hroncok.cz>
3
-Date: Fri, 28 Feb 2020 12:48:14 +0100
4
-Subject: [PATCH] Parenthesize Py<type>_Check() in ifs
5
-
6
-In C, if expressions should be parenthesized.
7
-PyLong_Check, PyUnicode_Check etc. happened to expand to a parenthesized
8
-expression before, but that's not API to rely on.
9
-
10
-Since Python 3.9.0a4 it needs to be parenthesized explicitly.
11
-
12
-Fixes https://gitlab.gnome.org/GNOME/libxml2/issues/149
13
- python/libxml.c |  4 ++--
14
- python/types.c  | 12 ++++++------
15
- 2 files changed, 8 insertions(+), 8 deletions(-)
16
-
17
-diff --git a/python/libxml.c b/python/libxml.c
18
-index bc676c4e0..81e709f34 100644
19
-+++ b/python/libxml.c
20
-@@ -294,7 +294,7 @@ xmlPythonFileReadRaw (void * context, char * buffer, int len) {
21
- 	lenread = PyBytes_Size(ret);
22
- 	data = PyBytes_AsString(ret);
23
- #ifdef PyUnicode_Check
24
--    } else if PyUnicode_Check (ret) {
25
-+    } else if (PyUnicode_Check (ret)) {
26
- #if PY_VERSION_HEX >= 0x03030000
27
-         Py_ssize_t size;
28
- 	const char *tmp;
29
-@@ -359,7 +359,7 @@ xmlPythonFileRead (void * context, char * buffer, int len) {
30
- 	lenread = PyBytes_Size(ret);
31
- 	data = PyBytes_AsString(ret);
32
- #ifdef PyUnicode_Check
33
--    } else if PyUnicode_Check (ret) {
34
-+    } else if (PyUnicode_Check (ret)) {
35
- #if PY_VERSION_HEX >= 0x03030000
36
-         Py_ssize_t size;
37
- 	const char *tmp;
38
-diff --git a/python/types.c b/python/types.c
39
-index c2bafeb19..ed284ec74 100644
40
-+++ b/python/types.c
41
-@@ -602,16 +602,16 @@ libxml_xmlXPathObjectPtrConvert(PyObject *obj)
42
-     if (obj == NULL) {
43
-         return (NULL);
44
-     }
45
--    if PyFloat_Check (obj) {
46
-+    if (PyFloat_Check (obj)) {
47
-         ret = xmlXPathNewFloat((double) PyFloat_AS_DOUBLE(obj));
48
--    } else if PyLong_Check(obj) {
49
-+    } else if (PyLong_Check(obj)) {
50
- #ifdef PyLong_AS_LONG
51
-         ret = xmlXPathNewFloat((double) PyLong_AS_LONG(obj));
52
- #else
53
-         ret = xmlXPathNewFloat((double) PyInt_AS_LONG(obj));
54
- #endif
55
- #ifdef PyBool_Check
56
--    } else if PyBool_Check (obj) {
57
-+    } else if (PyBool_Check (obj)) {
58
- 
59
-         if (obj == Py_True) {
60
-           ret = xmlXPathNewBoolean(1);
61
-@@ -620,14 +620,14 @@ libxml_xmlXPathObjectPtrConvert(PyObject *obj)
62
-           ret = xmlXPathNewBoolean(0);
63
-         }
64
- #endif
65
--    } else if PyBytes_Check (obj) {
66
-+    } else if (PyBytes_Check (obj)) {
67
-         xmlChar *str;
68
- 
69
-         str = xmlStrndup((const xmlChar *) PyBytes_AS_STRING(obj),
70
-                          PyBytes_GET_SIZE(obj));
71
-         ret = xmlXPathWrapString(str);
72
- #ifdef PyUnicode_Check
73
--    } else if PyUnicode_Check (obj) {
74
-+    } else if (PyUnicode_Check (obj)) {
75
- #if PY_VERSION_HEX >= 0x03030000
76
-         xmlChar *str;
77
- 	const char *tmp;
78
-@@ -650,7 +650,7 @@ libxml_xmlXPathObjectPtrConvert(PyObject *obj)
79
- 	ret = xmlXPathWrapString(str);
80
- #endif
81
- #endif
82
--    } else if PyList_Check (obj) {
83
-+    } else if (PyList_Check (obj)) {
84
-         int i;
85
-         PyObject *node;
86
-         xmlNodePtr cur;
87
-GitLab
... ...
@@ -2,20 +2,17 @@
2 2
 
3 3
 Summary:        Libxml2
4 4
 Name:           libxml2
5
-Version:        2.9.10
6
-Release:        6%{?dist}
5
+Version:        2.9.12
6
+Release:        1%{?dist}
7 7
 License:        MIT
8 8
 URL:            http://xmlsoft.org/
9 9
 Group:          System Environment/General Libraries
10 10
 Vendor:         VMware, Inc.
11 11
 Distribution:   Photon
12 12
 Source0:        ftp://xmlsoft.org/libxml2/%{name}-%{version}.tar.gz
13
-%define sha1    libxml2=db6592ec9ca9708c4e71bf6bfd907bbb5cd40644
14
-Patch0:         CVE-2020-7595.patch
15
-Patch1:         CVE-2020-24977.patch
16
-Patch2:         fix_build_with_python3.9.patch
17
-Patch3:         CVE-2019-20388.patch
13
+%define sha1    libxml2=339fe5bb2a7d0c13f068c26d8f7cd194c13f9a2a
18 14
 
15
+Patch0:         0001-Work-around-lxml-API.patch
19 16
 BuildRequires:  python3-devel
20 17
 BuildRequires:  python3-libs
21 18
 BuildRequires:  zlib
... ...
@@ -43,48 +40,30 @@ Requires:   %{name} = %{version}
43 43
 Static libraries and header files for the support library for libxml
44 44
 
45 45
 %prep
46
-%setup -q
47
-%patch0 -p1
48
-%patch1 -p1
49
-%patch2 -p1
50
-%patch3 -p1
46
+%autosetup -p1
51 47
 
52 48
 %build
53
-%configure \
54
-    --disable-static \
55
-    --with-history
49
+%configure --disable-static --with-history --with-python=%{_bindir}/python3
56 50
 make %{?_smp_mflags}
57 51
 
58 52
 %install
59
-[ %{buildroot} != "/"] && rm -rf %{buildroot}/*
60
-make DESTDIR=%{buildroot} install
53
+[ %{buildroot} != "/" ] && rm -rf %{buildroot}/*
54
+make DESTDIR=%{buildroot} install %{?_smp_mflags}
61 55
 find %{buildroot}/%{_libdir} -name '*.la' -delete
62
-%{_fixperms} %{buildroot}/*
63
-
64
-make clean
65
-%configure \
66
-    --disable-static \
67
-    --with-python=/usr/bin/python3
68
-make %{?_smp_mflags}
69
-make install DESTDIR=%{buildroot}
70 56
 
71 57
 %check
72 58
 make %{?_smp_mflags} check
73 59
 
74
-%post   -p /sbin/ldconfig
75
-%postun -p /sbin/ldconfig
60
+%ldconfig_scriptlets
61
+
76 62
 %clean
77 63
 rm -rf %{buildroot}/*
64
+
78 65
 %files
79 66
 %defattr(-,root,root)
80
-%{_docdir}/*
81 67
 %{_libdir}/libxml*
82 68
 %{_libdir}/xml2Conf.sh
83 69
 %{_bindir}/*
84
-%{_datadir}/aclocal/*
85
-%{_datadir}/gtk-doc/*
86
-%{_mandir}/man1/*
87
-
88 70
 
89 71
 %files -n python3-libxml2
90 72
 %defattr(-,root,root)
... ...
@@ -96,8 +75,14 @@ rm -rf %{buildroot}/*
96 96
 %{_mandir}/man3/*
97 97
 %{_libdir}/pkgconfig/libxml-2.0.pc
98 98
 %{_libdir}/cmake/libxml2/libxml2-config.cmake
99
+%{_docdir}/*
100
+%{_datadir}/gtk-doc/*
101
+%{_mandir}/man1/*
102
+%{_datadir}/aclocal/*
99 103
 
100 104
 %changelog
105
+*   Fri Oct 29 2021 Nitesh Kumar <kunitesh@vmware.com> 2.9.12-1
106
+-   Version Upgrade to 2.9.12 also optmizing the packages.
101 107
 *   Tue Dec 15 2020 Shreenidhi Shedi <sshedi@vmware.com> 2.9.10-6
102 108
 -   Fix build with new rpm
103 109
 *   Sat Nov 07 2020 Prashant S Chauhan <psinghchauha@vmware.com> 2.9.10-5
... ...
@@ -1,7 +1,7 @@
1 1
 Summary:        Libxslt
2 2
 Name:           libxslt
3 3
 Version:        1.1.34
4
-Release:        3%{?dist}
4
+Release:        4%{?dist}
5 5
 License:        MIT
6 6
 URL:            http:/http://xmlsoft.org/libxslt/
7 7
 Group:          System Environment/General Libraries
... ...
@@ -24,7 +24,7 @@ Requires:       libxslt = %{version}-%{release}
24 24
 Header files for doing development with libxslt.
25 25
 
26 26
 %prep
27
-%setup -q
27
+%autosetup -p1
28 28
 sed -i 's/int xsltMaxDepth = 3000/int xsltMaxDepth = 5000/g' libxslt/transform.c
29 29
 
30 30
 %build
... ...
@@ -35,7 +35,7 @@ sed -i 's/int xsltMaxDepth = 3000/int xsltMaxDepth = 5000/g' libxslt/transform.c
35 35
 make %{?_smp_mflags}
36 36
 %install
37 37
 [ %{buildroot} != "/"] && rm -rf %{buildroot}/*
38
-make DESTDIR=%{buildroot} install
38
+make DESTDIR=%{buildroot} install %{?_smp_mflags}
39 39
 find %{buildroot} -name '*.la' -delete
40 40
 %{_fixperms} %{buildroot}/*
41 41
 
... ...
@@ -64,6 +64,8 @@ rm -rf %{buildroot}/*
64 64
 %{_mandir}/man3/*
65 65
 
66 66
 %changelog
67
+*   Wed Nov 17 2021 Nitesh Kumar <kunitesh@vmware.com> 1.1.34-4
68
+-   Release bump up to use libxml2 2.9.12-1.
67 69
 *   Fri Feb 19 2021 Shreyas B. <shreyasb@vmware.com> 1.1.34-3
68 70
 -   Increase the maximum number of nested template calls for xml.
69 71
 *   Fri Dec 18 2020 Shreenidhi Shedi <sshedi@vmware.com> 1.1.34-2
... ...
@@ -1,7 +1,7 @@
1 1
 Name: 		likewise-open
2 2
 Summary: 	Likewise Open
3 3
 Version: 	6.2.11.13
4
-Release: 	7%{?dist}
4
+Release: 	8%{?dist}
5 5
 Group:   	Development/Libraries
6 6
 Vendor: 	VMware, Inc.
7 7
 License: 	GPL 2.0,LGPL 2.1
... ...
@@ -311,6 +311,8 @@ rm -rf %{buildroot}/*
311 311
 /opt/likewise/lib64/pkgconfig/libedit.pc
312 312
 
313 313
 %changelog
314
+*   Wed Nov 17 2021 Nitesh Kumar <kunitesh@vmware.com> 6.2.11.13-8
315
+-   Release bump up to use libxml2 2.9.12-1.
314 316
 *   Mon Jul 12 2021 Satya Naga Vasamsetty <svasamsetty@vmware.com> 6.2.11.13-7
315 317
 -   openssl 3.0.0 compatibility
316 318
 *   Mon May 24 2021 Shreenidhi Shedi <sshedi@vmware.com> 6.2.11.13-6
... ...
@@ -3,7 +3,7 @@
3 3
 Summary:        A next generation, high-performance debugger.
4 4
 Name:           lldb
5 5
 Version:        12.0.0
6
-Release:        1%{?dist}
6
+Release:        2%{?dist}
7 7
 License:        NCSA
8 8
 URL:            http://lldb.llvm.org
9 9
 Group:          Development/Tools
... ...
@@ -45,7 +45,7 @@ Requires:       python3-six
45 45
 The package contains the LLDB Python3 module.
46 46
 
47 47
 %prep
48
-%setup -q -n %{name}-%{version}.src
48
+%autosetup -n %{name}-%{version}.src -p1
49 49
 
50 50
 %build
51 51
 mkdir -p build
... ...
@@ -62,7 +62,7 @@ make %{?_smp_mflags}
62 62
 %install
63 63
 [ %{buildroot} != "/"] && rm -rf %{buildroot}/*
64 64
 cd build
65
-make DESTDIR=%{buildroot} install
65
+make DESTDIR=%{buildroot} install %{?_smp_mflags}
66 66
 
67 67
 #Remove bundled python-six files
68 68
 rm -f %{buildroot}%{python3_sitelib}/six.*
... ...
@@ -93,6 +93,8 @@ rm -rf %{buildroot}/*
93 93
 %{python3_sitelib}/*
94 94
 
95 95
 %changelog
96
+*   Wed Nov 17 2021 Nitesh Kumar <kunitesh@vmware.com> 12.0.0-2
97
+-   Release bump up to use libxml2 2.9.12-1.
96 98
 *   Tue Apr 13 2021 Gerrit Photon <photon-checkins@vmware.com> 12.0.0-1
97 99
 -   Automatic Version Bump
98 100
 *   Thu Feb 04 2021 Shreenidhi Shedi <sshedi@vmware.com> 11.0.1-1
... ...
@@ -1,7 +1,7 @@
1 1
 Summary:        A collection of modular and reusable compiler and toolchain technologies.
2 2
 Name:           llvm
3 3
 Version:        12.0.0
4
-Release:        1%{?dist}
4
+Release:        2%{?dist}
5 5
 License:        NCSA
6 6
 URL:            http://lldb.llvm.org
7 7
 Group:          Development/Tools
... ...
@@ -36,7 +36,7 @@ Group:          System Environment/Libraries
36 36
 The libllvm package contains shared libraries for llvm
37 37
 
38 38
 %prep
39
-%setup -q -n %{name}-%{version}.src
39
+%autosetup -n %{name}-%{version}.src -p1
40 40
 
41 41
 %build
42 42
 mkdir -p build
... ...
@@ -53,7 +53,7 @@ make %{?_smp_mflags}
53 53
 %install
54 54
 [ %{buildroot} != "/"] && rm -rf %{buildroot}/*
55 55
 cd build
56
-make DESTDIR=%{buildroot} install
56
+make DESTDIR=%{buildroot} install %{?_smp_mflags}
57 57
 
58 58
 %post   -p /sbin/ldconfig
59 59
 %postun -p /sbin/ldconfig
... ...
@@ -90,6 +90,8 @@ rm -rf %{buildroot}/*
90 90
 %{_libdir}/libLLVM*.so
91 91
 
92 92
 %changelog
93
+*   Wed Nov 17 2021 Nitesh Kumar <kunitesh@vmware.com> 12.0.0-2
94
+-   Release bump up to use libxml2 2.9.12-1.
93 95
 *   Tue Apr 13 2021 Gerrit Photon <photon-checkins@vmware.com> 12.0.0-1
94 96
 -   Automatic Version Bump
95 97
 *   Thu Feb 04 2021 Shreenidhi Shedi <sshedi@vmware.com> 11.0.1-1
... ...
@@ -1,7 +1,7 @@
1 1
 Summary: LTTng is an open source tracing framework for Linux.
2 2
 Name:    lttng-tools
3 3
 Version: 2.12.3
4
-Release: 1%{?dist}
4
+Release: 2%{?dist}
5 5
 License: GPLv2 and LGPLv2
6 6
 URL: https://lttng.org/download/
7 7
 Source: %{name}-%{version}.tar.bz2
... ...
@@ -25,7 +25,7 @@ Requires:      libxml2
25 25
 LTTng is an open source tracing framework for Linux.
26 26
 
27 27
 %prep
28
-%setup -q
28
+%autosetup -p1
29 29
 
30 30
 %build
31 31
 autoreconf -fiv
... ...
@@ -34,7 +34,7 @@ autoreconf -fiv
34 34
 make %{?_smp_mflags}
35 35
 
36 36
 %install
37
-make DESTDIR=%{buildroot} install
37
+make DESTDIR=%{buildroot} install %{?_smp_mflags}
38 38
 find %{buildroot} -name '*.la' -delete
39 39
 
40 40
 %files
... ...
@@ -45,6 +45,8 @@ find %{buildroot} -name '*.la' -delete
45 45
 %exclude %{_libdir}/debug
46 46
 
47 47
 %changelog
48
+*   Wed Nov 17 2021 Nitesh Kumar <kunitesh@vmware.com> 2.12.3-2
49
+-   Release bump up to use libxml2 2.9.12-1.
48 50
 *   Tue Apr 13 2021 Gerrit Photon <photon-checkins@vmware.com> 2.12.3-1
49 51
 -   Automatic Version Bump
50 52
 *   Wed Aug 19 2020 Gerrit Photon <photon-checkins@vmware.com> 2.12.2-1
... ...
@@ -1,7 +1,7 @@
1 1
 Summary:        Open Source Security Compliance Solution
2 2
 Name:           openscap
3 3
 Version:        1.3.5
4
-Release:        2%{?dist}
4
+Release:        3%{?dist}
5 5
 License:        GPL2+
6 6
 URL:            https://www.open-scap.org
7 7
 Group:          System Environment/Libraries
... ...
@@ -105,6 +105,8 @@ find %{buildroot} -name '*.la' -delete
105 105
 %{_libdir}/python3.9/*
106 106
 
107 107
 %changelog
108
+* Wed Nov 17 2021 Nitesh Kumar <kunitesh@vmware.com> 1.3.5-3
109
+- Release bump up to use libxml2 2.9.12-1.
108 110
 * Fri Aug 20 2021 Shreenidhi Shedi <sshedi@vmware.com> 1.3.5-2
109 111
 - Bump version as a part of rpm upgrade
110 112
 * Fri Apr 23 2021 Gerrit Photon <photon-checkins@vmware.com> 1.3.5-1
... ...
@@ -1,7 +1,7 @@
1 1
 Summary:        PostgreSQL database engine
2 2
 Name:           postgresql
3 3
 Version:        14.1
4
-Release:        2%{?dist}
4
+Release:        3%{?dist}
5 5
 License:        PostgreSQL
6 6
 URL:            www.postgresql.org
7 7
 Group:          Applications/Databases
... ...
@@ -179,7 +179,7 @@ system. The %{name}-pltcl package contains the PL/Tcl language
179 179
 for the backend.
180 180
 
181 181
 %prep
182
-%autosetup
182
+%autosetup -p1
183 183
 
184 184
 %build
185 185
 sed -i '/DEFAULT_PGSOCKET_DIR/s@/tmp@/run/postgresql@' src/include/pg_config_manual.h
... ...
@@ -545,6 +545,8 @@ rm -rf %{buildroot}/*
545 545
 %{_libdir}/postgresql/plpython3.so
546 546
 
547 547
 %changelog
548
+*   Fri Nov 19 2021 Nitesh Kumar <kunitesh@vmware.com> 14.1-3
549
+-   Release bump up to use libxml2 2.9.12-1.
548 550
 *   Thu Nov 18 2021 Satya Naga Vasamsetty <svasamsetty@vmware.com> 14.1-2
549 551
 -   Bump up release for openssl
550 552
 *   Mon Nov 15 2021 Michael Paquier <mpaquier@vmware.com> 14.1-1
... ...
@@ -1,7 +1,7 @@
1 1
 Summary:        PostgreSQL database engine
2 2
 Name:           postgresql12
3 3
 Version:        12.9
4
-Release:        1%{?dist}
4
+Release:        2%{?dist}
5 5
 License:        PostgreSQL
6 6
 URL:            www.postgresql.org
7 7
 Group:          Applications/Databases
... ...
@@ -170,7 +170,7 @@ system. The %{name}-pltcl package contains the PL/Tcl language
170 170
 for the backend.
171 171
 
172 172
 %prep
173
-%autosetup -n postgresql-%{version}
173
+%autosetup -n postgresql-%{version} -p1
174 174
 
175 175
 %build
176 176
 sed -i '/DEFAULT_PGSOCKET_DIR/s@/tmp@/run/postgresql@' src/include/pg_config_manual.h
... ...
@@ -533,6 +533,8 @@ rm -rf %{buildroot}/*
533 533
 %{pgbaseinstdir}/lib/plpython3.so
534 534
 
535 535
 %changelog
536
+*   Wed Nov 17 2021 Nitesh Kumar <kunitesh@vmware.com> 12.9-2
537
+-   Release bump up to use libxml2 2.9.12-1.
536 538
 *   Mon Nov 15 2021 Michael Paquier <mpaquier@vmware.com> 12.9-1
537 539
 -   Upgraded to version 12.9.
538 540
 *   Sat Aug 14 2021 Michael Paquier <mpaquier@vmware.com> 12.8-1
... ...
@@ -1,7 +1,7 @@
1 1
 Summary:        PostgreSQL database engine
2 2
 Name:           postgresql13
3 3
 Version:        13.5
4
-Release:        1%{?dist}
4
+Release:        2%{?dist}
5 5
 License:        PostgreSQL
6 6
 URL:            www.postgresql.org
7 7
 Group:          Applications/Databases
... ...
@@ -170,7 +170,7 @@ system. The %{name}-pltcl package contains the PL/Tcl language
170 170
 for the backend.
171 171
 
172 172
 %prep
173
-%autosetup -n postgresql-%{version}
173
+%autosetup -n postgresql-%{version} -p1
174 174
 
175 175
 %build
176 176
 sed -i '/DEFAULT_PGSOCKET_DIR/s@/tmp@/run/postgresql@' src/include/pg_config_manual.h
... ...
@@ -536,6 +536,8 @@ rm -rf %{buildroot}/*
536 536
 %{pgbaseinstdir}/lib/plpython3.so
537 537
 
538 538
 %changelog
539
+*   Wed Nov 17 2021 Nitesh Kumar <kunitesh@vmware.com> 13.5-2
540
+-   Release bump up to use libxml2 2.9.12-1.
539 541
 *   Mon Nov 15 2021 Michael Paquier <mpaquier@vmware.com> 13.5-1
540 542
 -   Upgraded to version 13.5.
541 543
 *   Thu Sep 30 2021 Michael Paquier <mpaquier@vmware.com> 13.4-1
... ...
@@ -5,7 +5,7 @@
5 5
 Summary:        Nokogiri is an HTML, XML, SAX, and Reader parser.
6 6
 Name:           rubygem-nokogiri
7 7
 Version:        1.10.9
8
-Release:        1%{?dist}
8
+Release:        2%{?dist}
9 9
 License:        MIT
10 10
 Group:          Development/Languages
11 11
 Vendor:         VMware, Inc.
... ...
@@ -24,7 +24,7 @@ Requires:       libxslt
24 24
 %description
25 25
 Nokogiri is an HTML, XML, SAX, and Reader parser. Among Nokogiri's many features is the ability to search documents via XPath or CSS3 selectors.
26 26
 %prep
27
-%setup -q -c -T
27
+%autosetup -c -T -p1
28 28
 %build
29 29
 
30 30
 %install
... ...
@@ -35,6 +35,8 @@ NOKOGIRI_USE_SYSTEM_LIBRARIES=1 gem install -V --local --force --install-dir %{b
35 35
 %{gemdir}
36 36
 
37 37
 %changelog
38
+*   Wed Nov 17 2021 Nitesh Kumar <kunitesh@vmware.com> 1.10.9-2
39
+-   Release bump up to use libxml2 2.9.12-1.
38 40
 *   Mon Jun 22 2020 Gerrit Photon <photon-checkins@vmware.com> 1.10.9-1
39 41
 -   Automatic Version Bump
40 42
 *   Tue Sep 11 2018 srinidhira0 <srinidhir@vmware.com> 1.8.4-1
... ...
@@ -53,4 +55,3 @@ NOKOGIRI_USE_SYSTEM_LIBRARIES=1 gem install -V --local --force --install-dir %{b
53 53
 -   Upgrade version.
54 54
 *   Wed Nov 11 2015 Harish Udaiya Kumar <hudaiyakumar@vmware.com> 1.6.6.2-1
55 55
 -   Initial build
56
-
... ...
@@ -1,7 +1,7 @@
1 1
 Summary:        Samba Client Programs
2 2
 Name:           samba-client
3 3
 Version:        4.14.4
4
-Release:        1%{?dist}
4
+Release:        2%{?dist}
5 5
 License:        GPLv3+ and LGPLv3+
6 6
 Group:          Productivity/Networking
7 7
 Vendor:         VMware, Inc.
... ...
@@ -96,8 +96,7 @@ This package contains the static libraries and header files needed to
96 96
 develop programs which make use of the wbclient programming interface.
97 97
 
98 98
 %prep
99
-%setup -n samba-%{version}
100
-%patch1 -p1
99
+%autosetup -n samba-%{version} -p1
101 100
 
102 101
 %build
103 102
 echo "^samba4.rpc.echo.*on.*ncacn_np.*with.*object.*nt4_dc" >> selftest/knownfail
... ...
@@ -562,6 +561,8 @@ done
562 562
 %{_libdir}/pkgconfig/wbclient.pc
563 563
 
564 564
 %changelog
565
+*   Wed Nov 17 2021 Nitesh Kumar <kunitesh@vmware.com> 4.14.4-2
566
+-   Release bump up to use libxml2 2.9.12-1.
565 567
 *   Thu May 06 2021 Shreyas B. <shreyasb@vmware.com> 4.14.4-1
566 568
 -   Split libwclient from samba-client and create separate package.
567 569
 -   Upgrade to version 4.14.4
... ...
@@ -1,7 +1,7 @@
1 1
 Summary:        Library providing support for "XML Signature" and "XML Encryption" standards
2 2
 Name:           xmlsec1
3 3
 Version:        1.2.32
4
-Release:        2%{?dist}
4
+Release:        3%{?dist}
5 5
 License:        MIT
6 6
 Group:          Applications/System
7 7
 Vendor:         VMware, Inc.
... ...
@@ -36,7 +36,7 @@ Libraries, includes, etc. you can use to develop applications with XML Digital
36 36
 Signatures and XML Encryption support.
37 37
 
38 38
 %prep
39
-%autosetup
39
+%autosetup -p1
40 40
 
41 41
 %build
42 42
 %configure --disable-static
... ...
@@ -86,6 +86,8 @@ make -k check |& tee %{_specdir}/%{name}-check-log || %{nocheck} %{?_smp_mflags}
86 86
 %{_prefix}/share/man/man1/xmlsec1-config.1.gz
87 87
 
88 88
 %changelog
89
+*   Wed Nov 17 2021 Nitesh Kumar <kunitesh@vmware.com> 1.2.32-3
90
+-   Release bump up to use libxml2 2.9.12-1.
89 91
 *   Wed Aug 04 2021 Satya Naga Vasamsetty <svasamsetty@vmware.com> 1.2.32-2
90 92
 -   Bump up release for openssl
91 93
 *   Tue Apr 13 2021 Gerrit Photon <photon-checkins@vmware.com> 1.2.32-1
... ...
@@ -1,7 +1,7 @@
1 1
 Summary:	Command Line XML Toolkit
2 2
 Name:   	xmlstarlet
3 3
 Version:	1.6.1
4
-Release:	1%{?dist}
4
+Release:	2%{?dist}
5 5
 License:	MIT
6 6
 URL:    	http://xmlstar.sourceforge.net/
7 7
 Group:  	Text Tools
... ...
@@ -26,8 +26,7 @@ plain text files using UNIX grep, sed, awk, diff, patch, join, etc
26 26
 commands.
27 27
 
28 28
 %prep
29
-%setup -q
30
-%patch0 -p1
29
+%autosetup -p1
31 30
 
32 31
 %build
33 32
 autoreconf -sif
... ...
@@ -37,10 +36,10 @@ autoreconf -sif
37 37
 make %{?_smp_mflags}
38 38
 
39 39
 %install
40
-make install DESTDIR=%{buildroot}
40
+make install DESTDIR=%{buildroot} %{?_smp_mflags}
41 41
 
42 42
 %check
43
-make check
43
+make check %{?_smp_mflags}
44 44
 
45 45
 %clean
46 46
 rm -fr %{buildroot}
... ...
@@ -52,7 +51,8 @@ rm -fr %{buildroot}
52 52
 %{_docdir}/xmlstarlet
53 53
 %{_bindir}/xml
54 54
 
55
-
56 55
 %changelog
56
+* Wed Nov 17 2021 Nitesh Kumar <kunitesh@vmware.com> 1.6.1-2
57
+- Release bump up to use libxml2 2.9.12-1.
57 58
 * Wed Aug 12 2020 Prashant S Chauhan <psinghchauha@vmware.com> 1.6.1-1
58 59
 - Initial Release