如何根据现有的rpm 创建rpm?

如何根据现有的rpm 创建rpm?

我想在华为的操作系统(openEuler OS)上创建“snapd”rpm,但我没有rpmbuild的经验。在snapd的github存储库中,有许多其他Linux发行版(例如CentOS)的规范文件。如何在openEuler上成功安装snapd?这似乎是一个完整的go项目,我可以先运行main.go来运行snapd,因为源代码也在github存储库中,但我遇到了这个问题:

[root@myOpenEuler2303 snapd]# go run main.go
2023/08/12 14:34:46.616748 overlord.go:272: Acquiring state lock file
2023/08/12 14:34:46.618640 overlord.go:277: Acquired state lock file
2023/08/12 14:34:46.652502 daemon.go:247: started snapd/unknown (series 16; classic; devmode) openeuler/23.03 (amd64) linux/5.4.119-20.0009.21.spr.
2023/08/12 14:34:46.673454 main.go:129: system does not fully support snapd: cannot mount squashfs image using "squashfs": mount: /tmp/syscheck-mountpoint-1047546609: mount failed: Operation not permitted.
2023/08/12 14:34:46.673504 daemon.go:340: adjusting startup timeout by 30s (pessimistic estimate of 30s plus 5s per snap)
2023/08/12 14:34:46.687999 backends.go:58: AppArmor status: apparmor not enabled
cannot run daemon: state startup errors: [cannot obtain snap-seccomp version information: fork/exec /usr/lib/snapd/snap-seccomp: no such file or directory]
exit status 1

相关内容