RPM

Several packaging spec problems

Bug #1329878 reported by Jeff Johnson
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
RPM
New
Undecided
Unassigned
lsb
Confirmed
Medium
Unassigned
Mandriva
In Progress
Medium

Bug Description

In investigating bug 1369, several problems were discovered in communication
with Jeff Johnson.

All the RPM_INT*_TYPEs are arrays with variable count, and the RPM_BIN_TYPE is a
variable array of octets. For the former, the count field is the number of
elements, for the latter the count is the number of octets. (pkgchk may know
this, but the spec doesn't seem to say it). RPM_BIN_TYPE should be documented
the same as RPM_INT8_TYPE.

==

The signature arrays should be variable-length, not fixed length. E.g.,
RPMSIGTAG_GPG is 65, and should really be a variable-length type.

   RPMSIGTAG_DSA 267 BIN 1 Optional
   RPMSIGTAG_RSA 268 BIN 1 Optional
   RPMSIGTAG_PGP 1002 BIN 1 Optional
   RPMSIGTAG_GPG 1005 BIN 65 Optional

==

The values in table 22-14 cannout be guaranteed:

   Table 22-14. Package Dependency Attributes
            Name Value Meaning
   RPMSENSE_LESS 0x02
   RPMSENSE_GREATER 0x04
   RPMSENSE_EQUAL 0x08
   RPMSENSE_PREREQ 0x40
   RPMSENSE_INTERP 0x100
   RPMSENSE_SCRIPT_PRE 0x200
   RPMSENSE_SCRIPT_POST 0x400
   RPMSENSE_SCRIPT_PREUN 0x800
   RPMSENSE_SCRIPT_POSTUN 0x1000
   RPMSENSE_RPMLIB 0x1000000

Of these, only RPMSENSE_{LESS,GREATER,EQUAL} are locked in. RPMSENSE_PREREQ has
"messy" semantics, all the other values need to be "undefined" or "subject to
change without notice".
[reply] [-] Comment 1

Tags: lsb rpm
Changed in mandriva:
importance: Unknown → Medium
status: Unknown → In Progress
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Related blueprints

Remote bug watches

Bug watches keep track of this bug in other bug trackers.