[OE-core] [PATCH] musl: prevent errors if do_install is run more than once

Andre McCurdy armccurdy at gmail.com
Thu Nov 30 22:59:21 UTC 2017


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'



More information about the Openembedded-core mailing list