Upstream bmake for IRIX -
jwhat - 07-17-2023
Hi SGIer's,
I as part of project to provide "better" way to bootstrap GNU and other software from source on old SGI IRIX boxes, I have been working on getting the current "Berkeley make" (
bmake) working on IRIX.
Thanks to Simon Gerraty <sjg@crufty.net> who maintains bmake for NetBSD & FreeBSD, there is now a new "beta" version available for testing.
I have tested it on IRIX 6.5.30, please give a run to see if it works on your IRIX machine.
The beta can be found here:
-
https://www.crufty.net/ftp/pub/sjg/beta/bmake-20230711.tar.gz
If you can't get this (as it has gone), then the IRIX updates will have been merged into current release, which is here:
-
https://www.crufty.net/ftp/pub/sjg/bmake.tar.gz
I built with MIPSPro 64 bit mips4 (on Fuel), configure was:
./configure CC=c99 CFLAGS="-64 -mips4 -O2" LDFLAGS="-64 -mips4" prefix=<WHERE YOU WANT IT INSTALLED>
Big thank you to Simon for helping to get this refreshed to work with IRIX.
Cheers from Oz,
jwhat/John
RE: Upstream bmake for IRIX -
Raion - 07-17-2023
What changes were necessary for building? Do you have a diff of the build?
RE: Upstream bmake for IRIX -
jwhat - 07-18-2023
Hi Raion,
I tested with lots of version and some of the older ones had many more problems than "current".
I think there was only one actual code change in "make.h" to undef "OP_NONE" as this was defined in IRIX "/usr/include/sys/fcntl.h" and is enum value in bmake.
Other problem was realising that IRIX /sbin/sh is actually a Korn Shell and not a Bourne Shell.
Summary changes, from log:
<CHANGELOG>
2023-07-15 Simon J Gerraty <sjg@beast.crufty.net>
* make-bootstrap.sh.in: set prefix
If configure is run using ksh we get unexpanded ${prefix} in
DEFAULT_SYS_PATH, by ensuring prefix is set we should still get
correct result.
2023-07-13 Simon J Gerraty <sjg@beast.crufty.net>
* VERSION (_MAKE_VERSION): 20230711
bump version for IRIX tweaks
* make.h: undef OP_NONE if defined
* unit-tests/Makefile: set BROKEN_TESTS for IRIX
* configure.in: override INSTALL on IRIX
</CHANGELOG>
Most of effort was in testing/verifying fixes.
Changes from tree diff: "diff bmake-beta bmake" are in this file:
changes.txt
Tiny step in getting Ports going.
EDIT #1: New update 26 July 2023:
http://www.crufty.net/ftp/pub/sjg/bmake-20230723.tar.gz
Cheers from Oz,
jwhat/John
RE: Upstream bmake for IRIX -
Raion - 07-18-2023
Nice. I'll get a gitea up at some point with a proposed list of retained categories. I want to basically get rid of everything that's internationalization related for now. We can always put it back later but when it comes to distribution it's probably best to keep the distribution as light as possible since we are going to have to fork it downstream.
RE: Upstream bmake for IRIX -
jwhat - 07-26-2023
Hi SGI'ers,
there is new update which fixes issue with failing test on IRIX.
Here is change log:
ChangeLog since bmake-20230711
* unit-tests/Makefile: addd varmod-localtime to BROKEN_TESTS
if configure cannot work out how to control TZ.
Remove varmod-localtime from BROKEN_TESTS for IRIX*
* VERSION (_MAKE_VERSION): 20230723
* configure.in: fix the test for wether TZ=Europe/Berlin works.
Depending on the time of year, if run between 22:00 and 00:00 UTC
the check in configure would fail incorrectly.
Take the day into account as well.
This is now released at:
http://www.crufty.net/ftp/pub/sjg/bmake-20230723.tar.gz
Cheers from Oz,
jwhat/John