Wednesday, December 9, 2015, 04:35 AM
Posted by Administrator
Some time back, about 18 months in fact, I started on a project to port Samba 4.x to OpenVMS. Well, then there was a year that was very interesting, very demanding, and not much progress occurred on my Open Source On OpenVMS projects. Times change - now back working on the port.Posted by Administrator
Samba 4.x saw a major change in the build environment. It went from the classical configure/make and bash scripting to using a Python-based environment called WAF. So LOTS of learning and finding things that needed to be worked to make things work. The initial attempt showed that the subprocess.py module in Python had no support for OpenVMS. I did an initial implementation using lib$spawn and sys$crembx as well as some other items but I found that to limiting and required too many changes in the Python scripts.
My current effort has created a new version - soon to be available - of subprocess.py. This version uses more of the CRTL features to do thing closer to the way Linux/Unix works. So we have the use of the execv()/execve() functions and vfork to create the child. We had to implement some of the code in C due to the way vfork/exec calls work but that is easily called from Python and could be implemented in a single call rather than multiple, which would not work.
We have eliminated any changes to the Python scripts and currently have the configure process running to a point where it is trying to test for building extensions to Python, which is quite a ways down the process - several thousand tests.
Will add more to this as we progress...
Bill.
view entry
( 46 views )
| 0 trackbacks