Open
【20.03-SP4-rc2】【arm/x86】h2源码包本地自编译失败 #11
zjl_longAdd on  Nov 13, 2023
zjl_longCollaborators
Nov 13, 2023 Create

【环境信息】
软件信息:
1) OS版本及分支:openEuler-20.03-lts-sp4-rc2
2) 内核信息:kernel-4.19.90-2311.1.0.0234.oe2003sp4.src.rpm
3) repo:http://121.36.84.172/dailybuild/EBS-openEuler-20.03-LTS-SP4/rc2_openeuler-2023-11-07-23-35-54/
4) 发现问题的组件版本信息:h2-1.4.196-2.oe2003sp4.src.rpm

【问题复现步骤】
1、将h2源码包下载到虚拟机上执行编译
yumdownloader --source h2
2、安装h2
rpm -ivh h2-1.4.196-2.oe2003sp4.src.rpm
3、进入安装目录
cd /root/rpmbuild/SPECS/
4、开始编译
rpmbuild -ba h2.spec
5、如果有依赖的就安装依赖
【预期结果】
1、源码包编译成功,生成rpm二进制包,无异常
【实际结果】
1、编译失败
【附件信息】
输入图片说明

likedislike
Zzjl_longCollaborators
Nov 13, 2023 创建了缺陷
-
Nov 13, 2023 Comments:

Hi zjl_long, welcome to the openEuler Community.
I'm the Bot here serving you. You can find the instructions on how to interact with me at Here.
If you have any questions, please contact the SIG: DB, and any of the maintainers: @dillon_chen , @zhengzhenyu

likedislike
openeuler-ci-botopeneuler-ci-botCollaborators
Nov 13, 2023 添加了   sig/DB 标签
Zzjl_longCollaborators
Nov 13, 2023 将负责人从 caodongxia 修改为赵波
zjl_longCollaborators
Dec 7, 2023 Comments:

问题分析:
h2编译依赖glassfish-servlet-api,jakarta-servlet也提供了glassfish-servlet-api,且版本比glassfish-servlet-api高,自编译时自动安装上了jakarta-servlet,而h2依赖的是低版本的glassfish-servlet-api,可以增加对glassfish-servlet-api的版本限制,保证安装正确的编译依赖包。

自验证:
1、查询系统已安装的jakarta-servlet版本,和sp4系统提供的glassfish-servlet-api版本
输入图片说明
2、卸载jakarta-servlet,安装正确的编译依赖包glassfish-servlet-api
3、重新编译,编译成功
arm:
输入图片说明
x86:
输入图片说明

likedislike
Zzjl_longCollaborators
Dec 7, 2023 添加协作者赵波
Zzjl_longCollaborators
Dec 7, 2023 将负责人从 赵波 修改为ZhengZhenyu
Zzjl_longCollaborators
Dec 7, 2023 将优先级从 主要 修改为次要