public inbox for gentoo-devhelp@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-devhelp] package.env files error: unexpected EOF while looking for matching `}'
@ 2012-06-03 12:55 Nikos Chantziaras
  2012-06-03 15:03 ` Michael Orlitzky
  0 siblings, 1 reply; 4+ messages in thread
From: Nikos Chantziaras @ 2012-06-03 12:55 UTC (permalink / raw
  To: gentoo-devhelp

package.env really hates me.  It seems I can do nothing useful with it. 
  I'm trying to remove a compiler flag:

   CFLAGS=${CFLAGS//-flto/}
   CXXFLAGS=${CXXFLAGS//-flto/}
   LDFLAGS=${LDFLAGS//-flto/}

However:

"/etc/portage/env/no-lto.conf", line 2: unexpected EOF while looking for 
matching `}'
"/etc/portage/env/no-lto.conf", line 3: unexpected EOF while looking for 
matching `}'
"/etc/portage/env/no-lto.conf", line 4: unexpected EOF while looking for 
matching `}'
  /"/etc/portage/env/no-lto.conf", line 2: unexpected EOF while looking 
for matching `}'
"/etc/portage/env/no-lto.conf", line 3: unexpected EOF while looking for 
matching `}'
"/etc/portage/env/no-lto.conf", line 4: unexpected EOF while looking for 
matching `}'

The string replacement syntax looks correct to me.  What am I doing wrong?




^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [gentoo-devhelp] package.env files error: unexpected EOF while looking for matching `}'
  2012-06-03 12:55 [gentoo-devhelp] package.env files error: unexpected EOF while looking for matching `}' Nikos Chantziaras
@ 2012-06-03 15:03 ` Michael Orlitzky
  2012-06-03 15:58   ` [gentoo-devhelp] " Nikos Chantziaras
  0 siblings, 1 reply; 4+ messages in thread
From: Michael Orlitzky @ 2012-06-03 15:03 UTC (permalink / raw
  To: gentoo-devhelp

On 06/03/2012 08:55 AM, Nikos Chantziaras wrote:
> package.env really hates me.  It seems I can do nothing useful with it. 
>   I'm trying to remove a compiler flag:
> 
>    CFLAGS=${CFLAGS//-flto/}
>    CXXFLAGS=${CXXFLAGS//-flto/}
>    LDFLAGS=${LDFLAGS//-flto/}
> 
> However:
> 
> "/etc/portage/env/no-lto.conf", line 2: unexpected EOF while looking for 
> matching `}'
> "/etc/portage/env/no-lto.conf", line 3: unexpected EOF while looking for 
> matching `}'
> "/etc/portage/env/no-lto.conf", line 4: unexpected EOF while looking for 
> matching `}'
>   /"/etc/portage/env/no-lto.conf", line 2: unexpected EOF while looking 
> for matching `}'
> "/etc/portage/env/no-lto.conf", line 3: unexpected EOF while looking for 
> matching `}'
> "/etc/portage/env/no-lto.conf", line 4: unexpected EOF while looking for 
> matching `}'
> 
> The string replacement syntax looks correct to me.  What am I doing wrong?
> 
> 

I think I ran into this too. Basically, you can wind up with two
different kinds of parsers depending on where you stick your file:

  http://bugs.gentoo.org/show_bug.cgi?id=388781

Looks like you're getting the make.conf-like parser instead of the
bashrc one.



^ permalink raw reply	[flat|nested] 4+ messages in thread

* [gentoo-devhelp] Re: package.env files error: unexpected EOF while looking for matching `}'
  2012-06-03 15:03 ` Michael Orlitzky
@ 2012-06-03 15:58   ` Nikos Chantziaras
  2012-06-03 18:25     ` Michael Orlitzky
  0 siblings, 1 reply; 4+ messages in thread
From: Nikos Chantziaras @ 2012-06-03 15:58 UTC (permalink / raw
  To: gentoo-devhelp

On 03/06/12 18:03, Michael Orlitzky wrote:
> On 06/03/2012 08:55 AM, Nikos Chantziaras wrote:
>> package.env really hates me.  It seems I can do nothing useful with it.
>>    I'm trying to remove a compiler flag:
>>
>>     CFLAGS=${CFLAGS//-flto/}
>>     CXXFLAGS=${CXXFLAGS//-flto/}
>>     LDFLAGS=${LDFLAGS//-flto/}
>>
>> However:
>>
>> "/etc/portage/env/no-lto.conf", line 2: unexpected EOF while looking for
>> matching `}'
>> "/etc/portage/env/no-lto.conf", line 3: unexpected EOF while looking for
>> matching `}'
>> "/etc/portage/env/no-lto.conf", line 4: unexpected EOF while looking for
>> matching `}'
>>    /"/etc/portage/env/no-lto.conf", line 2: unexpected EOF while looking
>> for matching `}'
>> "/etc/portage/env/no-lto.conf", line 3: unexpected EOF while looking for
>> matching `}'
>> "/etc/portage/env/no-lto.conf", line 4: unexpected EOF while looking for
>> matching `}'
>>
>> The string replacement syntax looks correct to me.  What am I doing wrong?
>>
>>
>
> I think I ran into this too. Basically, you can wind up with two
> different kinds of parsers depending on where you stick your file:
>
>    http://bugs.gentoo.org/show_bug.cgi?id=388781
>
> Looks like you're getting the make.conf-like parser instead of the
> bashrc one.

Simple assignment is the *only* thing that parser can do?




^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [gentoo-devhelp] Re: package.env files error: unexpected EOF while looking for matching `}'
  2012-06-03 15:58   ` [gentoo-devhelp] " Nikos Chantziaras
@ 2012-06-03 18:25     ` Michael Orlitzky
  0 siblings, 0 replies; 4+ messages in thread
From: Michael Orlitzky @ 2012-06-03 18:25 UTC (permalink / raw
  To: gentoo-devhelp

On 06/03/12 11:58, Nikos Chantziaras wrote:
> On 03/06/12 18:03, Michael Orlitzky wrote:
>>
>> Looks like you're getting the make.conf-like parser instead of the
>> bashrc one.
> 
> Simple assignment is the *only* thing that parser can do?
> 

I think it can do a little bit more, but not much. It's using Python's
shlex module, and then checking for specific cases.

It can handle simple variable substitution, it looks like. And maybe
sourcing and 'export'. But that's about it.



^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2012-06-03 18:25 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-06-03 12:55 [gentoo-devhelp] package.env files error: unexpected EOF while looking for matching `}' Nikos Chantziaras
2012-06-03 15:03 ` Michael Orlitzky
2012-06-03 15:58   ` [gentoo-devhelp] " Nikos Chantziaras
2012-06-03 18:25     ` Michael Orlitzky

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox