--- name: port-a-linux-package description: Port a Linux program to Solnix/illumos and get it to build and run. Use when asked to port, or when a build fails on Solnix. --- # Port a Linux package Follow `solnix/porter/SKILL.md` steps 1-6. In short: 1. Find the **first** error in the build log or `config.log`. Done when quoted. 2. Match it to a failure class in the porter skill's table and read that rule. 3. `package_status` for the package and its dependencies. 4. Fix in the build (configure cache variable, `-lsocket -lnsl`, `-R`, a patch). 5. Prove it: the rule's **Check** passes, and the program's own tests run. 6. Package it: `solnix/rules/recipe-write-a-solnix-recipe.md`.