# error in creating relocatable "runtime binaries only"

If I clone github.com/sagemath/binary-pkg.git, change branch from develop to master in sage.yaml, and run

$export PACKAGE="Runtime binaries only"$ make bdist-sage-linux


I get error messages in stage-sage saying

ERROR:root:At b'.../local/share/doc/sage/html/en/reference/calculus/sage/calculus/ode.htmlX\x1e'
ERROR:root:path terminator b'\x1e' not allowed in .../local/share/doc/sage/doctrees/ca/intro/environment.pickle


What am I doing wrong? Or should I file a bug report?

Or where can I find documentation on what commands I can run to remove unnecessary files? (E.g. I'd expect that some directories could be deleted, and that some binaries could be stripped.)

Thanks!

edit retag close merge delete

Sort by » oldest newest most voted

While I don't know how to fix the compilation error that I asked about, I have discovered a workaround.

My goal is to get a small working relocatable copy of Sage. As compiled without the "Runtime binaries only", the SageMath folder is 5.3 GB, which is bigger than I'd like.

After relocating and the initial run of Sage (when the paths are patched), I ran the following commands from the SageMath directory.

$LC_ALL=C find local/lib local/bin -type f -print0 | xargs -0 strip 2>&1 | grep -v "File format not recognized\|File truncated"$ rm -rdf src
\$ rm -rdf local/share/doc


The result was a working (as far as I can tell) copy of Sage, but SageMath is now only 1.5GB, which is much smaller. This will suffice for my needs, although I would much prefer doing this by fixing the compilation error.

more

This sounds like an issue in binary-pkg itself, which is not (strictly speaking) part of Sage, though obviously very closely related. See its Github page for more details and to report issues - hopefully that is indeed the issue.

more