commit:     944439b732b303c6bcc5369fba60b8fd6f640348
Author:     Michael Orlitzky <mjo <AT> gentoo <DOT> org>
AuthorDate: Tue Feb 21 02:03:02 2017 +0000
Commit:     Michael Orlitzky <mjo <AT> gentoo <DOT> org>
CommitDate: Tue Feb 21 02:03:02 2017 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=944439b7

net-libs/c-client: use ":" as pattern separator in a sed call.

Most of the "sed" calls in the c-client ebuilds use ":" as the pattern
separator, because we expect to be replacing things with front-slashes
in them. One exception was the call that replaced CC, AR, and RANLIB;
and that finally bit us. A user with absolute paths in those variables
reported the defect.

This commit fixes the call to use ":" as the pattern separator, like
everywhere else in the ebuild. Since it is a build-only fix, it was
made without a new revision.

Gentoo-Bug: 609744

Package-Manager: portage-2.3.3

 net-libs/c-client/c-client-2007f-r6.ebuild | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/net-libs/c-client/c-client-2007f-r6.ebuild 
b/net-libs/c-client/c-client-2007f-r6.ebuild
index fc6ce38b6a..e033b90a11 100644
--- a/net-libs/c-client/c-client-2007f-r6.ebuild
+++ b/net-libs/c-client/c-client-2007f-r6.ebuild
@@ -74,9 +74,9 @@ src_prepare() {
 
        # Respect LDFLAGS
        eapply "${FILESDIR}/${PN}-2007f-ldflags.patch"
-       sed -e "s/CC=cc/CC=$(tc-getCC)/" \
-               -e "s/ARRC=ar/ARRC=$(tc-getAR)/" \
-               -e "s/RANLIB=ranlib/RANLIB=$(tc-getRANLIB)/" \
+       sed -e "s:CC=cc:CC=$(tc-getCC):" \
+               -e "s:ARRC=ar:ARRC=$(tc-getAR):" \
+               -e "s:RANLIB=ranlib:RANLIB=$(tc-getRANLIB):" \
                -i src/osdep/unix/Makefile \
                || die "failed to fix build flags support in the Makefile"
 

Reply via email to