Pull Request has been successfully merged by CANN-robot.
(Thank you for qinhan's contribution.)变更摘要
本 PR 聚焦修复 opbase 升级脚本在安装/升级 opbase 模块时安装文件(so 库)权限丢失的问题。改动位于 scripts/package/opbase/scripts/opp_upgrade.sh,在调用公共安装解析脚本 _COMMON_PARSER_FILE 时追加了 --copy_all 参数,使安装过程统一走整体拷贝方式,从而保留文件原有权限。
主要改动
- 补充拷贝模式参数:在
sh "${_COMMON_PARSER_FILE}"的调用参数列表中新增--copy_all,位于--package之前。 - 修复升级后 so 权限丢失:该调用用于执行 opbase 模块的安装(
--install),加入--copy_all后安装时文件按整体拷贝处理,避免升级后动态库权限属性被改变。 - 影响范围限定于升级安装路径:其余参数如
--username、--usergroup、--set-cann-uninstall、--use-share-info、版本与安装路径等保持不变,仅在原有升级流程上增加拷贝方式选项。


Thanks for your pull-request.
The full list of commands accepted by me can be found at here.
You can get sig-info at here.
You can self-configure the PR merge rules for this repository. For more details, please refer to Here.
For more, you also can visit HICANN.
PR Approval Progress
✅ Congratulations! All modules have met the lgtm and approve requirements.
Module Approval Details
| module | lgtm status | approve status |
|---|---|---|
| 9.2.0 | ✅ Andy-lb, 宋恺 (2/2) | ✅ Andy-lb (1/1) |
💡 Tip:
- Committer can comment
/approveor/lgtm- Commenting
/approveimplies both code review (lgtm) and intent to merge (approve)
CLA Signature Pass
qinhan123, thanks for your pull request. All authors of the commits have signed the CLA. 👍


compile


| 🚀 CI 流水线已启动 |
|---|
| 📋 执行详情: 点击查看流水线 |


compile


| 🚀 CI 流水线已启动 |
|---|
| 📋 执行详情: 点击查看流水线 |


/approve


/approve


/lgtm


The following users do not have permission to comment /lgtm or /approve on any module in this PR:
/approve: zhaoyingdong


描述
本 PR 聚焦修复 opbase 升级脚本在安装/升级 opbase 模块时安装文件(so 库)权限丢失的问题。改动位于 scripts/package/opbase/scripts/opp_upgrade.sh,在调用公共安装解析脚本 _COMMON_PARSER_FILE 时追加了 --copy_all 参数,使安装过程统一走整体拷贝方式,从而保留文件原有权限。
关联的Issue
https://gitcode.com/cann/opbase/issues/687
测试
验证改动后新包的更新
文档更新
NA
类型标签