From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id ABcJK/QGMGPuSwEAbAwnHQ (envelope-from ) for ; Sun, 25 Sep 2022 09:44:52 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id wFAVKvQGMGOMPwEAG6o9tA (envelope-from ) for ; Sun, 25 Sep 2022 09:44:52 +0200 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 6748728B08 for ; Sun, 25 Sep 2022 09:44:52 +0200 (CEST) Received: from localhost ([::1]:38742 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ocMJn-000676-IM for larch@yhetil.org; Sun, 25 Sep 2022 03:44:51 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:34752) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ocMJ3-00057y-1A for bug-guix@gnu.org; Sun, 25 Sep 2022 03:44:05 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:46716) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1ocMJ2-00086f-Pa for bug-guix@gnu.org; Sun, 25 Sep 2022 03:44:04 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1ocMJ2-0002Lh-L0 for bug-guix@gnu.org; Sun, 25 Sep 2022 03:44:04 -0400 X-Loop: help-debbugs@gnu.org Subject: bug#58033: A bug in file-dynamic-info used by validate-runpath in gnu-build-system and others. Resent-From: Lukasz Olszewski Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Sun, 25 Sep 2022 07:44:04 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 58033 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: 58033@debbugs.gnu.org Received: via spool by 58033-submit@debbugs.gnu.org id=B58033.16640918208890 (code B ref 58033); Sun, 25 Sep 2022 07:44:04 +0000 Received: (at 58033) by debbugs.gnu.org; 25 Sep 2022 07:43:40 +0000 Received: from localhost ([127.0.0.1]:45778 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ocMId-0002JD-TC for submit@debbugs.gnu.org; Sun, 25 Sep 2022 03:43:40 -0400 Received: from mail-pg1-f180.google.com ([209.85.215.180]:44799) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oc3u9-0003sn-4s for 58033@debbugs.gnu.org; Sat, 24 Sep 2022 08:05:10 -0400 Received: by mail-pg1-f180.google.com with SMTP id c7so2528411pgt.11 for <58033@debbugs.gnu.org>; Sat, 24 Sep 2022 05:05:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=lukaszolszewski-info.20210112.gappssmtp.com; s=20210112; h=to:subject:message-id:date:from:in-reply-to:references:mime-version :from:to:cc:subject:date; bh=wVWzHmkB6Vuvpfe6kEerV3tO/Uf0SQq4YaFsBecY0A4=; b=4AJg4BpCgLzMamAINoE/SAh2PHX0F1KMo19wWCgs/L917cmIEG4gyr0sxwBH7qX/t8 J+ugPYFgHiIumM7fZUXh6cmLmjbrbLO7KbZFpGo+Mh/lNwhFxhnfAcLKax8LBDCKXF2E ssLFbR2RN6Iapr7lISheSuJZboN0f6kc3xtAESM4dLixv21uA2WgYI5UiiiBmbWtJj3D zd/m7NrBn2u3gmRrZjd4ddaDs075Vv5Epmvg+J7xF1xOzktHjtnpBaC6jTfzxsw9yT47 nGGIM10/ldAFRhOsEGc6Z1E23kONRfhLrRM+hJbDwLVjWjjWZ8iTZBkxnrv9iB3pgTyT RR5A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=to:subject:message-id:date:from:in-reply-to:references:mime-version :x-gm-message-state:from:to:cc:subject:date; bh=wVWzHmkB6Vuvpfe6kEerV3tO/Uf0SQq4YaFsBecY0A4=; b=fgnhCwZSwYjgI/KQonSvSZPBw5QurD099y8jnQadmAyqIoKvHAFKY0bazB6DslwKng uHZ4zq0cT4RJWndieW14T4ae99dBfGgc5YVNCQzx2i+wU1bSlCp0ACJbHIVGqJ2Lsff9 iraHEaMoHgdodfKd5k5kkwllDcYaEm0g/cnIeyQN3mfChzM1hKFh/SL8Rfuj7u3JZKp5 qtzzk54hbJWQ9lwcBFybVPHzHo9dC7KJpGZZGuwWhKUKQuBr7cxpZPoe7CXUHTIe3xAb xIDDJ53oEhqU5t6c/DF5TKA4nHzDqz1gD8qshq0Ae/VFZLzajE//cWD1u/7El20+4lBq 1ZgQ== X-Gm-Message-State: ACrzQf2PpJ9eBqsdxIvFtiCqL63FKIdlWI+9BRLDwKwPjdLAqnLRtIFY AelmLh7jVshNzI5F4RB90SQQHBxxqTlRq3xqLKP6fBxiFzBCtg== X-Google-Smtp-Source: AMsMyM4R3DX6TNgsaGlMYLpi4iRbxLvD4maLYAf+zYtJb6yqix+qWVzGCGzf9zd0zdIV/1URzQxsIlsNUcBYRvIGDlY= X-Received: by 2002:a63:1203:0:b0:43c:7fa:f306 with SMTP id h3-20020a631203000000b0043c07faf306mr11463747pgl.169.1664021102990; Sat, 24 Sep 2022 05:05:02 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Lukasz Olszewski Date: Sat, 24 Sep 2022 14:04:24 +0200 Message-ID: Content-Type: text/plain; charset="UTF-8" X-Mailman-Approved-At: Sun, 25 Sep 2022 03:43:36 -0400 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-guix@gnu.org List-Id: Bug reports for GNU Guix List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-guix-bounces+larch=yhetil.org@gnu.org Sender: "bug-Guix" X-Migadu-Flow: FLOW_IN X-Migadu-To: larch@yhetil.org X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1664091892; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type:resent-cc:resent-from:resent-sender: resent-message-id:in-reply-to:in-reply-to:references:references: list-id:list-help:list-unsubscribe:list-subscribe:list-post: dkim-signature; bh=wVWzHmkB6Vuvpfe6kEerV3tO/Uf0SQq4YaFsBecY0A4=; b=YJZTrPFxFIvinm+ZZXqtCj9lWNlpTSsjDEJpMi2Tb6oMUiaMyI3oOkTyeeOSjMITNlc4LT F5+aPUqRpEzhw8D5k6yAcCUe+1yQKQCZgrODWLDp6oECmsNau1jGlRn/zpEbqdQrk0FtPy mq/cYtU8NAM+SUAHlEa20pM8GVg6afSFObX+XuHb1JCQddJyugTCM1eqnAtPPqJYQqei1w JMUVvty563c2lbLc1v9f83x8G1eh9ZZui71u9fV71IS2tlrGsUH+wrIJJHo3UC5sD8lCR3 xStIlNuJHczrBkqve33WooDn1Efg2oy1M2/3Ijt2xZLVCManOhouaASo3cKgUA== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1664091892; a=rsa-sha256; cv=none; b=XMp1DZNy08ZpIyZ7PpCQ1PsqKmsUGG+Oumrb+G4NL3zeD5XouGa/qKe8hj2+4CeNLKvZkp xh+l91Y9la3Fm50wOZ+kI5DLsYLBBzPoIhV4RS6NOufnOoSkREO3WI5UGQatfot4nVeMTW wm7qY9/Hnd0ksqtQ5qNswJvh3BovdDQSGcBemFZZv/7LZMHY+ZkDmduqa/oMWL2SCmaBMr 2s63jCGBRiCB0KJZcwfdsnEZoybdFTj7Z09EfprgFcX1okHYrBizMDfnR14jy5CUPXVJOb KYBaWnAb9qlHRdLh1yIU2pNJyGUbKac+Z4nw3oUA5GlFVFZsuYEDO6W680eIvw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=lukaszolszewski-info.20210112.gappssmtp.com header.s=20210112 header.b=4AJg4BpC; dmarc=none; spf=pass (aspmx1.migadu.com: domain of "bug-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="bug-guix-bounces+larch=yhetil.org@gnu.org" X-Migadu-Spam-Score: 2.65 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=lukaszolszewski-info.20210112.gappssmtp.com header.s=20210112 header.b=4AJg4BpC; dmarc=none; spf=pass (aspmx1.migadu.com: domain of "bug-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="bug-guix-bounces+larch=yhetil.org@gnu.org" X-Migadu-Queue-Id: 6748728B08 X-Spam-Score: 2.65 X-Migadu-Scanner: scn1.migadu.com X-TUID: T2+3PRaa2siV Also, to ensure all the information is provided. This is the code that resulted in the binary header being transformed: (add-after 'install 'fix-issue-with-libs (lambda* (#:key inputs outputs #:allow-other-keys) (chdir "..") (use-modules (ice-9 ftw) (ice-9 regex) (ice-9 rdelim) (ice-9 popen) (ice-9 textual-ports)) (let* ((libdir (string-append #$output "/lib"))) ;; ------------------------------ ;; patchelf (define (get-rpaths file) (format #t "Getting rpaths from ~a ...~%" file) (let* ((port (open-input-pipe (string-append "patchelf --print-rpath " file))) (str (read-line port))) ; from (ice-9 rdelim) (close-pipe port) str)) (define (patch-elf file) (format #t "Patching ~a ...~%" file) (define rpath (string-append (get-rpaths file) ":" #$extra-libs "/lib")) (display (string-append "We're setting rpath:" rpath)) (invoke "patchelf" "--set-rpath" rpath file)) (for-each (lambda (file) (when (elf-file? file) (patch-elf file))) (find-files #$output ".*"))))) I can run the patch-elf procedure in repl and it runs fine, but being run during the build it results in the problematic elf header. The build was run twice with the same result both times. Regards, Lukasz