IRIXCE - Patchset 2 RFC
#1
IRIXCE - Patchset 2 RFC
Looking ahead, I want to get some input on the next patchset for IRIXCE. After reviewing, I think I want to try and move ahead with replacing the utilities "patch" and "diff", since in the IRIX base they are not even original to the system's codebase and they could use an upgrade. While IRIX used old GPLv1 versions of them, I am likely going to port another version, such as the OpenSolaris or NetBSD native versions. 

Beyond that, I want to find a solution for upgrading ksh and /bin/sh on IRIX, but that will take some thought. I think maybe patching mksh or the initscripts is in order. 

We'll see. If you have ideas, throw them below.

I'm the system admin of this site. Private security technician, licensed locksmith, hack of a c developer and vintage computer enthusiast. 

https://contrib.irixnet.org/raion/ -- contributions and pieces that I'm working on currently. 

https://codeberg.org/SolusRaion -- Code repos I control

Technical problems should be sent my way.
Raion
Chief IRIX Officer

Trade Count: (9)
Posts: 4,240
Threads: 533
Joined: Nov 2017
Location: Eastern Virginia
Website Find Reply
04-22-2021, 05:25 AM
#2
RE: IRIXCE - Patchset 2 RFC
https://gitea.irixce.org/Raion/IRIX-neweoe

New commands for IRIXCE and libs going here.

I didn't have to patch these too terribly much other than change a warn/warnx to fprintf to stderr, a bunch of casts to satisfy MIPSPro, a bunch of small code fixes, and some include guards, plus the makefiles.

We'll be working on a libintl/gettext solution that doesn't use GNU, but for now, just get expat and gettext from freeware and it'll work Smile

I'm the system admin of this site. Private security technician, licensed locksmith, hack of a c developer and vintage computer enthusiast. 

https://contrib.irixnet.org/raion/ -- contributions and pieces that I'm working on currently. 

https://codeberg.org/SolusRaion -- Code repos I control

Technical problems should be sent my way.
Raion
Chief IRIX Officer

Trade Count: (9)
Posts: 4,240
Threads: 533
Joined: Nov 2017
Location: Eastern Virginia
Website Find Reply
04-27-2021, 04:38 AM
#3
RE: IRIXCE - Patchset 2 RFC
Ok, a whole slew of new commands. Check the commit history, you may find it funny or perhaps pathetic that I fucked up a few times haha. But I've been up a lot later recently, sleep and stuff isn't great, so I'm just busting my ass when I'm awake to show off some stuff here.

I'm not super proud of the M4 code that I ported, it's a fair bit messy, the Solaris Grep, otoh, is pretty clever as I went through the trouble of removing all gettext stuff. I may do the same with our diff code; not sure.

IRIXCE patchset 1 is in testing now, I'm just getting feedback from a few key users first before I release it after some final QA.

This is all experimental - and if you find fault with my code or with the hacks I performed, fair enough. Tell me how to do better, please.

I'm the system admin of this site. Private security technician, licensed locksmith, hack of a c developer and vintage computer enthusiast. 

https://contrib.irixnet.org/raion/ -- contributions and pieces that I'm working on currently. 

https://codeberg.org/SolusRaion -- Code repos I control

Technical problems should be sent my way.
Raion
Chief IRIX Officer

Trade Count: (9)
Posts: 4,240
Threads: 533
Joined: Nov 2017
Location: Eastern Virginia
Website Find Reply
05-07-2021, 03:19 AM
#4
RE: IRIXCE - Patchset 2 RFC
Ok, so we got diff3, I'm working on a better cat implementation, and some other commands too. Most of these are just ports of other utils. but another is coming soon, and that's going to be a mix of original code, and examples I've found online.

I'm the system admin of this site. Private security technician, licensed locksmith, hack of a c developer and vintage computer enthusiast. 

https://contrib.irixnet.org/raion/ -- contributions and pieces that I'm working on currently. 

https://codeberg.org/SolusRaion -- Code repos I control

Technical problems should be sent my way.
Raion
Chief IRIX Officer

Trade Count: (9)
Posts: 4,240
Threads: 533
Joined: Nov 2017
Location: Eastern Virginia
Website Find Reply
05-17-2021, 07:24 PM
#5
RE: IRIXCE - Patchset 2 RFC
libintl added on an experimental basis. This is a C++ version, and thus the code can only dynamically link against C programs!

I'm the system admin of this site. Private security technician, licensed locksmith, hack of a c developer and vintage computer enthusiast. 

https://contrib.irixnet.org/raion/ -- contributions and pieces that I'm working on currently. 

https://codeberg.org/SolusRaion -- Code repos I control

Technical problems should be sent my way.
Raion
Chief IRIX Officer

Trade Count: (9)
Posts: 4,240
Threads: 533
Joined: Nov 2017
Location: Eastern Virginia
Website Find Reply
05-22-2021, 11:46 PM
#6
RE: IRIXCE - Patchset 2 RFC
On the topic of Korn shell, would mksh work? I know that's a nice and fast Korn implementation. Some of the RSE stuff uses it as it's noticeably faster than bash for scripted utilities.

---
Octane2 Octane O2
jenna64bit
O2

Trade Count: (1)
Posts: 35
Threads: 2
Joined: Apr 2020
Location: USA
Find Reply
05-23-2021, 11:51 AM
#7
RE: IRIXCE - Patchset 2 RFC
mksh could work, we need some patches to get it parity with the base sh/ksh implementations. I believe 23Jodys identified some issues? Otherwise we have to refactor some initscripts. I'm open to either, but for now I've targeted smaller scale stuff that's more drop-in compatible.

I'm the system admin of this site. Private security technician, licensed locksmith, hack of a c developer and vintage computer enthusiast. 

https://contrib.irixnet.org/raion/ -- contributions and pieces that I'm working on currently. 

https://codeberg.org/SolusRaion -- Code repos I control

Technical problems should be sent my way.
Raion
Chief IRIX Officer

Trade Count: (9)
Posts: 4,240
Threads: 533
Joined: Nov 2017
Location: Eastern Virginia
Website Find Reply
05-23-2021, 03:54 PM
#8
RE: IRIXCE - Patchset 2 RFC
libintl-lite, a FOSS, lightweight gettext library in C++ has been added. I am building the official IRIX binaries against MIPSPro entirely, and the only command here relying on gettext currently is diff -- all others I patched out gettext() and similar commands just for English since there's no real point otherwise. If this presents a problem for your setup, when Patchset 2 and more drops, you will want to install it, and then rebuild the dependencies for the lib (currently, just diff) with G++ and then rebuild your commands that rely on them, as I'm not sure if the differences will constitute an issue even for just C programs that rely on C++ functions.

It may seem illogical, but the issue is licensing. As IRIXCE does eventually aim to redo IRIX packaging entirely (i.e. there will no longer be just patches against the release, rather, IRIX will be repackaged and even, potentially, uname will reflect the updates. Thus, because I intend our updates to be permissively licensed either MIT, CDDL, or both, I need to avoid GPL code from being depended on. I will soon rebuild the diff code to link against the new libintl.

I'm the system admin of this site. Private security technician, licensed locksmith, hack of a c developer and vintage computer enthusiast. 

https://contrib.irixnet.org/raion/ -- contributions and pieces that I'm working on currently. 

https://codeberg.org/SolusRaion -- Code repos I control

Technical problems should be sent my way.
Raion
Chief IRIX Officer

Trade Count: (9)
Posts: 4,240
Threads: 533
Joined: Nov 2017
Location: Eastern Virginia
Website Find Reply
05-28-2021, 03:32 AM
#9
RE: IRIXCE - Patchset 2 RFC
looking awesome ! loving so far!

O2 O2O2
mamed
Octane

Trade Count: (0)
Posts: 112
Threads: 29
Joined: Jan 2021
Location: Canada
Find Reply
06-02-2021, 11:11 PM
#10
RE: IRIXCE - Patchset 2 RFC
I have build a sed program from NetBSD for IRIX. It offers inplace editing (it is not, however, compatible with GNU regex due to limitations of IRIX's regex engine -- that would require updates to IRIX libc) over the stock sed. I will test it further, but it's now part of the neweoe. Enjoy

I'm the system admin of this site. Private security technician, licensed locksmith, hack of a c developer and vintage computer enthusiast. 

https://contrib.irixnet.org/raion/ -- contributions and pieces that I'm working on currently. 

https://codeberg.org/SolusRaion -- Code repos I control

Technical problems should be sent my way.
Raion
Chief IRIX Officer

Trade Count: (9)
Posts: 4,240
Threads: 533
Joined: Nov 2017
Location: Eastern Virginia
Website Find Reply
06-12-2021, 04:30 AM


Forum Jump:


Users browsing this thread: 1 Guest(s)