859e1a4643
- update to version 1.8.28 - add source url - drop the following patches after upstream fix: * htmldoc_CVE-2009-3050_535943.diff * htmldoc-fortify.diff * htmldoc-libpng15.diff * htmldoc-link-x11.patch - refresh patch htmldoc-docpath.diff - add patch htmldoc-cups_rand.patch to work around a build error (upstream bug #510) - remove now unused --with-fltk configure options - set datadir for make install - do not package doc/ source directory: documentation is already provided by htmldoc.pdf - remove COMPILE.txt from doc: useless in a rpm - add -q to %setup to avoid spamming the build log OBS-URL: https://build.opensuse.org/request/show/287778 OBS-URL: https://build.opensuse.org/package/show/Publishing/htmldoc?expand=0&rev=13
21 lines
600 B
Diff
21 lines
600 B
Diff
bug#510: Fix undefined symbols CUPS_SRAND and CUPS_RAND
|
|
https://www.msweet.org/bugs.php?U510
|
|
|
|
Index: htmldoc-1.8.28/htmldoc/http.c
|
|
===================================================================
|
|
--- htmldoc-1.8.28.orig/htmldoc/http.c
|
|
+++ htmldoc-1.8.28/htmldoc/http.c
|
|
@@ -1229,10 +1229,10 @@ httpInitialize(void)
|
|
* it is the best we can do (on others, this seed isn't even used...)
|
|
*/
|
|
|
|
- CUPS_SRAND(time(NULL));
|
|
+ srand(time(NULL));
|
|
|
|
for (i = 0; i < sizeof(data); i ++)
|
|
- data[i] = CUPS_RAND();
|
|
+ data[i] = rand();
|
|
|
|
RAND_seed(data, sizeof(data));
|
|
#endif /* HAVE_GNUTLS */
|