tech-pkg archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: make: Unclosed variable specification for

On Tue, Jan 06, 2009 at 02:10:29AM +1030, Berndt Josef Wulf wrote:
> I worked around the problem after removal of a "\ " that was part of the 
> PKG_USER variable
> PKG_USERS=              ${AVAHI_USER}:${AVAHI_GROUP}::Avahi\ user:/nonexistent
> which was changed to
> PKG_USERS=              ${AVAHI_USER}:${AVAHI_GROUP}::Avahi:/nonexistent
> I haven't had a look at the parser, its 2:00am and just finishing compilation 
> of VLC, the original task on hand.

You really don't want to give make anything that contains space characters.
They do rather get used as a global separator.
In general make syntax has to way to escape spaces (or other characters)
- except for a few very specific places in variable modifiers.

The '\' in your assignment probably only has any effect when the data
is finally parsed by a shell.

Quite what the pkgsrc makefiles are doing with PKG_USERS that acyually
causes grief can be hard to detect. But I suspect that a ' ' in a
modifier that is used when generating a variable name won't be liked.


David Laight:

Home | Main Index | Thread Index | Old Index