Ask Your Question
0

error in creating relocatable "runtime binaries only"

asked 2017-05-25 03:51:55 +0100

millermj gravatar image

updated 2017-06-15 22:28:57 +0100

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 flag offensive close merge delete

2 Answers

Sort by ยป oldest newest most voted
0

answered 2017-06-17 21:52:53 +0100

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.

edit flag offensive delete link more
0

answered 2017-06-21 15:07:30 +0100

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.

edit flag offensive delete link more

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: 2017-05-25 03:51:55 +0100

Seen: 381 times

Last updated: Jun 21 '17