RPMTAG_IDENTITY is calculating as digest of part of package header that
marked for identity calculation in rpmtag.h. They are supposed to not
contain irrelevant to package build tag entries.
Mathematically RPMTAG_IDENTITY value is a result of function of two
variable: a package header and an rpm
You convinced me that there should be whitelist filter, so I rewrote
code for it. Follow Panu suggestion [1] I wrote .C generator to filter
proper rpm tags. But currently it does not allow this suggestion [2] by
jbj@:
"The members (and ordering) of the IDENTITY tag set might also
need to be
Keyword `identity' for a tag in rpmTag means that the tag will be used
for RPMTAG_IDENTITY calculation.
Signed-off-by: Vladimir D. Seleznev
---
lib/rpmtag.h | 282 +--
1 file changed, 140 insertions(+), 142 deletions(-)
diff --git a/lib/rpmtag.h
identityMatch() matches tag that should be awared in identity
calculation. The function generator inspects rpmtag.h tag list for tag
identity marker and constructs positive filter function that is adding
to tagext.c.
Signed-off-by: Vladimir D. Seleznev
---
lib/Makefile.am | 8 ++--
Om my VM
%autosetup -c -T -a 0 -a 1 .. unpacks only S1 (-a 1 is the last -a
option)
%autosetup -c -a 0 -a 1 .. unpacks S0 and S1 (because S0 is
special and -T is not here, -a 1 is the last -a option),
%autosetup -c -a1 -a 2 ... unpacks S0 and S2
@pavlinamv but this is exactly what this bug is about ;)
-a1 -a2 unpacks both S:1 and S:2, but -T -a0 -a1 unpacks only S:1 (and not S:0).
--
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
Implicitly (without any option) source0 is unpacked. The -T option disables
%setup's normal unpacking of the archive file specified on the source0 line.
You can "re-enable"unpacking of the source0 using -a 0 or -b 0.
--
You are receiving this because you are subscribed to this thread.
Reply
@pavlinamv but if you use -a1 -a2 -a3, it unpacks all of those sources, why is
the -T -a0 is special?
--
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
rpm behaves correctly. rpm takes into account only the last option '-a number'
in the command.
So
%autosetup -c -T -a 0 -a 1
executes only:
/usr/bin/gzip -dc
/home/brain/Projects/fedora/rpms/nipy-data/nipy-templates-0.2.tar.gz
because
-T disables implicit unpacking of Source0,
-a