-
Notifications
You must be signed in to change notification settings - Fork 2k
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
pkg: unify git checkout #5138
pkg: unify git checkout #5138
Conversation
Why are all pkg tests skipped? |
|
||
$(PKG_BUILDDIR)/.downloaded: | ||
mkdir -p $(PKG_BUILDDIR) | ||
$(GITCACHE) clone "$(PKG_URL)" "$(PKG_VERSION)" "$(PKG_BUILDDIR)" |
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.
Not every package must be a git repository. I would prefer to call the file pkg.git.mk
or something like that instead.
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.
I called it "pkg.mk" because we will extend it, and then either some logic will decide wether a pkg is "git", or the targets can be called "git-checkout", or whatever.
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.
@authmillenon you fine with this?
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.
Yes.
Are there applications including them? Maybe the |
All but two packages get included by applications, so I guess is_updated() is to blame. |
6215da2
to
407a93a
Compare
|
Does not fix #4511 btw. Relic still spams the output of the unittests full with cmake stuff. |
and there seems to be a problem with the ccn-lite package. |
The issue description is "This makes it impossible to build for multiple platforms without clean inbetween.", which is fixed. |
Which is IMO acceptable. As long if it doesn't break anything in our build system it is IMO always preferable to do as little changes as possible to the upstream repository. |
Okay from that perspective you are right. |
7363377
to
0cacc8b
Compare
Murdock was happy, I squashed. |
Murdock happy. @authmillenon care to ACK? :) |
Yes ACK. Will provide a fix for allow non-git repos in the future. I have an idea how to make that very simple. |
This PR introduces a shared makefile for all the git checkout/patch/clean stuff.
Packages are now checked out into
$(BINDIR)/pkg/<pkg_name>
, solving potential parallel-build-for-multiple-platform problems.Patches went into
patches
subdirectories.Fixes #5130 #4962 #4511.