[ Technical exchange] 构建syncthing arm64版遇到了问题
Tofloor
poster avatar
玲珑沙
deepin
2024-12-10 13:29
Author
james@M4:~/linglong$ ll-builder build -v
[Build Target]
  net.syncthing.www.linyaps
[Project Info]
  Package Name: Syncthing
  Version: 0.1.28.1
  Package Type: app
  Build Arch: arm64
[Current Repo]
  Name: stable
  Url: https://mirror-repo-linglong.deepin.com
[Processing Dependency]
  Package                  Version        Module         Status
  org.deepin.Runtime       20.0.0.12      develop        complete
  org.deepin.foundation    20.0.0.29      develop        complete
[Start Build]
[ERR | 4026533430:3 | forkAndExecProcess:453 ] exec failed ret(-1),errno(2): No such file or directory
(62737) ./apps/ll-builder/src/main.cpp:377 [code -1 ] message:
	./libs/linglong/src/linglong/builder/linglong_builder.cpp:590 build project /home/james/linglong/linglong.yaml
	./libs/linglong/src/linglong/runtime/container.cpp:186 run container bGluZ2xvbmctYnVpbGRlci1tYWluOm5ldC5zeW5jdGhpbmcud3d3LmxpbnlhcHMvMC4xLjI4LjEvYXJtNjR7NTliMGFlMzUtN2MwMy00YmYyLWJmM2EtM2Q3MTJhZmJjZTYzfQ==: cli run: run command failed: /usr/bin/ll-box --cgroup-manager=disabled run -b /run/user/1000/linglong/bGluZ2xvbmctYnVpbGRlci1tYWluOm5ldC5zeW5jdGhpbmcud3d3LmxpbnlhcHMvMC4xLjI4LjEvYXJtNjR7NTliMGFlMzUtN2MwMy00YmYyLWJmM2EtM2Q3MTJhZmJjZTYzfQ== bGluZ2xvbmctYnVpbGRlci1tYWluOm5ldC5zeW5jdGhpbmcud3d3LmxpbnlhcHMvMC4xLjI4LjEvYXJtNjR7NTliMGFlMzUtN2MwMy00YmYyLWJmM2EtM2Q3MTJhZmJjZTYzfQ== retval=65280

linglong.yaml

# SPDX-FileCopyrightText: 2023 UnionTech Software Technology Co., Ltd.
#
# SPDX-License-Identifier: LGPL-3.0-or-later

version: "1"

package:
  id: net.syncthing.www.linyaps
  name: "Syncthing"
  version: 0.1.28.1
  kind: app
  description: |
    Open Source Continuous File Synchronization

base: org.deepin.foundation/20.0.0
runtime: org.deepin.Runtime/20.0.0

command:
  - /opt/apps/net.syncthing.www.linyaps/files/bin/Syncthing/syncthing

source:
  - kind: local
    name: "Syncthing"

build: |
  ##Extract res
  mkdir -p ${PREFIX}/bin/ ${PREFIX}/share/
  cp -rf binary/* ${PREFIX}/bin/
  cp -rf template_app/* ${PREFIX}/share/
  ##Generate files
  ##echo "#!/usr/bin/env bash" > start.sh
  ##echo "cd $PREFIX/bin/$PACKAGE/ && ./$PACKAGE --no-sandbox %U" >> $PREFIX/bin/start.sh
  ##chmod +x $PREFIX/bin/start.sh
Reply Favorite View the author
All Replies
Ziggy
deepin
2024-12-10 13:50
#1

Runtime换成试试

20.0.1

而且,最好确保build规则的所有非注释内容都是可以正常运行的,如果有一个步骤出现错误将会中止

Reply View the author
玲珑沙
deepin
2024-12-10 16:36
#2
Ziggy

Runtime换成试试

20.0.1

而且,最好确保build规则的所有非注释内容都是可以正常运行的,如果有一个步骤出现错误将会中止

没有这个 runtime

Reply View the author
Ziggy
deepin
2024-12-10 16:39
#3
玲珑沙

没有这个 runtime

ll-cli看下什么版本,升级到1.7.x看看

Reply View the author
玲珑沙
deepin
2024-12-10 16:42
#4
Ziggy

ll-cli看下什么版本,升级到1.7.x看看

james@UOS1070:~$ ll-cli search . --type=runtime
id                               name                             version         arch        channel         module      description
com.uniontech.foundation         deepin-foundation                20.0.1.0        arm64       main            runtime     deepin base environment.
com.uniontech.runtime            uniontech linglong runtime       20.0.0.27       arm64       main            runtime     uniontech uos
org.deepin.base                  deepin-foundation                23.1.0.2        arm64       main            binary      deepin base environment.
org.deepin.foundation            deepin-foundation                20.0.0.26       arm64       main            runtime     deepin base environment.
org.deepin.foundation            deepin-foundation                20.0.0.27       arm64       main            binary      deepin base environment.
org.deepin.foundation            deepin-foundation                20.0.0.28       arm64       main            binary      deepin base environment.
org.deepin.foundation            deepin-foundation                20.0.0.29       arm64       main            binary      deepin base environment.
org.deepin.Runtime               deepin runtime                   20.0.0.12       arm64       main            runtime     Qt is a cross-platform C++ application framework. Qt'...
org.deepin.runtime.dtk           deepin runtime                   23.1.0.0        arm64       main            binary      Qt is a cross-platform C++ application framework. Qt'...
james@UOS1070:~$ ll-cli --version
linglong CLI 1.6.3
james@UOS1070:~$ 

Reply View the author