No build reason found for ports:ppc64

File ntp-4.2.6p2-seed_file.patch of Package ntp

Index: ntpd/ntp_crypto.c
===================================================================
--- ntpd/ntp_crypto.c.orig
+++ ntpd/ntp_crypto.c
@@ -3698,10 +3698,12 @@ crypto_setup(void)
 			randfile = rand_file;
 
 		if ((bytes = RAND_load_file(randfile, -1)) == 0) {
+			RAND_write_file(rand_file);
 			msyslog(LOG_ERR,
-			    "crypto_setup: random seed file %s missing",
+			    "crypto_setup: random seed file %s missing - created one\n",
 			    randfile);
-			exit (-1);
+			crypto_setup();
+			return ( 0 );
 		}
 		get_systime(&seed);
 		RAND_seed(&seed, sizeof(l_fp));
openSUSE Build Service is sponsored by