<p dir="ltr">I use fakeroot extensively when building my slackbuilds manually. As far as I remember only qemu refused to build once. </p>
<br><div class="gmail_quote"><div dir="ltr">On Sun, 30 Oct 2016 14:28 Andrzej Telszewski, <<a href="mailto:atelszewski@gmail.com">atelszewski@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 30/10/16 12:02, Franzen wrote:<br class="gmail_msg">
> On 2016-10-30 11:08, Andrzej Telszewski wrote:<br class="gmail_msg">
>> Hi,<br class="gmail_msg">
>><br class="gmail_msg">
>> I would like to ask you, if building packages within fakeroot is safe?<br class="gmail_msg">
><br class="gmail_msg">
> I did build with fakeroot a few years long, and had some minor issues,<br class="gmail_msg">
> maybe this thread(and links in that thread) is a little bit helpful.<br class="gmail_msg">
<br class="gmail_msg">
Links missing?<br class="gmail_msg">
<br class="gmail_msg">
> Currently i build my personal packages as unprivileged user, with a<br class="gmail_msg">
> patched makepkg.<br class="gmail_msg">
> This does not work without also patching buildscripts from SBo, as there<br class="gmail_msg">
> is almost always a "chown root ..."<br class="gmail_msg">
><br class="gmail_msg">
<br class="gmail_msg">
Changing build scripts is a no-go for me, in my opinion it's too much<br class="gmail_msg">
hassle.<br class="gmail_msg">
<br class="gmail_msg">
I am just playing with software and fakeroot just happened to be<br class="gmail_msg">
interesting to play with.<br class="gmail_msg">
But after a bit of thought, I think it won't be that useful.<br class="gmail_msg">
I'm already using VM to build packages, so I'm on the safe side.<br class="gmail_msg">
<br class="gmail_msg">
What I'm really aiming for is to ensure that the build process does not<br class="gmail_msg">
write outside of the build directories.<br class="gmail_msg">
And it's not possible to spot that happening with fakeroot, because the<br class="gmail_msg">
build process can easily write to /tmp or user directory.<br class="gmail_msg">
And I actually came across Makefile that would write into system<br class="gmail_msg">
directory if building as root or into home directory when building as user.<br class="gmail_msg">
In that cases the build wouldn't stop because of 'permission denied'.<br class="gmail_msg">
<br class="gmail_msg">
I think my best bet is to use overlay filesystem, alternatively there is<br class="gmail_msg">
another piece of software (can't really remember the name now) that can<br class="gmail_msg">
record the changes made to filesystem by particular process.<br class="gmail_msg">
<br class="gmail_msg">
But overlay filesystem is my favorite now, need to give it a go.<br class="gmail_msg">
<br class="gmail_msg">
--<br class="gmail_msg">
Best regards,<br class="gmail_msg">
Andrzej Telszewski<br class="gmail_msg">
_______________________________________________<br class="gmail_msg">
SlackBuilds-users mailing list<br class="gmail_msg">
<a href="mailto:SlackBuilds-users@slackbuilds.org" class="gmail_msg" target="_blank">SlackBuilds-users@slackbuilds.org</a><br class="gmail_msg">
<a href="http://lists.slackbuilds.org/mailman/listinfo/slackbuilds-users" rel="noreferrer" class="gmail_msg" target="_blank">http://lists.slackbuilds.org/mailman/listinfo/slackbuilds-users</a><br class="gmail_msg">
Archives - <a href="https://lists.slackbuilds.org/pipermail/slackbuilds-users/" rel="noreferrer" class="gmail_msg" target="_blank">https://lists.slackbuilds.org/pipermail/slackbuilds-users/</a><br class="gmail_msg">
FAQ - <a href="https://slackbuilds.org/faq/" rel="noreferrer" class="gmail_msg" target="_blank">https://slackbuilds.org/faq/</a><br class="gmail_msg">
<br class="gmail_msg">
</blockquote></div>