www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.announce - OpenBSD DMD package

reply Brian <bcallah openbsd.org> writes:
Hi all --

I am in the process of getting a DMD package shipped in the 
OpenBSD package repository.
If you are an OpenBSD user, please test and report back (on the 
OpenBSD mailing list, please) how it went for you. The more users 
test, the faster I can commit the package :)

~Brian

https://marc.info/?l=openbsd-ports&m=163396364901247&w=2
Oct 11 2021
next sibling parent Ryan <boggsrm gmail.com> writes:
On Monday, 11 October 2021 at 15:07:59 UTC, Brian wrote:
 Hi all --

 I am in the process of getting a DMD package shipped in the 
 OpenBSD package repository.
 If you are an OpenBSD user, please test and report back (on the 
 OpenBSD mailing list, please) how it went for you. The more 
 users test, the faster I can commit the package :)

 ~Brian

 https://marc.info/?l=openbsd-ports&m=163396364901247&w=2
Just saw the email come through this AM. Pleasantly shocked and surprised. :). Going to try to setup a snapshot today and test this out. I'll respond to the email once I give it a whirl. Thanks, Ryan
Oct 11 2021
prev sibling next sibling parent reply Nicholas Wilson <iamthewilsonator hotmail.com> writes:
On Monday, 11 October 2021 at 15:07:59 UTC, Brian wrote:
 Hi all --

 I am in the process of getting a DMD package shipped in the 
 OpenBSD package repository.
 If you are an OpenBSD user, please test and report back (on the 
 OpenBSD mailing list, please) how it went for you. The more 
 users test, the faster I can commit the package :)

 ~Brian

 https://marc.info/?l=openbsd-ports&m=163396364901247&w=2
Cool, do you know anything about setting up OpenBSD CI pipelines for DMD/druntime/phobos so we don't break that accidentally?
Oct 12 2021
parent reply Brian <bcallah openbsd.org> writes:
On Tuesday, 12 October 2021 at 12:02:42 UTC, Nicholas Wilson 
wrote:
 On Monday, 11 October 2021 at 15:07:59 UTC, Brian wrote:
 Hi all --

 I am in the process of getting a DMD package shipped in the 
 OpenBSD package repository.
 If you are an OpenBSD user, please test and report back (on 
 the OpenBSD mailing list, please) how it went for you. The 
 more users test, the faster I can commit the package :)

 ~Brian

 https://marc.info/?l=openbsd-ports&m=163396364901247&w=2
Cool, do you know anything about setting up OpenBSD CI pipelines for DMD/druntime/phobos so we don't break that accidentally?
I don't think any of the free ones support OpenBSD yet :) There is SourceHut, which does support OpenBSD CI, but I don't think it is free to use. ~Brian
Oct 12 2021
next sibling parent reply Brian <bcallah openbsd.org> writes:
Hello D community --

I am pleased and excited to announce that I have committed a 
package of DMD to the OpenBSD package repository: 
https://marc.info/?l=openbsd-ports-cvs&m=163409989017870&w=2

OpenBSD -current users should be able to run `pkg_add dmd` 
sometime tomorrow to get a binary package of DMD.

Unfortunately, the timing of DMD 2.098.0 just missed the deadline 
to be included in OpenBSD 7.0. However, because -current and 7.0 
are effectively the same in terms of libraries that matter for 
DMD, I will personally support OpenBSD 7.0 users who use the 
dmd-2.098.0 package until OpenBSD 7.1 is released (6 months from 
now).

~Brian
Oct 12 2021
parent reply jfondren <julian.fondren gmail.com> writes:
On Wednesday, 13 October 2021 at 04:46:06 UTC, Brian wrote:
 Hello D community --

 I am pleased and excited to announce that I have committed a 
 package of DMD to the OpenBSD package repository: 
 https://marc.info/?l=openbsd-ports-cvs&m=163409989017870&w=2

 OpenBSD -current users should be able to run `pkg_add dmd` 
 sometime tomorrow to get a binary package of DMD.
Cool. My OpenBSD box is on fritz so I haven't kept done more, but I have a short [gdc-on-OpenBSD guide](https://d.minimaltype.com/index.cgi/wiki?name=D%20on%20OpenBSD). The login.conf step likely applies to dmd as well.
Oct 12 2021
parent reply Brian <bcallah openbsd.org> writes:
On Wednesday, 13 October 2021 at 05:47:48 UTC, jfondren wrote:
 On Wednesday, 13 October 2021 at 04:46:06 UTC, Brian wrote:
 Hello D community --

 I am pleased and excited to announce that I have committed a 
 package of DMD to the OpenBSD package repository: 
 https://marc.info/?l=openbsd-ports-cvs&m=163409989017870&w=2

 OpenBSD -current users should be able to run `pkg_add dmd` 
 sometime tomorrow to get a binary package of DMD.
Cool. My OpenBSD box is on fritz so I haven't kept done more, but I have a short [gdc-on-OpenBSD guide](https://d.minimaltype.com/index.cgi/wiki?name=D%20on%20OpenBSD). The login.conf step likely applies to dmd as well.
It does. But you're going to have to further update your guide: I just posted ports of dub and gdmd to ports . Please test and report back to ports . Also, does dub+gdmd actually work for you at runtime? I am getting this issue: https://issues.dlang.org/show_bug.cgi?id=22381
Oct 12 2021
parent reply Brian <bcallah openbsd.org> writes:
On Wednesday, 13 October 2021 at 06:00:57 UTC, Brian wrote:
 It does.

 But you're going to have to further update your guide: I just 
 posted ports of dub and gdmd to ports . Please test and report 
 back to ports .

 Also, does dub+gdmd actually work for you at runtime? I am 
 getting this issue: 
 https://issues.dlang.org/show_bug.cgi?id=22381
Also, all the segfaults with dub should be fixed. If not, definitely let me know. A port of the D tools will be sent tomorrow once I clean it up.
Oct 12 2021
parent reply jfondren <julian.fondren gmail.com> writes:
On Wednesday, 13 October 2021 at 06:03:30 UTC, Brian wrote:
 On Wednesday, 13 October 2021 at 06:00:57 UTC, Brian wrote:
 It does.

 But you're going to have to further update your guide: I just 
 posted ports of dub and gdmd to ports . Please test and report 
 back to ports .

 Also, does dub+gdmd actually work for you at runtime? I am 
 getting this issue: 
 https://issues.dlang.org/show_bug.cgi?id=22381
Also, all the segfaults with dub should be fixed. If not, definitely let me know. A port of the D tools will be sent tomorrow once I clean it up.
A fresh build of dub (with gdc) is still segfaulting, and looks to be related to SDL: ``` $ dub -q init -n -f=json; dub -q run Edit source/app.d to start your project. $ rm -rf dub.{sdl,json} source $ dub -q init -n -f=sdl; dub -q run Segmentation fault (core dumped) ``` I'll check out the new ports when they're available. Thanks!
Oct 13 2021
parent Brian <bcallah openbsd.org> writes:
On Wednesday, 13 October 2021 at 07:43:49 UTC, jfondren wrote:
 A fresh build of dub (with gdc) is still segfaulting, and looks 
 to be related to SDL:

 ```
 $ dub -q init -n -f=json; dub -q run
 Edit source/app.d to start your project.
 $ rm -rf dub.{sdl,json} source
 $ dub -q init -n -f=sdl; dub -q run
 Segmentation fault (core dumped)
 ```

 I'll check out the new ports when they're available. Thanks!
You didn't update your gdc compiler. See gkoehler 's patch on ports . ~Brian
Oct 13 2021
prev sibling parent reply Jacob Carlborg <doob me.com> writes:
On Tuesday, 12 October 2021 at 12:42:09 UTC, Brian wrote:

 I don't think any of the free ones support OpenBSD yet :)
 There is SourceHut, which does support OpenBSD CI, but I don't 
 think it is free to use.
You can use my GitHub action: https://github.com/marketplace/actions/cross-platform-action. -- /Jacob Carlborg
Oct 14 2021
parent reply Brian <bcallah openbsd.org> writes:
On Thursday, 14 October 2021 at 14:51:57 UTC, Jacob Carlborg 
wrote:
 On Tuesday, 12 October 2021 at 12:42:09 UTC, Brian wrote:

 I don't think any of the free ones support OpenBSD yet :)
 There is SourceHut, which does support OpenBSD CI, but I don't 
 think it is free to use.
You can use my GitHub action: https://github.com/marketplace/actions/cross-platform-action. -- /Jacob Carlborg
Awesome! I will spend some time soon figuring it out. ~Brian
Oct 14 2021
parent Jacob Carlborg <doob me.com> writes:
On Thursday, 14 October 2021 at 16:14:17 UTC, Brian wrote:

 Awesome! I will spend some time soon figuring it out.
Here are two real world examples: https://github.com/jacob-carlborg/lime/blob/master/.github/workflows/ci.yml https://github.com/jacob-carlborg/dlp/blob/master/.github/workflows/ci.yml -- /Jacob Carlborg
Oct 14 2021
prev sibling parent Brian Callahan <bcallah openbsd.org> writes:
On Monday, 11 October 2021 at 15:07:59 UTC, Brian wrote:
 Hi all --

 I am in the process of getting a DMD package shipped in the 
 OpenBSD package repository.
 If you are an OpenBSD user, please test and report back (on the 
 OpenBSD mailing list, please) how it went for you. The more 
 users test, the faster I can commit the package :)

 ~Brian

 https://marc.info/?l=openbsd-ports&m=163396364901247&w=2
I finally found and fixed the last remaining blocker for DMD on 32-bit OpenBSD: https://github.com/dlang/dmd/pull/13251 Once a new release of DMD stable or master is made (whichever comes first), I will upgrade the OpenBSD package of DMD to include OpenBSD/i386 support alongside the already existing OpenBSD/amd64 support. ~Brian
Oct 31 2021