Bug 9740 - [PATCH] fetch: copy files with -H
Summary: [PATCH] fetch: copy files with -H
Status: RESOLVED FIXED
Alias: None
Product: BitBake
Classification: Build System, Metadata & Runtime
Component: bitbake (show other bugs)
Version: unspecified
Hardware: x86 Multiple
: Medium+ normal
Target Milestone: 2.2 M3
Assignee: Richard Purdie
QA Contact: Libertad
URL:
Whiteboard:
Depends on:
Blocks:
 
Reported: 2016-06-09 14:32 UTC by Enrico Scholz
Modified: 2016-07-29 15:48 UTC (History)
4 users (show)

See Also:
OS type for building Yocto: ---
Type of Regression: ---
Verified:
Documentation change: No (bug/feature does not impact docs)


Attachments
patch (1.45 KB, patch)
2016-06-09 14:32 UTC, Enrico Scholz
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Enrico Scholz 2016-06-09 14:32:37 UTC
Created attachment 3225 [details]
patch

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
Comment 1 Ross Burton 2016-06-09 15:07:29 UTC
For people like me who don't know what -H is for:

       -H     follow command-line symbolic links in SOURCE