From mboxrd@z Thu Jan 1 00:00:00 1970 From: ludo@gnu.org (Ludovic =?utf-8?Q?Court=C3=A8s?=) Subject: RUNPATH validation Date: Sat, 04 Apr 2015 23:47:49 +0200 Message-ID: <87twwvh8fu.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:33327) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YeVv1-0005ll-5s for guix-devel@gnu.org; Sat, 04 Apr 2015 17:47:56 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YeVuy-0005yU-1B for guix-devel@gnu.org; Sat, 04 Apr 2015 17:47:55 -0400 Received: from fencepost.gnu.org ([2001:4830:134:3::e]:36231) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YeVux-0005yQ-Uf for guix-devel@gnu.org; Sat, 04 Apr 2015 17:47:51 -0400 Received: from reverse-83.fdn.fr ([80.67.176.83]:46827 helo=pluto) by fencepost.gnu.org with esmtpsa (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1YeVux-0007fa-FS for guix-devel@gnu.org; Sat, 04 Apr 2015 17:47:51 -0400 List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org Sender: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org To: Guix-devel In =E2=80=98core-updates=E2=80=99 there=E2=80=99s a new =E2=80=98validate-r= unpath=E2=80=99 phase that checks all the ELF binaries produced and fails if one of them has a dependency (DT_NEEDED) that cannot be found in its RUNPATH. It uses (guix elf) and the new (guix build gremlin). So now the =E2=80=9Cdangling .so references=E2=80=9D bugs really need to be= fixed. ;-) A few RUNPATH problems were fixed in =E2=80=98core-updates=E2=80=99, mostly= related to cross-compilation where binaries never had a valid RUNPATH due to the lack of a cross =E2=80=98ld-wrapper=E2=80=99 to add =E2=80=98-rpath=E2=80= =99 flags as we do natively. Feedback welcome! Ludo=E2=80=99.