Bug 147489

Summary: rpm 4.4.x's new format of '%__vsflags' should be documented
Product: [Fedora] Fedora Reporter: Robert Scheck <redhat-bugzilla>
Component: rpmAssignee: Paul Nasrat <nobody+pnasrat>
Status: CLOSED UPSTREAM QA Contact: Mike McLean <mikem>
Severity: medium Docs Contact:
Priority: medium    
Version: rawhideCC: n3npq, nobody+pnasrat
Target Milestone: ---Keywords: EasyFix, FutureFeature
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Enhancement
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2005-07-21 22:13:59 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 150221    

Description Robert Scheck 2005-02-08 15:16:28 UTC
Description of problem:
rpm 4.4.x's new format of '%__vsflags' should be documented; this
isn't currently the case.

Version-Release number of selected component (if applicable):
rpm-4.4.1-0.18

Actual results:
Currently only a old and single example for customizing %__vsflags 
is provided, which doesn't work with rpm 4.4.x.

Expected results:
Apply of the provided patch for solving this problem:

--- snipp ---
--- rpm-4.4.1/macros.in          2004-12-05 21:05:46.000000000 +0100
+++ rpm-4.4.1/macros.in.rsc      2004-12-15 16:43:46.000000000 +0100
@@ -726,7 +726,22 @@
 %_rollback_transaction_on_failure      0

 #      Verify digest/signature flags for various rpm modes:
-#           1  --nohdrchk      if set, don't check rpmdb headers
+#       0x30300 (_RPMVSF_NODIGESTS)    --nohdrchk      if set, don't check digest(s)
+#       0xc0c00 (_RPMVSF_NOSIGNATURES) --nosignature   if set, don't check signature(s)
+#       0xf0000 (_RPMVSF_NOPAYLOAD)    --nolegacy      if set, check header+payload (if possible)
+#       0x00f00 (_RPMVSF_NOHEADER)     --nohdrchk      if set, don't check rpmdb headers
+#
+#      For example, the value 0xf0c00 (=0xf0000+0xc0c00) disables legacy
+#      digest/signature checking, disables signature checking, but attempts
+#      digest checking, also when retrieving headers from the database.
+#
+#      You also can do:
+#       >>> hex(rpm._RPMVSF_NOSIGNATURES)
+#       '0xc0c00'
+#      or:
+#       >>> hex(rpm._RPMVSF_NOSIGNATURES|rpm._RPMVSF_NOPAYLOAD)
+#       '0xf0c00'
+#      at the python prompt for example, after "import rpm".
 #
 #      The checking overhead is ~11ms per header for digests/signatures;
 #      each header from the database is checked only when first encountered
--- snapp ---

Comment 1 Robert Scheck 2005-07-14 10:36:48 UTC
Is this (or even better) possible for the upcoming rpm 4.4.2, please? Should be 
really an easy fix...

Comment 2 Paul Nasrat 2005-07-14 12:08:50 UTC
Jeff - seems a sane documentation patch to me.

Comment 3 Jeff Johnson 2005-07-21 22:13:59 UTC
Added in rpm-4.4.2-1. Thnaks for the patch.