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))))) >koszko Wojtek's customized Guix
aboutsummaryrefslogtreecommitdiff
path: root/gnu/packages/patches/sssd-optional-systemd.patch
AgeCommit message (Expand)Author
2022-05-24gnu: sssd: Update to 2.7.0....Add support for renewing AD membership with adcli. Wrap binaries with LDB_MODULES_PATH. Fix the sss_analyze utility to run without systemd libraries. Add native inputs to generate man pages and run additional tests during build. * gnu/packages/sssd.scm (sssd): Update to 2.7.0. [patches]: Drop patches applied upstream. Add a patch for sss_analyze. [inputs]: Add adcli, bash-minimal, jose, keyutils, libnl, pcre2, python. Drop augeas, pcre. [native-inputs]: Add cmocka, doxygen, gettext-minimal, libfaketime, libtool, openssh, po4a, softhsm. [arguments]: Rewrite in gexp style. Fix configure checks. Remove static library from install. Wrap binaries to set correct paths. * gnu/packages/patches/sssd-collision-with-external-nss-symbol.patch, gnu/packages/patches/sssd-fix-samba-4.15.3.patch, gnu/packages/patches/sssd-fix-samba.patch: Delete files. * gnu/packages/patches/sssd-optional-systemd.patch: New file. * gnu/local.mk (dist_patch_DATA): Update accordingly. Signed-off-by: Ludovic Courtès <ludo@gnu.org> Timotej Lazar