Bug 12472 - [Anolis23.1][x86_64][玲珑] ll-builder export 执行失败
Summary: [Anolis23.1][x86_64][玲珑] ll-builder export 执行失败
Status: RESOLVED DUPLICATE of bug 27838
Alias: None
Product: Anolis OS 23
Classification: Anolis OS
Component: Desktop (show other bugs) Desktop
Version: 23.1
Hardware: All Linux
: P3-Medium S3-normal
Target Milestone: ---
Assignee: 杨晓旋
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-12-19 11:53 UTC by 任博
Modified: 2025-12-09 16:31 UTC (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description 任博 alibaba_cloud_group 2024-12-19 11:53:19 UTC
Description of problem:

ll-cli export 执行失败

[an23.1-d@an23 org.deepin.hello]$ ls
linglong       org.deepin.hello_0.0.0.1_x86_64_binary.layer
linglong.yaml  org.deepin.hello_0.0.0.1_x86_64_develop.layer
[an23.1-d@an23 org.deepin.hello]$ ll-builder export
(10498) /builddir/build/BUILD/linyaps-1.7.3/apps/ll-builder/src/main.cpp:757 [code -1 ] message:
        /builddir/build/BUILD/linyaps-1.7.3/libs/linglong/src/linglong/builder/linglong_builder.cpp:1207 export uab file
        /builddir/build/BUILD/linyaps-1.7.3/libs/linglong/src/linglong/package/uab_packager.cpp:216 package uab: uab-header is missing
Version-Release number of selected component (if applicable):
$ cat /etc/os-release
NAME="Anolis OS"
VERSION="23"
ID="anolis"
VERSION_ID="23"
PLATFORM_ID="platform:an23"
PRETTY_NAME="Anolis OS 23"
ANSI_COLOR="0;31"
HOME_URL="https://openanolis.cn/"
BUG_REPORT_URL="https://bugzilla.openanolis.cn/"

[an23.1-d@an23 org.deepin.hello]$ rpm -qa |grep linglong
linglong-installer-1.3.3.8-1.an23.x86_64
linglong-box-1.7.3-1.an23.x86_64
linglong-bin-1.7.3-1.an23.x86_64
linglong-1.7.3-1.an23.x86_64
linglong-builder-1.7.3-1.an23.x86_64

How reproducible:


Steps to Reproduce:
1.ll-builder create org.deepin.hello
2.cd org.deepin.hello
3.ll-builder export

Actual results:
$ ll-builder export
(10498) /builddir/build/BUILD/linyaps-1.7.3/apps/ll-builder/src/main.cpp:757 [code -1 ] message:
        /builddir/build/BUILD/linyaps-1.7.3/libs/linglong/src/linglong/builder/linglong_builder.cpp:1207 export uab file
        /builddir/build/BUILD/linyaps-1.7.3/libs/linglong/src/linglong/package/uab_packager.cpp:216 package uab: uab-header is missing

Expected results:
无报错

Additional info:
Comment 1 kamiyadm uniontech_group 2024-12-19 13:32:20 UTC
客户端这边后面改进一下,其实是在其他发行版上不支持导出UAB格式,所以构建时并未开启uab-header组件的编译选项。如果检测到uab-header不存在,应提示不支持而非报错。
Comment 2 kamiyadm uniontech_group 2024-12-19 13:32:57 UTC
(In reply to kamiyadm from comment #1)
> 客户端这边后面改进一下,其实是在其他发行版上不支持导出UAB格式,所以构建时并未开启uab-header组件的编译选项。如果检测到uab-
> header不存在,应提示不支持而非报错。

提示使用ll-builder export --layer
Comment 3 gao556688 uniontech_group 2025-12-09 10:22:31 UTC
Anolis23.4也存在此单问题

【结果】
[root@anolis org.dde.demo]# ll-builder build
[Build Target]
  org.dde.demo
[Project Info]
  Package Name: your name
  Version: 0.0.0.1
  Package Type: app
  Build Arch: x86_64
[Current Repo]
  Name: stable
  Url: https://mirror-repo-linglong.deepin.com
[Processing Dependency]
  Package                  Version        Module         Status
  org.deepin.base          23.1.0.3       binary         complete
  org.deepin.base          23.1.0.3       develop        complete
[Start Build]
hello
The check level is 1, some checks failed will be treated as error.
start ldd check
Debug:start checking...

Debug:checking done

start application configure check
[Install Files]
  Package          Version        Module         Status
  org.dde.demo     0.0.0.1        develop        complete
  org.dde.demo     0.0.0.1        binary         complete

[Commit Contents]
  Package          Version        Module         Status
  org.dde.demo     0.0.0.1        binary         complete
  org.dde.demo     0.0.0.1        develop        complete
Successfully build org.dde.demo
[root@anolis org.dde.demo]# ll-builder export
(12721) /builddir/build/BUILD/linyaps-1.7.3/apps/ll-builder/src/main.cpp:757 [code -1 ] message:
        /builddir/build/BUILD/linyaps-1.7.3/libs/linglong/src/linglong/builder/linglong_builder.cpp:1207 export uab file
        /builddir/build/BUILD/linyaps-1.7.3/libs/linglong/src/linglong/package/uab_packager.cpp:216 package uab: uab-header is missing
[root@anolis org.dde.demo]# echo $?
255
[root@anolis org.dde.demo]# ls -la
总计 4
drwxr-xr-x. 3 root root  43 12月 9日 10:01 .
drwxr-xr-x. 5 root root  49 12月 9日 10:00 ..
drwxr-xr-x. 3 root root  36 12月 9日 10:01 linglong
-rw-r--r--. 1 root root 820 12月 9日 10:00 linglong.yaml
Comment 4 杨晓旋 uniontech_group 2025-12-09 16:31:52 UTC
该问题是因为缺包导致,同问题https://bugzilla.openanolis.cn/show_bug.cgi?id=27838

*** This bug has been marked as a duplicate of bug 27838 ***