Browse code

Merge branch 'master' of https://github.com/vmware/photon

archive authored on 2019/08/02 23:30:27
Showing 15 changed files
... ...
@@ -21,19 +21,19 @@ diff -rup cloud-init-18.3/cloudinit/sources/helpers/azure.py cloud-init-18.3-new
21 21
  
22 22
  from cloudinit.net import dhcp
23 23
  from cloudinit import stages
24
-@@ -16,9 +17,10 @@ from xml.etree import ElementTree
25
- 
24
+@@ -18,9 +18,10 @@
26 25
  from cloudinit import url_helper
27 26
  from cloudinit import util
27
+ from cloudinit.reporting import events
28 28
 +from io import StringIO
29 29
  
30 30
  LOG = logging.getLogger(__name__)
31 31
 -
32 32
 +NETWORKD_LEASES_DIR = '/run/systemd/netif/leases'
33 33
  
34
- @contextmanager
35
- def cd(newdir):
36
-@@ -281,6 +283,32 @@ class WALinuxAgentShim(object):
34
+ azure_ds_reporter = events.ReportEventStack(
35
+     name="azure-ds",
36
+@@ -332,6 +333,32 @@
37 37
          return dhcp_options
38 38
  
39 39
      @staticmethod
... ...
@@ -63,9 +63,9 @@ diff -rup cloud-init-18.3/cloudinit/sources/helpers/azure.py cloud-init-18.3-new
63 63
 +        return ret
64 64
 +
65 65
 +    @staticmethod
66
+     @azure_ds_telemetry_reporter
66 67
      def _get_value_from_dhcpoptions(dhcp_options):
67 68
          if dhcp_options is None:
68
-             return None
69 69
 @@ -306,8 +334,9 @@ class WALinuxAgentShim(object):
70 70
              # Option-245 stored in /run/cloud-init/dhclient.hooks/<ifc>.json
71 71
              # a dhclient exit hook that calls cloud-init-dhclient-hook
... ...
@@ -1,8 +1,8 @@
1 1
 %define python3_sitelib /usr/lib/python3.7/site-packages
2 2
 
3 3
 Name:           cloud-init
4
-Version:        18.3
5
-Release:        4%{?dist}
4
+Version:        19.1
5
+Release:        1%{?dist}
6 6
 Summary:        Cloud instance init scripts
7 7
 Group:          System Environment/Base
8 8
 License:        GPLv3
... ...
@@ -10,7 +10,7 @@ URL:            http://launchpad.net/cloud-init
10 10
 Vendor:         VMware, Inc
11 11
 Distribution:   Photon
12 12
 Source0:        https://launchpad.net/cloud-init/trunk/%{version}/+download/%{name}-%{version}.tar.gz
13
-%define sha1 cloud-init=a317e2add93578d244328dcf97d46fad1c3140f9
13
+%define sha1 cloud-init=6de398dd755959dde47c8d6f6e255a0857017c44
14 14
 Source1:        cloud-photon.cfg
15 15
 Source2:        99-disable-networking-config.cfg
16 16
 
... ...
@@ -138,15 +138,17 @@ rm -rf $RPM_BUILD_ROOT
138 138
 /lib/systemd/system-generators/cloud-init-generator
139 139
 /lib/udev/rules.d/66-azure-ephemeral.rules
140 140
 /lib/systemd/system/*
141
-/etc/bash_completion.d/cloud-init
142 141
 %{_docdir}/cloud-init/*
143 142
 %{_libdir}/cloud-init/*
144 143
 %{python3_sitelib}/*
145 144
 %{_bindir}/cloud-init*
145
+%{_bindir}/cloud-id
146
+%{_datadir}/bash-completion/completions/cloud-init
146 147
 %dir /var/lib/cloud
147 148
 
148
-
149 149
 %changelog
150
+*   Tue Jun 25 2019 Keerthana K <keerthanak@vmware.com> 19.1-1
151
+-   Upgrade to version 19.1 and fix cloud-init GOS logic.
150 152
 *   Thu Jun 13 2019 Keerthana K <keerthanak@vmware.com> 18.3-4
151 153
 -   Fix to delete the contents of /etc/systemd/network dir at the beginning
152 154
 -   of write_network instead of looping through each NIC and delete the contents
... ...
@@ -53,7 +53,7 @@ cloud_init_modules:
53 53
  - resizefs
54 54
  - set_hostname
55 55
  - update_hostname
56
-# - update_etc_hosts
56
+ - update_etc_hosts
57 57
 # - ca-certs
58 58
 # - rsyslog
59 59
  - users-groups
... ...
@@ -70,7 +70,7 @@ cloud_config_modules:
70 70
 # - set-passwords
71 71
  - package-update-upgrade-install
72 72
 # - landscape
73
-# - timezone
73
+ - timezone
74 74
 # - puppet
75 75
 # - chef
76 76
 # - salt-minion
... ...
@@ -105,3 +105,5 @@ system_info:
105 105
       templates_dir: /etc/cloud/templates/
106 106
 
107 107
    ssh_svcname: sshd
108
+
109
+manage_etc_hosts: true
... ...
@@ -1,7 +1,7 @@
1 1
 diff -rupN cloud-init-0.7.9/cloudinit/distros/photon.py cloud-init-0.7.9-new/cloudinit/distros/photon.py
2
-+++ cloud-init-0.7.9-new/cloudinit/distros/photon.py	2017-05-15 05:13:49.156848344 -0700
3
-@@ -0,0 +1,320 @@
2
+--- cloud-init-0.7.9/cloudinit/distros/photon.py        1969-12-31 16:00:00.000000000 -0800
3
+@@ -0,0 +1,335 @@
4 4
 +# vi: ts=4 expandtab
5 5
 +#
6 6
 +# Copyright (C) 2017 VMware Inc.
... ...
@@ -9,6 +9,7 @@ diff -rupN cloud-init-0.7.9/cloudinit/distros/photon.py cloud-init-0.7.9-new/clo
9 9
 +#
10 10
 +
11 11
 +import os
12
++import fnmatch
12 13
 +
13 14
 +from cloudinit import distros
14 15
 +from cloudinit import helpers
... ...
@@ -16,6 +17,7 @@ diff -rupN cloud-init-0.7.9/cloudinit/distros/photon.py cloud-init-0.7.9-new/clo
16 16
 +from cloudinit import util
17 17
 +from cloudinit.distros import net_util
18 18
 +from cloudinit.distros.parsers.hostname import HostnameConf
19
++from cloudinit.net.network_state import mask_to_net_prefix
19 20
 +
20 21
 +from cloudinit.settings import PER_INSTANCE
21 22
 +
... ...
@@ -57,7 +59,6 @@ diff -rupN cloud-init-0.7.9/cloudinit/distros/photon.py cloud-init-0.7.9-new/clo
57 57
 +        entries = net_util.translate_network(settings)
58 58
 +        LOG.debug("Translated ubuntu style network settings %s into %s",
59 59
 +                  settings, entries)
60
-+        util.delete_dir_contents(self.network_conf_dir)
61 60
 +        route_entries = []
62 61
 +        route_entries = translate_routes(settings)
63 62
 +        dev_names = entries.keys()
... ...
@@ -66,9 +67,17 @@ diff -rupN cloud-init-0.7.9/cloudinit/distros/photon.py cloud-init-0.7.9-new/clo
66 66
 +        searchdomains = []
67 67
 +        # Format for systemd
68 68
 +        for (dev, info) in entries.items():
69
++            if 'dns-nameservers' in info:
70
++                nameservers.extend(info['dns-nameservers'])
71
++            if 'dns-search' in info:
72
++                searchdomains.extend(info['dns-search'])
69 73
 +            if dev == 'lo':
70 74
 +                continue
71
-+            net_fn = self.network_conf_dir + str(dev_index) + '-' + dev + '.network'
75
++            net_fn = network_file_name(self.network_conf_dir, dev)
76
++            if not net_fn:
77
++               net_fn = self.network_conf_dir + str(dev_index) + '-' + dev + '.network'
78
++            else:
79
++                net_fn = self.network_conf_dir + net_fn
72 80
 +            dhcp_enabled = 'no'
73 81
 +            if info.get('bootproto') == 'dhcp':
74 82
 +                dhcp_enabled = 'yes'        
... ...
@@ -81,7 +90,7 @@ diff -rupN cloud-init-0.7.9/cloudinit/distros/photon.py cloud-init-0.7.9-new/clo
81 81
 +            if info.get('address'):
82 82
 +                net_cfg['Address'] = "%s" % (info.get('address'))
83 83
 +                if info.get('netmask'):
84
-+                    net_cfg['Address'] += "/%s" % (info.get('netmask'))
84
++                    net_cfg['Address'] += "/%s" % (mask_to_net_prefix(info.get('netmask')))
85 85
 +            if info.get('gateway'):
86 86
 +                net_cfg['Gateway'] = info.get('gateway')
87 87
 +            if info.get('dns-nameservers'):
... ...
@@ -105,11 +114,6 @@ diff -rupN cloud-init-0.7.9/cloudinit/distros/photon.py cloud-init-0.7.9-new/clo
105 105
 +
106 106
 +            if info.get('auto'):
107 107
 +                self._write_interface_file(net_fn, net_cfg, route_entry)
108
-+            if 'dns-nameservers' in info:
109
-+                nameservers.extend(info['dns-nameservers'])
110
-+            if 'dns-search' in info:
111
-+                searchdomains.extend(info['dns-search'])
112
-+            dev_index = dev_index + 1;
113 108
 +
114 109
 +        resolve_data = []
115 110
 +        new_resolve_data = []
... ...
@@ -146,6 +150,8 @@ diff -rupN cloud-init-0.7.9/cloudinit/distros/photon.py cloud-init-0.7.9-new/clo
146 146
 +                content += "Address=%s\n" % (net_cfg['Address'])
147 147
 +            if 'Gateway' in net_cfg:
148 148
 +                content += "Gateway=%s\n" % (net_cfg['Gateway'])
149
++            if 'DHCP' in net_cfg and net_cfg['DHCP'] == 'no':
150
++                content += "DHCP=%s\n" % (net_cfg['DHCP'])
149 151
 +            route_index = 0
150 152
 +            found = True
151 153
 +            if route_entry:
... ...
@@ -322,3 +328,12 @@ diff -rupN cloud-init-0.7.9/cloudinit/distros/photon.py cloud-init-0.7.9-new/clo
322 322
 +        else:
323 323
 +            out_ifaces[dev_name] = route_info
324 324
 +    return out_ifaces
325
++
326
++def network_file_name(dirname, dev_name):
327
++    network_file_pattern = "*"+dev_name+".network*"
328
++    for node in os.listdir(dirname):
329
++        node_fullpath = os.path.join(dirname, node)
330
++        if fnmatch.fnmatch(node, network_file_pattern):
331
++           util.del_file(node_fullpath)
332
++           return node
333
++    return ""
... ...
@@ -1,7 +1,7 @@
1 1
 Summary:        Creates a common metadata repository
2 2
 Name:           createrepo_c
3 3
 Version:        0.11.1
4
-Release:        1%{?dist}
4
+Release:        2%{?dist}
5 5
 License:        GPLv2+
6 6
 Group:          System Environment/Base
7 7
 Vendor:         VMware, Inc.
... ...
@@ -20,6 +20,9 @@ BuildRequires:  rpm-devel
20 20
 BuildRequires:  xz-devel
21 21
 BuildRequires:  sqlite-devel
22 22
 BuildRequires:  python3-devel
23
+%if %{with_check}
24
+Requires:       libxml2
25
+%endif
23 26
 Obsoletes:      createrepo
24 27
 Provides:       createrepo
25 28
 Provides:       /bin/mergerepo
... ...
@@ -74,6 +77,8 @@ ln -sf %{_bindir}/modifyrepo_c %{buildroot}%{_bindir}/modifyrepo
74 74
 %{_lib64dir}/pkgconfig/%{name}.pc
75 75
 
76 76
 %changelog
77
+*   Wed Jun 19 2019 Ankit Jain <ankitja@vmware.com> 0.11.1-2
78
+-   Added libxml2 as Requires for makecheck.
77 79
 *   Tue Sep 04 2018 Keerthana K <keerthanak@vmware.com> 0.11.1-1
78 80
 -   Updated to version 0.11.1.
79 81
 *   Mon Jun 04 2018 Xiaolin Li <xiaolinl@vmware.com> 0.10.0-2
... ...
@@ -1,14 +1,14 @@
1 1
 Summary:        Linux kernel packet control tool
2 2
 Name:           iptables
3
-Version:        1.8.0
4
-Release:        2%{?dist}
3
+Version:        1.8.3
4
+Release:        1%{?dist}
5 5
 License:        GPLv2+
6 6
 URL:            http://www.netfilter.org/projects/iptables
7 7
 Group:          System Environment/Security
8 8
 Vendor:         VMware, Inc.
9 9
 Distribution:   Photon
10 10
 Source0:        http://www.netfilter.org/projects/iptables/files/%{name}-%{version}.tar.bz2
11
-%define sha1    %{name}-%{version}=04924fd00dbaf8189f0777af90f7bdb73ac7e47c
11
+%define sha1    %{name}-%{version}=6df99e90cb4d59032ab2050ebb426fe065249bd3
12 12
 Source1:        iptables.service
13 13
 Source2:        iptables
14 14
 Source3:        iptables.stop
... ...
@@ -95,6 +95,8 @@ rm -rf %{buildroot}/*
95 95
 %{_mandir}/man3/*
96 96
 
97 97
 %changelog
98
+*   Tue Jul 30 2019 Shreyas B. <shreyasb@vmware.com> 1.8.3-1
99
+-   Updated to version 1.8.3
98 100
 *   Tue Feb 26 2019 Alexey Makhalov <amakhalov@vmware.com> 1.8.0-2
99 101
 -   Flush ip6tables on service stop
100 102
 *   Mon Sep 10 2018 Ankit Jain <ankitja@vmware.com> 1.8.0-1
... ...
@@ -2,7 +2,7 @@
2 2
 Summary:        Kernel
3 3
 Name:           linux-aws
4 4
 Version:        4.19.52
5
-Release:        2%{?kat_build:.%kat_build}%{?dist}
5
+Release:        3%{?kat_build:.%kat_build}%{?dist}
6 6
 License:    	GPLv2
7 7
 URL:        	http://www.kernel.org/
8 8
 Group:        	System Environment/Kernel
... ...
@@ -357,6 +357,8 @@ ln -sf %{name}-%{uname_r}.cfg /boot/photon.cfg
357 357
 %endif
358 358
 
359 359
 %changelog
360
+*   Tue Jul 30 2019 Keerthana K <keerthanak@vmware.com> 4.19.52-3
361
+-   Fix postun script.
360 362
 *   Wed Jul 10 2019 Srivatsa S. Bhat (VMware) <srivatsa@csail.mit.edu> 4.19.52-2
361 363
 -   Deprecate linux-aws-tools in favor of linux-tools.
362 364
 *   Mon Jun 17 2019 Srivatsa S. Bhat (VMware) <srivatsa@csail.mit.edu> 4.19.52-1
... ...
@@ -2,7 +2,7 @@
2 2
 Summary:        Kernel
3 3
 Name:           linux-esx
4 4
 Version:        4.19.52
5
-Release:        3%{?dist}
5
+Release:        4%{?dist}
6 6
 License:        GPLv2
7 7
 URL:            http://www.kernel.org/
8 8
 Group:          System Environment/Kernel
... ...
@@ -222,6 +222,8 @@ ln -sf linux-%{uname_r}.cfg /boot/photon.cfg
222 222
 /usr/src/linux-headers-%{uname_r}
223 223
 
224 224
 %changelog
225
+*   Tue Jul 30 2019 Keerthana K <keerthanak@vmware.com> 4.19.52-4
226
+-   Fix postun script.
225 227
 *   Tue Jul 02 2019 Alexey Makhalov <amakhalov@vmware.com> 4.19.52-3
226 228
 -   Fix 9p vsock 16bit port issue.
227 229
 *   Fri Jun 21 2019 Srinidhi Rao <srinidhir@vmware.com> 4.19.52-2
... ...
@@ -2,7 +2,7 @@
2 2
 Summary:        Kernel
3 3
 Name:           linux-secure
4 4
 Version:        4.19.52
5
-Release:        2%{?kat_build:.%kat_build}%{?dist}
5
+Release:        3%{?kat_build:.%kat_build}%{?dist}
6 6
 License:        GPLv2
7 7
 URL:            http://www.kernel.org/
8 8
 Group:          System Environment/Kernel
... ...
@@ -262,6 +262,8 @@ ln -sf linux-%{uname_r}.cfg /boot/photon.cfg
262 262
 /usr/src/linux-headers-%{uname_r}
263 263
 
264 264
 %changelog
265
+*   Tue Jul 30 2019 Keerthana K <keerthanak@vmware.com> 4.19.52-3
266
+-   Fix postun script.
265 267
 *   Tue Jul 02 2019 Alexey Makhalov <amakhalov@vmware.com> 4.19.52-2
266 268
 -   Fix 9p vsock 16bit port issue.
267 269
 *   Mon Jun 17 2019 Srivatsa S. Bhat (VMware) <srivatsa@csail.mit.edu> 4.19.52-1
... ...
@@ -2,7 +2,7 @@
2 2
 Summary:        Kernel
3 3
 Name:           linux
4 4
 Version:        4.19.52
5
-Release:        5%{?kat_build:.%kat_build}%{?dist}
5
+Release:        6%{?kat_build:.%kat_build}%{?dist}
6 6
 License:    	GPLv2
7 7
 URL:        	http://www.kernel.org/
8 8
 Group:        	System Environment/Kernel
... ...
@@ -467,6 +467,8 @@ ln -sf %{name}-%{uname_r}.cfg /boot/photon.cfg
467 467
 %endif
468 468
 
469 469
 %changelog
470
+*   Thu Jul 25 2019 Keerthana K <keerthanak@vmware.com> 4.19.52-6
471
+-   Fix postun scriplet.
470 472
 *   Thu Jul 11 2019 Keerthana K <keerthanak@vmware.com> 4.19.52-5
471 473
 -   Enable kernel configs necessary for BPF Compiler Collection (BCC).
472 474
 *   Wed Jul 10 2019 Srivatsa S. Bhat (VMware) <srivatsa@csail.mit.edu> 4.19.52-4
... ...
@@ -1,9 +1,6 @@
1 1
 %postun
2
-if [ ! -e /boot/photon.cfg ]
2
+if [ ! -e /boot/photon.cfg ];
3 3
 then
4
-     if [ `ls /boot/linux-*.cfg 1> /dev/null 2>&1` ]
5
-     then
6
-          list=`ls -tu /boot/linux-*.cfg | head -n1`
7
-          test -n "$list" && ln -sf "$list" /boot/photon.cfg
8
-     fi
4
+    list=`ls -tu /boot/linux-*.cfg 2>/dev/null | head -n1`
5
+    test -n "$list" && ln -sf "$list" /boot/photon.cfg
9 6
 fi
10 7
new file mode 100644
... ...
@@ -0,0 +1,98 @@
0
+%{!?python2_sitelib: %define python2_sitelib %(python2 -c "from distutils.sysconfig import get_python_lib;print(get_python_lib())")}
1
+%{!?python3_sitelib: %define python3_sitelib %(python3 -c "from distutils.sysconfig import get_python_lib;print(get_python_lib())")}
2
+
3
+Name:           python-deepmerge
4
+Version:        0.0.5
5
+Release:        1%{?dist}
6
+Summary:        Python toolset to deeply merge python dictionaries.
7
+Group:          Development/Libraries
8
+License:        MIT
9
+URL:            https://pypi.org/project/deepmerge
10
+Vendor:         VMware, Inc.
11
+Distribution:   Photon
12
+Source0:        https://pypi.python.org/packages/source/n/deepmerge/deepmerge-%{version}.tar.gz
13
+%define sha1    deepmerge=7479145628eb83eed4ccf8d20e19a56b31fb295c
14
+BuildRequires:  python2-devel
15
+BuildRequires:  python-setuptools
16
+BuildRequires:  python3-devel
17
+BuildRequires:  python3-setuptools
18
+BuildRequires:  python-xml
19
+BuildRequires:  python3-xml
20
+BuildRequires:  curl-devel
21
+Requires:       python2
22
+Requires:       python2-libs
23
+%if %{with_check}
24
+BuildRequires:  python-pytest
25
+BuildRequires:  python3-pytest
26
+BuildRequires:  python3-atomicwrites
27
+BuildRequires:  python3-attrs
28
+BuildRequires:  python3-six
29
+BuildRequires:  python-atomicwrites
30
+BuildRequires:  python-attrs
31
+BuildRequires:  python-six
32
+BuildRequires:  python-requests
33
+BuildRequires:  python3-requests
34
+BuildRequires:  python-pip
35
+BuildRequires:  python3-pip
36
+%endif
37
+BuildArch:      noarch
38
+
39
+%description
40
+A tools to handle merging of nested data structures in python.
41
+
42
+%package -n python3-deepmerge
43
+Summary:        Python toolset to deeply merge python dictionaries.
44
+Requires:       python3
45
+Requires:       python3-libs
46
+
47
+%description -n python3-deepmerge
48
+A tools to handle merging of nested data structures in python.
49
+
50
+%prep
51
+%setup -q -n deepmerge-%{version}
52
+rm -rf ../p3dir
53
+cp -a . ../p3dir
54
+
55
+%build
56
+python2 setup.py build
57
+pushd ../p3dir
58
+python3 setup.py build
59
+popd
60
+
61
+%install
62
+python2 setup.py install --prefix=%{_prefix} --root=%{buildroot}
63
+pushd ../p3dir
64
+python3 setup.py install --prefix=%{_prefix} --root=%{buildroot}
65
+popd
66
+
67
+%check
68
+pushd deepmerge/tests/
69
+pip install pluggy
70
+pip install more-itertools
71
+pip install funcsigs
72
+pytest2
73
+popd
74
+pushd ../p3dir/deepmerge/tests/
75
+pip3 install pluggy
76
+pip3 install more-itertools
77
+pip3 install funcsigs
78
+pytest3
79
+popd
80
+
81
+%clean
82
+rm -rf %{buildroot}/*
83
+
84
+
85
+%files
86
+%defattr(-,root,root)
87
+%doc README.rst
88
+%{python2_sitelib}/*
89
+
90
+%files -n python3-deepmerge
91
+%defattr(-,root,root)
92
+%doc README.rst
93
+%{python3_sitelib}/*
94
+
95
+%changelog
96
+*  Wed Jul 23 2019 Tapas Kundu <tkundu@vmware.com> 0.0.5-1
97
+-  Initial packaging for photon OS
... ...
@@ -1,11 +1,11 @@
1 1
 Summary:        lightweight java application to send metrics to.
2 2
 Name:           wavefront-proxy
3
-Version:        4.32
4
-Release:        2%{?dist}
3
+Version:        4.39
4
+Release:        1%{?dist}
5 5
 License:        Apache 2.0
6 6
 URL:            https://github.com/wavefrontHQ/java
7 7
 Source0:        https://github.com/wavefrontHQ/java/archive/wavefront-%{version}.tar.gz
8
-%define sha1    wavefront=216c16125c6308debcffc1d6bd3969b9ea5013eb
8
+%define sha1    wavefront=de9bd09c3311176cac2183ec031fd39b52a44c56
9 9
 Group:          Development/Tools
10 10
 Vendor:         VMware, Inc.
11 11
 Distribution:   Photon
... ...
@@ -45,7 +45,11 @@ sed -i 's/\/etc\/init.d\/$APP_BASE-proxy restart/ systemctl restart $APP_BASE-pr
45 45
 sed -i 's/-jar \/opt\/wavefront\/wavefront-proxy\/bin\/wavefront-push-agent.jar/-jar \/opt\/wavefront-push-agent.jar/' proxy/docker/run.sh
46 46
 
47 47
 %build
48
+%if "%{_arch}" == "aarch64"
48 49
 mvn install -DskipTests
50
+%else
51
+mvn install
52
+%endif
49 53
 
50 54
 %install
51 55
 install -m 755 -D pkg/opt/wavefront/wavefront-proxy/bin/autoconf-wavefront-proxy.sh %{buildroot}/opt/wavefront/%{name}/bin/autoconf-wavefront-proxy.sh
... ...
@@ -104,6 +108,8 @@ rm -rf %{buildroot}/*
104 104
 %{_unitdir}/wavefront-proxy.service
105 105
 
106 106
 %changelog
107
+* Mon Jul 29 2019 Shreyas B. <shreyasb@vmware.com> 4.39-1
108
+- Updated to 4.39
107 109
 * Wed Jul 10 2019 Alexey Makhalov <amakhalov@vmware.com> 4.32-2
108 110
 - Skip tests during make install.
109 111
 * Thu Dec 06 2018 Ankit Jain <ankitja@vmware.com> 4.32-1
... ...
@@ -240,7 +240,8 @@ class PackageUtils(object):
240 240
 
241 241
         if constants.rpmCheck and package in constants.testForceRPMS:
242 242
             self.logger.debug("#" * (68 + 2 * len(package)))
243
-            if not SPECS.getData().isCheckAvailable(package, version):
243
+            if (not SPECS.getData().isCheckAvailable(package, version)) or \
244
+                    (package in constants.listMakeCheckPkgToSkip):
244 245
                 self.logger.info("####### " + package +
245 246
                                  " MakeCheck is not available. Skipping MakeCheck TEST for " +
246 247
                                  package + " #######")
... ...
@@ -264,7 +265,8 @@ class PackageUtils(object):
264 264
         returnVal = sandbox.run(rpmBuildcmd, logfile = logFile)
265 265
 
266 266
         if constants.rpmCheck and package in constants.testForceRPMS:
267
-            if not SPECS.getData().isCheckAvailable(package, version):
267
+            if (not SPECS.getData().isCheckAvailable(package, version)) or \
268
+                    (package in constants.listMakeCheckPkgToSkip):
268 269
                 constants.testLogger.info(package + " : N/A")
269 270
             elif returnVal == 0:
270 271
                 constants.testLogger.info(package + " : PASS")
... ...
@@ -287,6 +287,15 @@ class constants(object):
287 287
         "glibc",
288 288
         "tar"]
289 289
 
290
+    # List of Packages which causes "Makecheck" job
291
+    # to stuck indefinately or getting failed.
292
+    # Until these pkgs %check is fixed, these pkgs will be
293
+    # skip to run makecheck.
294
+    listMakeCheckPkgToSkip = [
295
+        "gtk-doc",
296
+        "libmspack",
297
+        "socat"]
298
+
290 299
     # .spec file might contain lines such as
291 300
     # Requires(post):/sbin/useradd
292 301
     # Build system should interpret it as