[Rpm-maint] [PATCH 0/4] RPM 4.8.0 on the mac.
Giulio Eulisse
Giulio.Eulisse at cern.ch
Tue Apr 20 09:41:50 UTC 2010
Dear all,
I was asked to give a try at RPM 4.8.0 on the mac.
Please find in the subsequent mails the 4 patches that were required to get
it to build (I've not yet tested much, actually).
What patch 1 really does is to move `rpmhash.C` and `rpmhash.H` to
`rpmhash_big.C` and `rpmhash_big.H`, in order to avoid conflicts with
`rpmhash.c` and `rpmhash.h`, since MacosX is case insensitive.
Patch 2 is clearly a hack, but I don't have a better idea on how to solve the
problem but duplicating the code in various places where it is needed. In
particula I tried using #pragma weak, but that does not seem to work on mac.
Patch 3 and patch 4 can probably go in unmodified.
What do you think?
Ciao,
Giulio
---
Giulio Eulisse (4):
Handles case insensitive filesystems.
Fixes missing glob_pattern_p on mac.
Fixes missing __fxstat64 symbol on mac.
Removes GNU extension strndup and replaces it with POSIX compliant code.
build/files.c | 33 ++++++++
lib/depends.c | 4 -
lib/fprint.c | 4 -
lib/fprint.h | 4 -
lib/rpmal.c | 8 +-
lib/rpmchecksig.c | 5 +
lib/rpmhash.H | 104 --------------------------
lib/rpmhash.h | 22 +++++
lib/rpmhash_big.C | 207 +++++++++++++++++++++++++++++++++++++++++++++++++++
lib/rpmhash_big.H | 104 ++++++++++++++++++++++++++
lib/transaction.c | 4 -
rpmio/fts.c | 1
rpmio/rpmfileutil.c | 33 ++++++++
13 files changed, 414 insertions(+), 119 deletions(-)
delete mode 100644 lib/rpmhash.H
create mode 100644 lib/rpmhash.h
create mode 100644 lib/rpmhash_big.C
create mode 100644 lib/rpmhash_big.H
--
More information about the Rpm-maint
mailing list