Re: [oi-dev] Whitespace in Makefiles in oi-userland keep causing Problems

2018-09-27 Thread Reginald Beardsley via oi-dev
Whitespace in Makefiles has been a mess from the start.  The story is that 
Feldman realized that making distinctions between types of white space was a 
bad idea.  But he had a dozen users and didn't want to break their Makefiles.  
And the Bourne shell is not much better on that score.  What you can't see can 
have devastating consequences,



On Thu, 9/27/18, Till Wegmüller  wrote:

 Subject: [oi-dev] Whitespace in Makefiles in oi-userland keep causing  Problems
 To: "OpenIndiana Developer mailing list" 
 Date: Thursday, September 27, 2018, 2:03 PM
 
 Hello Fellow developers.
 
 I have a confusing Problem with our
 buildsystem.
 Since today it keeps behaving
 Inconsistently when I have a Whitespace in
 a Value of a variable.
 
 A Makefile like so:
 
 
 COMPONENT_NAME=salt
 COMPONENT_VERSION=2018.3.2
 COMPONENT_SUMMARY='Portable,
 distributed, remote execution and
 configuration management system'
 COMPONENT_PROJECT_URL=http://saltstack.com
 COMPONENT_FMRI=system/management/$(COMPONENT_NAME)
 COMPONENT_CLASSIFICATION='System/Administration
 and Configuration'
 
 
 Something like COMPONENT_CLASSIFICATION
 would break pkgmogrify with:
 pkgmogrify: File
 
/export/home/toast/workspace/openindiana/userland/components/python/salt/build/manifest-i386-salt-27.p5m
 line 18: Malformed action at position:
 90: whitespace in key:
     set
 name=info.classification
 value=org.opensolaris.category.2008:System/Administration
 and Configuration
 
 I could manage to supress this by using
 escape characters like " or '.
 But not in all cases. And with the
 Classification the Whitespaces are
 required as that Category has
 Whitespaces in their name. Thus it won't
 publish.
 
 I remember that Whitespaces where no
 problem not long ago. How will we
 handle this? Packages like puppet and
 many others have also Whitespaces
 in the Makefiles.
 
 Greetings
 Till
 
 ___
 oi-dev mailing list
 oi-dev@openindiana.org
 https://openindiana.org/mailman/listinfo/oi-dev
 

___
oi-dev mailing list
oi-dev@openindiana.org
https://openindiana.org/mailman/listinfo/oi-dev

[oi-dev] Whitespace in Makefiles in oi-userland keep causing Problems

2018-09-27 Thread Till Wegmüller
Hello Fellow developers.

I have a confusing Problem with our buildsystem.
Since today it keeps behaving Inconsistently when I have a Whitespace in
a Value of a variable.

A Makefile like so:


COMPONENT_NAME=salt
COMPONENT_VERSION=2018.3.2
COMPONENT_SUMMARY='Portable, distributed, remote execution and
configuration management system'
COMPONENT_PROJECT_URL=http://saltstack.com
COMPONENT_FMRI=system/management/$(COMPONENT_NAME)
COMPONENT_CLASSIFICATION='System/Administration and Configuration'


Something like COMPONENT_CLASSIFICATION would break pkgmogrify with:
pkgmogrify: File
/export/home/toast/workspace/openindiana/userland/components/python/salt/build/manifest-i386-salt-27.p5m
line 18: Malformed action at position: 90: whitespace in key:
set name=info.classification
value=org.opensolaris.category.2008:System/Administration and Configuration

I could manage to supress this by using escape characters like " or '.
But not in all cases. And with the Classification the Whitespaces are
required as that Category has Whitespaces in their name. Thus it won't
publish.

I remember that Whitespaces where no problem not long ago. How will we
handle this? Packages like puppet and many others have also Whitespaces
in the Makefiles.

Greetings
Till

___
oi-dev mailing list
oi-dev@openindiana.org
https://openindiana.org/mailman/listinfo/oi-dev