<div class="gmail_quote"><div dir="ltr">On Sun, Jan 7, 2018, 11:16 PM King Beowulf <<a href="mailto:kingbeowulf@gmail.com">kingbeowulf@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">On 01/07/2018 05:55 PM, David Melik wrote:<br>
> On Sun, 07 Jan 2018 14:13:07 -0800, King Beowulf wrote:<br>
><br>
>> I'm attempting to upgrade and fix a few issue with the sage build.<br>
>> However, upstream seems to think that no one wants to compile a<br>
>> redistributable install package.<br>
 ...snip---<br>
>><br>
>> If anyone has any ideas, let me know.<br>
>> -Ed<br>
><br>
> SAGE really has many issues, and I'd still like to use it, but am<br>
> skeptical whether it's worth anyone making a SlackBuild until the SAGE<br>
> programmers take most users into consideration.<br>
><br>
---snip---<br>
<br>
I'm glad I'm not the only one who thinks upstream has been drinking the<br>
wrong cool-aid. 'forking' 'rump' holes....<br>
<br>
Compiling and packaging worked before with a bit of gyration, but<br>
upstream changed somnthing, especially with this non-root compile fetish<br>
of theirs.  Now, in the the prebuilt binaries, they have a python script<br>
that will patch all the dozens of hard coded files:<br>
<br>
p = SearchAndReplace(ROOT_PATH,<br>
'/mnt/disk/home/buildslave-sage/slave/binary_pkg/build/source/SageMath/jc4b6yulaujayb9sr94ia88eourzeq',<br>
DESTINATION)<br>
<br>
Maybe I have to just set SAGEROOT to /tmp/SBo/sage-8.1BLAHBLABLAH.... to<br>
match the number of bytes they use so that the script won't crash.<br>
<br>
Or extact and compile in '/opt/sage' and create a package there then<br>
delete, but that might upset some of our more sensitive and pedantic admins!<br></blockquote></div><div><br></div><div>I don't really have much experience with this (and don't use sage at all), but could you set up the directories as needed under /tmp/SBo/package-sage/ and then just chroot it? Maybe with a bind mount for the needed system directories (assuming it doesn't need the whole system, since that'd be a little excessive to bind mount)? That way, once the bind mounts are removed, the directory can be packaged up as normal.</div><div><br></div><div>Jeremy</div><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
</blockquote></div>