oasislinux / oasis

a small statically-linked linux system
Other
2.75k stars 84 forks source link

update less to version 643 #79

Closed rnpnr closed 4 months ago

rnpnr commented 6 months ago

No particular reason for why I wanted this, but I noticed that some code could be removed from gen.lua when I was reviewing. Also the patch no longer needs to be carried here.

rnpnr commented 6 months ago

I realized that gsub()/gmatch() worked differently in lua prior to 5.3. I added the 3rd commit with a solution that works for old and new versions (and luajit). If you don't care about support for luajit old versions it can be dropped. Otherwise it can be squashed into the first commit.

michaelforney commented 4 months ago

Thanks! I'm pretty sure this is actually how I intended it to work. If the file had to have the correct extension anyway, what's the point of srcsection?

I ended up doing something slightly different than your proposal, but to the same effect. I also pushed a commit allowing you to control man page compression from config.lua. Hopefully that works for you.