Nick Black (Public gmail account):
Package: debhelper
Version: 13.24.1
Severity: wishlist
X-Debbugs-Cc: dankamong...@gmail.com

Dear Maintainer,

I hope to have the zig programming language in unstable soon; I'm uploading it
to NEW now. I'll then be packaging some zig applications. Right now, I'm
hardcoding the necessary dh overrides, but I imagine we'd want a buildsystem.
I'm not certain about that, though (rust, AFAICT, doesn't use a dh buildsystem
through cargo-deb), so I thought I'd ask here. I can probably go ahead and
implement this if there are no objections.


[...]

Hi,

The rule of thumb is that at least 10 packages in the archive should be able to use the feature, because I am considered to be added into `debhelper` (the source package) itself. This baseline goes back to the original maintainer, who proposed it and I have kept it for now.

That said, you can create and prototype the build system logic outside the `debhelper` package, such as by having the `zig` source package provide it (or build a `dh-zig` package that contains it). This is also an advantage for you, since you can prototype at your own pace without being affected by `debhelper`'s policies (such as backwards compat rules, which tends to get away for early prototyping and rapid bug fixing).

Consuming packages can then use it via:

```
%:
        dh $@ -Szig
```

(plus the relevant Build-Depends).

The only feature you cannot test here is auto-detection/auto-activation of the build system, since `debhelper` has a curated list of build systems it will provide auto-detection for. However, once we have an idea of the logic here and the build system code is in sid, `debhelper` can add it to the list of known third-party build systems with a good auto-detection method.

As for getting started, there is a very small amount of documentation in the bottom of doc/PROGRAMMING.md (/usr/share/doc/debhelper/PROGRAMMING.md.gz) to get you started. The build system classes are not that advanced, so you can probably reverse engineer the existing code easily enough provided you understand Perl. In any event, feel free to ask.

Best regards,
Niels


Attachment: OpenPGP_signature.asc
Description: OpenPGP digital signature

Reply via email to