tech-pkg archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: maintaining bulk-{small,medium,large}
On Thu, 14 Sept 2023 at 20:29, David Holland
<dholland-pkgtech%netbsd.org@localhost> wrote:
> > How horrible would it be to set something in bulk-small/Makefile which
> > would cause any subsequent rust build to abort?
>
> Since bulk-large and bulk-medium depend on bulk-small, any direct
> rustproofing that goes into bulk-small will make bulk-large fail. (Not
> to mention it will make builds of "everything" fail.)
But it should be possible to set something that triggers when called from
bulk-small -> ... -> rust
or
bulk-large -> bulk-medium -> bulk-small -> ... -> rust
but not
bulk-large -> ... -> rust (assuming ... does not include bulk-small)
As a proof of concept just adding the following to rust/Makefile
should give the right effect, but... "horrible"
+.if ${_PKGSRC_DEPS:M*bulk-small*}
+PKG_FAIL_REASON="Rust is not permitted when building bulk-small, via:
${_PKGSRC_DEPS}"
+.endif
+
David
- References:
- maintaining bulk-{small,medium,large}
- Re: maintaining bulk-{small,medium,large}
- Re: maintaining bulk-{small,medium,large}
- Re: maintaining bulk-{small,medium,large}
- Re: maintaining bulk-{small,medium,large}
Home |
Main Index |
Thread Index |
Old Index