From mboxrd@z Thu Jan 1 00:00:00 1970 From: Yoann Padioleau To: Fans of the OS Plan 9 from Bell Labs <9fans@9fans.net> Date: Mon, 14 Jul 2014 22:31:47 +0000 Message-ID: <4C90CE19-CCA6-4DD4-AD45-3C49CF7B24AB@fb.com> References: <20140705151359.70ebad14@ikilid> <000F4E23-C3D9-481E-AF1F-48049B01E168@fb.com> <20140708021037.173b3173@ikilid> <20140713211116.28c3fa90@ikilid> <20140715001950.0812ce52@zinc.9fans.fr> In-Reply-To: <20140715001950.0812ce52@zinc.9fans.fr> Content-Type: multipart/alternative; boundary="_000_4C90CE19CCA64DD4AD453C49CF7B24ABfbcom_" MIME-Version: 1.0 Subject: Re: [9fans] Cross-compiling Plan 9 Topicbox-Message-UUID: 03046110-ead9-11e9-9d60-3106f5b1d025 --_000_4C90CE19CCA64DD4AD453C49CF7B24ABfbcom_ Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Yep, I did exactly the same. With kencc+a-few-patches+plan9port+few-symlink= s you can easily cross compile plan9. See my kencc fork changes: https://github.com/aryx/fork-kencc/commits/master (and my fork 9 fork: https://github.com/aryx/fork-plan9 ) On Jul 14, 2014, at 3:19 PM, David du Colombier <0intro@gmail.com> wrote: Since I am building everything on Unix, and am using the Unix shell (bash in my case), I had to rewrite much of the mkfile rules, specifically ones that deal with loops, conditionals and substituting outputs from commands. Because all those rules are simple, this was a trivial task. I also needed to change sed programs embedded all over the place to be understandable to my systems sed. If you use plan9port's mk, you can define MKSHELL=3Drc in the mkfiles, instead of translating them to bash. In the same way, you can place $PLAN9/bin at the beginning of your PATH to use plan9port's sed instead of the Unix one. In my side, I also tried to compile the Plan 9 programs and libraries on Unix using Charles' toolchain. It was working pretty fine. The main issue I encountered was the lack of support for long Runes in his version. Thus, I simply copied the related code from Plan 9: https://urldefense.proofpoint.com/v1/url?u=3Dhttp://www.9legacy.org/9legacy= /patch/kencc-rune.diff&k=3DZVNjlDMF0FElm4dQtryO4A%3D%3D%0A&r=3D%2FN9d7W2LRw= Zks3eyFNLr8Q%3D%3D%0A&m=3DaLQhZbTqEOAyTguyZu3l8YOQdmbEXDfuDYgNH8idwCE%3D%0A= &s=3Da9410420e661f42c32ce304cfe6fe28914154e91a65bd7c1c9e5f0f341b0b146 -- David du Colombier --_000_4C90CE19CCA64DD4AD453C49CF7B24ABfbcom_ Content-Type: text/html; charset="us-ascii" Content-ID: <650503D28DF5E64D804AB3EFF064C11F@fb.com> Content-Transfer-Encoding: quoted-printable Yep, I did exactly the same. With kencc+a-few-patches+plan9port+= ;few-symlinks
you can easily cross compile plan9.

See my kencc fork changes:
https://= github.com/aryx/fork-kencc/commits/master
(and my fork 9 fork:
https://github.com/aryx= /fork-plan9
)
On Jul 14, 2014, at 3:19 PM, David du Colombier <0intro@gmail.com> wrote:

Since I am building everything on Unix, and am us= ing the Unix shell
(bash in my case), I had to rewrite much of the mkfile rules,
specifically ones that deal with loops, conditionals and substituting
outputs from commands. Because all those rules are simple, this was a
trivial task. I also needed to change sed programs embedded all over
the place to be understandable to my systems sed.

If you use plan9port's mk, you can define MKSHELL=3Drc in the
mkfiles, instead of translating them to bash.

In the same way, you can place $PLAN9/bin at the beginning of
your PATH to use plan9port's sed instead of the Unix one.

In my side, I also tried to compile the Plan 9 programs and
libraries on Unix using Charles' toolchain. It was working
pretty fine. The main issue I encountered was the lack of
support for long Runes in his version.

Thus, I simply copied the related code from Plan 9:

https://urldefense.proofpoint.com/v1/url?u=3Dhttp://= www.9legacy.org/9legacy/patch/kencc-rune.diff&k=3DZVNjlDMF0FElm4dQtryO4= A%3D%3D%0A&r=3D%2FN9d7W2LRwZks3eyFNLr8Q%3D%3D%0A&m=3DaLQhZbTqEOAyTg= uyZu3l8YOQdmbEXDfuDYgNH8idwCE%3D%0A&s=3Da9410420e661f42c32ce304cfe6fe28= 914154e91a65bd7c1c9e5f0f341b0b146

--
David du Colombier


--_000_4C90CE19CCA64DD4AD453C49CF7B24ABfbcom_--