On Thursday 09 July 2015 02:49:53 arn...@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  <inttypes.h> and  <sys/time.h>  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?




Reply via email to