Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion .github/actions/install-system-packages/action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ runs:
if: runner.os == 'Linux' && steps.detect-alpine.outputs.result == 'false'
shell: bash
run: |
sudo apt-get update && sudo apt-get install -y cmake groff libtsan0
sudo apt-get update && sudo apt-get install -y cmake groff libtsan0 libkrb5-dev

- name: Install Needed packages on Alpine
if: steps.detect-alpine.outputs.result == 'true'
Expand All @@ -36,4 +36,5 @@ runs:
python3 py3-pip make g++ \
perl linux-headers \
autoconf automake libtool \
krb5-dev \
texinfo flex bison build-base libedit-dev mandoc-soelim zlib zlib-dev zlib-static
13 changes: 12 additions & 1 deletion scripts/vcpkg-setup.js
Original file line number Diff line number Diff line change
Expand Up @@ -106,10 +106,21 @@ async function createVcpkgJson() {
)
}

const vcpkgJson = vcpkgJsonTemplate
let vcpkgJson = vcpkgJsonTemplate
.replace('$$OPENSSL_VERSION$$', opensslVersion)
.replace('$$NODE_LIBCURL_VERSION$$', modulePackageJson.version)

// Add GSSAPI feature on non-Windows platforms for Kerberos/SPNEGO support.
// On Windows, SSPI (already included) handles Negotiate authentication.
if (process.platform !== 'win32') {
const parsed = JSON.parse(vcpkgJson)
const curlDep = parsed.dependencies.find((d) => d.name === 'curl')
if (curlDep && !curlDep.features.includes('gssapi')) {
curlDep.features.push('gssapi')
}
vcpkgJson = JSON.stringify(parsed, null, 2)
}

fs.writeFileSync(path.join(moduleRoot, 'vcpkg.json'), vcpkgJson)
}

Expand Down
Loading