[Rpm-maint] [PATCH 2/2] Add RPMTAG_IDENTITY

Vladimir D. Seleznev vseleznv at altlinux.org
Wed Mar 14 17:22:40 UTC 2018


On Wed, Mar 14, 2018 at 01:45:31PM +0100, Florian Festi wrote:
> On 03/12/2018 10:04 PM, vseleznv at altlinux.org wrote:
> > From: "Vladimir D. Seleznev" <vseleznv at altlinux.org>
> > 
> > This tag represents binary package build characteristic: if two binary
> > packages have equal RPMTAG_IDENTITY values, it means that these packages
> > have no significant differences.
> > 
> > One of the applications of RPMTAG_IDENTITY is reproducible build
> > verification.
> > 
> > This tag is reserved for ALT Linux Team and marked as unimplemented.
> 
> I really like this idea.
> 
> It still needs some thought on how to actually do that properly and what
> to put into the tag?
>  * URL to the distgit commit
>  * buildsystem name + hash
>  * different thing for each distro?

I think there should be just specific hashsum of significant part of
package header (see introductory message) in that tag without any
additional info.  For other stuffs there are other tags like
RPMTAG_BUILDHOST, RPMTAG_DISTRIBUTION etc.

I'll try to send draft patches for it calculation as soon as possible,
but I'm not sure when.

> But it is fine to figure this out on the go. In the end I would like RPM
> upstream to at least be able give some guide lines on how to use it.
> 
> We also probably need a way to set the tag via cli param or environment
> variable so it can be set automatically by the build systems. This is
> how this should be used IMHO.

I don't understand why it should be set? It supposed to be a sume
representation of build result.

-- 
   With best regards,
   Vladimir D. Seleznev


More information about the Rpm-maint mailing list