bitbake.conf: add git-lfs to HOSTTOOLS_NONFATAL
PATCH 1/1 bitbake.conf: add git-lfs to HOSTTOOLS_NONFATAL
This provides git large file storage (lfs) extension.
Include git-lfs conditionally. If git-lfs is present on host and repo has lfs pointers, then git-lfs will be used. If git-lfs is not present on host, it will be ignored.
[YOCTO #13198]
(From OE-Core rev: 2968ad8514721ec06e67aaf3fd5ec7b247b3431d)
--- meta/conf/bitbake.conf | 3 +++ 1 file changed, 3 insertions(+)
meta/conf/bitbake.conf +3 -0
@@ -514,6 +514,9 @@ HOSTTOOLS_NONFATAL += "bzr" # Used by ssh fetcher HOSTTOOLS_NONFATAL += "scp" +# Link to git-lfs if present +HOSTTOOLS_NONFATAL += "git-lfs" + CCACHE ??= "" TOOLCHAIN_OPTIONS = " --sysroot=${STAGING_DIR_TARGET}"
Signature · 1 line
2.17.1
The corresponding first patch of this patch series already merged in Warrior
So this patch should also go in warrior.
Quoted 31 lines · Naveen Saini
This provides git large file storage (lfs) extension.
Include git-lfs conditionally. If git-lfs is present on host and repo has lfs pointers, then git-lfs will be used. If git-lfs is not present on host, it will be ignored.
[YOCTO #13198]
(From OE-Core rev:
2968ad8514721ec06e67aaf3fd5ec7b247b3431d)Signed-off-by Naveen Saini <[email protected]>Signed-off-by Richard Purdie <[email protected]>--- meta/conf/bitbake.conf | 3 +++ 1 file changed, 3 insertions(+)meta/conf/bitbake.conf +3
-0@@ -514,6 +514,9 @@ HOSTTOOLS_NONFATAL += "bzr" # Used by ssh fetcher HOSTTOOLS_NONFATAL += "scp" +# Link to git-lfs if present +HOSTTOOLS_NONFATAL += "git-lfs" + CCACHE ??= "" TOOLCHAIN_OPTIONS = " --sysroot=${STAGING_DIR_TARGET}"
Martin Jansa
NAKNAK
Yes, the first part was merged in warrior and is correct.
But this second part isn't good (you don't want git-lfs to sometimes work and sometimes fail) and that's why it was rejected for master and _shouldn't_ be merged to warrior. If you have recipes which need git-lfs, then add it to normal HOSTTOOLS in your builds to make sure it's always present when needed.
Quoted 47 lines · Naveen Kumar
The corresponding first patch of this patch series already merged in Warrior
So this patch should also go in warrior.
Quoted 22 lines · Naveen Saini
This provides git large file storage (lfs) extension.
Include git-lfs conditionally. If git-lfs is present on host and repo has lfs pointers, then git-lfs will be used. If git-lfs is not present on host, it will be ignored.
[YOCTO #13198]
(From OE-Core rev:
2968ad8514721ec06e67aaf3fd5ec7b247b3431d)Signed-off-by Naveen Saini <[email protected]>Signed-off-by Richard Purdie <[email protected]>--- meta/conf/bitbake.conf | 3 +++ 1 file changed, 3 insertions(+)meta/conf/bitbake.conf +0
-0meta/conf/bitbake.conf HOSTTOOLS_NONFATAL += "bzr" · line 522
Quoted 9 lines
meta/conf/bitbake.conf +3
-0@@ -514,6 +514,9 @@ HOSTTOOLS_NONFATAL += "bzr" # Used by ssh fetcher HOSTTOOLS_NONFATAL += "scp" +# Link to git-lfs if present +HOSTTOOLS_NONFATAL += "git-lfs" + CCACHE ??= "" TOOLCHAIN_OPTIONS = " --sysroot=${STAGING_DIR_TARGET}"--
_______________________________________________
Openembedded-core mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-core
Quoted 5 lines · Martin Jansa
NAK
Yes, the first part was merged in warrior and is correct.
But this second part isn't good (you don't want git-lfs to sometimes work and sometimes fail) and that's why it was rejected for master and _shouldn't_ be merged to warrior. If you have recipes which need git-lfs, then add it to normal HOSTTOOLS in your builds to make sure it's always present when needed.
Noted. Thanks.
Quoted 9 lines · Martin Jansa
NAK
Yes, the first part was merged in warrior and is correct.
But this second part isn't good (you don't want git-lfs to sometimes work and sometimes fail) and that's why it was rejected for master and _shouldn't_ be merged to warrior. If you have recipes which need git-lfs, then add it to normal HOSTTOOLS in your builds to make sure it's always present when needed.
I don't like the patch but it did merge to master.
Building a git-lfs-native is a nightmare due to all its dependencies (I think its go based?) and there wasn't really any other way to sort it.
Having recipe specific hosttools would be ideal but we don't have that.
Cheers,
Richard
Quoted 11 lines · Richard Purdie
Quoted 9 lines · Martin Jansa
NAK
Yes, the first part was merged in warrior and is correct.
But this second part isn't good (you don't want git-lfs to sometimes work and sometimes fail) and that's why it was rejected for master and _shouldn't_ be merged to warrior. If you have recipes which need git-lfs, then add it to normal HOSTTOOLS in your builds to make sure it's always present when needed.
Quoted 4 lines
I don't like the patch but it did merge to master.
Building a git-lfs-native is a nightmare due to all its dependencies (I think its go based?) and there wasn't really any other way to sort it.
Upstream provides generic binaries for at least x86, x86-64 and ARM64:
https://github.com/git-lfs/git-lfs/releases
https://github.com/git-lfs/git-lfs/releases/download/v2.8.0/git-lfs-linux-386-v2.8.0.tar.gz
https://github.com/git-lfs/git-lfs/releases/download/v2.8.0/git-lfs-linux-amd64-v2.8.0.tar.gz
https://github.com/git-lfs/git-lfs/releases/download/v2.8.0/git-lfs-linux-arm64-v2.8.0.tar.gz
Would just downloading and installing the official upstream binaries be so bad?
Quoted 11 lines
Having recipe specific hosttools would be ideal but we don't have that.
Cheers,
Richard
--
_______________________________________________
Openembedded-core mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-core
Quoted 16 lines · Andre McCurdy
Quoted 10 lines · Richard Purdie
Quoted 9 lines · Martin Jansa
NAK
Yes, the first part was merged in warrior and is correct.
But this second part isn't good (you don't want git-lfs to sometimes work and sometimes fail) and that's why it was rejected for master and _shouldn't_ be merged to warrior. If you have recipes which need git-lfs, then add it to normal HOSTTOOLS in your builds to make sure it's always present when needed.
Quoted 4 lines
I don't like the patch but it did merge to master.
Building a git-lfs-native is a nightmare due to all its dependencies (I think its go based?) and there wasn't really any other way to sort it.
Quoted 8 lines
Upstream provides generic binaries for at least x86, x86-64 and ARM64:
https://github.com/git-lfs/git-lfs/releases
https://github.com/git-lfs/git-lfs/releases/download/v2.8.0/git-lfs-linux-386-v2.8.0.tar.gz
https://github.com/git-lfs/git-lfs/releases/download/v2.8.0/git-lfs-linux-amd64-v2.8.0.tar.gz
https://github.com/git-lfs/git-lfs/releases/download/v2.8.0/git-lfs-linux-arm64-v2.8.0.tar.gzWould just downloading and installing the official upstream binaries be so bad?
making a big change like this seems to be a no-go for a stable branch.
- armin
Quoted 12 lines
Quoted 12 lines
Having recipe specific hosttools would be ideal but we don't have that.
Cheers,
Richard
--
_______________________________________________
Openembedded-core mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-core
Quoted 19 lines · On Thu, Aug 15, 2019 at 8:45 PM akuster808 <[email protected]> wrote:
Quoted 18 lines · Andre McCurdy
Quoted 10 lines · Richard Purdie
Quoted 9 lines · Martin Jansa
NAK
Yes, the first part was merged in warrior and is correct.
But this second part isn't good (you don't want git-lfs to sometimes work and sometimes fail) and that's why it was rejected for master and _shouldn't_ be merged to warrior. If you have recipes which need git-lfs, then add it to normal HOSTTOOLS in your builds to make sure it's always present when needed.
Quoted 4 lines
I don't like the patch but it did merge to master.
Building a git-lfs-native is a nightmare due to all its dependencies (I think its go based?) and there wasn't really any other way to sort it.
Upstream provides generic binaries for at least x86, x86-64 and ARM64:
Quoted 8 lines
Quoted 6 lines
https://github.com/git-lfs/git-lfs/releases
https://github.com/git-lfs/git-lfs/releases/download/v2.8.0/git-lfs-linux-386-v2.8.0.tar.gz
https://github.com/git-lfs/git-lfs/releases/download/v2.8.0/git-lfs-linux-amd64-v2.8.0.tar.gz
https://github.com/git-lfs/git-lfs/releases/download/v2.8.0/git-lfs-linux-arm64-v2.8.0.tar.gzWould just downloading and installing the official upstream binaries be so bad?
making a big change like this seems to be a no-go for a stable branch.
Right. This probably isn't suitable for the stable branch. It would obviously be implemented first in master anyway.
Point was just that if we made use of the upstream binaries (which are completely distro independent as far as I can tell?) then a git-lfs-native recipe would transform from "a nightmare" to almost trivial.