Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

build: rpm package installs systemd script #207

Closed
wants to merge 9 commits into from

Conversation

Sotatek-TuLe2
Copy link

@Sotatek-TuLe2 Sotatek-TuLe2 commented Jan 13, 2025

Proposed changes

  • Describe your changes to communicate to the maintainers why we should accept this pull request.
  • If it fixes a bug or resolves a feature request, be sure to link to that issue.

Types of changes

Please put an x in the boxes related to your change.

  • Bugfix
  • New feature or enhancement
  • Others

Checklist

Put an x in the boxes that apply. You can also fill these out after creating the PR. If you're unsure about any of them, don't hesitate to ask. We're here to help! This is simply a reminder of what we are going to look for before merging your code.

  • I have read the CONTRIBUTING GUIDELINES doc
  • I have read the CLA and signed by comment I have read the CLA Document and I hereby sign the CLA in first time contribute
  • Lint and unit tests pass locally with my changes ($ make test)
  • I have added tests that prove my fix is effective or that my feature works
  • I have added necessary documentation (if appropriate)
  • Any dependent changes have been merged and published in downstream modules

Related issues

  • Please leave the issue numbers or links related to this PR here.

Further comments

If this is a relatively large or complex change, kick off the discussion by explaining why you chose the solution you did and what alternatives you considered, etc...

Comment on lines +235 to +237
if [ ! -e /etc/init.d/functions ]; then
ln -s /etc/rc.d/init.d/functions /etc/init.d/functions
fi
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@Sotatek-TuLe2 Apparently %install command isn't directly affecting the target system..
https://app.circleci.com/pipelines/github/kaiachain/kaia/1736/workflows/06659564-ba78-4aa0-bb6a-905c7dbf490b/jobs/9312

Executing(%install): /bin/sh -e /var/tmp/rpm-tmp.7tLa5P
+ umask 022
+ cd /go/src/github.com/kaiachain/kaia/build/../kcn-linux-x86_64//rpmbuild/BUILD
+ '[' /go/src/github.com/kaiachain/kaia/kcn-linux-x86_64/rpmbuild/BUILDROOT '!=' / ']'
+ rm -rf /go/src/github.com/kaiachain/kaia/kcn-linux-x86_64/rpmbuild/BUILDROOT
++ dirname /go/src/github.com/kaiachain/kaia/kcn-linux-x86_64/rpmbuild/BUILDROOT
+ mkdir -p /go/src/github.com/kaiachain/kaia/kcn-linux-x86_64/rpmbuild
+ mkdir /go/src/github.com/kaiachain/kaia/kcn-linux-x86_64/rpmbuild/BUILDROOT
+ cd kcnd-v2.0.0
+ mkdir -p /go/src/github.com/kaiachain/kaia/kcn-linux-x86_64/rpmbuild/BUILDROOT/usr/bin
+ mkdir -p /go/src/github.com/kaiachain/kaia/kcn-linux-x86_64/rpmbuild/BUILDROOT/etc/kcnd/conf
+ mkdir -p /go/src/github.com/kaiachain/kaia/kcn-linux-x86_64/rpmbuild/BUILDROOT/etc/init.d
+ mkdir -p /go/src/github.com/kaiachain/kaia/kcn-linux-x86_64/rpmbuild/BUILDROOT/var/log/kcnd
+ mkdir -p /go/src/github.com/kaiachain/kaia/kcn-linux-x86_64/rpmbuild/BUILDROOT/etc/systemd/system
+ cp build/bin/kcn /go/src/github.com/kaiachain/kaia/kcn-linux-x86_64/rpmbuild/BUILDROOT/usr/bin/kcn
+ cp build/rpm/etc/init.d/kcnd /go/src/github.com/kaiachain/kaia/kcn-linux-x86_64/rpmbuild/BUILDROOT/etc/init.d/kcnd
+ cp build/rpm/etc/kcnd/conf/kcnd.conf /go/src/github.com/kaiachain/kaia/kcn-linux-x86_64/rpmbuild/BUILDROOT/etc/kcnd/conf/kcnd.conf
+ cp build/rpm/etc/systemd/system/kcnd.service /go/src/github.com/kaiachain/kaia/kcn-linux-x86_64/rpmbuild/BUILDROOT/etc/systemd/system/kcnd.service
+ '[' '!' -e /etc/init.d/functions ']'
+ ln -s /etc/rc.d/init.d/functions /etc/init.d/functions
ln: failed to create symbolic link '/etc/init.d/functions': No such file or directory

Maybe the ln -s command has to be under %post?

@blukat29
Copy link
Contributor

Succeeded by #226.

@blukat29 blukat29 closed this Jan 23, 2025
@github-actions github-actions bot locked and limited conversation to collaborators Jan 23, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants