[玲珑] ll-pica 构建 todesk 失败 - 缺依赖
Tofloor
poster avatar
我是昵称
deepin
2024-06-11 10:53
Author

我从应用商店选择已安装的 Todesk,尝试转换为玲珑包,操作步骤如下:

0x736478@0x736478-PC:~$ mkdir linglong
0x736478@0x736478-PC:~$ cd linglong
0x736478@0x736478-PC:~/linglong$ apt download com.todesk
获取:1 https://com-store-packages.uniontech.com/appstorev23 beige/appstore amd64 com.todesk amd64 4.7.2.0 [63.8 MB]
已下载 63.8 MB,耗时 3分 12秒 (332 kB/s)                                                                                                                                                
0x736478@0x736478-PC:~/linglong$ ll-pica --version
pica version 1.1.1
0x736478@0x736478-PC:~/linglong$ ll-pica convert -c ./com.todesk_4.7.2.0_amd64.deb -w . -b
2024-06-11T10:04:32.297+0800    INFO    workdir path: /home/0x736478/linglong
2024-06-11T10:04:32.297+0800    INFO    Trans success path: /home/0x736478/linglong/com.todesk_4.7.2.0_amd64.deb
2024-06-11T10:04:32.297+0800    INFO    workdir is exited /home/0x736478/linglong
2024-06-11T10:04:32.297+0800    INFO    picadir is exited /home/0x736478/.pica
2024-06-11T10:04:32.314+0800    INFO    load /home/0x736478/.pica/config.json
2024-06-11T10:04:32.485+0800    INFO    create save file: /home/0x736478/linglong/package.yaml
2024-06-11T10:04:32.485+0800    INFO    load /home/0x736478/linglong/package.yaml
2024-06-11T10:04:32.513+0800    INFO    fetch deb path:[0] /home/0x736478/linglong/package/com.todesk/linglong/sources/com.todesk_4.7.2.0_amd64.deb
2024-06-11T10:04:32.653+0800    INFO    download com.todesk success.
2024-06-11T10:04:33.468+0800    INFO    com.todesk is from app-store
Downloading https://community-packages.deepin.com/beige/dists/beige/Release...
Following redirect to https://community-packages.deepin.com/deepin/beige/dists/beige/Release...
Success downloading https://community-packages.deepin.com/beige/dists/beige/Release

Mirror [com.todesk]: https://community-packages.deepin.com/beige/ beige successfully added.
You can run 'aptly mirror update com.todesk' to download repository contents.
Downloading https://community-packages.deepin.com/beige/dists/beige/Release...
Following redirect to https://community-packages.deepin.com/deepin/beige/dists/beige/Release...
Success downloading https://community-packages.deepin.com/beige/dists/beige/Release
Downloading & parsing package files...
Downloading https://community-packages.deepin.com/beige/dists/beige/main/binary-amd64/Packages.gz...
Following redirect to https://community-packages.deepin.com/deepin/beige/dists/beige/main/binary-amd64/Packages.gz...
Success downloading https://community-packages.deepin.com/beige/dists/beige/main/binary-amd64/Packages.gz
Downloading https://community-packages.deepin.com/beige/dists/beige/commercial/binary-amd64/Packages.gz...
Following redirect to https://community-packages.deepin.com/deepin/beige/dists/beige/commercial/binary-amd64/Packages.gz...
Success downloading https://community-packages.deepin.com/beige/dists/beige/commercial/binary-amd64/Packages.gz
Downloading https://community-packages.deepin.com/beige/dists/beige/community/binary-amd64/Packages.gz...
Following redirect to https://community-packages.deepin.com/deepin/beige/dists/beige/community/binary-amd64/Packages.gz...
Success downloading https://community-packages.deepin.com/beige/dists/beige/community/binary-amd64/Packages.gz
[!] skipping package galera-3_25.3.34-1_amd64: duplicate in packages index
[!] skipping package galera-3-dbgsym_25.3.34-1_amd64: duplicate in packages index
[!] skipping package galera-arbitrator-3_25.3.34-1_amd64: duplicate in packages index
[!] skipping package galera-arbitrator-3-dbgsym_25.3.34-1_amd64: duplicate in packages index
[!] skipping package hfst-ospell_0.5.3-2_amd64: duplicate in packages index
[!] skipping package hfst-ospell-dev_0.5.3-2_amd64: duplicate in packages index
[!] skipping package highway-doc_1.0.7-8_all: duplicate in packages index
[!] skipping package libfilezilla40_0.44.0-3_amd64: duplicate in packages index
[!] skipping package libfilezilla40-dbgsym_0.44.0-3_amd64: duplicate in packages index
[!] skipping package libghc-uniplate-dev_1.6.13-1_amd64: duplicate in packages index
[!] skipping package libghc-uniplate-doc_1.6.13-1_all: duplicate in packages index
[!] skipping package libghc-uniplate-prof_1.6.13-1_amd64: duplicate in packages index
[!] skipping package libhfstospell11_0.5.3-2_amd64: duplicate in packages index
[!] skipping package libjs-requirejs-text_2.0.12-1.1_all: duplicate in packages index
[!] skipping package libperl-minimumversion-perl_1.40-1_all: duplicate in packages index
[!] skipping package librust-aho-corasick-dev_0.7.19-1_amd64: duplicate in packages index
[!] skipping package librust-ansi-term-dev_0.12.1-1_amd64: duplicate in packages index
[!] skipping package librust-atty-dev_0.2.14-2_amd64: duplicate in packages index
[!] skipping package librust-bytemuck-dev_1.12.1-1_amd64: duplicate in packages index
[!] skipping package librust-byteorder-dev_1.4.3-2_amd64: duplicate in packages index
[!] skipping package librust-cexpr-dev_0.6.0-2_amd64: duplicate in packages index
[!] skipping package librust-clang-sys-dev_1.3.0-1_amd64: duplicate in packages index
[!] skipping package librust-compiler-builtins-dev_0.1.70-1_amd64: duplicate in packages index
[!] skipping package librust-device-tree-dev_1.1.0-1_amd64: duplicate in packages index
[!] skipping package librust-erased-serde-dev_0.3.23-1_amd64: duplicate in packages index
[!] skipping package librust-fnv-dev_1.0.7-1_amd64: duplicate in packages index
[!] skipping package librust-fxhash-dev_0.2.1-1_amd64: duplicate in packages index
[!] skipping package librust-getrandom-dev_0.2.8-1_amd64: duplicate in packages index
[!] skipping package librust-hex-dev_0.4.3-1_amd64: duplicate in packages index
[!] skipping package librust-humantime-dev_2.1.0-1_amd64: duplicate in packages index
[!] skipping package librust-itoa-dev_1.0.1-2_amd64: duplicate in packages index
[!] skipping package librust-lazycell-dev_1.3.0-3_amd64: duplicate in packages index
[!] skipping package librust-libm-dev_0.2.1-5_amd64: duplicate in packages index
[!] skipping package librust-memchr-dev_2.5.0-1_amd64: duplicate in packages index
[!] skipping package librust-minimal-lexical-dev_0.2.1-2_amd64: duplicate in packages index
[!] skipping package librust-no-panic-dev_0.1.13-1_amd64: duplicate in packages index
[!] skipping package librust-os-str-bytes-dev_6.0.0-1_amd64: duplicate in packages index
[!] skipping package librust-peeking-take-while-dev_0.1.2-1_amd64: duplicate in packages index
[!] skipping package librust-ppv-lite86-dev_0.2.16-1_amd64: duplicate in packages index
[!] skipping package librust-rustc-hash-dev_1.1.0-1_amd64: duplicate in packages index
[!] skipping package librust-rustc-std-workspace-core-dev_1.0.0-1_amd64: duplicate in packages index
[!] skipping package librust-rustc-version-dev_0.4.0-1_amd64: duplicate in packages index
[!] skipping package librust-ryu-dev_1.0.2-1_amd64: duplicate in packages index
[!] skipping package librust-same-file-dev_1.0.6-1_amd64: duplicate in packages index
[!] skipping package librust-seahash-dev_4.1.0-1_amd64: duplicate in packages index
[!] skipping package librust-shlex-dev_1.1.0-1_amd64: duplicate in packages index
[!] skipping package librust-smawk-dev_0.3.1-2_amd64: duplicate in packages index
[!] skipping package librust-static-assertions-dev_1.1.0-1_amd64: duplicate in packages index
[!] skipping package librust-strsim-dev_0.10.0-1_amd64: duplicate in packages index
[!] skipping package librust-syn-1-dev_1.0.109-2_amd64: duplicate in packages index
[!] skipping package librust-termcolor-dev_1.1.2-1_amd64: duplicate in packages index
[!] skipping package librust-unicode-ident-dev_1.0.0-1_amd64: duplicate in packages index
[!] skipping package librust-unicode-width+compiler-builtins-dev_0.1.10-1_amd64: duplicate in packages index
[!] skipping package librust-unicode-width-dev_0.1.10-1_amd64: duplicate in packages index
[!] skipping package librust-unreachable-dev_1.0.0-1_amd64: duplicate in packages index
[!] skipping package librust-version-check-dev_0.9.4-1_amd64: duplicate in packages index
[!] skipping package librust-void-dev_1.0.2-1_amd64: duplicate in packages index
[!] skipping package librust-which-dev_4.2.5-1_amd64: duplicate in packages index
[!] skipping package librust-winapi-dev_0.3.9-1_amd64: duplicate in packages index
[!] skipping package librust-winapi-i686-pc-windows-gnu-dev_0.4.0-1_amd64: duplicate in packages index
[!] skipping package librust-winapi-util-dev_0.1.5-1_amd64: duplicate in packages index
[!] skipping package librust-winapi-x86-64-pc-windows-gnu-dev_0.4.0-1_amd64: duplicate in packages index
[!] skipping package ruby-minitar_0.9-1_all: duplicate in packages index
Applying filter...
Packages filtered: 28502 -> 9.
Building download queue...
Download queue: 9 items (4.34 MiB)
Downloading https://community-packages.deepin.com/beige/pool/main/u/util-linux/libuuid1_2.39.3-6deepin1_amd64.deb...
Downloading https://community-packages.deepin.com/beige/pool/main/g/gtk+3.0/libgtk-3-0_3.24.30-deepin6_amd64.deb...
Downloading https://community-packages.deepin.com/beige/pool/main/n/nss/libnss3_3.98-1_amd64.deb...
Downloading https://community-packages.deepin.com/beige/pool/main/x/xdg-utils/xdg-utils_1.1.3-4.1deepin1_all.deb...
Following redirect to https://community-packages.deepin.com/deepin/beige/pool/main/u/util-linux/libuuid1_2.39.3-6deepin1_amd64.deb...
Following redirect to https://community-packages.deepin.com/deepin/beige/pool/main/x/xdg-utils/xdg-utils_1.1.3-4.1deepin1_all.deb...
Following redirect to https://community-packages.deepin.com/deepin/beige/pool/main/n/nss/libnss3_3.98-1_amd64.deb...
Following redirect to https://community-packages.deepin.com/deepin/beige/pool/main/g/gtk+3.0/libgtk-3-0_3.24.30-deepin6_amd64.deb...
Success downloading https://community-packages.deepin.com/beige/pool/main/u/util-linux/libuuid1_2.39.3-6deepin1_amd64.deb
Downloading https://community-packages.deepin.com/beige/pool/main/libx/libxtst/libxtst6_1.2.3-1_amd64.deb...
Success downloading https://community-packages.deepin.com/beige/pool/main/x/xdg-utils/xdg-utils_1.1.3-4.1deepin1_all.deb
Downloading https://community-packages.deepin.com/beige/pool/main/libx/libxss/libxss1_1.2.3-1_amd64.deb...
Following redirect to https://community-packages.deepin.com/deepin/beige/pool/main/libx/libxtst/libxtst6_1.2.3-1_amd64.deb...
Following redirect to https://community-packages.deepin.com/deepin/beige/pool/main/libx/libxss/libxss1_1.2.3-1_amd64.deb...
Success downloading https://community-packages.deepin.com/beige/pool/main/libx/libxtst/libxtst6_1.2.3-1_amd64.deb
Downloading https://community-packages.deepin.com/beige/pool/main/libs/libsecret/libsecret-1-0_0.20.4-2_amd64.deb...
Success downloading https://community-packages.deepin.com/beige/pool/main/libx/libxss/libxss1_1.2.3-1_amd64.deb
Downloading https://community-packages.deepin.com/beige/pool/main/libn/libnotify/libnotify4_0.7.9-3_amd64.deb...
Following redirect to https://community-packages.deepin.com/deepin/beige/pool/main/libs/libsecret/libsecret-1-0_0.20.4-2_amd64.deb...
Following redirect to https://community-packages.deepin.com/deepin/beige/pool/main/libn/libnotify/libnotify4_0.7.9-3_amd64.deb...
Success downloading https://community-packages.deepin.com/beige/pool/main/libs/libsecret/libsecret-1-0_0.20.4-2_amd64.deb
Downloading https://community-packages.deepin.com/beige/pool/main/a/at-spi2-core/libatspi2.0-0_2.50.0-1_amd64.deb...
Following redirect to https://community-packages.deepin.com/deepin/beige/pool/main/a/at-spi2-core/libatspi2.0-0_2.50.0-1_amd64.deb...
Success downloading https://community-packages.deepin.com/beige/pool/main/libn/libnotify/libnotify4_0.7.9-3_amd64.deb
Success downloading https://community-packages.deepin.com/beige/pool/main/a/at-spi2-core/libatspi2.0-0_2.50.0-1_amd64.deb
Success downloading https://community-packages.deepin.com/beige/pool/main/n/nss/libnss3_3.98-1_amd64.deb
Success downloading https://community-packages.deepin.com/beige/pool/main/g/gtk+3.0/libgtk-3-0_3.24.30-deepin6_amd64.deb
2024-06-11T10:05:18.248+0800    INFO    generate linglong.yaml success.
2024-06-11T10:05:18.338+0800    FATAL   msg:  err:run: exit status 255, out: 
0x736478@0x736478-PC:~/linglong$ ls
com.todesk_4.7.2.0_amd64.deb  package  package.yaml
0x736478@0x736478-PC:~/linglong$ cd package/
0x736478@0x736478-PC:~/linglong/package$ ls
com.todesk
0x736478@0x736478-PC:~/linglong/package$ cd com.todesk/
0x736478@0x736478-PC:~/linglong/package/com.todesk$ ls
linglong  linglong.yaml
0x736478@0x736478-PC:~/linglong/package/com.todesk$ vim linglong.yaml 
0x736478@0x736478-PC:~/linglong/package/com.todesk$ ll-builder build 
(49598) ./apps/ll-builder/src/main.cpp:508 [code -1 ] message:
        ./libs/linglong/src/linglong/utils/serialize/yaml.h:29 load yaml: yaml-cpp: error at line 114, column 2: end of map not found
0x736478@0x736478-PC:~/linglong/package/com.todesk$ cat -n linglong.yaml | grep 114 -A2 -B2
   112    echo "#!/usr/bin/env bash" > start.sh
   113    echo "cd $PREFIX/bin && ./ToDesk
   114   \$@" >> start.sh
   115    install -d $PREFIX/share
   116    install -d $PREFIX/bin
0x736478@0x736478-PC:~/linglong/package/com.todesk$ vim linglong.yaml 
0x736478@0x736478-PC:~/linglong/package/com.todesk$ ll-builder build 
[Build Target]
  com.todesk
[Project Info]
  Package Name: com.todesk
  Version: 4.7.2.0
  Package Type: app
  Build Arch: x86_64
[Current Repo]
  Name: stable
  Url: https://mirror-repo-linglong.deepin.com
[Processing Sources]
  Name                Type           Url                                                                        Status
  Source 0            file           https://community-packages.deepin.com/beige/pool/main/u/util-linux/libuuid1_2.39.3-6deepin1_amd64.debcomplete
  Source 1            file           https://community-packages.deepin.com/beige/pool/main/x/xdg-utils/xdg-utils_1.1.3-4.1deepin1_all.debcomplete
  Source 2            file           https://community-packages.deepin.com/beige/pool/main/libx/libxtst/libxtst6_1.2.3-1_amd64.debcomplete
  Source 3            file           https://community-packages.deepin.com/beige/pool/main/libx/libxss/libxss1_1.2.3-1_amd64.debcomplete
  Source 4            file           https://community-packages.deepin.com/beige/pool/main/libs/libsecret/libsecret-1-0_0.20.4-2_amd64.debcomplete
  Source 5            file           https://community-packages.deepin.com/beige/pool/main/libn/libnotify/libnotify4_0.7.9-3_amd64.debcomplete
  Source 6            file           https://community-packages.deepin.com/beige/pool/main/a/at-spi2-core/libatspi2.0-0_2.50.0-1_amd64.debcomplete
  Source 7            file           https://community-packages.deepin.com/beige/pool/main/n/nss/libnss3_3.98-1_amd64.debcomplete
  Source 8            file           https://community-packages.deepin.com/beige/pool/main/g/gtk+3.0/libgtk-3-0_3.24.30-deepin6_amd64.debcomplete
[Processing Dependency]
  Package                  Version        Module         Status
  org.deepin.Runtime       23.0.1.4       develop        complete
  org.deepin.foundation    23.0.0.27      develop        complete
[Start Build]
/sbin/ldconfig: Renaming of /etc/ld.so.cache~ to /etc/ld.so.cache failed: Read-only file system
[Commit Contents]
(50365) ./libs/linglong/src/linglong/repo/ostree_repo.cpp:1089 Failed to access the parent dir:  "/home/0x736478/.cache/linglong-builder/layers/main/com.todesk/4.7.2.0/x86_64/runtime"
Successfully build com.todesk
0x736478@0x736478-PC:~/linglong/package/com.todesk$ ll-builder run
(54533) ./libs/linglong/src/linglong/runtime/container.cpp:135 duplicate environment has been detected: [ original: "HOME=/home/0x736478" user: "HOME=/home/0x736478" ], choose original.
(54533) ./libs/linglong/src/linglong/runtime/container.cpp:135 duplicate environment has been detected: [ original: "XAUTHORITY=/home/0x736478/.Xauthority" user: "XAUTHORITY=/home/0x736478/.Xauthority" ], choose original.
(54533) ./libs/linglong/src/linglong/runtime/container.cpp:135 duplicate environment has been detected: [ original: "XDG_DATA_HOME=/home/0x736478/.local/share" user: "XDG_DATA_HOME=/home/0x736478/.local/share" ], choose original.
(54533) ./libs/linglong/src/linglong/runtime/container.cpp:135 duplicate environment has been detected: [ original: "XDG_RUNTIME_DIR=/run/user/1000" user: "XDG_RUNTIME_DIR=/run/user/1000" ], choose original.
/sbin/ldconfig: Renaming of /etc/ld.so.cache~ to /etc/ld.so.cache failed: Read-only file system
./ToDesk: error while loading shared libraries: libappindicator3.so.1: cannot open shared object file: No such file or directory
0x736478@0x736478-PC:~/linglong/package/com.todesk$ apt search appindicator
正在排序... 完成
全文搜索... 完成  
gir1.2-ayatanaappindicator-0.1/未知 0.5.92-1 amd64
  Typelib files for libayatana-appindicator1 (GTK-2+ version)

gir1.2-ayatanaappindicator3-0.1/未知,now 0.5.92-1 amd64 [已安装,自动]
  Typelib files for libayatana-appindicator3-1 (GTK-3+ version)

libayatana-appindicator-dev/未知 0.5.92-1 amd64
  Ayatana Application Indicators (development files, GTK-2+ version)

libayatana-appindicator-doc/未知,未知 0.5.92-1 all
  Ayatana Application Indicators (documentation files, GTK-2+ version)

libayatana-appindicator0.1-cil/未知 0.5.92-1 amd64
  CLI bindings for libayatana-appindicator

libayatana-appindicator0.1-cil-dev/未知 0.5.92-1 amd64
  Ayatana Application Indicators for Mono

libayatana-appindicator1/未知 0.5.92-1 amd64
  Ayatana Application Indicators (GTK-2+ version)

libayatana-appindicator1-dbgsym/未知 0.5.92-1 amd64
  debug symbols for libayatana-appindicator1

libayatana-appindicator3-0.1-cil/未知 0.5.92-1 amd64
  CLI bindings for libayatana-appindicator3

libayatana-appindicator3-0.1-cil-dev/未知 0.5.92-1 amd64
  Ayatana Application Indicators for Mono (GTK-3+ variant)

libayatana-appindicator3-1/未知,now 0.5.92-1 amd64 [已安装,自动]
  Ayatana Application Indicators (GTK-3+ version)

libayatana-appindicator3-1-dbgsym/未知 0.5.92-1 amd64
  debug symbols for libayatana-appindicator3-1

libayatana-appindicator3-dev/未知 0.5.92-1 amd64
  Ayatana Application Indicators (development files, GTK-3+ version)

发现几个问题

  1. ll-pica 生成的 linglong.yaml 中(114行),生成 start.sh 内容的逻辑有问题,导致 ll-builder build 报错
    1. ll-builder run 提示缺少的依赖应该是哪个?
Reply Favorite View the author
All Replies
神末shenmo
deepin
Spark-App
2024-06-11 10:57
#1

todesk需要有一个系统级服务的,没有root用不了,别试了

Reply View the author
vivian_me
deepin testing team
2024-06-11 11:04
#2

玲珑应用无法使用宿主机root权限,并且无法获取宿主机状态,类似的向日葵这些应用也无法使用哦

Reply View the author
我是昵称
deepin
2024-06-11 12:04
#3
👎这样不好
Reply View the author