Gentoo Archives: gentoo-commits

From: Fabian Groffen <grobian@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/proj/prefix:master commit in: sys-devel/binutils-config/files/
Date: Wed, 31 Jan 2018 09:50:19
Message-Id: 1517392206.edc0d44f70c27daebcc080ac5d08e8e191bccd95.grobian@gentoo
1 commit: edc0d44f70c27daebcc080ac5d08e8e191bccd95
2 Author: Fabian Groffen <grobian <AT> gentoo <DOT> org>
3 AuthorDate: Wed Jan 31 09:49:10 2018 +0000
4 Commit: Fabian Groffen <grobian <AT> gentoo <DOT> org>
5 CommitDate: Wed Jan 31 09:50:06 2018 +0000
6 URL: https://gitweb.gentoo.org/repo/proj/prefix.git/commit/?id=edc0d44f
7
8 sys-devel/binutils-config: fix inversed logic
9
10 Obviously we should skip turning -L into -R if the path points inside
11 PORTAGE_BUILDDIR, not the other way around.
12
13 Thanks to this, bugs like #642040 surfaced.
14
15 Bug: https://bugs.gentoo.org/642040
16
17 sys-devel/binutils-config/files/ldwrapper.c | 2 +-
18 1 file changed, 1 insertion(+), 1 deletion(-)
19
20 diff --git a/sys-devel/binutils-config/files/ldwrapper.c b/sys-devel/binutils-config/files/ldwrapper.c
21 index 1ed11ce42d..3ff52acc60 100644
22 --- a/sys-devel/binutils-config/files/ldwrapper.c
23 +++ b/sys-devel/binutils-config/files/ldwrapper.c
24 @@ -428,7 +428,7 @@ main(int argc, char *argv[])
25 continue;
26
27 /* does it refer to the build directory? skip */
28 - if (builddir != NULL && strncmp(builddir, path, len) != 0)
29 + if (builddir != NULL && strncmp(builddir, path, len) == 0)
30 continue;
31
32 if (is_darwin) {