Skip to content

Commit 0d6f772

Browse files
authored
Merge branch 'OpenSCAP:maint-1.3' into fix-1947
2 parents d366487 + 3b3466c commit 0d6f772

File tree

3 files changed

+17
-8
lines changed

3 files changed

+17
-8
lines changed

CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -516,7 +516,7 @@ if (MSVC)
516516
endif()
517517

518518
if (${CMAKE_C_COMPILER_ID} STREQUAL "GNU" OR ${CMAKE_C_COMPILER_ID} STREQUAL "Clang")
519-
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -pipe -W -Wall -Wnonnull -Wshadow -Wformat -Wundef -Wno-unused-parameter -Wmissing-prototypes -Wno-unknown-pragmas -D_GNU_SOURCE -std=c99")
519+
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -pipe -W -Wall -Wnonnull -Wshadow -Wformat -Wundef -Wno-unused-parameter -Wmissing-prototypes -Wno-unknown-pragmas -Wno-int-conversion -D_GNU_SOURCE -std=c99")
520520
endif()
521521
if(${CMAKE_SYSTEM_NAME} STREQUAL "FreeBSD")
522522
add_link_options(-lkvm -lm -lprocstat)

release_tools/README.adoc

Lines changed: 15 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88

99
== Process ==
1010

11-
When releasign alpha/pre-releases, please keep in mind how RPM handles the versioning. Please see how is this handled in SPEC file https://fedoraproject.org/wiki/Packaging:Versioning before you build Fedora and RHEL packages.
11+
When releasing alpha/pre-releases, please keep in mind how RPM handles the versioning. Please see how is this handled in SPEC file https://fedoraproject.org/wiki/Packaging:Versioning before you build Fedora and RHEL packages.
1212

1313
. Ensure the project is in a good shape for the release
1414
+
@@ -17,7 +17,7 @@ When releasign alpha/pre-releases, please keep in mind how RPM handles the versi
1717

1818
. Clone a clean `openscap` repository:
1919

20-
git clone --recurse-submodules https://github.com/OpenSCAP/openscap.git
20+
git clone --recurse-submodules git@github.com:OpenSCAP/openscap.git
2121

2222
. Create `.env` file
2323
+
@@ -94,6 +94,11 @@ Update the `AUTHORS` file for missing authors and the `naming.sh` file if there
9494
Use it to update the `NEWS` file and commit it.
9595
+
9696
The last commit before the release has to have the `openscap-<version>` message (e.g. `openscap-1.3.2`).
97+
+
98+
Tag the commit and push the changes to upstream. You need to be allowed to push without pull requests in the GitHub repository settings.
99+
+
100+
git tag $version
101+
git push origin maint-1.3
97102

98103
. Create tarballs and GitHub release.
99104
+
@@ -105,14 +110,18 @@ Add relevant part of the NEWS file as a release description.
105110
+
106111
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.
107112

108-
. Run `new-release.sh`.
113+
. Run `new-release.sh $new_version`.
114+
+
115+
You need to provide the expected next version, ie. if you release 1.3.7 you should put there 1.3.8.
116+
This will handle milestones swap on GitHub and it will bump version numbers in `versions.sh` to be ready for the next upstream release.
117+
+
118+
Then, change the version to expected next version in `/CMakeLists.txt`
109119
+
110-
This will create and push version tags, create new GitHub release and handle milestones swap.
111-
Finally, it will bump version numbers in `versions.sh` to be ready for the next upstream release.
120+
Commit and push the changes.
112121

113122
. Generate and publish documentation.
114123
+
115-
Generate documentation by running `make docs`. Then, upload the generated OpenSCAP User manual and Doxygen API documentation to https://static.open-scap.org/ (Ask project maintainers for information on how to update https://static.open-scap.org/).
124+
Generate documentation by running `cmake -DENABLE_DOCS=ON .. && make docs`. Then, upload the generated OpenSCAP User manual and Doxygen API documentation to https://static.open-scap.org/ (Ask project maintainers for information on how to update https://static.open-scap.org/).
116125

117126
. Build packages for RHEL and Fedora.
118127

src/common/memusage.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@
5656
#include "memusage.h"
5757
#include "bfind.h"
5858

59-
#if defined(OS_LINUX)
59+
#if defined(OS_LINUX) || defined(__FreeBSD__) || defined(OS_SOLARIS)
6060
static int read_common_sizet(void *szp, char *strval)
6161
{
6262
char *end;

0 commit comments

Comments
 (0)