Skip to contentSkip to conversation

bitbake: fetch: copy files with -H

PATCH In review Stefan Lengfeld 2 participants 3 messages Sep 20, 2016 – Sep 27, 2016

lore
Share & tools
lore
#0 lore raw

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
index 6ef0c6f..7773c16 100644
@@ -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
#1 lore raw

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_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
index 6ef0c6f..7773c16 100644
@@ -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 · 7 lines
1.9.1

-- 
_______________________________________________
bitbake-devel mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/bitbake-devel
#2 lore raw
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 Lengfeld

Quoted 58 lines · Stefan Lengfeld

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
index 6ef0c6f..7773c16 100644
@@ -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 · 7 lines
1.9.1

-- 
_______________________________________________
bitbake-devel mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/bitbake-devel