Skip to content

Commit a807dca

Browse files
committed
Merge branch 'maint-1.3'
2 parents 4dd3806 + 8102d7b commit a807dca

File tree

577 files changed

+91055
-756
lines changed

Some content is hidden

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

577 files changed

+91055
-756
lines changed

.travis.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,12 +26,14 @@ matrix:
2626
- swig
2727
- librtmp-dev
2828
- xsltproc
29+
- rpm-common
30+
- lua50
2931
before_script:
3032
- cd build
3133
script:
3234
- cmake -DCMAKE_BUILD_TYPE=Debug ../
3335
- build-wrapper-linux-x86-64 --out-dir bw-output make all || make all # build-wrapper won't work on forked repositories.
34-
- ctest --output-on-failure || true # Tests won't pass on Ubuntu.
36+
- ctest --output-on-failure
3537
- (cd .. && sonar-scanner) || true # Will always fail builds on forked repositories.
3638
after_success:
3739
- curl -s https://codecov.io/bash > cov.sh && bash cov.sh -x "$GCOV"

CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -239,7 +239,7 @@ cmake_dependent_option(OPENSCAP_PROBE_INDEPENDENT_XMLFILECONTENT "Independent xm
239239
# UNIX PROBES
240240
cmake_dependent_option(OPENSCAP_PROBE_UNIX_DNSCACHE "Unix dnscache probe" ON "ENABLE_PROBES_UNIX" OFF)
241241
cmake_dependent_option(OPENSCAP_PROBE_UNIX_FILE "Unix file probe" ON "ENABLE_PROBES_UNIX" OFF)
242-
cmake_dependent_option(OPENSCAP_PROBE_UNIX_FILEEXTENDEDATTRIBUTE "Unix fileextendedattribute probe" ON "ENABLE_PROBES_UNIX; (HAVE_SYS_XATTR_H OR HAVE_ATTR_XATTR_H)" OFF)
242+
cmake_dependent_option(OPENSCAP_PROBE_UNIX_FILEEXTENDEDATTRIBUTE "Unix fileextendedattribute probe" ON "ENABLE_PROBES_UNIX; HAVE_SYS_XATTR_H OR HAVE_ATTR_XATTR_H" OFF)
243243
cmake_dependent_option(OPENSCAP_PROBE_UNIX_GCONF "Unix gconf probe" ON "ENABLE_PROBES_UNIX; GCONF_FOUND" OFF)
244244
cmake_dependent_option(OPENSCAP_PROBE_UNIX_INTERFACE "Unix interface probe" ON "ENABLE_PROBES_UNIX" OFF)
245245
cmake_dependent_option(OPENSCAP_PROBE_UNIX_PASSWORD "Unix password probe" ON "ENABLE_PROBES_UNIX" OFF)

cmake/FindACL.cmake

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,11 @@
88
include(LibFindMacros)
99

1010
# Use pkg-config to get hints about paths
11-
libfind_pkg_check_modules(ACL_PKGCONF acl)
11+
libfind_pkg_check_modules(ACL_PKGCONF libacl)
1212

1313
# Include dir
1414
find_path(ACL_INCLUDE_DIR
15-
NAMES acl/libacl.h
15+
NAMES "acl/libacl.h" "sys/libacl.h"
1616
PATHS ${ACL_PKGCONF_INCLUDE_DIRS}
1717
)
1818

compat/compat.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
*
1515
* You should have received a copy of the GNU Lesser General Public
1616
* License along with this library; if not, write to the Free Software
17-
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
17+
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
1818
*
1919
* Authors:
2020
* Jan Černý <[email protected]>

compat/oscap_platforms.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
*
1515
* You should have received a copy of the GNU Lesser General Public
1616
* License along with this library; if not, write to the Free Software
17-
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
17+
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
1818
*
1919
*/
2020

compat/strsep.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
*
1515
* You should have received a copy of the GNU Lesser General Public
1616
* License along with this library; if not, write to the Free Software
17-
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
17+
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
1818
*
1919
* Authors:
2020
* Jan Černý <[email protected]>

docs/developer/developer.adoc

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,13 @@ that you need to have these additional packages installed:
151151
wget lua which procps-ng initscripts chkconfig sendmail bzip2 rpm-build
152152
----
153153

154-
and it is also required to have `sendmail` service running on the system:
154+
On Ubuntu 18.04, also install:
155+
156+
----
157+
rpm-common
158+
----
159+
160+
It is also required to have `sendmail` service running on the system:
155161

156162
----
157163
$ systemctl start sendmail.service

release_tools/README.adoc

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,12 +49,22 @@ Update the `AUTHORS` file for missing authors and the `naming.sh` file if there
4949
+
5050
Use it to update the `NEWS` file and commit it.
5151
+
52-
The last commit before the release has to have the `openscap-<version>` message (e.g. `openscap-1.2.17`).
52+
The last commit before the release has to have the `openscap-<version>` message (e.g. `openscap-1.3.2`).
53+
54+
. Create tarballs and GitHub release.
55+
+
56+
In a clean copy of the release branch run `cmake .. && make package_source` in the `build` directory.
57+
+
58+
Create new GitHub release with the name of the vesrion (e.g. 1.3.2) being released.
59+
+
60+
Add relevant part of the NEWS file as a release description.
61+
+
62+
Attach `openscap-X.Y.Z.tar.gz` and `openscap-X.Y.Z.tag.gz.sha512` files to the GH release, created against the release tag.
5363

5464
. Run `new-release.sh`.
5565
+
5666
This will create and push version tags, create new GitHub release and handle milestones swap.
57-
Finally, it will bump version numbers in `versions.sh` to be ready for the next upstream release.
67+
Finally, it will bump version numbers in `versions.sh` to be ready for the next (e.g. 1.3.3) upstream release.
5868

5969
. Build OpenSCAP for Windows
6070
+

release_tools/release.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -355,7 +355,7 @@ upload_to_git()
355355
# $3: The new version
356356
flip_milestones()
357357
{
358-
"./$SCRIPT_DIR/move-milestones.py" --owner "$2" --api-token "$1" "$version" "$3"
358+
"$SCRIPT_DIR/move-milestones.py" --owner "$2" --auth-token "$1" "$version" "$3"
359359
}
360360

361361

@@ -414,6 +414,6 @@ release_to_git_and_bump_release()
414414
check_release_is_ok
415415
release_to_git
416416
# upload_to_git # to be done when https://github.com/PyGithub/PyGithub/pull/525 is merged.
417-
flip_milestones --auth-token "$GITHUB_TOKEN" openscap "$_new_version"
417+
flip_milestones "$GITHUB_TOKEN" openscap "$_new_version"
418418
bump_release "$_new_version"
419419
}

0 commit comments

Comments
 (0)