Skip to content

Commit 944f44c

Browse files
committed
Merge branch 'main' of github.com:performancecopilot/pcp
2 parents f0a870f + 37e0179 commit 944f44c

File tree

12 files changed

+162
-14
lines changed

12 files changed

+162
-14
lines changed

configure

+9-2
Original file line numberDiff line numberDiff line change
@@ -3240,6 +3240,7 @@ fi
32403240

32413241

32423242

3243+
gcc_debug=true
32433244
target_distro=$target_os
32443245
if test $target_os = linux
32453246
then
@@ -3355,6 +3356,10 @@ $as_echo "#define IS_OPENBSD 1" >>confdefs.h
33553356
export CFLAGS="-fPIC -fno-strict-aliasing -D_GNU_SOURCE"
33563357
pcp_platform_paths='/usr/local/bin'
33573358
pcp_ps_all_flags=auxww
3359+
if test "$target_cpu" = "i386" -a "$host_os" = "openbsd6.8"
3360+
then
3361+
gcc_debug=false
3362+
fi
33583363
else
33593364
echo
33603365
echo "FATAL ERROR: need platform-specific customization for \"$target_os\""
@@ -3366,9 +3371,11 @@ fi
33663371

33673372
if test "$use_optimization" = no
33683373
then
3369-
optimization="-O0 -g"
3374+
optimization="-O0"
3375+
$gcc_debug && optimization="$optimization -g"
33703376
else
3371-
optimization="-O2 -g"
3377+
optimization="-O2"
3378+
$gcc_debug && optimization="$optimization -g"
33723379
fi
33733380

33743381

configure.ac

+11-3
Original file line numberDiff line numberDiff line change
@@ -277,6 +277,7 @@ AC_SUBST(cross_compiling)
277277
dnl CFLAGS setting is a co-dependency between here and PCFLAGS in
278278
dnl src/include/builddefs.in ... need to be the same in both places
279279

280+
gcc_debug=true
280281
target_distro=$target_os
281282
if test $target_os = linux
282283
then
@@ -376,6 +377,11 @@ then
376377
export CFLAGS="-fPIC -fno-strict-aliasing -D_GNU_SOURCE"
377378
pcp_platform_paths='/usr/local/bin'
378379
pcp_ps_all_flags=auxww
380+
if test "$target_cpu" = "i386" -a "$host_os" = "openbsd6.8"
381+
then
382+
dnl build with -g are broken here due to a gcc bug
383+
gcc_debug=false
384+
fi
379385
else
380386
echo
381387
echo "FATAL ERROR: need platform-specific customization for \"$target_os\""
@@ -385,12 +391,14 @@ fi
385391
AC_SUBST(pcp_platform_paths)
386392
AC_SUBST(pcp_ps_all_flags)
387393

388-
dnl default C and C++ compiler optimization to -O2 -g
394+
dnl default C and C++ compiler optimization to -O2 -g (latter depends on $gcc_debug)
389395
if test "$use_optimization" = no
390396
then
391-
optimization="-O0 -g"
397+
optimization="-O0"
398+
$gcc_debug && optimization="$optimization -g"
392399
else
393-
optimization="-O2 -g"
400+
optimization="-O2"
401+
$gcc_debug && optimization="$optimization -g"
394402
fi
395403
AC_SUBST(optimization)
396404

qa/364

+2
Original file line numberDiff line numberDiff line change
@@ -174,6 +174,8 @@ _filter_openbsd()
174174
-e '/^disk\.all\.blkread .* Unknown metric name/d' \
175175
-e '/^disk\.all\.blkwrite .* Unknown metric name/d' \
176176
-e '/^disk\.dev\.avactive .* Unknown metric name/d' \
177+
-e '/^disk\.dev\.aveq .* Unknown metric name/d' \
178+
-e '/^disk\.dev\.total_rawactive .* Unknown metric name/d' \
177179
-e '/^disk\.partitions\..* Unknown metric name/d' \
178180
-e '/^filesys.* Unknown metric name/d' \
179181
-e '/^hinv\.cpu\.clock .* Unknown metric name/d' \

qa/699.out

+3-3
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ sample.seconds
1111
Semantics: counter Units: sec
1212
--- pmlogrewrite, expect failure ---
1313
__pmLogNewFile: "TMP.out.index" already exists, not over-written
14-
pmlogrewrite: Error: __pmLogCreate(TMP.out,v2): File exists
14+
pmlogrewrite: Error: __pmLogCreate(TMP.out): File exists
1515
--- check archives after ---
1616

1717
sample.seconds
@@ -25,7 +25,7 @@ sample.seconds
2525
=== removed output archive .meta file ===
2626
--- pmlogrewrite, expect failure ---
2727
__pmLogNewFile: "TMP.out.index" already exists, not over-written
28-
pmlogrewrite: Error: __pmLogCreate(TMP.out,v2): File exists
28+
pmlogrewrite: Error: __pmLogCreate(TMP.out): File exists
2929
--- check archives after ---
3030

3131
sample.seconds
@@ -41,7 +41,7 @@ TMP.out.2: no change
4141
=== removed output archive .index file ===
4242
--- pmlogrewrite, expect failure ---
4343
__pmLogNewFile: "TMP.out.0" already exists, not over-written
44-
pmlogrewrite: Error: __pmLogCreate(TMP.out,v2): File exists
44+
pmlogrewrite: Error: __pmLogCreate(TMP.out): File exists
4545
--- check archives after ---
4646

4747
sample.seconds

qa/README.vm

+2-2
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ Debian
3737

3838
Ubuntu
3939
https://wiki.ubuntu.com/Releases
40+
13 Sep 2021: 20.04 LTS (Focal), 18.04 (Bionic) 16.04 LTS (Xenial), 14.04 LTS (Trusty)
4041
04 Jun 2018: 18.04 (Bionic) 17.10 (Artful), 16.04 LTS (Xenial),
4142
14.04.3 LTS (Trusty),
4243
# which packages are installed
@@ -371,9 +372,8 @@ OpenIndiana
371372

372373
OpenBSD
373374
https://en.wikipedia.org/wiki/OpenBSD_version_history
374-
26 Oct 2018: 6.2, 6.3, 6.4
375-
24 Oct 2019: 6.4, 6.5, 6.6
376375
24 Aug 2020: 6.6, 6.7
376+
13 Sep 2021: 6.8, 6.9
377377
# package search recipe (name only, not info or description)
378378
$ pkg_info -Q <pattern>
379379
# which package installs a file/directory

qa/admin/other-packages/manifest

+1-1
Original file line numberDiff line numberDiff line change
@@ -1623,7 +1623,7 @@ rpm? /usr/lib*/dri/swrast_dri.so [mesa-dri-drivers (QA optional)]
16231623
urpmi? swrast_dri.so [? (QA optional)]
16241624
emerge? swrast_dri.so [? (QA optional)]
16251625
pkgin? swrast_dri.so [? (QA optional)]
1626-
pkg_add? swrast_dri.so [? (QA optional)]
1626+
pkg_add? swrast_dri.so [base OpenBSD install (QA optional)]
16271627
F_pkg? swrast_dri.so [? (QA optional)]
16281628
S_pkg? swrast_dri.so [? (QA optional)]
16291629
slackpkg? swrast_dri.so [? (QA optional)]

qa/admin/package-lists/OpenBSD+6.7+amd64

+1
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ curl
1313
cyrus-sasl
1414
gawk
1515
git
16+
gdiff
1617
gmake
1718
gtar
1819
icu4c
+59
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,59 @@
1+
# PCP required package list for OpenBSD 6.8 i386
2+
# created by kenj on vm33.localdomain Tue Sep 14 07:02:39 AEST 2021
3+
#
4+
LWP::UserAgent cpan
5+
Spreadsheet::Read cpan
6+
Spreadsheet::ReadSXC cpan
7+
Spreadsheet::XLSX cpan
8+
XML::TokeParser cpan
9+
autoconf
10+
avahi
11+
bash
12+
bison
13+
cppcheck
14+
curl
15+
cyrus-sasl
16+
gawk
17+
gdb
18+
gdiff
19+
git
20+
gmake
21+
gtar
22+
icu4c
23+
libmad
24+
libuv
25+
mariadb-client
26+
memcached
27+
metaauto
28+
nmap
29+
nspr
30+
nss
31+
p5-DBD-mysql
32+
p5-File-Slurp
33+
p5-JSON
34+
p5-List-MoreUtils
35+
p5-Net-SNMP
36+
p5-Spreadsheet-WriteExcel
37+
p5-Text-CSV_XS
38+
p5-Time-TimeDate
39+
p5-XML-LibXML
40+
p5-YAML-XS
41+
p5-libwww
42+
pkglocatedb
43+
postgresql-client
44+
pstree
45+
py-six
46+
py3-Pillow
47+
py3-defusedxml
48+
py3-elasticsearch
49+
py3-requests
50+
py3-setuptools
51+
py3-six
52+
python
53+
readline
54+
rrdtool
55+
socat
56+
smartmontools
57+
sqlite3
58+
xz
59+
zabbix-agent
+59
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,59 @@
1+
# PCP required package list for OpenBSD 6.9 amd64
2+
# created by kenj on vm37.localdomain Wed Sep 15 06:49:54 AEST 2021
3+
#
4+
LWP::UserAgent cpan
5+
Spreadsheet::Read cpan
6+
Spreadsheet::XLSX cpan
7+
autoconf
8+
avahi
9+
bash
10+
bison
11+
cppcheck
12+
curl
13+
cyrus-sasl
14+
gawk
15+
gdb
16+
gdiff
17+
git
18+
gmake
19+
gtar
20+
icu4c
21+
libmad
22+
libuv
23+
mariadb-client
24+
memcached
25+
metaauto
26+
nmap
27+
nspr
28+
nss
29+
p5-DBD-mysql
30+
p5-File-Slurp
31+
p5-JSON
32+
p5-List-MoreUtils
33+
p5-Net-SNMP
34+
p5-Spreadsheet-WriteExcel
35+
p5-Text-CSV_XS
36+
p5-Time-TimeDate
37+
p5-XML-LibXML
38+
p5-YAML-XS
39+
p5-libwww
40+
pkglocatedb
41+
postgresql-client
42+
pstree
43+
py-six
44+
py3-defusedxml
45+
py3-elasticsearch
46+
py3-openpyxl
47+
py3-requests
48+
py3-setuptools
49+
py3-six
50+
py3-Pillow
51+
python
52+
readline
53+
rrdtool
54+
smartmontools
55+
socat
56+
sqlite3
57+
valgrind
58+
xz
59+
zabbix-agent

qa/qt/setup-executables

+12
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,18 @@ else
1616
. "$PCP_DIR"/etc/pcp.env
1717
fi
1818

19+
# Don't bother if we're not building libraries that depend on Qt
20+
#
21+
if [ -f ../../src/include/builddefs ]
22+
then
23+
eval `sed -n -e '/^ENABLE_QT[ ]*=/s/[ ]//gp' ../../src/include/builddefs`
24+
[ "$ENABLE_QT" = false ] && exit 0
25+
elif [ -f $PCP_INC_DIR/builddefs ]
26+
then
27+
eval `sed -n -e '/^ENABLE_QT[ ]*=/s/[ ]//gp' $PCP_INC_DIR/builddefs`
28+
[ "$ENABLE_QT" = false ] && exit 0
29+
fi
30+
1931
builddir=''
2032
for builddir in ../../build/deb/pcp-$PCP_VERSION/qa/qt $PCP_VAR_DIR/testsuite/qt ''
2133
do

src/libpcp/src/check-statics

+1-1
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ in
6969
fi
7070
;;
7171

72-
freebsd|netbsd|openbsd|solaris)
72+
freebsd|netbsd|solaris)
7373
;;
7474
*)
7575
echo "Warning: check-statics skipped for PCP_PLATFORM=$PCP_PLATFORM"

src/libpcp/src/fetchgroup.c

+2-2
Original file line numberDiff line numberDiff line change
@@ -497,13 +497,13 @@ __pmStuffDoubleValue(double val, pmAtomValue *oval, int otype)
497497
oval->ul = val;
498498
break;
499499
case PM_TYPE_64:
500-
if (val > LLONG_MAX || val < LLONG_MIN)
500+
if ((long long)val > LLONG_MAX || (long long)val < LLONG_MIN)
501501
sts = PM_ERR_TRUNC;
502502
else
503503
oval->ll = val;
504504
break;
505505
case PM_TYPE_U64:
506-
if (val > ULLONG_MAX)
506+
if ((long long)val > ULLONG_MAX)
507507
sts = PM_ERR_TRUNC;
508508
else if (val < 0.0)
509509
sts = PM_ERR_SIGN;

0 commit comments

Comments
 (0)