-
Notifications
You must be signed in to change notification settings - Fork 30
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
Closed
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sotatek-TuLe2
requested review from
blukat29,
yoomee1313 and
ian0371
as code owners
January 13, 2025 09:05
blukat29
approved these changes
Jan 21, 2025
yoomee1313
approved these changes
Jan 21, 2025
blukat29
reviewed
Jan 22, 2025
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 |
There was a problem hiding this comment.
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
?
Succeeded by #226. |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Proposed changes
Types of changes
Please put an x in the boxes related to your change.
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 CLA Document and I hereby sign the CLA
in first time contribute$ make test
)Related issues
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...