[OE-core] [PATCH] musl: prevent errors if do_install is run more than once
Burton, Ross
ross.burton at intel.com
Fri Dec 1 11:07:40 UTC 2017
Extend lnr to have a --force option?
Ross
On 30 November 2017 at 22:59, Andre McCurdy <armccurdy at gmail.com> wrote:
> On Thu, Nov 30, 2017 at 1:51 PM, Khem Raj <raj.khem at gmail.com> wrote:
> > On Thu, Nov 30, 2017 at 12:20 PM, Andre McCurdy <armccurdy at gmail.com>
> wrote:
> >> Signed-off-by: Andre McCurdy <armccurdy at gmail.com>
> >> ---
> >> meta/recipes-core/musl/musl_git.bb | 3 ++-
> >> 1 file changed, 2 insertions(+), 1 deletion(-)
> >>
> >> diff --git a/meta/recipes-core/musl/musl_git.bb
> b/meta/recipes-core/musl/musl_git.bb
> >> index 932c9a2..db26b4f 100644
> >> --- a/meta/recipes-core/musl/musl_git.bb
> >> +++ b/meta/recipes-core/musl/musl_git.bb
> >> @@ -57,10 +57,11 @@ do_install() {
> >> oe_runmake install DESTDIR='${D}'
> >>
> >> install -d ${D}${bindir}
> >> + rm -f ${D}${bindir}/ldd
> >
> > Doesn't lnr take care of removing old file ?
>
> Apparently not:
>
> $ touch foo
> $ lnr xxx foo
> Traceback (most recent call last):
> File "/.../openembedded-core/scripts/lnr", line 21, in <module>
> os.symlink(target, linkname)
> FileExistsError: [Errno 17] File exists: 'xxx' -> 'foo'
> --
> _______________________________________________
> Openembedded-core mailing list
> Openembedded-core at lists.openembedded.org
> http://lists.openembedded.org/mailman/listinfo/openembedded-core
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openembedded.org/pipermail/openembedded-core/attachments/20171201/551f5551/attachment-0002.html>
More information about the Openembedded-core
mailing list