Ask Your Question
0

error in creating relocatable "runtime binaries only"

asked 7 years ago

millermj gravatar image

updated 7 years ago

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!

Preview: (hide)

2 Answers

Sort by » oldest newest most voted
0

answered 7 years ago

millermj gravatar image

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.

Preview: (hide)
link
0

answered 7 years ago

kcrisman gravatar image

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.

Preview: (hide)
link

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower

Stats

Asked: 7 years ago

Seen: 448 times

Last updated: Jun 21 '17