Skip to content

Commit 58bef79

Browse files
scpa1055cassava
authored andcommitted
vtd: Change dockerfile to support ubuntu2004
1 parent 32ea6fa commit 58bef79

File tree

3 files changed

+45
-32
lines changed

3 files changed

+45
-32
lines changed

optional/vtd/vendor/vtd-2022.3/Dockerfile

+25-17
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ RUN --mount=type=cache,id=ubuntu-20.04-cache,target=/var/cache/apt \
4545
libdatrie1 \
4646
libdv4 \
4747
libdvdnav4 \
48-
libdvdread4 \
48+
libdvdread7 \
4949
libegl1-mesa \
5050
libflac8 \
5151
libfontconfig1 \
@@ -70,26 +70,24 @@ RUN --mount=type=cache,id=ubuntu-20.04-cache,target=/var/cache/apt \
7070
libjpeg-turbo8 \
7171
libkrb5-26-heimdal \
7272
libldap-2.4-2 \
73-
libldb1 \
73+
libldb2 \
7474
liblzo2-2 \
7575
libmp3lame0 \
76-
libntdb1 \
7776
libogg0 \
7877
liborc-0.4-0 \
7978
libpango-1.0-0 \
8079
libpangocairo-1.0-0 \
8180
libpangoft2-1.0-0 \
8281
libpixman-1-0 \
8382
libpulse0 \
84-
libqt4-network \
85-
libqt4-qt3support \
86-
libqt4-script \
87-
libqt4-sql \
88-
libqt4-svg \
89-
libqt4-xml \
90-
libqt4-xmlpatterns \
91-
libqtcore4 \
92-
libqtgui4 \
83+
libqt5network5 \
84+
libqt5script5 \
85+
libqt5sql5 \
86+
libqt5svg5 \
87+
libqt5xml5 \
88+
libqt5xmlpatterns5 \
89+
libqt5core5a \
90+
libqt5gui5 \
9391
libroken18-heimdal \
9492
libsasl2-2 \
9593
libsdl1.2debian \
@@ -138,11 +136,21 @@ RUN --mount=type=cache,id=ubuntu-20.04-cache,target=/var/cache/apt \
138136
tcsh \
139137
xterm \
140138
wget \
141-
&& \
142-
wget 'https://launchpad.net/~ubuntu-security/+archive/ubuntu/ppa/+build/15108504/+files/libpng12-0_1.2.54-1ubuntu1.1_amd64.deb' -O /root/libpng12.deb && \
143-
dpkg -i /root/libpng12.deb && \
144-
rm /root/libpng12.deb && \
145-
rm -rf /var/lib/apt/lists/*
139+
libncursesw5 \
140+
libpng16-16 \
141+
libwebp6 \
142+
libffi7\
143+
zlib1g-dev && \
144+
rm -rf /var/lib/apt/lists/*
145+
146+
RUN wget 'https://sourceforge.net/projects/libpng/files/libpng12/1.2.59/libpng-1.2.59.tar.xz' && \
147+
tar Jxfv libpng-1.2.59.tar.xz && \
148+
cd libpng-1.2.59 && \
149+
./configure && \
150+
make && \
151+
cp .libs/libpng12.so.0.59.0 /lib/x86_64-linux-gnu/ && \
152+
cp -d .libs/libpng12.so.0 /lib/x86_64-linux-gnu/ && \
153+
rm -rf libpng-1.2.59
146154

147155
RUN pip3 install --upgrade pip && \
148156
pip3 install "conan<2.0.0"

optional/vtd/vendor/vtd-2022.3/conanfile.py

+16-12
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,7 @@ def find_binary_files() -> List[Path]:
5353
)
5454
return [Path(x) for x in result.stdout.decode().splitlines()]
5555

56+
5657
def remove_broken_symlinks() -> None:
5758
"""Remove all broken symlinks that are in the vtd_folder."""
5859
subprocess.run(
@@ -75,7 +76,7 @@ class VtdConan(ConanFile):
7576
options = {
7677
"with_osi": [True, False],
7778
"with_road_designer": [True, False],
78-
"with_image_generator": [True, False],
79+
"with_image_generator": [True, False],
7980
}
8081
default_options = {
8182
"with_osi": True,
@@ -98,8 +99,7 @@ def export_sources(self):
9899

99100
def configure(self):
100101
if self.settings.os == "Windows":
101-
raise ConanInvalidConfiguration(
102-
"VTD binaries do not exist for Windows")
102+
raise ConanInvalidConfiguration("VTD binaries do not exist for Windows")
103103

104104
def build(self):
105105
src = Path(self.source_folder)
@@ -130,11 +130,11 @@ def extract_archive(archive):
130130
)
131131
patch_rpath(
132132
vtddir / "Runtime/Core/ModuleManager/lib/libVTDModulePlugin.so.2022",
133-
["$ORIGIN/../../Lib"]
133+
["$ORIGIN/../../Lib"],
134134
)
135135
patch_rpath(
136136
vtddir / "Runtime/Core/ModuleManager/lib/libprotobuf.so.9",
137-
["$ORIGIN/../../Lib"]
137+
["$ORIGIN/../../Lib"],
138138
)
139139
patch_rpath(
140140
vtddir / "Runtime/Core/ModuleManager/lib/libopen_simulation_interface.so",
@@ -145,7 +145,8 @@ def extract_archive(archive):
145145
["$ORIGIN/../Lib", "$ORIGIN/lib"],
146146
)
147147
patch_rpath(
148-
vtddir / "Runtime/Core/ModuleManager.cxx98/lib/libopen_simulation_interface.so",
148+
vtddir
149+
/ "Runtime/Core/ModuleManager.cxx98/lib/libopen_simulation_interface.so",
149150
["$ORIGIN/../../Lib", "$ORIGIN"],
150151
)
151152
patch_rpath(
@@ -165,17 +166,17 @@ def extract_archive(archive):
165166
["$ORIGIN/../../Lib"],
166167
)
167168
patch_rpath(
168-
vtddir / "Runtime/Core/ModuleManager.cxx11/lib/libopen_simulation_interface.so",
169+
vtddir
170+
/ "Runtime/Core/ModuleManager.cxx11/lib/libopen_simulation_interface.so",
169171
["$ORIGIN/../../Lib", "$ORIGIN"],
170172
)
171173
patch_rpath(
172174
vtddir / "Runtime/Core/ModuleManager.cxx11/lib/libprotobuf.so.9",
173175
["$ORIGIN/../../Lib"],
174176
)
175177
patch_rpath(
176-
vtddir /
177-
"Runtime/Core/ParamServer/paramServer.2022.3.40", [
178-
"$ORIGIN/../Lib"]
178+
vtddir / "Runtime/Core/ParamServer/paramServer.2022.3.40",
179+
["$ORIGIN/../Lib"],
179180
)
180181
patch_rpath(
181182
vtddir / "Runtime/Core/Traffic/ghostdriver.2022.3.40_flexlm",
@@ -186,8 +187,11 @@ def extract_archive(archive):
186187
for file in find_binary_files():
187188
try:
188189
patch_rpath(
189-
file, [
190-
f"$ORIGIN/{os.path.relpath(libdir, (dst / file).parent)}"]
190+
file,
191+
[
192+
f"$ORIGIN/{os.path.relpath(libdir, (dst / file).parent)}",
193+
"$ORIGIN",
194+
],
191195
)
192196
except:
193197
# Not all files can be set, but even if this happens it doesn't appear

optional/vtd/vendor/vtd-2022.3/libdeps_pruned.txt

+4-3
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
/lib/x86_64-linux-gnu/libusb-0.1.so.4
1010
/lib/x86_64-linux-gnu/libwrap.so.0
1111
/lib/x86_64-linux-gnu/libz.so.1
12+
/usr/lib/x86_64-linux-gnu/libwebp.so.6
1213
/usr/lib/x86_64-linux-gnu/libEGL.so.1
1314
/usr/lib/x86_64-linux-gnu/libtiff.so.5
1415
/usr/lib/x86_64-linux-gnu/libjbig.so.0
@@ -36,15 +37,15 @@
3637
/usr/lib/x86_64-linux-gnu/libasyncns.so.0
3738
/usr/lib/x86_64-linux-gnu/libaudio.so.2
3839
/usr/lib/x86_64-linux-gnu/libcaca.so.0
39-
/usr/lib/x86_64-linux-gnu/libffi.so.6
40+
/usr/lib/x86_64-linux-gnu/libffi.so.7
4041
/usr/lib/x86_64-linux-gnu/libfreetype.so.6
4142
/usr/lib/x86_64-linux-gnu/libfontconfig.so.1
4243
/usr/lib/x86_64-linux-gnu/libglib-2.0.so.0
4344
/usr/lib/x86_64-linux-gnu/libglut.so.3
4445
/usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0
4546
/usr/lib/x86_64-linux-gnu/libgthread-2.0.so.0
46-
/usr/lib/x86_64-linux-gnu/libhogweed.so.4
47-
/usr/lib/x86_64-linux-gnu/libnettle.so.6
47+
/usr/lib/x86_64-linux-gnu/libhogweed.so.5
48+
/usr/lib/x86_64-linux-gnu/libnettle.so.7
4849
/usr/lib/x86_64-linux-gnu/libogg.so.0
4950
/usr/lib/x86_64-linux-gnu/libpng16.so.16
5051
/usr/lib/x86_64-linux-gnu/libpulse-simple.so.0

0 commit comments

Comments
 (0)