cryptlib/cryptlib.patch

Wed, 01 Aug 2012 23:49:03 +0200

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Wed, 01 Aug 2012 23:49:03 +0200
changeset 436
f26e9329b115
permissions
-rw-r--r--

Hack rpmconstant header file to allow targets to build, because...
Solaris studio cc(1) fails to build targets in rpmconstant with errors:
'undefined symbol first referenced in file constant.o' regarding symbols:
rpmdsInit, rpmdsNext, rpmdsTagN, rpmHeaderFormats, hdrVec, rpmTagTable,
rpmdsSearch, rpmdsResult, rpmTags, rpmdsIx, rpmdsDNEVR, rpmdsSetResult.
It seems that these symbols are not used by RPM in any way, and thus
the build configuration can succeed without including the nasty headers.

michael@37 1 Index: random/unix.c
michael@37 2 --- random/unix.c.orig 2005-08-23 00:48:20 +0200
michael@37 3 +++ random/unix.c 2005-09-06 20:55:10 +0200
michael@37 4 @@ -24,6 +24,9 @@
michael@37 5 #include <stdio.h>
michael@37 6 #include <string.h>
michael@37 7 #include <time.h>
michael@37 8 +#ifdef __FreeBSD__
michael@37 9 +#include <pthread.h>
michael@37 10 +#endif
michael@37 11 #include "crypt.h"
michael@37 12
michael@37 13 /* Unix and Unix-like systems share the same makefile, make sure that the

mercurial