mapbox / mapbox/node-pre-gyp

add validate command that checks for portability of shared libraries

Open
#29 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
JavaScript
Stars
1.2k
Forks
271
Avg merge
23h 40m
Merged PRs (30d)
2

Description

Plan on adding node-pre-gyp validate command.

We can programmatically query the built binary module, scan for dynamic shared library dependencies, and do various diagnostics/sanity checks.

At the least the command should print some diagnostics for the developer to inspect:

  • What shared libraries are depended upon (and what do they depend on)
  • On OSX / Linux do any shared libraries occur with absolute rpaths in locations like /usr/local/lib (which would indicate linking happened to non-portable library)

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the planned node-pre-gyp validate command and review the platform tools named in the issue: otool or lssym, ldd or readelf, and depends.exe. Done means the command reports shared-library dependency chains and flags non-portable absolute rpaths on OS X and Linux.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript, node.js
Domain
cli, devtools, operating-systems
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.