From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from shymkent.ilbers.de ([unix socket]) by shymkent (Cyrus 2.5.10-Debian-2.5.10-3+deb9u2) with LMTPA; Fri, 06 Sep 2024 07:58:29 +0200 X-Sieve: CMU Sieve 2.4 Received: from mail-wr1-f61.google.com (mail-wr1-f61.google.com [209.85.221.61]) by shymkent.ilbers.de (8.15.2/8.15.2/Debian-8+deb9u1) with ESMTPS id 4865wShD013320 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT) for ; Fri, 6 Sep 2024 07:58:28 +0200 Received: by mail-wr1-f61.google.com with SMTP id ffacd0b85a97d-374b69e65e8sf1005916f8f.0 for ; Thu, 05 Sep 2024 22:58:28 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1725602303; cv=pass; d=google.com; s=arc-20240605; b=PDX3XNtj4k84Gcg73m7GSOg1TygFgXLfRq3gJhzUrhXA2sSp/ECAa0m2ZL1QqZUDiZ T03YfH2ig87EQxQ4eKS6AXJwAoLZdR1TkQXaEW3jpu+w/fqA3Qy3bg8hJ3o9130vsRAJ NmsWFB6SZnZd+kmiktba9MlcKCg9EuLxMSevxfqqNKkbXymvOxFukMW7HMjY3HwOUl0P YaGuqH29XmVY3yRvlgXIkVnHddQzVC2pRc8jvMPyeO9J8QMX4enTc/VuCbEHpLahtYwy /TIdE9rNk7zp4theJ2K3z9SXNLehhtlgDB40phDHU3PwCIpAW5SKTXC0LTRKxtPRwEE7 +LfQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20240605; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :list-id:mailing-list:precedence:mime-version:user-agent :content-transfer-encoding:references:in-reply-to:date:to:from :subject:message-id:sender:dkim-signature; bh=rJxVvfKumYt8ERM129mkmAf1lobf4Td+KY+2Qj09o/0=; fh=MilZhIYJpDVxvmGuQ89VBTHlIgNmpzOzdUx3ouwgqOQ=; b=KIBV3k7yjdSFzdeYrX1+wgq4LHqadpgvlcpIRATLg5RCkkhy1rzoBKOsRyT1kYyN51 9VPzxH32NWTqiYXOozntyoyEeSH1ZI8IvBUi9FQbzc6xT+WKlO7rDREr/LzOvA5J3Wfj vUpWYj6S9jTBUarVymL2vbZu7qlZeQZddUqlTxlGX9sfJRFmM4QN3MlRqhvwQfoml6Ie eMnllNiRj2naC/Rmz/a3R6TxtetDQCbF7s7N2qqa5QD4rcCvfudfpsoGWA+SGueISHAa dWitFyO8PsOjJUSNaEsXCWC6p0h/a6Dn05pMPvGj0QL+0cbv3LaRJa8j7DGD4p9xwYas qTTw==; darn=ilbers.de ARC-Authentication-Results: i=2; gmr-mx.google.com; spf=pass (google.com: domain of ubely@ilbers.de designates 85.214.156.166 as permitted sender) smtp.mailfrom=ubely@ilbers.de DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20230601; t=1725602303; x=1726207103; darn=ilbers.de; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :list-id:mailing-list:precedence:x-original-authentication-results :x-original-sender:mime-version:user-agent:content-transfer-encoding :references:in-reply-to:date:to:from:subject:message-id:sender:from :to:cc:subject:date:message-id:reply-to; bh=rJxVvfKumYt8ERM129mkmAf1lobf4Td+KY+2Qj09o/0=; b=DCU9Mc38YI+Zwql46tVpx8iih+ON+D5i4xnI1mJlU0K0Eph4CBAi6DwLBNIC9BHRYP VQmrm4cEXXbdiQyS3WXrjIWO9XTk8qqwsICyF4NfjE0Im+DGZFa/D/TjWkWPoch70qTX 6ab+DC3QKn7vaEdtAEc92vgzJK4ra6VMvPcKiuvW18eESCqii5y9xR575qRFXk4UgJMn 9TMBBBSVmoF/TeNog8cVSnsCR0YkOZVDyRTGOeabMicwBlEgIxCUDj4froH5AUUth5co VzkobF87m6EmWRy7AVp0MDWV5ywfC1/re0eTclY6PpgdNwO1I8iUfGH7uNkKpXZF8/oF FflQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1725602303; x=1726207103; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :x-spam-checked-in-group:list-id:mailing-list:precedence :x-original-authentication-results:x-original-sender:mime-version :user-agent:content-transfer-encoding:references:in-reply-to:date:to :from:subject:message-id:x-beenthere:x-gm-message-state:sender:from :to:cc:subject:date:message-id:reply-to; bh=rJxVvfKumYt8ERM129mkmAf1lobf4Td+KY+2Qj09o/0=; b=pcAbl0OT1Dx+x29eMReTRpy51nrXVG90m6mG+LbkKhm1iuX3l+Cp6HqGH+xzLMjguY SFlsoQxo4fJ91qCXADgufcAiWlDD38TBX+CB1A6ndfi7nBiaoZI4g+aIuRQ/DW7gjkNd OVIFK2sL/GFhuWAwydjV3SOTt9vVGG3eq4kow447giHZHXbSTyTCAS/Tvmr6mb+x2RKQ 0XIDuddzE2yohwTJ46hgjuCWYZIO6kPGu761dBKHCOAX9VlhPNmtUW+ebhlKS1k1mpWB UxzIZTmN8RgakMYch5sGP3U9czKgy3WSBzn8Lf6FjXSih8V/RAWN3Ubq7wYpcO8PAeh/ BuHg== Sender: isar-users@googlegroups.com X-Forwarded-Encrypted: i=2; AJvYcCWnljyeAvaR8j6KluW82TduO/SvTTCyHeVx8uHdvInxLSTmr/2b6e01SNbP1k8WRP+44qBR@ilbers.de X-Gm-Message-State: AOJu0YzsnaVuBlNHWaaUrlMLjk0jE1Y6LZOw3RoYzHw7qOKAIUcOu48r WSTTAx3M8kTlSvMyK5LEZS9IivGmFQWcgBRDVEHRuVHBAfXzPLSP X-Google-Smtp-Source: AGHT+IG6yh31vThOlKH+vwi+ApTgliEXMa/D7YoKksOKym4vKDonmn10x7rAnm3OLQVgOf/pmeE9UQ== X-Received: by 2002:adf:e64e:0:b0:376:75fc:3a50 with SMTP id ffacd0b85a97d-378896c81b0mr775722f8f.55.1725602302628; Thu, 05 Sep 2024 22:58:22 -0700 (PDT) X-BeenThere: isar-users@googlegroups.com Received: by 2002:a05:600c:468f:b0:426:68ce:c99e with SMTP id 5b1f17b1804b1-42c9f48e6b5ls2748025e9.1.-pod-prod-03-eu; Thu, 05 Sep 2024 22:58:20 -0700 (PDT) X-Forwarded-Encrypted: i=2; AJvYcCWsaHhEPpYE7jGKIVlHxv1lJUW4jZwEreniohH+lf+UtetkdkD4xgf/gR1+reMLAQkMNHWAQH4nbqp+@googlegroups.com X-Received: by 2002:adf:ee45:0:b0:374:c11c:c5c3 with SMTP id ffacd0b85a97d-378896a5c47mr897643f8f.41.1725602300494; Thu, 05 Sep 2024 22:58:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1725602300; cv=none; d=google.com; s=arc-20160816; b=sG7l0qPGh9cG0X5j2FVujbhmUNg0CP/rUfA/Uc4b1osAjvIB1s2hzg8UjGfalbYrdg yXLeah/86UksTpn9wc7zSizqR0+e+ItEVLUZAxJ2esmfzIqVMepgvnuoq2CKLTwgzv88 3MPioyC0ctUkOYxwORSJtMkF45M2wUw+kfj5QLKdUglIQdbxcEv8U51z0QgVQuDfe6Sq f8FuAEXRHN3uJUFKQZbBqBs6YpqiEdTeaW/jz1KE9Wl+g1R5fjRYggEKOow8VIknHy2P vkj30Q3gJ1CoxaVXi31rWDdzRMO5Pfo4gCwOym++x5gqRywDzt/oSbQ0YAibUIkZPrtG VwBQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=mime-version:user-agent:content-transfer-encoding:references :in-reply-to:date:to:from:subject:message-id; bh=v931IR2wpeaJFWtGWAdz6iNVJWhIcFBDFR6U+8O7jos=; fh=O8qOVoyC4kVwjYhl6ndzNlnWHnJpUJcq4mpswxQLIKQ=; b=HOazIQr4ic7f2bZY8eVLeZjIR1LiTPDNr9B4p3aaSXYOmR2wm6cowZQyOXWzQ4jSOJ LYCUQid4Q2JiApbGWhPT66hksQ1K0lrWX50EQXwxYg9cD0/Iz0ZSMLpT0qle58hEmiVs YZv6y0E3Btnd+oZvaLOVVl768/E2hhSkZabPMERDYSFMdEQ1HqmbJJEtI3mPMyYejaP0 4uR+U9bzvlTHkay7HJqpib+MP9drzzYD3SJEvJMJ+xwt1czcNPxRpWKN5Il92FHbW576 6OWYLSg0VoX4ajIT53M6zcLvjevUfuHba7ymwEz9q2GHyXz9ilbsBmhgXI1iyw+CpGRf +wUQ==; dara=google.com ARC-Authentication-Results: i=1; gmr-mx.google.com; spf=pass (google.com: domain of ubely@ilbers.de designates 85.214.156.166 as permitted sender) smtp.mailfrom=ubely@ilbers.de Received: from shymkent.ilbers.de (shymkent.ilbers.de. [85.214.156.166]) by gmr-mx.google.com with ESMTPS id ffacd0b85a97d-374d0841312si234989f8f.8.2024.09.05.22.58.20 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Thu, 05 Sep 2024 22:58:20 -0700 (PDT) Received-SPF: pass (google.com: domain of ubely@ilbers.de designates 85.214.156.166 as permitted sender) client-ip=85.214.156.166; Received: from [127.0.0.1] (host-80-81-17-52.static.customer.m-online.net [80.81.17.52]) (authenticated bits=0) by shymkent.ilbers.de (8.15.2/8.15.2/Debian-8+deb9u1) with ESMTPSA id 4865wIQb013309 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 6 Sep 2024 07:58:19 +0200 Message-ID: <6f3692085561b5d65cb5354e66f85e5ae8f09d09.camel@ilbers.de> Subject: Re: [PATCH] sdk-files/files/relocate-sdk.sh: find only ELF executable before apply patchelf From: Uladzimir Bely To: srinuvasan.a@siemens.com, isar-users@googlegroups.com Date: Fri, 06 Sep 2024 08:58:18 +0300 In-Reply-To: <20240830061353.841518-1-srinuvasan.a@siemens.com> References: <20240830061353.841518-1-srinuvasan.a@siemens.com> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable User-Agent: Evolution 3.52.3 (by Flathub.org) MIME-Version: 1.0 X-Spam-Status: No, score=-4.6 required=5.0 tests=DKIMWL_WL_MED,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_EF,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RCVD_IN_MSPIKE_H2,RCVD_IN_RP_CERTIFIED, RCVD_IN_RP_RNBL,RCVD_IN_RP_SAFE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.2 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on shymkent.ilbers.de X-Original-Sender: ubely@ilbers.de X-Original-Authentication-Results: gmr-mx.google.com; spf=pass (google.com: domain of ubely@ilbers.de designates 85.214.156.166 as permitted sender) smtp.mailfrom=ubely@ilbers.de Precedence: list Mailing-list: list isar-users@googlegroups.com; contact isar-users+owners@googlegroups.com List-ID: X-Spam-Checked-In-Group: isar-users@googlegroups.com X-Google-Group-Id: 914930254986 List-Post: , List-Help: , List-Archive: , List-Unsubscribe: , X-TUID: +IBYSm/p3SrP On Fri, 2024-08-30 at 11:43 +0530, srinuvasan.a via isar-users wrote: > From: Srinuvasan A >=20 > With the present implementation find statemnt return the regular > executable files under bin,sbin and usr/lib/gcc* which contains the > script files as well. >=20 > Actually we are tuning interp and rpath only for ELF executable, > hence > added additional condition in the find statement to return only ELF > executable. >=20 > With this change we are avoiding unncessarily checking the > interpreter > for non ELF executable files. >=20 > Signed-off-by: Srinuvasan A > --- > =C2=A0meta/recipes-devtools/sdk-files/files/relocate-sdk.sh | 2 +- > =C2=A01 file changed, 1 insertion(+), 1 deletion(-) >=20 > diff --git a/meta/recipes-devtools/sdk-files/files/relocate-sdk.sh > b/meta/recipes-devtools/sdk-files/files/relocate-sdk.sh > index 82f63b30..e02e71f4 100755 > --- a/meta/recipes-devtools/sdk-files/files/relocate-sdk.sh > +++ b/meta/recipes-devtools/sdk-files/files/relocate-sdk.sh > @@ -27,7 +27,7 @@ fi > =C2=A0 > =C2=A0echo -n "Adjusting path of SDK to '${new_sdkroot}'... " > =C2=A0 > -for binary in $(find ${sdkroot}/usr/bin ${sdkroot}/usr/sbin > ${sdkroot}/usr/lib/gcc* -executable -type f); do > +for binary in $(find ${sdkroot}/usr/bin ${sdkroot}/usr/sbin > ${sdkroot}/usr/lib/gcc* -executable -type f -exec file {} \; | grep > ELF | awk -F ':' '{ print $1 }'); do > =C2=A0 interpreter=3D$(patchelf --print-interpreter ${binary} > 2>/dev/null) > =C2=A0 oldpath=3D${interpreter%/lib*/ld-linux*} > =C2=A0 interpreter=3D${interpreter#${oldpath}} > --=20 > 2.34.1 >=20 Applied to next (mentioned typos in commit message corrected), thanks. --=20 Best regards, Uladzimir. --=20 You received this message because you are subscribed to the Google Groups "= isar-users" group. To unsubscribe from this group and stop receiving emails from it, send an e= mail to isar-users+unsubscribe@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/= isar-users/6f3692085561b5d65cb5354e66f85e5ae8f09d09.camel%40ilbers.de.