Bug 147489 - rpm 4.4.x's new format of '%__vsflags' should be documented
rpm 4.4.x's new format of '%__vsflags' should be documented
Product: Fedora
Classification: Fedora
Component: rpm (Show other bugs)
All Linux
medium Severity medium
: ---
: ---
Assigned To: Paul Nasrat
Mike McLean
: EasyFix, FutureFeature
Depends On:
Blocks: FC5Target
  Show dependency treegraph
Reported: 2005-02-08 10:16 EST by Robert Scheck
Modified: 2007-11-30 17:10 EST (History)
2 users (show)

See Also:
Fixed In Version:
Doc Type: Enhancement
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2005-07-21 18:13:59 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

  None (edit)
Description Robert Scheck 2005-02-08 10:16:28 EST
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):

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:
+#       '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 06:36:48 EDT
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 08:08:50 EDT
Jeff - seems a sane documentation patch to me.
Comment 3 Jeff Johnson 2005-07-21 18:13:59 EDT
Added in rpm-4.4.2-1. Thnaks for the patch.

Note You need to log in before you can comment on or make changes to this bug.