Accepting request 1143519 from home:tinita:branches:Base:System

- Change YAML::XS::LibYAML to YAML::XS as this is the module to be used

The documented usage is `use YAML::XS 'Load'`.

I also searched the pcp code and that is what they are using: https://github.com/search?q=repo%3Aperformancecopilot%2Fpcp%20YAML%3A%3AXS&type=code

Using YAML::XS::LibYAML::Load() even coredumps here.
So I think it would be better to require the official module here.

It might also need an upstream fix. I'll try to make a PR to the git repo.

OBS-URL: https://build.opensuse.org/request/show/1143519
OBS-URL: https://build.opensuse.org/package/show/Base:System/pcp?expand=0&rev=129
This commit is contained in:
Martin Schreiner 2024-02-09 16:53:18 +00:00 committed by Git OBS Bridge
parent 6ad5d512a1
commit bfa334ff02
2 changed files with 72 additions and 2 deletions

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Thu Feb 1 22:51:16 UTC 2024 - Tina Müller <tina.mueller@suse.com>
- Change YAML::XS::LibYAML to YAML::XS as this is the module to be used
-------------------------------------------------------------------
Thu Dec 14 10:36:41 CET 2023 - mls@suse.de

View File

@ -1,7 +1,7 @@
#
# spec file for package pcp
#
# Copyright (c) 2023 SUSE LLC
# Copyright (c) 2024 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@ -541,6 +541,7 @@ applications to easily retrieve and process any subset of that data.
#
# pcp-conf
#
@ -561,6 +562,7 @@ Performance Co-Pilot (PCP) run-time configuration
#
# pcp-libs
#
@ -652,6 +654,7 @@ Performance Co-Pilot (PCP) headers for development.
#
# pcp-devel
#
@ -676,6 +679,7 @@ Performance Co-Pilot (PCP) documentation and tools for development.
#
# pcp-testsuite
#
@ -705,6 +709,7 @@ Quality assurance test suite for Performance Co-Pilot (PCP).
#
# perl-PCP-PMDA. This is the PCP agent perl binding.
#
@ -731,6 +736,7 @@ an application, etc.
#
# perl-PCP-MMV
#
@ -758,6 +764,7 @@ and analysis with pmchart, pmie, pmlogger and other PCP tools.
#
# perl-PCP-LogImport
#
@ -782,6 +789,7 @@ they can be replayed with standard PCP monitoring tools.
#
# perl-PCP-LogSummary
#
@ -809,6 +817,7 @@ exporting this data into third-party tools (e.g. spreadsheets).
#
# pcp-import-sar2pcp
#
@ -833,6 +842,7 @@ into standard PCP archive logs for replay with any PCP monitoring tool.
#
# pcp-import-iostat2pcp
#
@ -895,6 +905,7 @@ into standard PCP archive logs for replay with any PCP monitoring tool.
#
# pcp-import-ganglia2pcp
#
@ -918,6 +929,7 @@ into standard PCP archive logs for replay with any PCP monitoring tool.
#
# pcp-import-collectl2pcp
#
@ -980,6 +992,7 @@ See https://www.elastic.co/community for further details.
#
# pcp-export-pcp2graphite
#
@ -1003,6 +1016,7 @@ to graphite (http://graphite.readthedocs.org).
# pcp-export-pcp2influxdb
#
%package export-pcp2influxdb
@ -1027,6 +1041,7 @@ to InfluxDB (https://influxdata.com/time-series-platform/influxdb).
#
# pcp-export-pcp2json
#
@ -1048,6 +1063,7 @@ in JSON format.
#
# pcp-export-pcp2spark
#
@ -1104,6 +1120,7 @@ in XML format.
#
# pcp-export-pcp2zabbix
#
@ -1209,6 +1226,7 @@ collecting metrics about the ActiveMQ message broker.
#
# pcp-pmda-bind2
#
@ -1233,6 +1251,7 @@ collecting metrics from BIND (Berkeley Internet Name Domain).
#
# pcp-pmda-redis
#
@ -1259,7 +1278,7 @@ Group: %{pcp_gr}
URL: https://pcp.io
Requires: perl-PCP-PMDA = %{version}-%{release}
Requires: perl(JSON)
Requires: perl(YAML::XS::LibYAML)
Requires: perl(YAML::XS)
%description pmda-nutcracker
This package contains the PCP Performance Metrics Domain Agent (PMDA) for
@ -1289,6 +1308,7 @@ collecting metrics about bonded network interfaces.
#
# pcp-pmda-dbping
#
@ -1311,6 +1331,7 @@ collecting metrics about the Database response times and Availablility.
#
# pcp-pmda-ds389
#
@ -1337,6 +1358,7 @@ collecting metrics about a 389 Directory Server.
#
# pcp-pmda-ds389log
#
@ -1359,6 +1381,7 @@ collecting metrics from a 389 Directory Server log.
#
# pcp-pmda-gpfs
#
@ -1380,6 +1403,7 @@ collecting metrics about the GPFS filesystem.
#
# pcp-pmda-gpsd
#
@ -1402,6 +1426,7 @@ collecting metrics about a GPS Daemon.
#
# pcp-pmda-docker
#
@ -1422,6 +1447,7 @@ collecting metrics using the Docker daemon REST API.
#
# pcp-pmda-lustre
#
@ -1443,6 +1469,7 @@ collecting metrics about the Lustre Filesystem.
#
# pcp-pmda-lustrecomm
#
@ -1468,6 +1495,7 @@ collecting metrics about the Lustre Filesystem Comms.
#
# pcp-pmda-memcache
#
@ -1490,6 +1518,7 @@ collecting metrics about Memcached.
#
# pcp-pmda-mysql
#
@ -1516,6 +1545,7 @@ collecting metrics about the MySQL database.
#
# pcp-pmda-named
#
@ -1538,6 +1568,7 @@ collecting metrics about the Named nameserver.
# pcp-pmda-netfilter
#
%package pmda-netfilter
@ -1559,6 +1590,7 @@ collecting metrics about the Netfilter packet filtering framework.
#
# pcp-pmda-news
#
@ -1581,6 +1613,7 @@ collecting metrics about Usenet News.
#
# pcp-pmda-nginx
#
@ -1604,6 +1637,7 @@ collecting metrics about the Nginx Webserver.
#
# pcp-pmda-oracle
#
@ -1627,6 +1661,7 @@ collecting metrics about the Oracle database.
#
# pcp-pmda-pdns
#
@ -1649,6 +1684,7 @@ collecting metrics about the PowerDNS.
#
# pcp-pmda-postfix
#
@ -1683,6 +1719,7 @@ collecting metrics about the Postfix (MTA).
#
# pcp-pmda-rsyslog
#
@ -1705,6 +1742,7 @@ collecting metrics about Rsyslog.
#
# pcp-pmda-samba
#
@ -1727,6 +1765,7 @@ collecting metrics about Samba.
#
# pcp-pmda-slurm
#
@ -1786,6 +1825,7 @@ collecting metrics for VMware.
#
# pcp-pmda-zimbra
#
@ -1808,6 +1848,7 @@ collecting metrics about Zimbra.
#
# pcp-pmda-dm
#
@ -1847,6 +1888,7 @@ collecting metrics about the gluster filesystem.
#
# pcp-pmda-nfsclient
#
@ -1902,6 +1944,7 @@ collecting metrics about compressed swap.
#
# pcp-pmda-unbound
#
@ -1923,6 +1966,7 @@ collecting metrics about the Unbound DNS Resolver.
#
# pcp-pmda-mic
#
@ -1944,6 +1988,7 @@ collecting metrics about Intel MIC cards.
#
# pcp-pmda-haproxy
#
@ -2007,6 +2052,7 @@ collecting metrics about Elasticsearch.
#
# pcp-pmda-openvswitch
#
@ -2028,6 +2074,7 @@ collecting metrics from Open vSwitch.
#
# pcp-pmda-rabbitmq
#
@ -2095,6 +2142,7 @@ extracting metrics from OpenMetrics (https://openmetrics.io/) endpoints.
#
# pcp-pmda-lmsensors
#
@ -2119,6 +2167,7 @@ collecting metrics about the Linux hardware monitoring sensors.
#
# pcp-pmda-netcheck
#
@ -2205,6 +2254,7 @@ collecting metrics about the Apache webserver.
#
# pcp-pmda-bash
#
@ -2229,6 +2279,7 @@ collecting metrics about the Bash shell.
#
# pcp-pmda-cifs
#
@ -2252,6 +2303,7 @@ collecting metrics about the Common Internet Filesytem.
#
# pcp-pmda-cisco
#
@ -2276,6 +2328,7 @@ collecting metrics about Cisco routers.
#
# pcp-pmda-gfs2
#
@ -2299,6 +2352,7 @@ collecting metrics about the Global Filesystem v2.
#
# pcp-pmda-logger
#
@ -2324,6 +2378,7 @@ supports both sampled and event-style metrics.
#
# pcp-pmda-mailq
#
@ -2348,6 +2403,7 @@ collecting metrics about email queues managed by sendmail.
#
# pcp-pmda-mounts
#
@ -2372,6 +2428,7 @@ collecting metrics about filesystem mounts.
#
# pcp-pmda-nvidia-gpu
#
@ -2395,6 +2452,7 @@ collecting metrics about Nvidia GPUs.
#
# pcp-pmda-roomtemp
#
@ -2459,6 +2517,7 @@ collecting metrics about Sendmail traffic.
#
# pcp-pmda-shping
#
@ -2484,6 +2543,7 @@ arbitrary shell commands.
#
# pcp-pmda-smart
#
@ -2506,6 +2566,7 @@ smartmontools package.
#
# pcp-pmda-sockets
#
@ -2528,6 +2589,7 @@ collecting per-socket statistics, making use of utilities such as 'ss'.
#
# pcp-pmda-hacluster
#
@ -2549,6 +2611,7 @@ collecting metrics about linux High Availability (HA) Clusters.
#
# pcp-pmda-summary
#
@ -2611,6 +2674,7 @@ collecting metrics about trace performance data in applications.
#
# pcp-pmda-weblog
#
@ -2635,6 +2699,7 @@ collecting metrics about web server logs.
# end pcp-pmda-weblog
# end C pmdas