From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jens Staal To: Fans of the OS Plan 9 from Bell Labs <9fans@9fans.net> Date: Thu, 9 Jul 2015 11:58:30 +0200 Message-ID: <10265590.l4qStTXkpL@krypton> User-Agent: KMail/4.14.10 (Linux/4.0.7-1-ck; KDE/4.14.10; x86_64; ; ) In-Reply-To: <201507090849.t698nrAx021303@freefriends.org> References: <201507090849.t698nrAx021303@freefriends.org> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="iso-8859-1" Subject: Re: [9fans] Gawk in 9front-ports Topicbox-Message-UUID: 5f403f62-ead9-11e9-9d60-3106f5b1d025 On Thursday 09 July 2015 02:49:53 arnold@skeeve.com wrote: > However, I'm happy to incorporate portability changes to make porting > to Plan 9 easier, if they're reasonable. For portability changes, I think not much is needed. There was an issue with a duplciate case in posix/gawkmisc.c ,(S_IFSOCK S_IFIFO, S_IFIFO is defined as S_IFSOCK in APE). I also did a "hack" patch to builtin.c because it somehow forgot the definition of uint32_t and I could not figure out why. Other than that, most of the work was manual generation of config.h, mkfile which are things that also should work with configure/make (but I have not tried it). I added and in config.h because some source files assumed that those headers would be pulled in via other headers. That hack would probably be better to put in custom.h. As external dependency, we need some extra gnulib functions (wchar related stuff). If we can get the dlopen thing to work by using this libdynld (apparently from inferno origin, but once ported to nix-os), that would be very cool. As a porter, my prime aim is to stay as true as possible to the intent of the developer and the expectations of the users. Basically, I do porting as a "simple mental task to relax (like puzzles, cross word or soduko)". For most of you real programmers the stuff I do most likely seems menial and pointless. My "process" 1. can the porting be done? 2. does it work as expected? 3. (bonus) does anyone find it useful?