[Qt 6] Qt 5's Ubuntu.Web (and by extension Ubuntu.Components.Extras.Browser) is broken
phablet@ubuntu-phablet:~$ ls -lh /usr/lib/aarch64-linux-gnu/qt5/qml/Ubuntu/Web/
total 1.1M
lrwxrwxrwx 1 root root 37 Dec 25 03:17 handle@27.png -> ../../Morph/Web/qml-qt5/handle@27.png
lrwxrwxrwx 1 root root 42 Dec 25 03:17 ItemSelector02.qml -> ../../Morph/Web/qml-qt5/ItemSelector02.qml
-rw-r--r-- 1 root root 1.1M Dec 20 02:34 libubuntu-web-plugin.so
-rw-r--r-- 1 root root 169 Jun 12 2020 qmldir
lrwxrwxrwx 1 root root 39 Dec 25 03:17 smartbanners.js -> ../../Morph/Web/qml-qt5/smartbanners.js
lrwxrwxrwx 1 root root 49 Dec 25 03:17 UbuntuSharedWebContext.qml -> ../../Morph/Web/qml-qt5/MorphSharedWebContext.qml
lrwxrwxrwx 1 root root 43 Dec 25 03:17 UbuntuWebContext.qml -> ../../Morph/Web/qml-qt5/MorphWebContext.qml
lrwxrwxrwx 1 root root 40 Dec 25 03:17 UbuntuWebView02.qml -> ../../Morph/Web/qml-qt5/MorphWebView.qml
lrwxrwxrwx 1 root root 39 Dec 25 03:17 UserAgent02.qml -> ../../Morph/Web/qml-qt5/UserAgent02.qml
This is because the symlink structure in Git tree is also used when installing these symlinks.
Now, I'm not sure what is the best way to handle this. We can either:
- Make the link structure in the Git tree matches the installed tree. Downside is that files in Git tree won't be readable. Maybe that's actually good? Or:
- Create symlinks from within CMake. This is going to be elaborate.