bitbake: fetch: copy files with -H
PATCH 1/1 bitbake: fetch: copy files with -H
From: Enrico Scholz <[email protected]>
When using a PREMIRROR with plain (non-unpack) files, a SRC_URI like
SRC_URI = "file://devmem2.c"
will cause devmem2.c to be a symlink in the WORKDIR pointing to the local PREMIRROR.
Trying to apply a patch on this file will either modify the file on the PREMIRROR or will fail due to sanity checks:
ERROR: devmem2-1.0-r7 do_patch: Command Error: 'quilt --quiltrc /cache/build-ubuntu/sysroots/x86_64-oe-linux/etc/quiltrc push' exited with 1 Output:
Applying patch devmem2-fixups-2.patch
File devmem2.c is not a regular file -- refusing to patch
(Bitbake rev: cfd481fe9799e7a4c6bfac32e56cc91cfcd81088)
---
Hi,
this patch was already applied on poky's master branch. Can you please backport it to krogoth. The bug is there, too. I already posted a different patch some time ago:
http://lists.openembedded.org/pipermail/bitbake-devel/2016-June/007621.html
Thanks.
Kind regards,
Stefan Lengfeld
--- bitbake/lib/bb/fetch2/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
bitbake/lib/bb/fetch2/__init__.py +1 -1
@@ -1424,7 +1424,7 @@ class FetchMethod(object): if urlpath.find("/") != -1: destdir = urlpath.rsplit("/", 1)[0] + '/' bb.utils.mkdirhier("%s/%s" % (unpackdir, destdir)) - cmd = 'cp -fpPR %s %s' % (file, destdir) + cmd = 'cp -fpPRH %s %s' % (file, destdir) if not cmd: return
Signature · 1 line
1.9.1
Hi,
*ping.
Is there a way I can help to speed up the backport of this patch to krogoth? Should I send the patch to a different mailing list? Thanks.
Mit freundlichen Grüßen / Kind regards,
Stefan Lengfeld
Quoted 58 lines · Stefan Lengfeld
From: Enrico Scholz <[email protected]>
When using a PREMIRROR with plain (non-unpack) files, a
SRC_URIlike
SRC_URI= "file://devmem2.c"will cause
devmem2.cto be a symlink in the WORKDIR pointing to the local PREMIRROR.Trying to apply a patch on this file will either modify the file on the PREMIRROR or will fail due to sanity checks:
ERROR: devmem2-1.0-r7
do_patch: Command Error: 'quilt --quiltrc /cache/build-ubuntu/sysroots/x86_64-oe-linux/etc/quiltrc push' exited with 1 Output:
Applying patch devmem2-fixups-2.patch
Filedevmem2.cis not a regular file -- refusing to patch(Bitbake rev:
cfd481fe9799e7a4c6bfac32e56cc91cfcd81088)Signed-off-by Enrico Scholz <[email protected]>Signed-off-by Richard Purdie <[email protected]>---
Hi,this patch was already applied on poky's master branch. Can you please backport it to krogoth. The bug is there, too. I already posted a different patch some time ago:
http://lists.openembedded.org/pipermail/bitbake-devel/2016-June/007621.htmlThanks.
Kind regards,
Stefan Lengfeld--- bitbake/lib/bb/fetch2/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)bitbake/lib/bb/fetch2/__init__.py +1
-1@@ -1424,7 +1424,7 @@ class FetchMethod(object): if urlpath.find("/") != -1: destdir = urlpath.rsplit("/", 1)[0] + '/' bb.utils.mkdirhier("%s/%s" % (unpackdir, destdir)) - cmd = 'cp -fpPR %s %s' % (file, destdir) + cmd = 'cp -fpPRH %s %s' % (file, destdir) if not cmd: returnSignature · 7 lines
1.9.1 -- _______________________________________________ bitbake-devel mailing list [email protected] http://lists.openembedded.org/mailman/listinfo/bitbake-devel
Quoted 5 lines · Stefan Lengfeld
Hi,
*ping.
Is there a way I can help to speed up the backport of this patch to krogoth?
Good German beer might help ; )
I pulled this in and running a few local builds. it is my staging branch
- armin
Quoted 64 lines
Should I send the patch to a different mailing list? Thanks.
Mit freundlichen Grüßen / Kind regards,
Stefan LengfeldQuoted 58 lines · Stefan Lengfeld
From: Enrico Scholz <[email protected]>
When using a PREMIRROR with plain (non-unpack) files, a
SRC_URIlike
SRC_URI= "file://devmem2.c"will cause
devmem2.cto be a symlink in the WORKDIR pointing to the local PREMIRROR.Trying to apply a patch on this file will either modify the file on the PREMIRROR or will fail due to sanity checks:
ERROR: devmem2-1.0-r7
do_patch: Command Error: 'quilt --quiltrc /cache/build-ubuntu/sysroots/x86_64-oe-linux/etc/quiltrc push' exited with 1 Output:
Applying patch devmem2-fixups-2.patch
Filedevmem2.cis not a regular file -- refusing to patch(Bitbake rev:
cfd481fe9799e7a4c6bfac32e56cc91cfcd81088)Signed-off-by Enrico Scholz <[email protected]>Signed-off-by Richard Purdie <[email protected]>---
Hi,this patch was already applied on poky's master branch. Can you please backport it to krogoth. The bug is there, too. I already posted a different patch some time ago:
http://lists.openembedded.org/pipermail/bitbake-devel/2016-June/007621.htmlThanks.
Kind regards,
Stefan Lengfeld--- bitbake/lib/bb/fetch2/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)bitbake/lib/bb/fetch2/__init__.py +1
-1@@ -1424,7 +1424,7 @@ class FetchMethod(object): if urlpath.find("/") != -1: destdir = urlpath.rsplit("/", 1)[0] + '/' bb.utils.mkdirhier("%s/%s" % (unpackdir, destdir)) - cmd = 'cp -fpPR %s %s' % (file, destdir) + cmd = 'cp -fpPRH %s %s' % (file, destdir) if not cmd: returnSignature · 7 lines
1.9.1 -- _______________________________________________ bitbake-devel mailing list [email protected] http://lists.openembedded.org/mailman/listinfo/bitbake-devel