Skip to content

Add rpkg/copr support #69

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

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

Add rpkg/copr support #69

wants to merge 2 commits into from

Conversation

jlelli
Copy link
Contributor

@jlelli jlelli commented Oct 10, 2018

Adding support for copr build and distribution as rpm package might help attract users that don't want to mess with building from sources.

This PR will make the following possible:
https://copr.fedorainfracloud.org/coprs/juril/rt-app/

@jlelli jlelli self-assigned this Oct 10, 2018
@jlelli jlelli requested a review from vingu-linaro October 10, 2018 16:04
@@ -1,4 +1,4 @@
AC_INIT([rt-app], [m4_esyscmd_s([git describe --tags HEAD])], [[email protected], [email protected]])
AC_INIT([rt-app], [1.0], [[email protected], [email protected]])
Copy link
Member

Choose a reason for hiding this comment

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

Adding rpkg/copr is a good idea
but is there a way to keep both mechanism running correctly ?
It was convenient to get the sha1 for intermediate build to know which version a rt-app binary is based

Copy link
Contributor Author

Choose a reason for hiding this comment

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

So, I'm pretty new to the rpkg/copr thing, but AFAIU the problem with calling git describe is that rpkg creates a temporary out-of-git-tree copy of the source to build them and create rpms. So git describe doesn't work in this case.
Now, I'm not sure if this is a problem for rpkg local only (I used that before creating the project on copr to test the build process) or also if copr would have problems with that.

In any case, I was wondering if we shouldn't actually "standardize" the release process. We are still at v1.0 and lot of stuff changed and was added after that?

Copy link
Member

Choose a reason for hiding this comment

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

Yes. We might need to tag a new version
And more generally speaking release some "stable" version more often

May be it's worth checking what the other package are doing in this area. Imean in order to get some details about sha1 when want to use "dev" branch
Ca, we consider that the rpkg/copr will be used only with tagged version ?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Ca, we consider that the rpkg/copr will be used only with tagged version ?

Makes sense to me.

So we could

  1. create a devel branch out of current master
  2. apply the patch removing git describe only in master
  3. tag master as.. 1.1 or 2.0 (updating configure.ac accordingly)
  4. use master for copr (and a debian equivalent in the future?)
  5. point people to devel for further development and merge in master feature by feature

Do you think it might actually work? :-)

Copy link
Member

Choose a reason for hiding this comment

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

yes that's seems to be a good way of working

Copy link
Contributor

Choose a reason for hiding this comment

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

In the past I've got a chance to use the "gitflow" branching model described here:

https://nvie.com/posts/a-successful-git-branching-model/

and I've found it quite useful. IMO it's pretty close to what @jlelli suggests and I think it could fit for an improved release process for rt-app.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Nice! Yes this should work.
@vingu-linaro we might act on this by creating a PR that modifies README or points to a doc that states how development and release will be done from now on. Can do that.
Once we have that I can rebase this accordingly...
OK?

Copy link
Member

Choose a reason for hiding this comment

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

looks good for me

jlelli added 2 commits March 8, 2019 10:12
Remove git usage from configure.ac, so we can successfully call
autoreconf when building sources outside the git tree (e.g., when using
rpkg).

Signed-off-by: Juri Lelli <[email protected]>
Add a .spec file so that rpkg can be used to build rpms.

Signed-off-by: Juri Lelli <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants