Re: Canonical pushes upstart into user session - systemd developer complains

2012-12-03 Thread Philipp Kern
On Sun, Dec 02, 2012 at 11:58:00PM +0100, Vincent Lefevre wrote: Wrong. Nested blocks make config files easier to understand. Otherwise for the same feature (e.g. conditionals), one would need things like horrible state variables. For instance, think about redesigning a procmailrc with the ini

Re: Canonical pushes upstart into user session - systemd developer complains

2012-12-03 Thread Barry Warsaw
On Dec 02, 2012, at 04:22 PM, Игорь Пашев wrote: 2012/12/2 Vincent Lefevre vinc...@vinc17.net: No, that's not sufficient. You may want relations between key-value pair. For instance, if you have a line with a key foo, then a line with a key bar must also exist. Or a line with a key number must

Re: Canonical pushes upstart into user session - systemd developer complains

2012-12-02 Thread Vincent Lefevre
On 2012-12-01 10:16:54 +0100, Wouter Verhelst wrote: On Fri, Nov 30, 2012 at 02:18:04AM +0100, Vincent Lefevre wrote: At least for Perl, I can't see anything related to validation. That's because validating an ini file is trivially easy: the line is a comment line, which must start with a

Re: Canonical pushes upstart into user session - systemd developer complains

2012-12-02 Thread Игорь Пашев
2012/12/2 Vincent Lefevre vinc...@vinc17.net: No, that's not sufficient. You may want relations between key-value pair. For instance, if you have a line with a key foo, then a line with a key bar must also exist. Or a line with a key number must have a value that is a number (more generally

Re: Canonical pushes upstart into user session - systemd developer complains

2012-12-02 Thread Wouter Verhelst
On Sun, Dec 02, 2012 at 12:31:00PM +0100, Vincent Lefevre wrote: On 2012-12-01 10:16:54 +0100, Wouter Verhelst wrote: On Fri, Nov 30, 2012 at 02:18:04AM +0100, Vincent Lefevre wrote: At least for Perl, I can't see anything related to validation. That's because validating an ini file is

Re: Canonical pushes upstart into user session - systemd developer complains

2012-12-02 Thread Vincent Lefevre
On 2012-12-02 22:04:52 +0100, Wouter Verhelst wrote: On Sun, Dec 02, 2012 at 12:31:00PM +0100, Vincent Lefevre wrote: On 2012-12-01 10:16:54 +0100, Wouter Verhelst wrote: On Fri, Nov 30, 2012 at 02:18:04AM +0100, Vincent Lefevre wrote: At least for Perl, I can't see anything related to

Re: Canonical pushes upstart into user session - systemd developer complains

2012-12-01 Thread Wouter Verhelst
On Thu, Nov 29, 2012 at 08:37:19AM -0800, Kelly Clowers wrote: On Thu, Nov 29, 2012 at 7:23 AM, Vincent Lefevre vinc...@vinc17.net wrote: And interfaces in various programming languages? http://docs.python.org/2/library/configparser.html

Re: Canonical pushes upstart into user session - systemd developer complains

2012-12-01 Thread Wouter Verhelst
On Fri, Nov 30, 2012 at 02:18:04AM +0100, Vincent Lefevre wrote: On 2012-11-29 08:37:19 -0800, Kelly Clowers wrote: On Thu, Nov 29, 2012 at 7:23 AM, Vincent Lefevre vinc...@vinc17.net wrote: And interfaces in various programming languages?

Re: Canonical pushes upstart into user session - systemd developer complains

2012-12-01 Thread Marc Haber
On Sun, 25 Nov 2012 13:06:23 -0200, Henrique de Moraes Holschuh h...@debian.org wrote: And this is not a systemd issue, even git uses that crap instead of something better like xml, or simpler, like the hierarchical format used by apt that resembles C++ classes. Are there ready-made perl, python

Re: Canonical pushes upstart into user session - systemd developer complains

2012-11-30 Thread Stig Sandbeck Mathisen
Vincent Lefevre vinc...@vinc17.net writes: No, you don't have the structure from the XML point of view. I've seen this in production. We use XML? Check! -- Stig Sandbeck Mathisen -- To UNSUBSCRIBE, email to debian-devel-requ...@lists.debian.org with a subject of unsubscribe. Trouble?

Re: Canonical pushes upstart into user session - systemd developer complains

2012-11-29 Thread Wouter Verhelst
On Mon, Nov 26, 2012 at 05:00:14PM +0100, Vincent Lefevre wrote: On 2012-11-26 07:27:08 +0900, Norbert Preining wrote: Ever heard of grep, sed, awk, all these nice things that make your life happy. These tools are broken when dealing with multibyte characters. No they're not.

Re: Canonical pushes upstart into user session - systemd developer complains

2012-11-29 Thread Vincent Lefevre
On 2012-11-29 15:46:35 +0100, Wouter Verhelst wrote: On Mon, Nov 26, 2012 at 05:00:14PM +0100, Vincent Lefevre wrote: On 2012-11-26 07:27:08 +0900, Norbert Preining wrote: Ever heard of grep, sed, awk, all these nice things that make your life happy. These tools are broken

Re: Canonical pushes upstart into user session - systemd developer complains

2012-11-29 Thread Andrey Rahmatullin
On Thu, Nov 29, 2012 at 04:23:03PM +0100, Vincent Lefevre wrote: The default .subversion/config file is a piece of documentation, not a configuration file. I agree that there's far too much noise in there. However, that's not a flaw of the format, it's a flaw of the subversion default

Re: Canonical pushes upstart into user session - systemd developer complains

2012-11-29 Thread Vincent Lefevre
On 2012-11-29 21:33:37 +0600, Andrey Rahmatullin wrote: On Thu, Nov 29, 2012 at 04:23:03PM +0100, Vincent Lefevre wrote: The default .subversion/config file is a piece of documentation, not a configuration file. I agree that there's far too much noise in there. However, that's not a flaw

Re: Canonical pushes upstart into user session - systemd developer complains

2012-11-29 Thread Kelly Clowers
On Thu, Nov 29, 2012 at 7:23 AM, Vincent Lefevre vinc...@vinc17.net wrote: And interfaces in various programming languages? http://docs.python.org/2/library/configparser.html http://search.cpan.org/~shlomif/Config-IniFiles-2.78/lib/Config/IniFiles.pm https://rubygems.org/gems/inifile

Re: Canonical pushes upstart into user session - systemd developer complains

2012-11-29 Thread Roland Mas
Kelly Clowers, 2012-11-29 08:37:19 -0800 : [...] And command-line tools? An editor with syntax highlighting? Other than that, I don't know of any, but do you really need it with ini? For a specific purpose, you could probably whip something up pretty fast with one of the libraries... For

Re: Canonical pushes upstart into user session - systemd developer complains

2012-11-29 Thread Adam Borowski
On Thu, Nov 29, 2012 at 04:23:03PM +0100, Vincent Lefevre wrote: On 2012-11-29 15:46:35 +0100, Wouter Verhelst wrote: But it will in a UTF8 locale, Unfortunately the C locale is the only really portable one. Debian's glibc has C.UTF-8 always available these days. or in an ISO-8859-1

Re: Canonical pushes upstart into user session - systemd developer complains

2012-11-29 Thread Stig Sandbeck Mathisen
Vincent Lefevre vinc...@vinc17.net writes: It is more verbose, but I find it as readable (if you have characters that normally need to be escaped, you can still use CDATA sections, which is a way to keep the readability). So to keep everyone equally happy, we need: config ![CDATA[ [section1]

Re: Canonical pushes upstart into user session - systemd developer complains

2012-11-29 Thread John Paul Adrian Glaubitz
On Thu, Nov 29, 2012 at 09:25:50PM +0100, Stig Sandbeck Mathisen wrote: Vincent Lefevre vinc...@vinc17.net writes: It is more verbose, but I find it as readable (if you have characters that normally need to be escaped, you can still use CDATA sections, which is a way to keep the

Re: Canonical pushes upstart into user session - systemd developer complains

2012-11-29 Thread Ben Hutchings
On Thu, Nov 29, 2012 at 09:25:50PM +0100, Stig Sandbeck Mathisen wrote: Vincent Lefevre vinc...@vinc17.net writes: It is more verbose, but I find it as readable (if you have characters that normally need to be escaped, you can still use CDATA sections, which is a way to keep the

Re: Canonical pushes upstart into user session - systemd developer complains

2012-11-29 Thread Vincent Bernat
❦ 29 novembre 2012 17:58 CET, Roland Mas lola...@debian.org : And command-line tools? An editor with syntax highlighting? Other than that, I don't know of any, but do you really need it with ini? For a specific purpose, you could probably whip something up pretty fast with one of the

Re: Canonical pushes upstart into user session - systemd developer complains

2012-11-29 Thread Vincent Lefevre
On 2012-11-29 18:08:05 +0100, Adam Borowski wrote: On Thu, Nov 29, 2012 at 04:23:03PM +0100, Vincent Lefevre wrote: On 2012-11-29 15:46:35 +0100, Wouter Verhelst wrote: But it will in a UTF8 locale, Unfortunately the C locale is the only really portable one. Debian's glibc has

Re: Canonical pushes upstart into user session - systemd developer complains

2012-11-29 Thread Vincent Lefevre
On 2012-11-29 21:25:50 +0100, Stig Sandbeck Mathisen wrote: So to keep everyone equally happy, we need: config ![CDATA[ [section1] key1=val1 key2=val2 key3=♬♫♩♩♫ [section2] foo=bar ]] /config Structure _and_ readability. No, you don't have the structure from the XML point of

Re: Canonical pushes upstart into user session - systemd developer complains

2012-11-29 Thread Vincent Lefevre
On 2012-11-29 08:37:19 -0800, Kelly Clowers wrote: On Thu, Nov 29, 2012 at 7:23 AM, Vincent Lefevre vinc...@vinc17.net wrote: And interfaces in various programming languages? http://search.cpan.org/~shlomif/Config-IniFiles-2.78/lib/Config/IniFiles.pm At least for Perl, I can't see anything

Re: Canonical pushes upstart into user session - systemd developer complains

2012-11-27 Thread Milan P. Stanic
On Mon, 2012-11-26 at 07:27, Norbert Preining wrote: On So, 25 Nov 2012, Henrique de Moraes Holschuh wrote: [crap] foo = bar ... issue, even git uses that crap instead of something better like xml, ??? Sorry, are you realistically proposing a convolutive pile of shit like XML for

Re: Canonical pushes upstart into user session - systemd developer complains

2012-11-26 Thread Vincent Lefevre
On 2012-11-26 07:27:08 +0900, Norbert Preining wrote: Ever heard of grep, sed, awk, all these nice things that make your life happy. These tools are broken when dealing with multibyte characters. For instance, with: foo = aéb a grep 'a.b' file will find nothing in the C locale.

Re: Canonical pushes upstart into user session - systemd developer complains

2012-11-26 Thread Konstantin Khomoutov
On Sun, 25 Nov 2012 17:16:09 +0100 Guillem Jover guil...@debian.org wrote: On Sun, 2012-11-25 at 23:30:01 +0800, Chow Loong Jin wrote: [...] and the hierarchical format that apt uses doesn't have a readily-usable parser outside of apt (at least not that I know of). W/o getting into the

Re: Canonical pushes upstart into user session - systemd developer complains

2012-11-25 Thread Chris Bannister
On Sat, Nov 24, 2012 at 08:43:07PM +0200, Andrej N. Gritsenko wrote: Hello! Carlos Alberto Lopez Perez has written on Saturday, 24 November, at 19:20: FYI, Yet another episode of the Linux init drama: https://wiki.ubuntu.com/FoundationsTeam/Specs/RaringUpstartUserSessions

Re: Canonical pushes upstart into user session - systemd developer complains

2012-11-25 Thread John Paul Adrian Glaubitz
On Sun, Nov 25, 2012 at 10:48:27PM +1300, Chris Bannister wrote: https://lists.linuxaudio.org/mailarchive/lau/2012/11/21/194431 There is a rather bad smell regarding all this. None of the systemd advocates ever mentioned for example the real reason why it uses such an ugly configuration

Re: Canonical pushes upstart into user session - systemd developer complains

2012-11-25 Thread Henrique de Moraes Holschuh
On Sun, 25 Nov 2012, John Paul Adrian Glaubitz wrote: On Sun, Nov 25, 2012 at 10:48:27PM +1300, Chris Bannister wrote: https://lists.linuxaudio.org/mailarchive/lau/2012/11/21/194431 There is a rather bad smell regarding all this. None of the systemd advocates ever mentioned for example

Re: Canonical pushes upstart into user session - systemd developer complains

2012-11-25 Thread Ben Hutchings
On Sun, 2012-11-25 at 13:06 -0200, Henrique de Moraes Holschuh wrote: On Sun, 25 Nov 2012, John Paul Adrian Glaubitz wrote: On Sun, Nov 25, 2012 at 10:48:27PM +1300, Chris Bannister wrote: https://lists.linuxaudio.org/mailarchive/lau/2012/11/21/194431 There is a rather bad smell

Re: Canonical pushes upstart into user session - systemd developer complains

2012-11-25 Thread Chow Loong Jin
On 25/11/2012 23:06, Henrique de Moraes Holschuh wrote: The: [crap] foo = bar format for config files is widely despised. And this is not a systemd issue, even git uses that crap instead of something better like xml, or simpler, like the hierarchical format used by apt that resembles

Re: Canonical pushes upstart into user session - systemd developer complains

2012-11-25 Thread Jakub Wilk
* Henrique de Moraes Holschuh h...@debian.org, 2012-11-25, 13:06: The: [crap] foo = bar format for config files is widely despised. And this is not a systemd issue, even git uses that crap instead of something better like xml, or simpler, like the hierarchical format used by apt that

Re: Canonical pushes upstart into user session - systemd developer complains

2012-11-25 Thread Guillem Jover
On Sun, 2012-11-25 at 23:30:01 +0800, Chow Loong Jin wrote: [...] and the hierarchical format that apt uses doesn't have a readily-usable parser outside of apt (at least not that I know of). W/o getting into the debate of what format is better or nicer, the configuration format from which

Re: Canonical pushes upstart into user session - systemd developer complains

2012-11-25 Thread John Paul Adrian Glaubitz
On Sun, Nov 25, 2012 at 04:48:04PM +0100, Jakub Wilk wrote: * Henrique de Moraes Holschuh h...@debian.org, 2012-11-25, 13:06: The: [crap] foo = bar format for config files is widely despised. And this is not a systemd issue, even git uses that crap instead of something better like xml,

Re: Canonical pushes upstart into user session - systemd developer complains

2012-11-25 Thread Norbert Preining
On So, 25 Nov 2012, Henrique de Moraes Holschuh wrote: [crap] foo = bar ... issue, even git uses that crap instead of something better like xml, ??? Sorry, are you realistically proposing a convolutive pile of shit like XML for simple config files? I will send *each*and*every* bug report due

Canonical pushes upstart into user session - systemd developer complains

2012-11-24 Thread Carlos Alberto Lopez Perez
FYI, Yet another episode of the Linux init drama: https://wiki.ubuntu.com/FoundationsTeam/Specs/RaringUpstartUserSessions https://plus.google.com/115547683951727699051/posts/ZZWLtq6tYdn signature.asc Description: OpenPGP digital signature

Re: Canonical pushes upstart into user session - systemd developer complains

2012-11-24 Thread Andrej N. Gritsenko
Hello! Carlos Alberto Lopez Perez has written on Saturday, 24 November, at 19:20: FYI, Yet another episode of the Linux init drama: https://wiki.ubuntu.com/FoundationsTeam/Specs/RaringUpstartUserSessions https://plus.google.com/115547683951727699051/posts/ZZWLtq6tYdn It is only me

Re: Canonical pushes upstart into user session - systemd developer complains

2012-11-24 Thread John Paul Adrian Glaubitz
On Sat, Nov 24, 2012 at 07:20:02PM +0100, Carlos Alberto Lopez Perez wrote: https://wiki.ubuntu.com/FoundationsTeam/Specs/RaringUpstartUserSessions This is actually going to be very interesting to see if they are able to extend upstart in such a way that they can use it for session management

Re: Canonical pushes upstart into user session - systemd developer complains

2012-11-24 Thread John Paul Adrian Glaubitz
On Sat, Nov 24, 2012 at 08:17:35PM +0100, John Paul Adrian Glaubitz wrote: On Sat, Nov 24, 2012 at 07:20:02PM +0100, Carlos Alberto Lopez Perez wrote: https://wiki.ubuntu.com/FoundationsTeam/Specs/RaringUpstartUserSessions This is actually going to be very interesting to see if they are able

Re: Canonical pushes upstart into user session - systemd developer complains

2012-11-24 Thread Russ Allbery
John Paul Adrian Glaubitz glaub...@physik.fu-berlin.de writes: On Sat, Nov 24, 2012 at 08:17:35PM +0100, John Paul Adrian Glaubitz wrote: By making use of a Linux-specific prctl(2) call, we effectively tie Upstart to systems running with a Linux kernel. This is a major restriction, but

Re: Canonical pushes upstart into user session - systemd developer complains

2012-11-24 Thread Guillem Jover
On Sat, 2012-11-24 at 20:29:51 +0100, John Paul Adrian Glaubitz wrote: While reading a bit on it, I found this passage: On Sat, Nov 24, 2012 at 08:17:35PM +0100, John Paul Adrian Glaubitz wrote: By making use of a Linux-specific prctl(2) call, we effectively tie Upstart to systems running

Re: Canonical pushes upstart into user session - systemd developer complains

2012-11-24 Thread John Paul Adrian Glaubitz
On Sat, Nov 24, 2012 at 10:28:46PM +0100, Guillem Jover wrote: waitid is supported on FreeBSD. Are you sure? According to their status page [1] it's not yet fully implemented. The page is dated to last October. Adrian [1] http://www.freebsd.org/projects/c99/index.html -- .''`. John Paul

Re: Canonical pushes upstart into user session - systemd developer complains

2012-11-24 Thread Guillem Jover
On Sat, 2012-11-24 at 22:46:29 +0100, John Paul Adrian Glaubitz wrote: On Sat, Nov 24, 2012 at 10:28:46PM +0100, Guillem Jover wrote: waitid is supported on FreeBSD. Are you sure? According to their status page [1] it's not yet fully implemented. The page is dated to last October.

Re: Canonical pushes upstart into user session - systemd developer complains

2012-11-24 Thread Steve Langasek
On Sat, Nov 24, 2012 at 08:29:51PM +0100, John Paul Adrian Glaubitz wrote: On Sat, Nov 24, 2012 at 08:17:35PM +0100, John Paul Adrian Glaubitz wrote: On Sat, Nov 24, 2012 at 07:20:02PM +0100, Carlos Alberto Lopez Perez wrote: