View Single Post

   
  #8 (permalink)  
Old 04-15-2008, 08:31 PM
pk
 
Posts: n/a
Default Re: here-documents in ebuild

pk wrote:

>> /var/tmp/portage/app-text/htp-1.15/temp/environment: line 184: syntax
>> error near unexpected token `||'
>> /var/tmp/portage/app-text/htp-1.15/temp/environment: line 184: ` || die'

>
> Then file a bug on bugs.gentoo.org to report that. Someone will likely
> come up with a fix, so you'll learn where the problem is.


That seems indeed a bug. In the environment, the function becomes

src_unpack ()
{
unpack ${A} || die;
patch -l "${S}/src/misc-proc.c" <<EOF
[snip]
EOF
|| die
}

Which is quite different from what's in the ebuild:

src_unpack() {
unpack ${A} || die
# Patch to remove meta-generator tag with "ego-gratifying Easter egg":
patch -l "${S}/src/misc-proc.c" << EOF || die
[snip]
EOF
}

Reply With Quote