xuthus5 / fedora-packager

fedora下安装微信和企业微信。install wechat on fedora.
https://build.opensuse.org/project/show/home:xuthus5
94 stars 6 forks source link

修复 fedora-deepin-extra-lib 依赖问题 #3

Open diredocks opened 2 years ago

diredocks commented 2 years ago

仓库里的 fedora-deepin-extra-lib 这个包会和系统的 filesystem 包冲突,需要更改 spec 文件。

具体解决方案如下:

%files
%defattr (-,root,root)
%{_prefix}/lib/*

参见文章: 来,从AUR给Fedora偷个包

diredocks commented 2 years ago

另外我发现目前仓库里的该包经过修复后无需手动替换库文件,只需执行最后一步:

sudo cp /usr/lib/lowversion-wldap32.dll.so /opt/deepin-wine6-stable/lib/wldap32.dll.so

好奇为什么不直接在打包的时候就把 deepin-wine6-stable 包中的该文件替换掉...

xuthus5 commented 2 years ago

直接替换会被rpmbuild自动检测依赖,因为 wldap32.dll.so 经过 lddNEEDED 的依赖是低版本的,fedora35也没法对该包通过dnf进行降级

xuthus5 commented 2 years ago

已修复。

diredocks commented 2 years ago

直接替换会被rpmbuild自动检测依赖,因为 wldap32.dll.so 经过 lddNEEDED 的依赖是低版本的,fedora35也没法对该包通过dnf进行降级

我在想能不能通过 deepin-wine-wechat 的启动脚本 run.sh 自动替换文件.... 添上一行就行了。

周末愉快。

zhullyb commented 2 years ago

直接替换会被rpmbuild自动检测依赖

可以在 spec 中添加一行AutoReqProv: no来禁用rpmbuild的自动检测依赖

xuthus5 commented 2 years ago

直接替换会被rpmbuild自动检测依赖

可以在 spec 中添加一行AutoReqProv: no来禁用rpmbuild的自动检测依赖

好的,我会测试通过后考虑把wldap32.dll.so 打包到 fedora-deepin-extra-lib 下。