Skip to contentSkip to conversation

bitbake.conf: add git-lfs to HOSTTOOLS_NONFATAL

PATCH NAK Naveen Saini 5 participants 8 messages Aug 15, 2019 – Aug 16, 2019

lore
Share & tools
lore
#0 lore raw

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
index c996301a8b..c5313ccd19 100644
@@ -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
#1 lore raw

The corresponding first patch of this patch series already merged in Warrior

https://git.yoctoproject.org/cgit/cgit.cgi/poky/commit/bitbake/lib?h=warrior&id=6e3a4d7926296380da23536c29af35d5702e02fb

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)

---
  meta/conf/bitbake.conf | 3 +++
  1 file changed, 3 insertions(+)
meta/conf/bitbake.conf +3 -0
index c996301a8b..c5313ccd19 100644
@@ -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}"
#2 lore raw

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 47 lines · Naveen Kumar

The corresponding first patch of this patch series already merged in Warrior

https://git.yoctoproject.org/cgit/cgit.cgi/poky/commit/bitbake/lib?h=warrior&id=6e3a4d7926296380da23536c29af35d5702e02fb

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)

---
  meta/conf/bitbake.conf | 3 +++
  1 file changed, 3 insertions(+)
meta/conf/bitbake.conf +0 -0
index c996301a8b..c5313ccd19 100644

meta/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

#3 lore raw
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.

#4 lore raw
In reply to Martin Jansa
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

#5 lore raw
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

#6 lore raw
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.gz

Would 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

#7 lore raw
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.gz

Would 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.