Commit c05f477
Stop bundling system libraries in .deb, declare as dependencies instead (fixes #387)
The .deb package was incorrectly bundling libuv, libllhttp, and libsqlite3
inside /usr/lib/lightnvr/. These are standard system libraries and should be
package dependencies. The binary was also linked against wrong SONAMEs
(e.g. libsqlite3.so instead of libsqlite3.so.0) because all three were
built from source with custom SONAME settings.
Dockerfile: add DEB_BUILD arg that installs system -dev packages (libuv1-dev,
libsqlite3-dev, libllhttp-dev) instead of building from source, so the binary
links against correct system SONAMEs. Default Docker image builds are unchanged.
debian-package.yml: pass DEB_BUILD=true, only bundle libsod (no system package
available), add libuv1t64, libsqlite3-0, and suite-specific libllhttp to Depends.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>1 parent 27844db commit c05f477
2 files changed
Lines changed: 47 additions & 30 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
75 | 75 | | |
76 | 76 | | |
77 | 77 | | |
| 78 | + | |
78 | 79 | | |
79 | 80 | | |
80 | 81 | | |
| |||
105 | 106 | | |
106 | 107 | | |
107 | 108 | | |
108 | | - | |
109 | | - | |
110 | | - | |
111 | | - | |
112 | | - | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
113 | 112 | | |
114 | 113 | | |
115 | 114 | | |
116 | | - | |
| 115 | + | |
117 | 116 | | |
118 | | - | |
| 117 | + | |
119 | 118 | | |
120 | 119 | | |
121 | 120 | | |
| |||
133 | 132 | | |
134 | 133 | | |
135 | 134 | | |
136 | | - | |
| 135 | + | |
137 | 136 | | |
138 | 137 | | |
139 | | - | |
140 | | - | |
141 | | - | |
142 | | - | |
143 | | - | |
144 | | - | |
145 | | - | |
146 | | - | |
147 | | - | |
148 | | - | |
149 | | - | |
150 | | - | |
| 138 | + | |
151 | 139 | | |
152 | 140 | | |
153 | 141 | | |
| |||
221 | 209 | | |
222 | 210 | | |
223 | 211 | | |
| 212 | + | |
224 | 213 | | |
225 | 214 | | |
226 | 215 | | |
227 | 216 | | |
| 217 | + | |
228 | 218 | | |
229 | 219 | | |
230 | 220 | | |
| |||
241 | 231 | | |
242 | 232 | | |
243 | 233 | | |
244 | | - | |
| 234 | + | |
245 | 235 | | |
246 | 236 | | |
247 | 237 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
| 7 | + | |
7 | 8 | | |
8 | 9 | | |
9 | 10 | | |
| |||
12 | 13 | | |
13 | 14 | | |
14 | 15 | | |
| 16 | + | |
15 | 17 | | |
16 | 18 | | |
17 | 19 | | |
| |||
39 | 41 | | |
40 | 42 | | |
41 | 43 | | |
42 | | - | |
43 | | - | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
44 | 66 | | |
45 | 67 | | |
46 | 68 | | |
47 | 69 | | |
48 | 70 | | |
49 | 71 | | |
50 | | - | |
| 72 | + | |
| 73 | + | |
51 | 74 | | |
52 | | - | |
53 | | - | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
54 | 78 | | |
55 | 79 | | |
56 | 80 | | |
| |||
65 | 89 | | |
66 | 90 | | |
67 | 91 | | |
68 | | - | |
| 92 | + | |
| 93 | + | |
69 | 94 | | |
70 | | - | |
71 | | - | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
72 | 98 | | |
73 | 99 | | |
74 | 100 | | |
| |||
81 | 107 | | |
82 | 108 | | |
83 | 109 | | |
84 | | - | |
| 110 | + | |
| 111 | + | |
85 | 112 | | |
86 | 113 | | |
87 | 114 | | |
| |||
0 commit comments