holepunchto / holepunchto/hypercore
Installation on OpenBSD
Nobody has claimed this yet.
- Dominant language
- JavaScript
- Stars
- 2.9k
- Forks
- 211
- Avg merge
- 5h 49m
- Merged PRs (30d)
- 9
Description
Below is a command line (ksh) procedure for installing hypercore on OpenBSD 7.3 amd64:
pkg_add git
pkg_add libsodium
pkg_add libtool
pkg_add autoconf
pkg_add node
npm install node-gyp -g
export CFLAGS="-mssse3 -msse4.1"
export CXXFLAGS="-mssse3 -msse4.1"
mkdir proj
npm init proj
git clone --recursive --branch main https://github.com/4c656554/fs-native-extensions
cd fs*
node-gyp rebuild
npm run test
npm install -g
cd ..
git clone --recursive --branch master https://github.com/sodium-friends/sodium-native
cd sodium-native
npm link fs-native-extensions
node-gyp rebuild
npm run test
echo "Expect 90 test failures, this is ok for hypercore install"
npm install -g
cd ..
git clone --recursive --branch master https://github.com/sodium-friends/sodium-universal
cd sodium-universal
npm link sodium-native
npm link fs-native-extensions
npm install
npm install -g
cd ..
git clone --recursive --branch master https://github.com/holepunchto/hypercore
cd hypercore
npm link sodium-universal
npm link sodium-native
npm link fs-native-extensions
npm install
npm install -g
npm run test
All hypercore tests pass :-)
The simple npm install hypercore fails due to build issues in the fs-native-extensions dependency. (PR fix here ). Also related; this issue.
Wondering if anyone can see an easier way of doing the above, or if there is something obvious I missed?
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Read fs-native-extensions issue #4 and PR #6, then compare the failing plain npm install hypercore with the successful OpenBSD command sequence. Reproduce the installation on OpenBSD 7.3 amd64; done means the simple install works and the Hypercore tests pass without manual dependency linking.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript, nodejs
- Domain
- build-system
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100