net-libs/c-client: use ":" as pattern separator in a sed call.
authorMichael Orlitzky <mjo@gentoo.org>
Tue, 21 Feb 2017 02:03:02 +0000 (21:03 -0500)
committerMichael Orlitzky <mjo@gentoo.org>
Tue, 21 Feb 2017 02:03:02 +0000 (21:03 -0500)
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

index fc6ce38b6a84fffac85a55f222f037e4e70e2f35..e033b90a11d5655c58ea11a230be56fe000a1ee0 100644 (file)
@@ -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"