Skip to content

Commit 96caed1

Browse files
authored
MONGOCRYPT-688 remove RHEL 6.2 (#1196)
1 parent 906010b commit 96caed1

7 files changed

Lines changed: 5 additions & 143 deletions

File tree

.evergreen/config.yml

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -629,8 +629,6 @@ tasks:
629629

630630
- name: upload-java # TODO(MONGOCRYPT-894) remove in favor of `upload-release` tasks.
631631
depends_on:
632-
- variant: rhel-62-64-bit
633-
name: build-and-test-and-upload
634632
- variant: rhel72-zseries-test
635633
name: build-and-test-and-upload
636634
- variant: rhel-71-ppc64el
@@ -648,8 +646,6 @@ tasks:
648646
- command: shell.exec
649647
params:
650648
script: mkdir all
651-
- func: "download tarball"
652-
vars: { variant_name: "rhel-62-64-bit" }
653649
- func: "download tarball"
654650
vars: { variant_name: "rhel72-zseries-test" }
655651
- func: "download tarball"
@@ -737,8 +733,6 @@ tasks:
737733
name: build-and-test-and-upload
738734
- variant: debian92
739735
name: build-and-test-and-upload
740-
- variant: rhel-62-64-bit
741-
name: build-and-test-and-upload
742736
- variant: rhel-70-64-bit
743737
name: build-and-test-and-upload
744738
- variant: rhel-71-ppc64el
@@ -816,8 +810,6 @@ tasks:
816810
vars: { variant_name: "debian10" }
817811
- func: "download tarball"
818812
vars: { variant_name: "debian92" }
819-
- func: "download tarball"
820-
vars: { variant_name: "rhel-62-64-bit" }
821813
- func: "download tarball"
822814
vars: { variant_name: "rhel-70-64-bit" }
823815
- func: "download tarball"
@@ -1690,16 +1682,6 @@ buildvariants:
16901682
- name: publish-packages
16911683
distros:
16921684
- ubuntu2004-small
1693-
- name: rhel-62-64-bit
1694-
display_name: "RHEL 6.2 64-bit"
1695-
run_on: rhel62-small
1696-
expansions:
1697-
compile_env: >-
1698-
LIBMONGOCRYPT_COMPILE_FLAGS="-D__STDC_CONSTANT_MACROS -D__STDC_LIMIT_MACROS"
1699-
BUILD_TESTING=OFF
1700-
tasks:
1701-
- build-and-test-and-upload
1702-
- build-and-test-shared-bson
17031685
- name: rhel-70-64-bit
17041686
display_name: "RHEL 7.0 64-bit"
17051687
run_on: rhel70-small

.evergreen/linker-tests.sh

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -39,9 +39,6 @@ common_cmake_args=(
3939
)
4040

4141
run_chdir "$MONGOC_DIR" git apply --ignore-whitespace "$linker_tests_deps_root/bson_patches/libbson1.patch"
42-
# Apply patches to fix compile on RHEL 6.2. TODO: try to remove once RHEL 6.2 is dropped (MONGOCRYPT-688).
43-
run_chdir "$MONGOC_DIR" git apply "$LIBMONGOCRYPT_DIR/etc/libbson-remove-GCC-diagnostic-pragma.patch"
44-
run_chdir "$MONGOC_DIR" git apply "$LIBMONGOCRYPT_DIR/etc/mongo-common-test-harness.patch"
4542

4643
. "$(dirname "${BASH_SOURCE[0]}")/install-build-tools.sh"
4744
install_build_tools
@@ -61,9 +58,6 @@ echo "Make libbson1 ... done"
6158
echo "Prepare libbson2 ..."
6259
run_chdir "$MONGOC_DIR" git reset --hard
6360
run_chdir "$MONGOC_DIR" git apply --ignore-whitespace "$linker_tests_deps_root/bson_patches/libbson2.patch"
64-
# Apply patch to fix compile on RHEL 6.2. TODO: try to remove once RHEL 6.2 is dropped (MONGOCRYPT-688).
65-
run_chdir "$MONGOC_DIR" git apply "$LIBMONGOCRYPT_DIR/etc/libbson-remove-GCC-diagnostic-pragma.patch"
66-
run_chdir "$MONGOC_DIR" git apply "$LIBMONGOCRYPT_DIR/etc/mongo-common-test-harness.patch"
6761
LIBBSON2_SRC_DIR="$MONGOC_DIR"
6862
echo "Prepare libbson2 ... done"
6963

.evergreen/pkgconfig-tests.sh

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,6 @@ common_cmake_args=(
2525
-D BUILD_TESTING="${BUILD_TESTING-TRUE}"
2626
)
2727

28-
# Apply patches to fix compile on RHEL 6.2. TODO: try to remove once RHEL 6.2 is dropped (MONGOCRYPT-688).
29-
run_chdir "$mongoc_src_dir" git apply "$LIBMONGOCRYPT_DIR/etc/libbson-remove-GCC-diagnostic-pragma.patch"
30-
run_chdir "$mongoc_src_dir" git apply "$LIBMONGOCRYPT_DIR/etc/mongo-common-test-harness.patch"
3128

3229
. "$(dirname "${BASH_SOURCE[0]}")/install-build-tools.sh"
3330
install_build_tools

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@
44

55
<!-- TODO: add entries for next release -->
66

7+
### Removed
8+
- RHEL 6.2 builds. Use the `linux-x86_64-glibc_2_7-nocrypto` build instead as it has an equivalent glibc requirement.
9+
710
## 1.19.2
811

912
### Added

cmake/FetchMongoC.cmake

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,7 @@ include (Patch)
1515
make_patch_command (patch_command
1616
STRIP_COMPONENTS 1
1717
DIRECTORY "<SOURCE_DIR>"
18-
DISABLED "${patch_disabled}"
19-
PATCHES
20-
${PROJECT_SOURCE_DIR}/etc/libbson-remove-GCC-diagnostic-pragma.patch
21-
${PROJECT_SOURCE_DIR}/etc/mongo-common-test-harness.patch
22-
)
18+
DISABLED "${patch_disabled}")
2319

2420
# Fetch the source archive for the requested tag from GitHub
2521
FetchContent_Declare (

cmake/Patch.cmake

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ find_program(PATCH_EXECUTABLE patch)
1414
]]
1515
function(make_patch_command out)
1616
cmake_parse_arguments(PARSE_ARGV 1 patch "" "DIRECTORY;STRIP_COMPONENTS;DISABLED" "PATCHES")
17-
if(patch_DISABLED)
17+
if(patch_DISABLED OR NOT patch_PATCHES)
1818
# Use a placeholder "no-op" patch command.
1919
set(cmd "${CMAKE_COMMAND}" "-E" "true")
2020
elseif(GIT_EXECUTABLE)

etc/libbson-remove-GCC-diagnostic-pragma.patch

Lines changed: 0 additions & 110 deletions
This file was deleted.

0 commit comments

Comments
 (0)