Drop use of the deprecated time.clock which was removed in Python 3.8. Adapted from upstream pull request: https://github.com/dlitz/pycrypto/pull/296 diff --git a/lib/Crypto/Random/_UserFriendlyRNG.py b/lib/Crypto/Random/_UserFriendlyRNG.py --- a/lib/Crypto/Random/_UserFriendlyRNG.py +++ b/lib/Crypto/Random/_UserFriendlyRNG.py @@ -73,8 +73,11 @@ class _EntropyCollector(object): t = time.time() self._time_es.feed(struct.pack("@I", int(2**30 * (t - floor(t))))) - # Add the fractional part of time.clock() - t = time.clock() + # Add the fractional part of time.process_time() + try: + t = time.process_time() + except AttributeError: + t = time.clock() self._clock_es.feed(struct.pack("@I", int(2**30 * (t - floor(t))))) -scripts Wojtek's customized Guix
aboutsummaryrefslogtreecommitdiff
path: root/gnu/services/sddm.scm
AgeCommit message (Expand)Author
2023-05-11system: pam: Let PAM extensions add shepherd requirements....* gnu/system/pam.scm (<pam-extension>): New record type. (pam-shepherd-service): Add Shepherd synchronization point. * gnu/services/mail.scm (dovecot-shepherd-service) * gnu/services/lightdm.scm (lightdm-shepherd-service) * gnu/services/mail.scm (opensmtpd-shepherd-service) * gnu/services/sddm.scm (sddm-shepherd-service) * gnu/services/ssh.scm (lsh-shepherd-service, openssh-shepherd-service) * gnu/services/xorg.scm (slim-shepherd-service, gdm-shepherd-service) * gnu/services/base.scm (greetd-shepherd-services): Add PAM requirement. * gnu/system/pam.scm (/etc-entry, extend-configuration, pam-root-service-type, pam-root-service) * gnu/services/authentication.scm (pam-ldap-pam-service) * gnu/services/base.scm (pam-limits-service-type) (greetd-pam-service) * gnu/services/desktop.scm (pam-gnome-keyring) * gnu/services/kerberos.scm (pam-krb5-pam-service) * gnu/services/pam-mount.scm (pam-mount-pam-service): Adapt to use pam-extension. Signed-off-by: Ludovic Courtès <ludo@gnu.org> Josselin Poiret
2023-04-07services: sddm: Remove 'sddm-service' procedure....* gnu/services/sddm.scm (sddm-service): Remove procedure. Signed-off-by: Ludovic Courtès <ludo@gnu.org> Bruno Victal