Bug#802528: [Reproducible-builds] Bug#802528: valac: make the generated C files reproducible

James Clarke jrtc27 at debian.org
Mon Jan 6 15:08:42 GMT 2020


On Tue, Oct 20, 2015 at 11:28:21PM +0300, Niko Tyni wrote:
> Control: tag -1 - patch
>
> On Tue, Oct 20, 2015 at 04:09:16PM -0400, Daniel Kahn Gillmor wrote:
>
> > But doesn't the change from HashSet to List end up changing the behavior
> > with regard to multiple children of the same class?
> >
> > That is, if it's a List, then the same class can appear multiple times,
> > whereas if it's a set, i think it just gets added once.
>
> Yes, I think you're right. Thanks for catching that! I suspect it doesn't
> really matter here, but I'm not quite sure, and it certainly isn't safe
> as a general fix.
>
> > The usual approach would be to sort the output where it's produced from
> > the HashedSet, and not to change the data structure itself to allow
> > duplicates.
>
> Sure, this just seemed such a nice solution :)
>
> Anyway, removing the 'patch' tag for now.

The type you want to use is a TreeSet, which implements SortedSet. I
also notice this patch was committed to the repository 2 years ago[1],
ignoring the discussion here about the behaviour being potentially
incorrect, and not actually closing this bug in the upload.

James

[1] https://salsa.debian.org/gnome-team/vala/commit/0056ea4e8d0e25dba13a856fc0aa18646217e4c6



More information about the pkg-gnome-maintainers mailing list