From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 00D8D1382C5 for ; Wed, 31 Jan 2018 09:50:19 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id C3429E09D5; Wed, 31 Jan 2018 09:50:17 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 98267E09D5 for ; Wed, 31 Jan 2018 09:50:17 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 24278335C5E for ; Wed, 31 Jan 2018 09:50:16 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 11B381C3 for ; Wed, 31 Jan 2018 09:50:14 +0000 (UTC) From: "Fabian Groffen" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Fabian Groffen" Message-ID: <1517392206.edc0d44f70c27daebcc080ac5d08e8e191bccd95.grobian@gentoo> Subject: [gentoo-commits] repo/proj/prefix:master commit in: sys-devel/binutils-config/files/ X-VCS-Repository: repo/proj/prefix X-VCS-Files: sys-devel/binutils-config/files/ldwrapper.c X-VCS-Directories: sys-devel/binutils-config/files/ X-VCS-Committer: grobian X-VCS-Committer-Name: Fabian Groffen X-VCS-Revision: edc0d44f70c27daebcc080ac5d08e8e191bccd95 X-VCS-Branch: master Date: Wed, 31 Jan 2018 09:50:14 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Archives-Salt: a0cef100-9145-4cc5-8dda-9f9396c35d1f X-Archives-Hash: a93ed8e05e0a7caa464f164f443618e9 commit: edc0d44f70c27daebcc080ac5d08e8e191bccd95 Author: Fabian Groffen gentoo org> AuthorDate: Wed Jan 31 09:49:10 2018 +0000 Commit: Fabian Groffen gentoo org> CommitDate: Wed Jan 31 09:50:06 2018 +0000 URL: https://gitweb.gentoo.org/repo/proj/prefix.git/commit/?id=edc0d44f sys-devel/binutils-config: fix inversed logic Obviously we should skip turning -L into -R if the path points inside PORTAGE_BUILDDIR, not the other way around. Thanks to this, bugs like #642040 surfaced. Bug: https://bugs.gentoo.org/642040 sys-devel/binutils-config/files/ldwrapper.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys-devel/binutils-config/files/ldwrapper.c b/sys-devel/binutils-config/files/ldwrapper.c index 1ed11ce42d..3ff52acc60 100644 --- a/sys-devel/binutils-config/files/ldwrapper.c +++ b/sys-devel/binutils-config/files/ldwrapper.c @@ -428,7 +428,7 @@ main(int argc, char *argv[]) continue; /* does it refer to the build directory? skip */ - if (builddir != NULL && strncmp(builddir, path, len) != 0) + if (builddir != NULL && strncmp(builddir, path, len) == 0) continue; if (is_darwin) {