Bug 6428 - rpmlib.h: include files wrong?
rpmlib.h: include files wrong?
Status: CLOSED WONTFIX
Product: Red Hat Linux
Classification: Retired
Component: rpm (Show other bugs)
6.1
All Linux
medium Severity medium
: ---
: ---
Assigned To: Jeff Johnson
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 1999-10-27 12:19 EDT by stewart
Modified: 2008-05-01 11:37 EDT (History)
0 users

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 1999-10-27 12:39:37 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:


Attachments (Terms of Use)

  None (edit)
Description stewart 1999-10-27 12:19:29 EDT
I may be wrong here, but...

file /usr/include/rpm/rpmlib.h includes the following header
files:

	/* This is the *only* module users of rpmlib should need to
include */

	/* and it shouldn't need these :-( */

	#include <rpmio.h>
	#include <dbindex.h>
	#include <header.h>
	#include <popt.h>

Should the above files (excluding popt.h) not have a prefix
of rpm/ as the header files are in the /usr/include/rpm
direcotry?

I know what the comment says, but something still seem to
need them.  And there is that whole completeness thing. :)
I noticed this when building ucd-snmp (from RH 6.0) with
rpm-3.0.3-6x.src.rpm
Comment 1 Jeff Johnson 1999-10-27 12:39:59 EDT
Add -I/usr/include/rpm to CFLAGS.

I can't change to
	#include <rpm/header.h>
because that prevents rpm itself from building.

The include used to be
	#include "header.h"
but that prevented some (perl?) automated (and broken!) binding
generator from working.

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