Skip to contentSkip to conversation

bitbake: bb.fetch2.git: Import errno module

PATCH In review Romain Perier 3 participants 4 messages Sep 18, 2015 – Sep 19, 2015

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 bitbake: bb.fetch2.git: Import errno module

Currently this module is dereferencing errno.ENOENT but the python module "errno" is not imported, which causes a crash when fetching from a git repository.

---
 bitbake/lib/bb/fetch2/git.py | 1 +
 1 file changed, 1 insertion(+)
bitbake/lib/bb/fetch2/git.py +1 -0
index 4a32a31..9bd87ad 100644
@@ -66,6 +66,7 @@ Supported SRC_URI options are:
 # with this program; if not, write to the Free Software Foundation, Inc.,
 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
 
+import errno
 import os
 import re
 import bb
Signature · 1 line
2.1.4
Acked-by on v1 1/1
#1 lore raw
Quoted 6 lines · Romain Perier

Currently this module is dereferencing errno.ENOENT but the python module "errno"
is not imported, which causes a crash when fetching from a git repository.

Eep, that would be my fault, sorry about that.

Signature · 5 lines
Christopher Larson
clarson at kergoth dot com
Founder - BitBake, OpenEmbedded, OpenZaurus
Maintainer - Tslib
Senior Software Engineer, Mentor Graphics
#2 lore raw
In reply to Romain Perier
Quoted 13 lines · Romain Perier

Currently this module is dereferencing errno.ENOENT but the python module "errno" is not imported, which causes a crash when fetching from a git repository.

---
 bitbake/lib/bb/fetch2/git.py | 1 +
 1 file changed, 1 insertion(+)
bitbake/lib/bb/fetch2/git.py +0 -0
index 4a32a31..9bd87ad 100644

bitbake/lib/bb/fetch2/git.py Supported SRC_URI options are: · line 72

Quoted 7 lines
bitbake/lib/bb/fetch2/git.py +1 -0
@@ -66,6 +66,7 @@ Supported SRC_URI options are:
 # with this program; if not, write to the Free Software Foundation, Inc.,
 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
 
+import errno
 import os
 import re
 import bb

this patch is against poky repo, please rebase it against bitbake repo and resend. Its breaking all my builds currently.

#3 lore raw
Quoted 17 lines · Khem Raj
Quoted 16 lines · Romain Perier

Currently this module is dereferencing errno.ENOENT but the python module "errno" is not imported, which causes a crash when fetching from a git repository.

---
 bitbake/lib/bb/fetch2/git.py | 1 +
 1 file changed, 1 insertion(+)
bitbake/lib/bb/fetch2/git.py +0 -0
index 4a32a31..9bd87ad 100644
@@ -66,6 +66,7 @@ Supported SRC_URI options are:
 # with this program; if not, write to the Free Software Foundation, Inc.,
 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
 
Quoted 7 lines

bitbake/lib/bb/fetch2/git.py Supported SRC_URI options are: · line 72

Quoted 4 lines
bitbake/lib/bb/fetch2/git.py +1 -0
+import errno
 import os
 import re
 import bb

this patch is against poky repo, please rebase it against bitbake repo and resend. Its breaking all my builds currently.

This will fix my build issues like
http://errors.yoctoproject.org/Errors/Details/17879/
but it needs to be posted against bitbake repo.