public inbox for gentoo-dev@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Marty E. Plummer" <hanetzer@startmail.com>
To: gentoo-dev@lists.gentoo.org
Subject: Re: [gentoo-dev] Re: [PATCH 3/5] toolchain.eclass: avoid leading double slash
Date: Thu, 21 Jun 2018 03:39:33 -0500	[thread overview]
Message-ID: <20180621083932.r5x2plhm5fjuegeu@proprietary-killer> (raw)
In-Reply-To: <8eab6b05-bc33-9bfc-bfc4-af33f3d27627@gentoo.org>

On Thu, Jun 21, 2018 at 10:16:45AM +0200, Michael Haubenwallner wrote:
> On 06/21/2018 12:40 AM, Ulrich Mueller wrote:
> >>>>>> On Wed, 20 Jun 2018, Michael Haubenwallner wrote:
> > 
> >> Path starting with "//" is a Network path for Cygwin:
> >> As DATAPATH starts with EPREFIX, we have to use it with ${ROOT%/}.
> >> ---
> >>  eclass/toolchain.eclass | 6 +++---
> >>  1 file changed, 3 insertions(+), 3 deletions(-)
> > 
> >> diff --git a/eclass/toolchain.eclass b/eclass/toolchain.eclass
> >> index a51d8e84f5e..bc3a80e0e8a 100644
> >> --- a/eclass/toolchain.eclass
> >> +++ b/eclass/toolchain.eclass
> >> @@ -2133,12 +2133,12 @@ toolchain_pkg_postinst() {
> >  
> >>  		mkdir -p "${EROOT}"usr/{share/gcc-data,sbin,bin}
> >>  		# DATAPATH has EPREFIX already, use ROOT with it
> >> -		cp "${ROOT}${DATAPATH}"/fixlafiles.awk "${EROOT}"usr/share/gcc-data/ || die
> >> -		cp "${ROOT}${DATAPATH}"/fix_libtool_files.sh "${EROOT}"usr/sbin/ || die
> >> +		cp "${ROOT%/}${DATAPATH}"/fixlafiles.awk "${EROOT}"usr/share/gcc-data/ || die
> >> +		cp "${ROOT%/}${DATAPATH}"/fix_libtool_files.sh "${EROOT}"usr/sbin/ || die
> > 
> > Looks a bit short-sighted for the destinations, since EROOT lost its
> > trailing slash in EAPI 7. So better use "${EROOT%/}/" there too.
> 
> Well, DATAPATH already has the leading slash, and I have to avoid double slash here.
> 
> /haubi/
> 
 - 		mkdir -p "${EROOT}"usr/{share/gcc-data,sbin,bin}
 + 		mkdir -p "${EROOT%/}"/usr/{share/gcc-data,sbin,bin}
  		# DATAPATH has EPREFIX already, use ROOT with it
 -		cp "${ROOT}${DATAPATH}"/fixlafiles.awk "${EROOT}"usr/share/gcc-data/ || die
 -		cp "${ROOT}${DATAPATH}"/fix_libtool_files.sh "${EROOT}"usr/sbin/ || die
 +		cp "${ROOT%/}${DATAPATH}"/fixlafiles.awk "${EROOT%/}"/usr/share/gcc-data/ || die
 +		cp "${ROOT%/}${DATAPATH}"/fix_libtool_files.sh "${EROOT%/}"/usr/sbin/ || die


  parent reply	other threads:[~2018-06-21  8:40 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-06-20 17:49 [gentoo-dev] [PATCH 0/5] toolchain.eclass: Prefix patches, Cygwin related Michael Haubenwallner
2018-06-20 17:49 ` [gentoo-dev] [PATCH 1/5] toolchain.eclass: ROOT->EROOT at looking for gcc specs file Michael Haubenwallner
2018-06-20 19:58   ` Michał Górny
2018-06-20 21:27   ` Marty E. Plummer
2018-06-20 17:49 ` [gentoo-dev] [PATCH 2/5] toolchain.eclass: D->ED for where to start cleanups Michael Haubenwallner
2018-06-20 17:49 ` [gentoo-dev] [PATCH 3/5] toolchain.eclass: avoid leading double slash Michael Haubenwallner
2018-06-20 22:40   ` Ulrich Mueller
2018-06-21  8:16     ` [gentoo-dev] " Michael Haubenwallner
2018-06-21  8:37       ` Marty E. Plummer
2018-06-21  8:39       ` Marty E. Plummer [this message]
2018-06-21  8:44         ` Ulrich Mueller
2018-06-20 17:49 ` [gentoo-dev] [PATCH 4/5] toolchain.eclass: Cygwin provides posix threads Michael Haubenwallner
2018-06-20 17:49 ` [gentoo-dev] [PATCH 5/5] toolchain.eclass: support gcc patches from cygwinports Michael Haubenwallner
2018-06-20 19:56   ` Michał Górny
2018-06-22 11:22     ` [gentoo-dev] " Michael Haubenwallner
2018-06-22 12:00       ` Michał Górny
2018-06-22 12:01 ` [gentoo-dev] Re: [PATCH 0/5] toolchain.eclass: Prefix patches, Cygwin related Michael Haubenwallner

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20180621083932.r5x2plhm5fjuegeu@proprietary-killer \
    --to=hanetzer@startmail.com \
    --cc=gentoo-dev@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox