pkgsrc-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: Patching rust using packages in pkgsrc (.cargo-checksum.json)



On Tue, 8 Aug 2023 at 23:21, nia <nia%netbsd.org@localhost> wrote:
>
> On Tue, Aug 08, 2023 at 09:32:13AM +0100, David Brownlee wrote:
> > I have a small patch to firefox91 and firefox110 (don't ask on the latter)
> > to fix their included copy of mp4parse to work with newer rust. I found I
> > needed to patch their .cargo-checksum.json in order to avoid rust erroring
> > out in the build.
> >
> > Is this the usual way in pkgsrc, or is there an easy way to tell rust 'just
> > go ahead and skip directory checksums? I ask as the one line patch is 68K
> > long due to the very long line lengths :)
> >
> > Thanks
> >
> > David
>
> I'm pretty sure this came up before and the answer was that
> you can just use SUBST to set the checksum to empty (or calculate
> it, I guess). An empty checksum skips the calculation.

It's trivial to calculate it (the build helpfully errors out with the
old and new checksums :).
I'm OK to switch to SUBST - I see thunderbird has an example I can use
as a pattern to keep things consistent.

Thanks :)

David


Home | Main Index | Thread Index | Old Index