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

Re: build profile syntax ideas



On Sun, Apr 28, 2013 at 4:40 PM, Johannes Schauer <j.schauer@email.de> wrote:
> Quoting David Kalnischkies (2013-04-28 14:27:12)
>> On Tue, Apr 23, 2013 at 9:15 PM, Johannes Schauer <j.schauer@email.de> wrote:
>> My answer: X=~ and Y=. (or anything else expect : really)
>> As this is something you will have potentially as output in APT/dpkg and
>> as dependencies.
>>
>> But given that <arch> is "only" a special type of <scope>Y<value>
>> we are better of with X=: and therefore potential multiple ":" even though
>> its a bit unusual at first.
>
> I agree to allow having multiple ":". I dont think the following looks too bad
> and it is certainly better memorable than having to learn just another
> character with a special meaning when already the Y is new:
>
> foobar:profile.stage1:profile.cross:amd64
>
>> Remains the problem of setting Y:
>> Y=% looks really noisy, but beside that it is used for encoding its free.
>> Y=# I would really hate that - shells will think this is a comment …
>> Y=: feels just wrong to have Y == X
>> Y=~ really looks strange there, beside that okay I guess
>> Y=.
>> …
>
> What about
>
> Y = "="

"=" is in so far taken as a separator between package name and version.

So we would get something like:
apt-get install <packagename>(X<scope>Y<value>)*(:<arch>)?(=<version>)?

At least apt-get would need to decide if "foo:armel=1.0-1" is a profile or
an architecture and a version …


Best regards

David Kalnischkies


Reply to: