Modula2 port? GNU Modula2?

Mark E Anderson mark at macports.org
Sat Jul 19 00:17:20 UTC 2025


I could take a look - I don't see a real downside unless it fails all the time. I mean we build fortran by default! (Which is good, I need it, but still)

—Mark

On Fri, Jul 18, 2025, at 8:05 PM, Dave Allured - NOAA Affiliate via macports-users wrote:
> Ken, I see two options for you.  Which would you prefer?
> 
> 1.  Wait for someone to review my existing PR.  This could take a while longer.
> https://github.com/macports/macports-ports/pull/28687
> 
> 2.  Patch your local MacPorts install to add GNU Modula2.  This is the quickest, and totally under your own control.  However there are multiple steps, and a GCC rebuild will keep your Mac running for several hours.  Also you may need to rebuild following any later use of port selfupdate.
> 
> If you decide to patch, please let me know whether you have a standard install in /opt/local, or are using a custom MacPorts install directory.  Also do you have sudo privileges?
> 
> 
> On Fri, Jul 18, 2025 at 5:34 PM Kenneth Wolcott <kennethwolcott at gmail.com> wrote:
>> Hi Dave, Mark...
>> 
>>   I've again taken a look at the MacPorts Guide. I'd really appreciate
>> someone actually doing what you've suggested.  I know it's so much
>> better for the fisherman to teach the beginner how to fish rather than
>> giving him a fish, but it's more than a little daunting for me,
>> without some extensive hand-holding and spoon-feeding :-)
>> 
>> Thanks,
>> Ken Wolcott
>> 
>> On Fri, Jul 18, 2025 at 1:00 PM Mark E Anderson <mark at macports.org> wrote:
>> >
>> > We could probably add that as a gcc variant, too, if that's all it takes.
>> >
>> > —Mark
>> >
>> > On Fri, Jul 18, 2025, at 12:08 PM, Dave Allured - NOAA Affiliate via macports-users wrote:
>> >
>> > Ken, you can get GNU Modula2 as an added component of the GCC port.  This is supported since GCC 13.1.  Add this simple patch to your local GCC portfile, then do a local rebuild of GCC.  MacPorts does not currently host a pre-built version.
>> >
>> > -set gcc_configure_langs {c c++ objc obj-c++ lto fortran}
>> > +set gcc_configure_langs {c c++ objc obj-c++ lto fortran m2}
>> >
>> > This built and tested fine for me.  The compiler run command is gm2.  There is on-line documentation on the GCC website.
>> >
>> >
>> > On Thu, Jun 12, 2025 at 1:41 PM Kenneth Wolcott <kennethwolcott at gmail.com> wrote:
>> >
>> > I'd sure like to have a Modula2 port.
>> >
>> > I see that Modula3 seems very dead...
>> >
>> > Thanks,
>> > Ken Wolcott
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macports.org/pipermail/macports-users/attachments/20250718/bd767866/attachment.htm>


More information about the macports-users mailing list