File: use-private-dir-for-libntpc.patch

package info (click to toggle)
ntpsec 1.2.3%2Bdfsg1-8
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 10,960 kB
  • sloc: ansic: 62,004; python: 32,017; sh: 1,553; yacc: 1,293; makefile: 190; javascript: 138
file content (29 lines) | stat: -rw-r--r-- 1,260 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
Description: Use private dir for libntpc
 libntpc.so is only used by the Python library.  In NTPsec 1.2.0 (when it
 first appeared), upstream is installing to LIBDIR/ntp.  However, the code
 looks for it in PYTHONDIR and the system library search paths (e.g.
 /usr/lib and /usr/lib/<triplet>).  The proposed (but not yet committed) fix
 for this is to move it LIBDIR.  I have chosen to bring in that patch (since
 it looks like that will be accepted) so the library is installed to LIBDIR
 (which I am setting to /usr/lib/<triplet> in debian/rules) and then use the
 python3-ntp.install file to move it to LIBDIR/ntp.  This patch is then
 necessary to search that location.  Keeping it a private library in
 LIBDIR/ntp avoids the need for full Debian library packaging.  This can be
 revisited once upstream clarifies whether this is intended to be a public
 or private shared library.
Forwarded: https://gitlab.com/NTPsec/ntpsec/-/merge_requests/1185#note_448678013
Origin: vendor
Author: Richard Laager <rlaager@debian.org>
Last-Update: 2020-11-16

--- a/pylib/ntpc.py
+++ b/pylib/ntpc.py
@@ -35,6 +35,8 @@
     if ntpc_path:
         ntpc_paths.append(ntpc_path)
 
+    ntpc_paths.append("@LIBDIR@/ntp/" + (_fmt() % LIB))
+
     return _dlo(ntpc_paths)