Bug 12101 - rpm 3.0.4 portability: statfs test fails on OpenBSD
rpm 3.0.4 portability: statfs test fails on OpenBSD
Product: Red Hat Linux
Classification: Retired
Component: rpm (Show other bugs)
All Linux
medium Severity medium
: ---
: ---
Assigned To: Jeff Johnson
Depends On:
  Show dependency treegraph
Reported: 2000-06-11 19:40 EDT by espie
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:
Last Closed: 2000-09-14 13:58:22 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 espie 2000-06-11 19:40:37 EDT
(this bug report will look strange again, as bugzilla is obviously
slanted against portability bugs)

The statfs check fails abysmally on OpenBSD. Thus transaction.c
does not compile.

On OpenBSD, to get struct statfs, one must
#include <sys/param.h>
#include <sys/mount.h>

-> hence STATSFS_IN_SYS_MOUNT_H is never verified.

sys/mount.h alone is not enough. The configure.in comment is right,
rpm should borrow fileutils test or something better.
Comment 1 Jeff Johnson 2000-06-14 09:20:49 EDT
There's a FreeBSD patch that has been applied since rpm-3.0.4. Will that
also fix this OpenBSD issue?

You're right about fileutils tests.
Comment 2 Jeff Johnson 2000-07-31 11:47:26 EDT
AFAIK, rpm-4.0 will build on *BSD systems.

Stealing the tests from fileutils is still a good idea, that's were many of the
existing tests
were cribbed in the first place. I suspect that the tests should be made
Comment 3 Jeff Johnson 2001-07-29 11:35:36 EDT
Please reopen with a patch.

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