fix(deepin-os-release): Filter out RDRAND hardware random warnings to ensure clean output#560
fix(deepin-os-release): Filter out RDRAND hardware random warnings to ensure clean output#560gitee-zeqi wants to merge 1 commit intolinuxdeepin:masterfrom
Conversation
… ensure clean output This fix adds a pipe-based stderr filter using QThread, precisely discarding the known RDRAND warning lines while preserving all other stderr messages.
|
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: gitee-zeqi The full list of commands accepted by this bot can be found here. DetailsNeeds approval from an approver in each of these files:Approvers can indicate their approval by writing |
|
Hi @gitee-zeqi. Thanks for your PR. I'm waiting for a linuxdeepin member to verify that this patch is reasonable to test. If it is, they should reply with Once the patch is verified, the new status will be reflected by the I understand the commands that are listed here. DetailsInstructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
在某些平台,CPU 的硬件随机数指令 RDRAND 持续返回异常值。这导致某些第三方加密库在动态库初始化阶段检测到失败,并向 stderr 输出固定的 WARNING 文本:
这样会影响到一些项目的cmake编译,如下:
在终端的输出,修改前:
修改后:
解决方法:
添加一个基于管道 + QThread 的 stderr 过滤器,过滤掉警告