Skip to content

Commit

Permalink
Merge pull request #321 from DavidVujic/remove_fips_mode_check_for_al…
Browse files Browse the repository at this point in the history
…l_envs

Remove the OpenSSSL FIPS_mode check for Linux, Mac OS X and Windows
  • Loading branch information
DavidVujic committed Sep 17, 2022
2 parents 39282d6 + b4e4f63 commit 28ae654
Show file tree
Hide file tree
Showing 11 changed files with 19 additions and 9 deletions.
1 change: 1 addition & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ jobs:
run-on-windows:
executor: win/default
steps:
- run: choco install cmake -y --installargs 'ADD_CMAKE_TO_PATH=System'
- checkout
- nvminstall
- deps
Expand Down
12 changes: 11 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,15 @@
#### v 5.5.0 (2022-10-17)
* fix: Remove the OpenSSSL FIPS_mode check for Linux, Mac OS X and Windows.

feat: Rebuild the prebuilds for Mac OS X and Windows, using Node.js 16.17.0.

feat: Remove the prebuilds for Node.js 14.

Pull request [321](https://github.com/yfinkelstein/node-zookeeper/pull/321) by @davidvujic
* fix: remove code using FIPS_mode which is not available on all distros. Pull request [318](https://github.com/yfinkelstein/node-zookeeper/pull/319) by @dreusel

#### v 5.4.0 (2022-04-18)
* feat: starting the zookeeper client in a Node.js Worker thread Pull request [310](https://github.com/yfinkelstein/node-zookeeper/pull/310) by @deepcoldy
* feat: starting the zookeeper client in a Node.js Worker thread. Pull request [310](https://github.com/yfinkelstein/node-zookeeper/pull/310) by @deepcoldy

#### v 5.3.2 (2022-02-16)
* fix: handle normalize path with slashes in all platforms. Pull request [305](https://github.com/yfinkelstein/node-zookeeper/pull/305) by @hufeng
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "zookeeper",
"description": "apache zookeeper client (zookeeper async API v3.4.x - v3.7.x)",
"version": "5.4.0",
"version": "5.5.0",
"author": "Yuri Finkelstein <yurif2003@yahoo.com>",
"license": "MIT",
"contributors": [
Expand Down
8 changes: 3 additions & 5 deletions prebuilds/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,18 +8,16 @@ Each platform has prebuilds for Node.js 12 and 14.
Create prebuilds for Mac OS X:

```bash
npx prebuildify --arch x64 --platform darwin --target 14.15.4
npx prebuildify --arch x64 --platform darwin --target 16.13.1
npx prebuildify --arch x64 --platform darwin --target 16.17.0
```

Prebuilds for Mac OS X with the M1 processor:
```bash
npx prebuildify --arch arm64 --platform darwin --target 16.13.1
npx prebuildify --arch arm64 --platform darwin --target 16.17.0
```

Create prebuilds for Windows 10:

```bash
npx prebuildify --arch x64 --platform win32 --target 14.15.4
npx prebuildify --arch x64 --platform win32 --target 16.13.1
npx prebuildify --arch x64 --platform win32 --target 16.17.0
```
Binary file modified prebuilds/darwin-arm64/node.abi93.node
Binary file not shown.
Binary file removed prebuilds/darwin-x64/node.abi83.node
Binary file not shown.
Binary file modified prebuilds/darwin-x64/node.abi93.node
Binary file not shown.
Binary file removed prebuilds/win32-x64/node.abi83.node
Binary file not shown.
Binary file modified prebuilds/win32-x64/node.abi93.node
Binary file not shown.
1 change: 0 additions & 1 deletion scripts/env.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,6 @@ const variables = {
sourceFolder: `${rootFolder}/deps/zookeeper-client-c`,
downloadedFileName,
isWindows,
isLinux: process.platform === 'linux',
isVerbose: !!process.env.ZK_INSTALL_VERBOSE,
};

Expand Down
4 changes: 3 additions & 1 deletion scripts/prepublish.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,9 @@ function applyPatches() {
shell.sed('-i', '#include "zookeeper_log.h"', '#include "zookeeper_log.h"\n#include "winport.h"\n', `${destination}/zk_log.c`);
shell.sed('-i', '#include "zookeeper.h"', '#include "winport.h"\n#include "zookeeper.h"\n', `${destination}/zk_adaptor.h`);
shell.sed('-i', '#include "zk_adaptor.h"', '#include "zk_adaptor.h"\n#include "winport.h"\n', `${destination}/zookeeper.c`);
} else if (env.isLinux) {
shell.sed('-i', /(FIPS_mode\(\) == 0)/, '0 == 0', `${destination}/zookeeper.c`);
shell.sed('-i', /(FIPS mode is OFF)/, 'Disabled the FIPS check', `${destination}/zookeeper.c`);
} else {
shell.exec(`patch -d ${env.rootFolder} -p0 --forward < ${env.workFolder}/no-fipsmode.patch`);
}
}
Expand Down

0 comments on commit 28ae654

Please sign in to comment.