[Mono-list] xbuild and relative paths
Cyd Haselton
chaselton at gmail.com
Sat Nov 5 19:19:38 UTC 2016
Just for reference purposes, the solution was to use the Termux package
proot, which is a port of chroot to the Android/Termux platform.
On Oct 25, 2016 11:26 AM, "Cyd Haselton" <chaselton at gmail.com> wrote:
> On Oct 25, 2016 10:41 AM, "Timotheus Pokorra" <timotheus.pokorra@
> solidcharity.com> wrote:
> >
> > >> > I'm guessing that you have the permissions needed to access the
> /root
> > >> > dir in
> > >> > this absolute path:
> > >> >
> > >> > /root/dotnet/cli/src/Microsoft.DotNet.Cli.Utils/
> Microsoft.DotNet.Cli.Utils.xproj.
> > >> I have now tried to build it as an unprileged user, I get the same
> erros.
> >
> > with same errors I meant: not your errors, but my errors from building
> > it as root.
> >
> > > Can you try specifying relative paths to see if that works?
> >
> > How would I specify relative paths?
> >
>
> That was my original question; is it possible to specify relative paths
> with xbuild. If it is possible, how is it done?
>
> > >> > I do NOT have access to the /data dir in the absolute path that I'm
> > >> > building
> > >> > in…just the subdir.
> > >> I don't have a /data directory, and cannot find it in the dotnet/cli
> > >> working directory.
> > >>
> > >
> > > You wouldn't. /data is, effectively, the /root dir on my Android
> device.
> >
> > ok. thinking...
> > I think you did not post the complete output of your build.
> > Where does it go wrong? how far does your build get?
> > I cannot imagine the error message, I think I must see it.
> >
> > >> >> I wonder if it helps to do this with a vagrant script or Docker
> file?
> > >> >> Then we have the same thing?
> > >> >>
> > >> > My build device doesn;t have a Docker setup and I;ve never used it;
> it
> > >> > would
> > >> > take a while for me to get up to speed.
> > >>
> > >> I wonder if you should first try this on a "normal" Linux machine.
> > >> That will already be quite an effort, as you can see in my error
> messages.
> > >> Once that works, you try it on your device.
> > >>
> > >
> > > That would be difficult; I don't have the time or resources to spin up
> a new
> > > Linux machine for this build. But, since you're seeing the same
> issues with
> > > the build as an unprivileged user, I think working with what I have
> will be
> > > fine.
> >
> > I cannot imagine that setting up a Linux machine costs so much energy.
> > Or just rent a virtual machine on AWS...
> > You need to reduce complexity, to find the solution. In my opinion
> > that is worth the time.
>
> Your opinion is valid. Unfortunatelyit doesn't change what I said earlier
> about not having time or resources.
>
> > If you stick to your Android device, nobody can help you, because we
> > don't have your device.
>
> You have already helped me; you tested the build as an unprivileged user
> and reported the result. Now I know that the errors I'm getting are
> specific to my environment.
>
> I'm not asking for someone to replicate the issue on an Android device.
> All I want to know is the answer to the original question that I posted. Is
> it possible to specify relative paths when building with xbuild.
>
> >
> > My suspicion is that it will be pretty hard to build it even on Linux.
> > The tool chain of dotnet is not stable yet, as far as I can see.
> >
>
> It is…provided you're running a supported platform.
>
> > Timotheus
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.dot.net/pipermail/mono-list/attachments/20161105/596f3b4b/attachment.html>
More information about the Mono-list
mailing list