Open Geremia opened 7 years ago
Presumably the slackware packages are not relocatable, right? The easiest solution is probably to just install the binary (including running relocate-once.py) and then pack it up.
the slackware packages are not relocatable, right?
@vbraun See this script for how SAGE is currently packaged on Slackware: https://slackbuilds.org/slackbuilds/14.2/academic/sage/sage.SlackBuild
It builds everything in /tmp/sage-7.6
, copies to /tmp/package-sage
(analogous to binary-pkg
's dist
directory) with the proper directory structure, and packages it from there. When you install the Slackware package, it will put SAGE in /opt/sage
. However, the paths aren't properly rewritten; the binaries in /opt/sage
think the install directory is /tmp/package-sage
.
sage.yaml
contains this:But can I use my own packaging utility instead of simply using
tar
?Slackware uses
makepkg
:It makes a special
doinst.sh
script for dealing with symlinks, etc. It can even take an "onlyonce script," which sounds like whatrelocate-once.py
is. How could I putrelocate-once.py
in the proper place of the package?