Github messages for voidlinux
 help / color / mirror / Atom feed
From: Marie-Joseph <Marie-Joseph@users.noreply.github.com>
To: ml@inbox.vuxu.org
Subject: [ISSUE] package ldc for aarch64 (and more)
Date: Wed, 29 Dec 2021 07:09:51 +0100	[thread overview]
Message-ID: <gh-mailinglist-notifications-41a7ca26-5023-4802-975b-f1789d68868e-void-packages-34752@inbox.vuxu.org> (raw)

[-- Attachment #1: Type: text/plain, Size: 2000 bytes --]

New issue by Marie-Joseph on void-packages repository

https://github.com/void-linux/void-packages/issues/34752

Description:
## Rationale

Currently, ldc is only available for x86 systems. This is likely because it requires an extant D compiler to build, and the template uses dmd since gdc and its gdmd wrapper are not packaged. Dmd only supports x86. What this means in effect is that D is only available to Void users on x86. Fear not! We (and I do intend to work on this so I really do mean we) can bring D to other Void users in three relatively simple steps.

## Steps

- [ ] package gdc

This is the ldc team's suggested D compiler for bootstrapping ldc and is cross-platform. Gdc is available in gcc sources, and versions <=11.2 use a C++ frontend (no D compiler needed). Since Void uses 10.x anyway, all that's required is to update the template with an option to pass the flag `--enable_languages=d` (like is done now for Ada) and the relevant packaging code.

- [ ]  package [gdmd](https://github.com/D-Programming-GDC/gdmd)

When using gdc to bootstrap ldc, the gdmd frontend is required. It's just a wrapper to make gdc accept the same arguments as ldc and dmd.

- [ ]  update ldc template to use gdc and gdmd instead of dmd

This should be as simple as adding them as dependencies and possibly passing a flag to point ldc's build system at them.

Et voilà, D will be available to (almost) every Void user, as well as a new frontend and backend for x86 users! And, since there will now be two cross-platform D compilers available in addition to dmd, moving beyond gcc 11.2 shouldn't affect this much.

## Notes

Since I need this, I'm going to work on it and will update this issue as I progress. If more capable hands want to take over, feel absolutely free. It'll likely take me several days to a couple weeks to do this (especially since my build machine for testing is a Raspberry Pi 4) and I'm sure others with more experience would be able to do it faster.

             reply	other threads:[~2021-12-29  6:09 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-12-29  6:09 Marie-Joseph [this message]
2021-12-30 19:59 ` sug0
2021-12-30 21:27 ` ericonr
2021-12-30 21:38 ` q66
2021-12-31  1:16 ` Marie-Joseph
2021-12-31  1:17 ` Marie-Joseph
2021-12-31  1:31 ` Marie-Joseph
2021-12-31  2:23 ` q66
2021-12-31  2:25 ` q66
2021-12-31 19:07 ` Marie-Joseph
2021-12-31 20:27 ` Marie-Joseph
2021-12-31 22:47 ` q66
2022-06-20  2:13 ` github-actions
2022-07-04  2:15 ` [ISSUE] [CLOSED] " github-actions

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=gh-mailinglist-notifications-41a7ca26-5023-4802-975b-f1789d68868e-void-packages-34752@inbox.vuxu.org \
    --to=marie-joseph@users.noreply.github.com \
    --cc=ml@inbox.vuxu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).