Sign in
Sign up
Explore
Enterprise
Education
Search
Help
Terms of use
About Us
Explore
Enterprise
Education
Gitee Premium
Gitee AI
AI teammates
Sign in
Sign up
Gitee 2025 OpenSource,We need your vote!
Fetch the repository succeeded.
Donate
Please sign in before you donate.
Cancel
Sign in
Scan WeChat QR to Pay
Cancel
Complete
Prompt
Switch to Alipay.
OK
Cancel
Watch
Unwatch
Watching
Releases Only
Ignoring
116
Star
0
Fork
46
src-openEuler
/
cmake
Code
Issues
1
Pull Requests
1
Wiki
Insights
Pipelines
Service
JavaDoc
PHPDoc
Quality Analysis
Jenkins for Gitee
Tencent CloudBase
Tencent Cloud Serverless
悬镜安全
Aliyun SAE
Codeblitz
SBOM
Don’t show this again
31
【bug】建议新增宏定义
Closed
王海涛:master
src-openEuler:master
王海涛
create on 2021-07-28 11:58
Clone/Download
HTTPS
SSH
Copy
Email Patch
Diff file
Bug描述: 部分Fedora中包,如asdcplib,SPEC文件中会使用%cmake3_build, %cmake3_install宏定义。 cmake的宏定义由安装包cmake-rpm-macros所安装的/usr/lib/rpm/macros.d/macros.cmake文件下提供。 但是在openEuler中的对应文件没有这几个定义,导致rpmbuild asdcplib.spec报错。 修复操作: 对照Fedora下,安装cmake-rpm-macros包后,查看/usr/lib/rpm/macros.d/macros.cmake 对比openEuler,新增了macro,并使得Fedora中的包asdcplib直接编译成功。 复现bug操作: 我将Fedora中的包asdcplib-2.10.38-2.src.rpm下载到openEuler进行以下操作: ``` rpm -i ./asdcplib-2.10.38-2.src.rpm cd ~/rpmbuild/SPECS dnf builddep asdcplib.spec -y dnf rpmbuild -ba asdcplib.spec ``` 报错信息: ``` -- Configuring done -- Generating done CMake Warning: Manually-specified variables were not used by the project: CMAKE_CXX_FLAGS_RELEASE CMAKE_C_FLAGS_RELEASE CMAKE_Fortran_FLAGS_RELEASE INCLUDE_INSTALL_DIR LIB_INSTALL_DIR LIB_SUFFIX SHARE_INSTALL_PREFIX SYSCONF_INSTALL_DIR -- Build files have been written to: /root/rpmbuild/BUILD/asdcplib-rel_2_10_38 + %cmake_build /var/tmp/rpm-tmp.H7n5hU: line 51: fg: no job control error: Bad exit status from /var/tmp/rpm-tmp.H7n5hU (%build) RPM build errors: Bad exit status from /var/tmp/rpm-tmp.H7n5hU (%build) ```
The Pull Request cannot be automatically merged.
resolve conflicts with WebIDE
How to merge Pull Request
git checkout master
git pull https://gitee.com/apple-ouyang/cmake.git master
git push origin master
Comments
19
Commits
1
Files
2
Checks
Code problems
0
Bulk operation
Expand
Collapse
Reviewer
Code Owner
Reviewer
Charlie_Li
Charlie_li
lyn
lyn1001
Lostway
Lostwayzxc
randy1568
randy1568
wk333
wk333
No Setting
Min number
0
Tester
Charlie_Li
Charlie_li
lyn
lyn1001
Lostway
Lostwayzxc
randy1568
randy1568
wk333
wk333
No Setting
Min number
0
Priority
Not specified
Serious
Main
Secondary
Unimportant
Label
openeuler-cla/yes
sig/Programming-lang
Link Issue
No link issue
Successfully merged pull requests will close issues
Milestone
No related milestones
Participators
(7)
1
https://gitee.com/src-openeuler/cmake.git
git@gitee.com:src-openeuler/cmake.git
src-openeuler
cmake
cmake
Going to Help Center
Search
Git 命令在线学习
如何在 Gitee 导入 GitHub 仓库
Git 仓库基础操作
企业版和社区版功能对比
SSH 公钥设置
如何处理代码冲突
仓库体积过大,如何减小?
如何找回被删除的仓库数据
Gitee 产品配额说明
GitHub仓库快速导入Gitee及同步更新
什么是 Release(发行版)
将 PHP 项目自动发布到 packagist.org
Repository Report
Back to the top
Login prompt
This operation requires login to the code cloud account. Please log in before operating.
Go to login
No account. Register