openeuler-riscv / oerv-team

OERV 实习生工作中心
6 stars 35 forks source link

硬依赖valgrind改为依赖%valgrind_arches宏 #760

Open laokz opened 2 months ago

laokz commented 2 months ago

valgrind现不支持riscv。一些包在spec里硬编码依赖valgrind,需改为%if %{valgrind_arches}才依赖。

涉及到的包:R-language fwupd jq libsecret mpich rapidjson rdma-core vdo

Ywinh commented 2 months ago

老师麻烦把这个 #760 也分配给我吧,github id:Ywinh 根据老师的指导,先在eulermaker上面测试

laokz commented 2 months ago

先在群里说一下,我明天处理

laokz commented 2 months ago

首先提交到openEuler-24.03-LTS分支,然后再/sync master 2403next。这样2403工程能尽快用上

Ywinh commented 2 months ago

首先提交到openEuler-24.03-LTS分支,然后再/sync master 2403next。这样2403工程能尽快用上

明白老师

Ywinh commented 2 months ago

已完成的包 8/8

EBS构建本地仓库的时候可能不是 openEuler-24.03-LTS分支,但是提的 pr 都是openEuler-24.03-LTS分支

R-language

pr:[first check if Valgrind supports the build architecture · Pull Request !10 · src-openEuler/R-language - Gitee.com](https://gitee.com/src-openeuler/R-language/pulls/10)

EBS构建验证:

/sync master openEuler-24.03-LTS-Next

jq

pr:[first check if Valgrind supports the build architecture · Pull Request !16 · src-openEuler/jq - Gitee.com](https://gitee.com/src-openeuler/jq/pulls/16)

EBS构建验证:

/sync master openEuler-24.03-LTS-Next

libsecret:

pr:[first check if Valgrind supports the build architecture · Pull Request !19 · src-openEuler/libsecret - Gitee.com](https://gitee.com/src-openeuler/libsecret/pulls/19)

EBS构建验证:

/sync master openEuler-24.03-LTS-Next

mpich

pr:[first check if Valgrind supports the build architecture · Pull Request !37 · src-openEuler/mpich - Gitee.com](https://gitee.com/src-openeuler/mpich/pulls/37)

EBS构建验证:

/sync master openEuler-24.03-LTS-Next

rapidjson:

pr:[first check if Valgrind supports the build architecture · Pull Request !10 · src-openEuler/rapidjson - Gitee.com](https://gitee.com/src-openeuler/rapidjson/pulls/10)

EBS构建验证:

/sync master openEuler-24.03-LTS-Next

vdo

pr:[first check if Valgrind supports the build architecture · Pull Request !19 · src-openEuler/vdo - Gitee.com](https://gitee.com/src-openeuler/vdo/pulls/19)

EBS构建验证:

/sync master openEuler-24.03-LTS-Next

fwupd

pr:[first check if Valgrind supports the architecture · Pull Request !77 · src-openEuler/fwupd - Gitee.com](https://gitee.com/src-openeuler/fwupd/pulls/77)

EBS构建验证:

/sync master openEuler-24.03-LTS-Next

rdma-core

pr:[first check if Valgrind supports the build architecture · Pull Request !140 · src-openEuler/rdma-core - Gitee.com](https://gitee.com/src-openeuler/rdma-core/pulls/140)

EBS构建验证:

/sync master openEuler-24.03-LTS-Next

laokz commented 2 months ago

good

Ywinh commented 1 month ago

目前遇到两个问题,都集中在 riscv 架构下的 systemd 包问题,其他两个架构验证了都无问题

rdma-core

在 riscv 架构下屏蔽了 valgrind 之后报错

Problem: The operation would result in removing the following protected packages: systemd
(try to add '--allowerasing' to command line to replace conflicting packages or '--skip-broken' to skip uninstallable packages or '--nobest' to use not only best candidate packages)

构建失败日志:https://eulermaker.compass-ci.openeuler.openatom.cn/package/build-record?osProject=yinsisit:openEuler-24.03-LTS-everything:risc-v&packageName=rdma-core&jobId=cbs.4271699 网上说的解决方法是:

sudo rpm -e --nodeps <name>

但是我不知道在哪里加入这行命令 要解决这个问题我认为可以尝试下面两个方法

fwupd

在 riscv 架构下屏蔽了 valgrind 之后报错

Problem: package systemd-pam-255-7.oe2403.riscv64 from 1 requires systemd = 255-7.oe2403, but none of the providers can be installed
- package systemd-devel-255-7.oe2403.riscv64 from 1 requires systemd-pam = 255-7.oe2403, but none of the providers can be installed
- cannot install both systemd-255-7.oe2403.riscv64 from 1 and systemd-255-8.oe2403.riscv64 from @System
- cannot install the best candidate for the job
(try to add '--allowerasing' to command line to replace conflicting packages or '--skip-broken' to skip uninstallable packages or '--nobest' to use not only best candidate packages)
failed to solve dependencies

失败日志:https://eulermaker.compass-ci.openeuler.openatom.cn/package/build-record?osProject=yinsisit:openEuler-24.03-LTS-everything:risc-v&packageName=fwupd&jobId=cbs.4245930

主要就是不了解这些 require 是在哪里出现的,尝试了两天感觉没有头绪,可能得理一遍 spec 文件的构建顺序与过程

laokz commented 1 month ago

这些是构建环境准备问题,和你的修改无关。稍晚我看看

Ywinh commented 1 month ago

老师,EBS验证问题已解决,目前所有包已经修改且验证完毕,详细信息在上面 “已完成的包”

laokz commented 1 month ago

好👍