Skip to content

Commit 7af2781

Browse files
authored
Merge pull request #23 from Tripwire/dev/2435
Open Source Tripwire 2.4.3.5
2 parents 38f089f + 65e0a0d commit 7af2781

File tree

167 files changed

+1697
-2450
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

167 files changed

+1697
-2450
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ src/tripwire/tripwire
1212
src/twadmin/twadmin
1313
src/twprint/twprint
1414
src/twtest/twtest
15+
src/test-harness/twtest
1516
**/Makefile
1617
**/*.o
1718
**/*.dylib

ChangeLog

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,11 @@
1+
2017-03-30 Brian Cox <bcox@tripwire.com>
2+
* Bump version to 2.4.3.5
3+
* Fix ‘install-strip’, ‘check’, ‘uninstall’, and ‘distcheck’ make targets.
4+
* Fix GCC 7.0.x warnings; use std::unique_ptr instead of deprecated std::auto_ptr where available.
5+
* Add ‘--disable-extrawarnings’ configure option, for old compilers that don’t support the ’-Wextra’ compile option.
6+
* Clean up unit tests & enable disabled tests.
7+
* Address more static analyzer warnings, including from CppCheck & Flawfinder
8+
19
2017-03-05 Brian Cox <bcox@tripwire.com>
210
* Bump version to 2.4.3.4
311
* Fix issue with printing level 2 reports, introduced by fixing a Clang static analyzer quibble in 2.4.3.3. Sigh.

Makefile.am

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,13 @@ install-data-hook:
66
export INSTALL_STRIP_FLAG
77
prefix="$(prefix)" sysconfdir="$(sysconfdir)" \
88
path_to_vi="$(path_to_vi)" path_to_sendmail="$(path_to_sendmail)" \
9-
./installer/install.sh
9+
$(top_srcdir)/installer/install.sh
10+
11+
uninstall-hook:
12+
rm -f ${prefix}/sbin/tripwire $(prefix)/sbin/twadmin $(prefix)/sbin/twprint $(prefix)/sbin/siggen
13+
rm -Rf $(prefix)/doc
14+
15+
check:
16+
rm -Rf $(top_srcdir)/src/test-harness/twtest
17+
cd $(top_srcdir)/src/test-harness && perl ./twtest.pl
18+
$(top_srcdir)/bin/twtest all

Makefile.in

Lines changed: 14 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -774,9 +774,10 @@ ps: ps-recursive
774774
ps-am:
775775

776776
uninstall-am:
777-
777+
@$(NORMAL_INSTALL)
778+
$(MAKE) $(AM_MAKEFLAGS) uninstall-hook
778779
.MAKE: $(am__recursive_targets) all install-am install-data-am \
779-
install-strip
780+
install-strip uninstall-am
780781

781782
.PHONY: $(am__recursive_targets) CTAGS GTAGS TAGS all all-am \
782783
am--refresh check check-am clean clean-cscope clean-generic \
@@ -792,7 +793,7 @@ uninstall-am:
792793
install-strip installcheck installcheck-am installdirs \
793794
installdirs-am maintainer-clean maintainer-clean-generic \
794795
mostlyclean mostlyclean-generic pdf pdf-am ps ps-am tags \
795-
tags-am uninstall uninstall-am
796+
tags-am uninstall uninstall-am uninstall-hook
796797

797798
.PRECIOUS: Makefile
798799

@@ -801,7 +802,16 @@ install-data-hook:
801802
export INSTALL_STRIP_FLAG
802803
prefix="$(prefix)" sysconfdir="$(sysconfdir)" \
803804
path_to_vi="$(path_to_vi)" path_to_sendmail="$(path_to_sendmail)" \
804-
./installer/install.sh
805+
$(top_srcdir)/installer/install.sh
806+
807+
uninstall-hook:
808+
rm -f ${prefix}/sbin/tripwire $(prefix)/sbin/twadmin $(prefix)/sbin/twprint $(prefix)/sbin/siggen
809+
rm -Rf $(prefix)/doc
810+
811+
check:
812+
rm -Rf $(top_srcdir)/src/test-harness/twtest
813+
cd $(top_srcdir)/src/test-harness && perl ./twtest.pl
814+
$(top_srcdir)/bin/twtest all
805815

806816
# Tell versions [3.59,3.63) of GNU make to not export all variables.
807817
# Otherwise a system limit (for SysV at least) may be exceeded.

ReadMe-2.4.3

Lines changed: 25 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,14 @@
1-
What's new in Open Source Tripwire 2.4.3.2:
1+
What's new in Open Source Tripwire 2.4.3.x:
2+
3+
* Useful ‘install-strip’, ‘check’, ‘uninstall’ & ‘distcheck’ make targets as of OST 2.4.3.5. Check target invokes both the test-harness framework and twtest unit tests.
4+
5+
* Verify OST builds without errors w/ GCC 7.0.x; fix new warnings from the new compiler, including deprecation warnings; use std::unique_ptr instead of std::auto_ptr where available.
6+
7+
* Add ‘--disable-extrawarnings’ configure option, for old compilers that don’t support the ’-Wextra’ compile option.
8+
9+
* Clean up unit tests, enable various disabled tests, make results more useful.
10+
11+
* Additional cleanup due to static analysis tool results (CppCheck, Flawfinder, Clang analyzer).
212

313
* OST now includes optional iconv support when configured with --enable-iconv.
414
When enabled, binary database & report files store paths as UTF-16, making these files more
@@ -29,11 +39,6 @@ specifying a build directory outside the source dir now works as expected.
2939
* Assorted platform tweaks: Add DOS/FreeDOS + DJGPP as a new platform; support Cygwin
3040
//host/share/path syntax for UNC paths; passphrase & tempfile fixes for AROS.
3141

32-
33-
======================================
34-
35-
What was new in earlier 2.4.3 versions:
36-
3742
* This update fixes compilation errors on modern compilers (GCC 4.7+ and LLVM/clang),
3843
as well as some additional errors encountered on various platforms. This is intended
3944
to supersede patches against 2.4.2.x, e.g. http://www.linuxfromscratch.org/blfs/view/svn/postlfs/tripwire.html
@@ -66,15 +71,22 @@ defined incorrectly otherwise.
6671
The update has been tested on a variety of platforms:
6772

6873
Linuxes
69-
- CentOS 7 (amd64) + gcc 4.8.5
70-
- Ubuntu 14.0.4 (amd64) + gcc 4.x
71-
- RHEL 3.4 (Itanium) + gcc 3.4.3
7274
- Alpine Linux 3.3.3 + gcc 5.3.0
73-
- Android 6.0 (arm) + gcc 4.9
75+
- Alpine Linux 3.5.1 + gcc 6.2.1
76+
- Arch Linux 232 + gcc 6.3.1
77+
- Amazon Linux AMI 2016.09 + gcc 4.8.3
78+
- Android 6.0 (arm) + gcc 4.9 (NDK)
79+
- CentOS 7 (amd64) + gcc 4.8.5
80+
- Fedora 24 Alpha 7 (amd64) + gcc 6.0.0
81+
- Fedora 27 Rawhide (amd64) + gcc 7.0.1
7482
- Raspbian 7 (wheezy) (armv6l) + gcc 4.6.3
75-
- openSuSE Tumbleweed (20160408) (i586) + gcc 5.3.1
83+
- RHEL 3.4 (Itanium) + gcc 3.4.3
7684
- RHEL 6.0 (powerpc64) + gcc 4.4.4
77-
- Fedora 24 Alpha 7 (amd64) + gcc 6.0.0
85+
- openSuSE Tumbleweed (20160408) (i586) + gcc 5.3.1
86+
- Oracle Linux 6.8 + gcc 4.4.7
87+
- Ubuntu 14.0.4 (amd64) + gcc 4.x
88+
- Ubuntu 16.0.4 (amd64) + gcc 5.4.0
89+
- Wind River Pulsar Linux 8 + gcc 5.2.0
7890

7991
OSX
8092
- Mac OS X 10.11 + LLVM 7.0.2 / clang-700.1.81
@@ -90,7 +102,7 @@ BSDs
90102
UNIXes
91103
- Solaris 10 SPARC + gcc 3.4.6
92104
- Solaris 10 x86 + gcc 3.4.3
93-
- OpenIndiana 151 + gcc 4.8.5 [an OpenSolaris/illumos distro]
105+
- OpenIndiana 151 + gcc 4.8.5
94106
- AIX 5.2 + gcc 4.3.1
95107
- HP-UX 11.23 + gcc 4.2.3
96108

configure

Lines changed: 28 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#! /bin/sh
2-
# From configure.ac Revision: 2.4.3.4 .
2+
# From configure.ac Revision: 2.4.3.5 .
33
# Guess values for system-dependent variables and create Makefiles.
4-
# Generated by GNU Autoconf 2.69 for tripwire 2.4.3.4.
4+
# Generated by GNU Autoconf 2.69 for tripwire 2.4.3.5.
55
#
66
# Report bugs to <https://github.com/Tripwire/tripwire-open-source/issues>.
77
#
@@ -584,8 +584,8 @@ MAKEFLAGS=
584584
# Identity of this package.
585585
PACKAGE_NAME='tripwire'
586586
PACKAGE_TARNAME='tripwire'
587-
PACKAGE_VERSION='2.4.3.4'
588-
PACKAGE_STRING='tripwire 2.4.3.4'
587+
PACKAGE_VERSION='2.4.3.5'
588+
PACKAGE_STRING='tripwire 2.4.3.5'
589589
PACKAGE_BUGREPORT='https://github.com/Tripwire/tripwire-open-source/issues'
590590
PACKAGE_URL='https://github.com/Tripwire/tripwire-open-source'
591591

@@ -748,6 +748,7 @@ ac_subst_files=''
748748
ac_user_opts='
749749
enable_option_checking
750750
enable_silent_rules
751+
enable_extrawarnings
751752
enable_static
752753
enable_debug
753754
enable_dependency_tracking
@@ -1321,7 +1322,7 @@ if test "$ac_init_help" = "long"; then
13211322
# Omit some internal or obsolete options to make the list less imposing.
13221323
# This message is too long to be a string in the A/UX 3.1 sh.
13231324
cat <<_ACEOF
1324-
\`configure' configures tripwire 2.4.3.4 to adapt to many kinds of systems.
1325+
\`configure' configures tripwire 2.4.3.5 to adapt to many kinds of systems.
13251326
13261327
Usage: $0 [OPTION]... [VAR=VALUE]...
13271328
@@ -1393,7 +1394,7 @@ fi
13931394

13941395
if test -n "$ac_init_help"; then
13951396
case $ac_init_help in
1396-
short | recursive ) echo "Configuration of tripwire 2.4.3.4:";;
1397+
short | recursive ) echo "Configuration of tripwire 2.4.3.5:";;
13971398
esac
13981399
cat <<\_ACEOF
13991400
@@ -1403,6 +1404,7 @@ Optional Features:
14031404
--enable-FEATURE[=ARG] include FEATURE [ARG=yes]
14041405
--enable-silent-rules less verbose build output (undo: "make V=1")
14051406
--disable-silent-rules verbose build output (undo: "make V=0")
1407+
—-disable-extrawarnings do not compile with -Wextra warnings enabled
14061408
--enable-static compile static binaries
14071409
--enable-debug compile with debuging enabled
14081410
--enable-dependency-tracking
@@ -1504,7 +1506,7 @@ fi
15041506
test -n "$ac_init_help" && exit $ac_status
15051507
if $ac_init_version; then
15061508
cat <<\_ACEOF
1507-
tripwire configure 2.4.3.4
1509+
tripwire configure 2.4.3.5
15081510
generated by GNU Autoconf 2.69
15091511
15101512
Copyright (C) 2012 Free Software Foundation, Inc.
@@ -2391,7 +2393,7 @@ cat >config.log <<_ACEOF
23912393
This file contains any messages produced by compilers while
23922394
running configure, to aid debugging if configure makes a mistake.
23932395
2394-
It was created by tripwire $as_me 2.4.3.4, which was
2396+
It was created by tripwire $as_me 2.4.3.5, which was
23952397
generated by GNU Autoconf 2.69. Invocation command line was
23962398
23972399
$ $0 $@
@@ -3365,7 +3367,7 @@ fi
33653367

33663368
# Define the identity of the package.
33673369
PACKAGE='tripwire'
3368-
VERSION='2.4.3.4'
3370+
VERSION='2.4.3.5'
33693371

33703372

33713373
cat >>confdefs.h <<_ACEOF
@@ -3460,15 +3462,21 @@ fi
34603462

34613463
ac_config_headers="$ac_config_headers config.h"
34623464

3465+
CFLAGS=${CFLAGS:-"-O -pipe -Wall -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64"}
3466+
CXXFLAGS=${CXXFLAGS:-"-O -pipe -Wall -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64"}
34633467

34643468

3469+
# This is primarily to support old compilers that don’t understand -Wextra
3470+
# Check whether --enable-extrawarnings was given.
3471+
if test "${enable_extrawarnings+set}" = set; then :
3472+
enableval=$enable_extrawarnings;
3473+
fi
34653474

3466-
3467-
rm -f src/tripwire/syslog.h 2> /dev/null
3468-
chmod 755 install-sh 2> /dev/null
3469-
3470-
CFLAGS=${CFLAGS:-"-O -pipe -Wall -Wextra -Wno-unused-parameter -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64"}
3471-
CXXFLAGS=${CXXFLAGS:-"-O -pipe -Wall -Wextra -Wno-unused-parameter -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64"}
3475+
if test "x$enable_extrawarnings" != "xno"
3476+
then
3477+
CFLAGS="${CFLAGS} -Wextra -Wno-unused-parameter"
3478+
CXXFLAGS="${CXXFLAGS} -Wextra -Wno-unused-parameter"
3479+
fi
34723480

34733481
# Check whether --enable-static was given.
34743482
if test "${enable_static+set}" = set; then :
@@ -3478,6 +3486,7 @@ fi
34783486
if test "x$enable_static" = xyes
34793487
then LDFLAGS="${LDFLAGS} -static"
34803488
fi
3489+
34813490
# Check whether --enable-debug was given.
34823491
if test "${enable_debug+set}" = set; then :
34833492
enableval=$enable_debug;
@@ -4349,7 +4358,7 @@ if test -z "$CXX"; then
43494358
CXX=$CCC
43504359
else
43514360
if test -n "$ac_tool_prefix"; then
4352-
for ac_prog in g++ clang++ sunCC aCC xlC_r xlC cl.exe
4361+
for ac_prog in g++ c++ clang++ sunCC aCC xlC_r xlC cl.exe
43534362
do
43544363
# Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
43554364
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
@@ -4393,7 +4402,7 @@ fi
43934402
fi
43944403
if test -z "$CXX"; then
43954404
ac_ct_CXX=$CXX
4396-
for ac_prog in g++ clang++ sunCC aCC xlC_r xlC cl.exe
4405+
for ac_prog in g++ c++ clang++ sunCC aCC xlC_r xlC cl.exe
43974406
do
43984407
# Extract the first word of "$ac_prog", so it can be a program name with args.
43994408
set dummy $ac_prog; ac_word=$2
@@ -7633,7 +7642,7 @@ cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
76337642
# report actual input values of CONFIG_FILES etc. instead of their
76347643
# values after options handling.
76357644
ac_log="
7636-
This file was extended by tripwire $as_me 2.4.3.4, which was
7645+
This file was extended by tripwire $as_me 2.4.3.5, which was
76377646
generated by GNU Autoconf 2.69. Invocation command line was
76387647
76397648
CONFIG_FILES = $CONFIG_FILES
@@ -7700,7 +7709,7 @@ _ACEOF
77007709
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
77017710
ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
77027711
ac_cs_version="\\
7703-
tripwire config.status 2.4.3.4
7712+
tripwire config.status 2.4.3.5
77047713
configured by $0, generated by GNU Autoconf 2.69,
77057714
with options \\"\$ac_cs_config\\"
77067715

configure.ac

Lines changed: 15 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -2,34 +2,38 @@ dnl Process this file with autoconf to produce a configure script.
22
dnl
33
dnl
44

5-
AC_INIT([tripwire], [2.4.3.4], [https://github.com/Tripwire/tripwire-open-source/issues], [tripwire], [https://github.com/Tripwire/tripwire-open-source])
5+
AC_INIT([tripwire], [2.4.3.5], [https://github.com/Tripwire/tripwire-open-source/issues], [tripwire], [https://github.com/Tripwire/tripwire-open-source])
66
AC_CONFIG_SRCDIR([src/tw/tw.cpp])
77
AC_CANONICAL_TARGET([])
88
AM_INIT_AUTOMAKE
99
AM_CONFIG_HEADER(config.h)
1010

1111
AC_COPYRIGHT([The developer of the original code and/or files is Tripwire, Inc. Portions created by Tripwire, Inc. are copyright 2000-2017 Tripwire, Inc. Tripwire is a registered trademark of Tripwire, Inc. All rights reserved.])
12-
AC_REVISION([$Revision: 2.4.3.4 $])
13-
14-
dnl #################################
15-
dnl Cleanup Cruft Leftover From Patch
16-
dnl #################################
17-
rm -f src/tripwire/syslog.h 2> /dev/null
18-
chmod 755 install-sh 2> /dev/null
12+
AC_REVISION([$Revision: 2.4.3.5 $])
1913

2014
dnl ###############
2115
dnl Setup defaults
2216
dnl ###############
23-
CFLAGS=${CFLAGS:-"-O -pipe -Wall -Wextra -Wno-unused-parameter -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64"}
24-
CXXFLAGS=${CXXFLAGS:-"-O -pipe -Wall -Wextra -Wno-unused-parameter -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64"}
17+
CFLAGS=${CFLAGS:-"-O -pipe -Wall -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64"}
18+
CXXFLAGS=${CXXFLAGS:-"-O -pipe -Wall -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64"}
2519

2620
dnl #####################
2721
dnl Configuration options
2822
dnl #####################
23+
24+
# This is primarily to support old compilers that don’t understand -Wextra
25+
AC_ARG_ENABLE(extrawarnings, [ —-disable-extrawarnings do not compile with -Wextra warnings enabled])
26+
if test "x$enable_extrawarnings" != "xno"
27+
then
28+
CFLAGS="${CFLAGS} -Wextra -Wno-unused-parameter"
29+
CXXFLAGS="${CXXFLAGS} -Wextra -Wno-unused-parameter"
30+
fi
31+
2932
AC_ARG_ENABLE(static, [ --enable-static compile static binaries])
3033
if test "x$enable_static" = xyes
3134
then LDFLAGS="${LDFLAGS} -static"
3235
fi
36+
3337
AC_ARG_ENABLE(debug, [ --enable-debug compile with debuging enabled])
3438
if test "x$enable_debug" = xyes
3539
then
@@ -42,7 +46,7 @@ dnl ###################
4246
dnl Checks for programs
4347
dnl ###################
4448
AC_PROG_CC([gcc clang suncc aCC xlC_r xlC cl.exe])
45-
AC_PROG_CXX([g++ clang++ sunCC aCC xlC_r xlC cl.exe])
49+
AC_PROG_CXX([g++ c++ clang++ sunCC aCC xlC_r xlC cl.exe])
4650
AC_PROG_RANLIB
4751
AC_PROG_YACC
4852
AC_PROG_LN_S

0 commit comments

Comments
 (0)