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

Add spec file to build rpm #244

Merged
merged 5 commits into from
Apr 9, 2019
Merged

Add spec file to build rpm #244

merged 5 commits into from
Apr 9, 2019

Conversation

laura-ding
Copy link
Contributor

package/build_deps.sh : install deps for build nebula
package/rpm_deps.sh : install deps for rpm
package/make_srpm.sh : the scripts to make rpm packet
package/nebula.spec : the config file for rpmbuild
src/daemons/CMakeLists.txt : add storaged and metad when install

@laura-ding laura-ding requested a review from dutor March 28, 2019 04:46
@nebula-community-bot
Copy link
Member

Unit testing passed.

Copy link
Member

@sherman-the-tank sherman-the-tank left a comment

Choose a reason for hiding this comment

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

Well done!

Overall the pr looks good to me. I just have a few minor suggestions.

@@ -0,0 +1,10 @@
#!/bin/sh

# download deps for build nebula
Copy link
Member

Choose a reason for hiding this comment

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

Should we check the package version as well?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I had only tested using Federa29 for now, I will test in other system of variant version and check the package version requirements as soon as the experimental envioronment is ready.

bindir="$prefix/bin"
datadir="$prefix/scripts"
sysconfdir="$prefix/etc"
version="1.0.0"
Copy link
Member

Choose a reason for hiding this comment

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

The version is used in both SRPM and RPM spec. I wonder if we could pull the version out to a central location

Copy link
Contributor Author

Choose a reason for hiding this comment

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

make_srpm.sh will pass the version parameter to nebula.spec. Besides, i think that we could parse version from tag name or user input.
P.S. We need to confirm a version format.

Copy link
Member

Choose a reason for hiding this comment

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

Sure, sounds good to me. Maybe a TODO comment for now and implement it later


# download deps

sudo yum -y install autoconf automake libtool cmake bison unzip boost gperf
Copy link
Member

Choose a reason for hiding this comment

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

Same as build_deps.sh, we might want to check the dependents' versions

Copy link
Contributor Author

Choose a reason for hiding this comment

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

ditto

@laura-ding laura-ding changed the title add spec file to build rpm Add spec file to build rpm Apr 6, 2019
@nebula-community-bot
Copy link
Member

Unit testing failed.

@nebula-community-bot
Copy link
Member

Unit testing passed.

@@ -0,0 +1,65 @@
#!/bin/bash

# used to build nebula rpm flles
Copy link
Contributor

Choose a reason for hiding this comment

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

typo

Copy link
Contributor Author

Choose a reason for hiding this comment

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

OK,thank you!

rpmbuilddir=$OPTARG
;;
?) echo "Invalid option, use default arguments"
;;
Copy link
Contributor

Choose a reason for hiding this comment

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

alignment

Copy link
Contributor Author

Choose a reason for hiding this comment

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

OK,thank you!

@nebula-community-bot
Copy link
Member

Unit testing passed.

Copy link
Member

@sherman-the-tank sherman-the-tank left a comment

Choose a reason for hiding this comment

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

LGTM

Awesome job and thanks for the quick response 👍

@nebula-community-bot
Copy link
Member

Unit testing passed.

@darionyaphet
Copy link
Contributor

CPack seems could generate binary installers for kinds of formats. Would you try it ?

Copy link
Contributor

@dutor dutor left a comment

Choose a reason for hiding this comment

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

Good job!

@nebula-community-bot
Copy link
Member

Unit testing passed.

1 similar comment
@nebula-community-bot
Copy link
Member

Unit testing passed.

@laura-ding laura-ding merged commit 8246708 into vesoft-inc:master Apr 9, 2019
@laura-ding laura-ding deleted the package branch April 23, 2019 05:55
yixinglu pushed a commit to yixinglu/nebula that referenced this pull request Feb 16, 2020
* add spec file to build rpm

* Address sherman-the-tank's comments

* Fix compilation failure

* Address steppenwolfyuetong's comments
tong-hao pushed a commit to tong-hao/nebula that referenced this pull request Jun 1, 2021
* add spec file to build rpm

* Address sherman-the-tank's comments

* Fix compilation failure

* Address steppenwolfyuetong's comments
yixinglu added a commit to yixinglu/nebula that referenced this pull request Mar 21, 2022
* Remove Common Clause License (vesoft-inc#3263)

* Remove Common Clause 1.0 License

* Again

* Cleanup CC

* Remove common  clause 1.0

Co-authored-by: Yee <2520865+yixinglu@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants