<div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><br></div><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Wed, 26 Jun 2019 at 16:00, Karan Sheth wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-style:solid;border-left-color:rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div dir="ltr">Hey,<br></div><br><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-style:solid;border-left-color:rgb(204,204,204);padding-left:1ex">
My suggestion would be: could you perhaps share the sources<br>
(Dockerfile I guess; together with some basic usage instructions)? We<br>
could probably add a repository under github/macports-gsoc or so. Then<br>
I could at least build an image locally instead of getting something<br>
incompatible.<br>
</blockquote><div><br></div><div>I had previously just docker pulled ubuntu and installed macports manually on it and then commiting the changes.</div><div>Please test the Dockerfile attached with this mail by building it using "docker build".<br></div></div></div></blockquote><div><br></div><div>Yay, thank you very much!</div><div><br></div><div>It builds and works fine for me. (We should put the file somewhere to one of our repositories.)</div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-style:solid;border-left-color:rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div class="gmail_quote"><div>It might take upto 30 to 45min to build.</div></div></div></blockquote><div><br></div><div>I thought it would be faster (it took 30 minutes here), but running portindex is one of the slowest steps.</div><div><div><br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-style:solid;border-left-color:rgb(204,204,204);padding-left:1ex">I don't fully understand why the error occurred for you, isn't docker supposed to be free of such errors?</blockquote></div><div><br></div><div>Docker might well be, but there's something I would call a bug in MacPorts that checks the kernel version, and then it's MacPorts that refuses to run just because your kernel version was different. This should be fixed in MacPorts base.</div><div><br></div><div>I also saw a gazzilion of errors in Portfiles, like for example:</div><div><br></div><div><div>Failed to parse file foo/bar/Portfile: MacPorts does not support qt4 on platforms other than darwin</div><div>Failed to parse file lang/chicken/Portfile: can't read "archs()": no such element in array</div></div><div><br></div><div>It would probably make sense to report all these errors to a ticket, and address them.</div><div>We could at some point probably also set CI that would at least run portindex and lint on linux (probably not the full build).</div><div><br></div><div>Mojca</div><div><br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-style:solid;border-left-color:rgb(204,204,204);padding-left:1ex"><div></div></blockquote></div></div></div></div>