Skip to content

Commit 3c0b696

Browse files
committed
Removed libudev0 from debian package deps.
1 parent 25cc142 commit 3c0b696

File tree

2 files changed

+14
-2
lines changed

2 files changed

+14
-2
lines changed

cefpython/cef3/linux/installer/deps.txt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@ libnspr4 (>= 1.8.0.10)
1919
libnss3 (>= 3.14.3)
2020
libpango1.0-0 (>= 1.22.0)
2121
libstdc++6 (>= 4.6)
22-
libudev0 (>= 147)
2322
libx11-6 (>= 2:1.4.99.1)
2423
libxcomposite1 (>= 1:0.3-1)
2524
libxdamage1 (>= 1:1.1)

cefpython/cef3/linux/installer/find-deps.py

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -162,13 +162,26 @@ def package_exists(package):
162162
def get_final_deps(chrome_deps, cef_deps):
163163
final_deps = chrome_deps
164164
chrome_deps_names = []
165+
chrome_libudev0_dep = ""
165166
for chrome_dep in chrome_deps:
166-
chrome_deps_names.append(get_chrome_dep_name(chrome_dep))
167+
chrome_dep_name = get_chrome_dep_name(chrome_dep)
168+
chrome_deps_names.append(chrome_dep_name)
169+
if chrome_dep_name == "libudev0":
170+
chrome_libudev0_dep = chrome_dep
167171
for cef_dep in cef_deps:
168172
if cef_dep not in chrome_deps_names:
169173
final_deps.append(cef_dep)
170174
log("Found %d CEF deps that were not listed in Chrome deps" % \
171175
(len(final_deps)-len(chrome_deps)) )
176+
# See Issue 145. libudev.so.0 may be missing and postinstall
177+
# script creates a symlink. Not sure how Google Chrome can
178+
# have libudev0 in deps and deb package can install fine.
179+
if chrome_libudev0_dep and chrome_libudev0_dep in final_deps:
180+
log("Removing '%s' from final deps (Issue 145)" % chrome_libudev0_dep)
181+
final_deps.remove(chrome_libudev0_dep)
182+
if "libudev0" in final_deps:
183+
log("Removing 'libudev0' from final deps (Issue 145)")
184+
final_deps.remove("libudev0")
172185
log("Found %d final deps:" % len(final_deps))
173186
print("-" * 80)
174187
print("\n".join(final_deps))

0 commit comments

Comments
 (0)