<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugzilla.openanolis.cn/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.6"
          urlbase="https://bugzilla.openanolis.cn/"
          
          maintainer="service@openanolis.org"
>

    <bug>
          <bug_id>12472</bug_id>
          
          <creation_ts>2024-12-19 11:53:19 +0000</creation_ts>
          <short_desc>[Anolis23.1][x86_64][玲珑] ll-builder export 执行失败</short_desc>
          <delta_ts>2025-12-09 16:31:52 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>2</classification_id>
          <classification>Anolis OS</classification>
          <product>Anolis OS 23</product>
          <component>Desktop</component>
          <version>23.1</version>
          <rep_platform>All</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>DUPLICATE</resolution>
          <dup_id>27838</dup_id>
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P3-Medium</priority>
          <bug_severity>S3-normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="任博">rb01097748</reporter>
          <assigned_to name="杨晓旋">yangxiaoxuan</assigned_to>
          <cc>chenhuixing</cc>
    
    
    <cc>gaoshuaishuai</cc>
          
          
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>34359</commentid>
    <comment_count>0</comment_count>
    <who name="任博">rb01097748</who>
    <bug_when>2024-12-19 11:53:19 +0000</bug_when>
    <thetext>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=&quot;Anolis OS&quot;
VERSION=&quot;23&quot;
ID=&quot;anolis&quot;
VERSION_ID=&quot;23&quot;
PLATFORM_ID=&quot;platform:an23&quot;
PRETTY_NAME=&quot;Anolis OS 23&quot;
ANSI_COLOR=&quot;0;31&quot;
HOME_URL=&quot;https://openanolis.cn/&quot;
BUG_REPORT_URL=&quot;https://bugzilla.openanolis.cn/&quot;

[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:</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>34374</commentid>
    <comment_count>1</comment_count>
    <who name="kamiyadm">chenhuixing</who>
    <bug_when>2024-12-19 13:32:20 +0000</bug_when>
    <thetext>客户端这边后面改进一下，其实是在其他发行版上不支持导出UAB格式，所以构建时并未开启uab-header组件的编译选项。如果检测到uab-header不存在，应提示不支持而非报错。</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>34375</commentid>
    <comment_count>2</comment_count>
    <who name="kamiyadm">chenhuixing</who>
    <bug_when>2024-12-19 13:32:57 +0000</bug_when>
    <thetext>(In reply to kamiyadm from comment #1)
&gt; 客户端这边后面改进一下，其实是在其他发行版上不支持导出UAB格式，所以构建时并未开启uab-header组件的编译选项。如果检测到uab-
&gt; header不存在，应提示不支持而非报错。

提示使用ll-builder export --layer</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>53696</commentid>
    <comment_count>3</comment_count>
    <who name="gao556688">gaoshuaishuai</who>
    <bug_when>2025-12-09 10:22:31 +0000</bug_when>
    <thetext>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</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>53843</commentid>
    <comment_count>4</comment_count>
    <who name="杨晓旋">yangxiaoxuan</who>
    <bug_when>2025-12-09 16:31:52 +0000</bug_when>
    <thetext>该问题是因为缺包导致，同问题https://bugzilla.openanolis.cn/show_bug.cgi?id=27838

*** This bug has been marked as a duplicate of bug 27838 ***</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>