Re: compiling skalibs-1.4.1

2013-10-12 Thread Laurent Bercot
Hi Jorge, You asked the exact same thing about skalibs-1.3.0 and dietlibc My answer was: * Ask Felix to fix his netinet/in.h : IPV6_V6ONLY is in Single Unix v4. * In the meantime, compile with -DIPV6_V6ONLY=26 (the value on Linux) * or touch conf-compile/flag-noipv6 if your use of skalibs

Re: compiling skalibs-1.4.1

2013-10-12 Thread Laurent Bercot
exec ./compile ip46_scanlist.c ip46_scanlist.c: In function 'ip46full_scanlist': ip46_scanlist.c:14:5: error: unknown type name 'ip46_tfull' ip46full_t, not ip46_tfull ;) -- Laurent

Re: switch_root

2013-10-16 Thread Laurent Bercot
The reason you can't do this in a shell script is after the rm -rf step, the shell script hasn't got a mount command to run anymore... That's my point: switch_root is ugly. The way it's implemented in C isn't any less ugly: it's duplicating the relevant part of the rm -rf code in the

Re: switch_root

2013-10-16 Thread Laurent Bercot
Advice taken. So far, I have rebuilt everything around s6* statically (against musl), with s6-linux-utils-1.0.2 having been the only PITA because of s6-devd, which doesn't compile and have temporarily substituted with a stub (I don't need s6-devd... yet, at the least) till I manage to figure

[announce] skalibs-1.4.2, execline-1.2.4

2013-10-19 Thread Laurent Bercot
Hello, skalibs-1.4.2 is out. It fixes a build bug when flag-noipv6 has been set. http://skarnet.org/software/skalibs/ execline-1.2.4 is out. It fixes a bug in pipeline causing a crash when the remainder of the command line is empty. http://skarnet.org/software/execline/ Enjoy,

Re: execline bug

2013-10-25 Thread Laurent Bercot
#!/command/execlineb -S0 foreground { echo xxx } echo yyy foreground: fatal: unterminated block Doesn't happen with execline-1.1.5 (the former installed version) Hi Jorge, Chances are the execlineb and foreground binaries you're calling actually aren't from

Re: execline bug

2013-10-25 Thread Laurent Bercot
BTW, on an unrelated matter: are you sure musl supports a proper localtime()? AFAIK it does, but ask the musl mailing-list if you have doubts. The thing is, musl is scrupulously following POSIX, so it does not read timezones from /etc/TZ or /etc/localtime or anything of the kind: you need a

Re: execline bug

2013-10-26 Thread Laurent Bercot
Hmmm, I hadn't paid attention to leap seconds. The problem I have is, I can only try musl on machines where the system clock is UTC (and I can't change it). The machine I have in TAI-10 does not have a suitable gcc for musl: it's Aboriginal Linux uClibc-based gcc, which prevents the musl-gcc

Re: musl and timezones

2013-10-26 Thread Laurent Bercot
The program I was compiling (a CLI wall-clock) is thrice bigger with musl than with diet. Most binaries of your software are *smaller* with musl, a notable exception being s6-mount (almost twice with musl!). That's probably stdio. musl's stdio is scrupulously conformant whereas diet's stdio

[announce] s6-networking-0.0.2

2013-10-30 Thread Laurent Bercot
Hello, s6-networking-0.0.2 is out. It fixes a bug in s6-tcpclient that prevented it from connecting to IPv6 addresses. http://skarnet.org/software/s6-networking/ Enjoy, Bug-reports welcome. -- Laurent

Re: s6-dns compilation error resolv.conf

2013-10-31 Thread Laurent Bercot
Hi Vallo, s6-dns-0.0.1 fails to compile if given flag-{usert,usemon}: exec ./compile s6-randomip.c exec ./load s6-randomip -lrandom -lstdcrypto -lstddjb `cat socket.lib` /opt/lib/skalibs/libstddjb.a(taia_clockmon.o): In function `taia_clockmon': (.text+0x22): undefined reference to

Re: s6-dns compilation error resolv.conf

2013-11-01 Thread Laurent Bercot
On 10/31/2013 07:52 PM, Vallo Kallaste wrote: write(2, s6-dnsip4: fatal: unable to s6dn..., 70s6-dnsip4: fatal: unable to s6dns_init: Numerical result out of range ) = 70 The ERANGE here is mind-boggling, there's only one place it can come from and I have no idea how it's managing to

execline changes

2013-11-01 Thread Laurent Bercot
Hello, execline-1.3.0 will be out soon. Some changes will be made to the UI: * The deprecated execline program will be suppressed: the only launcher will be execlineb. * The LASTPID and LASTEXITCODE environment variables will be replaced with ! and ? respectively, for more consistency

Re: ARM none gnieabi sysdeps

2014-01-22 Thread Laurent Bercot
Hi Vincent, You want sysdeps, so I assume you're cross-compiling. The easiest way for you to get sysdeps is to actually compile skalibs in a *native* ARM environment, and fetch the sysdeps from there. If you don't have a development environment on your real target, qemu can definitely help :

Re: skalibs cross-compiling fails for version = 1.4.0

2014-01-22 Thread Laurent Bercot
Following tests where done after trying to compile the skalibs package in opensde after updating it from 1.3.0 to 1.4.2, cross-compiling for x86 on a x86-64 build host, which still fails. Well yeah. Things will break if you try cross-compiling and just run make, because skalibs compiles

announce: s6-networking-0.0.4

2014-03-05 Thread Laurent Bercot
Hi, s6-networking-0.0.4 is out. This release fixes a bug in s6-tcpserver-access and s6-ipcserver-access, where user-supplied environment was ignored. Thanks to Vallo Kallaste for the bug-report. http://skarnet.org/software/s6-networking/ Enjoy, More bug-reports welcome. -- Laurent

[announce] s6-networking-0.0.5

2014-03-07 Thread Laurent Bercot
Hi, s6-networking-0.0.5 is out. (Because you always find bugs *right after* submitting a release.) This release fixes a bug in s6-tcpserver-access which occasionally caused improper TCPREMOTEHOST resolution. http://skarnet.org/software/s6-networking/ Enjoy, Bug-reports still welcome.

[announce] skalibs-1.5.0, s6-1.1.2

2014-03-24 Thread Laurent Bercot
Hello, skalibs-1.5.0 is out. It fixes a nasty typo and an off-by-one error in bitarray_clearsetn, which potentially impacted iterations over sets. (Thanks to Vincent De Ribou for the bug-report.) It also modifies the skaclient protocol to allow passing of an arbitrary number of fds - and

[announce] execline-1.3.1

2014-03-25 Thread Laurent Bercot
Hello, execline-1.3.1 is out. This release fixes a silly segfault that happens when backtick is invoked without a remainder command line. http://skarnet.org/software/execline/ Enjoy, More bug-reports welcome. -- Laurent

[announce] skalibs-1.5.1, s6-portable-utils-1.0.3

2014-03-27 Thread Laurent Bercot
Hello, skalibs-1.5.1 is out. It fixes a build bug when cross-compiling. Thanks to Vincent De Ribou for the report. It also makes the default conf-cc not in debug mode, duh. . http://skarnet.org/software/skalibs/ s6-portable-utils-1.0.3 is out. It fixes a s6-mkfifo bug where the umask

Re: backtick -C

2014-04-03 Thread Laurent Bercot
On 04/03/2014 12:27 PM, Vallo Kallaste wrote: Hi I noticed that backtick -C does not work for preceding spaces, but import -C does. Is it intentional? -C | -c | -d | -s only make sense when backtick is performing the substitution itself, i.e. with the -E option (which is deprecated).

[announce] 2014 spring release

2014-05-14 Thread Laurent Bercot
Hello, It is time for the great Spring cleaning ! All existing skarnet.org packages have a new release. * The versioning system has changed. Now I'm using 4-number versioning, and the pattern is expected to remain stable. The reason for the change is explained at

Re: Building skalibs 1.6.0.0 on OS X

2014-05-14 Thread Laurent Bercot
Wow, does that mean that MacOS X gets it right and actually uses unsigned types for uid_t and gid_t? Awesome! Unixen have started to actually follow the standards and make those _t types consistent. Using them is probably more portable nowadays than rewriting all types by hand as DJB did back

Re: [announce] 2014 spring release

2014-05-14 Thread Laurent Bercot
Is -DEXECLINE_OLD_VARNAMES still possible when compiling execline? If so, maybe it should be mentioned (I find the old names more readable, and besides there are scripts that would need to be changed, always a possible source of mayhem when the scripts perform critical functions!) It is

Re: [announce] 2014 spring release

2014-05-15 Thread Laurent Bercot
On 15/05/2014 08:36, Jorge Almeida wrote: We talked about this some time ago. If a binary is statically linked, I would expect it to work wherever I put it, since it doesn't matter whether any relevant libraries are there. I know now that this is not true, because the binary may use some

Re: slashpackage again

2014-05-16 Thread Laurent Bercot
Without a conf-home file, s6-svscan requires s6-supervise in /package/admin/s6-1.1.3.1/command/ defined in s6-config.h as S6_BINPREFIX Why isn't it enough to find the binary in /package/admin/s6/command/ ? (This was what I asked hours ago) Because it's an intra-package dependency, not a

Re: s6-portable-utils build problem

2014-05-27 Thread Laurent Bercot
in s6-portable-utils software, why copying 'library.so/s6-memoryhog' when, I think, It should be 'command/s6-memoryhog'. Actually, it should be /usr/libexec/s6-memoryhog . You must have changed conf-compile/conf-install-libexec to /library.so ; this is wrong, library.so is for dynamically

Re: execline's cd vs /usr/bin/cd

2014-07-09 Thread Laurent Bercot
Hi Franco, What is a good practice to mitigate ambiguity between /usr/bin/cd and execline's cd program? Honestly, it's the first time I hear of the /usr/bin/cd program. A quick Web search shows that it does nothing. Shells will never call it unless you specify the full path, since cd is a

Re: skalibs and related 2.0

2014-08-21 Thread Laurent Bercot
For those of us who use (and don't mind) slashpackage conventions for our non-packaged code, what changes are we going to need once the new s6 stuff lands? Based on prior comments I'm assuming it'll still be a viable option, but it'd be nice to know ahead of update day. You'll just need to

Re: s6-envdir scope

2014-08-22 Thread Laurent Bercot
On 22/08/2014 23:32, John Vogel wrote: I'm hoping this is right and also all by design You are correct, and it is by design indeed, but not my design - it's simply Unix. As a very rough rule of thumb, execline blocks represent processes. A sequence of commands in the same block will run

Re: superstrip

2014-09-15 Thread Laurent Bercot
Hi Jorge, Your site has superstrip.c as a single file, but I have superstrip-0.12sp, which I think I downloaded from your site long ago. Can you clarify? superstrip.c is indeed a single file, and it did not justify the hassle and overhead of fully packaging - either for me or for users. So I

Re: s6-portable-utils-1.0.3.2 exportlibexec()

2014-10-02 Thread Laurent Bercot
Hi Vallo, I have no idea who builds those RPMs - or even how to build a RPM for that matter. You'd probably be better off contacting the RPM's maintainer directly. s6-memoryhog is special in any case. It's undocumented and unexported. And it's going away in the next release, because it's

Re: s6-ipcserver

2014-10-06 Thread Laurent Bercot
Hi Patrick, My bad: it's a bug. s6-ipcserver does not decrement the number of active connections when the -P option is given. Sorry about that. I have to check whether the bug affects s6-tcpserver4 and s6-tcpserver6 as well, then I'll publish a patch. I'm not going to publish a new

Re: s6-ipcserver

2014-10-06 Thread Laurent Bercot
No impact on s6-tcpserver*: there is no option for anonymous serving there. Please try the patch at http://skarnet.org/software/s6-networking/s6-ipcserver.patch and let me know if it's working for you. -- Laurent

Re: A typo in s6 tool

2014-10-08 Thread Laurent Bercot
On 08/10/2014 20:30, vlse wrote: In s6 tools there is a small error in source code of s6-svscanctl. In usage output of c source file of same it's +written as 's6-svscactl' and instead it should be 's6-svscanctl'. Thanks for the report ! Will be fixed in the next release. -- Laurent

Re: Wrong documentation of execline; forx doesn't supports -E switch anymore

2014-10-09 Thread Laurent Bercot
Fixed on the web, thanks for the report. -- Laurent

[announce] December 2014 release

2014-12-22 Thread Laurent Bercot
(This message may arrive as a duplicate, because my ISP sucks and appears to have lost the first one. Sorry about the noise if it miraculously recovers it.) Hello everyone, Christmas has arrived! The December 2014 skarnet.org release is ready. (For once, I held to the deadline I had set

[announce] December 2014 release

2014-12-22 Thread Laurent Bercot
Hello everyone, Christmas has arrived! The December 2014 skarnet.org release is ready. (For once, I held to the deadline I had set for myself. Yes, this is an accomplishment.) There are not many functional changes - every package does, on the outside, fairly - or exactly - the same thing

Re: building execline 2.0.0.0: No rule to make target '-lexecline'

2014-12-23 Thread Laurent Bercot
Hi Patrick, exec gcc -iquote src/include-local -Isrc/include (...) (...) make: *** No rule to make target '-lexecline', needed by 'background'. Stop. You have no -L option to gcc in that command line at all, so make cannot expand '-lexecline' to './libexecline.a'. Something is messing with

Re: building execline 2.0.0.0: No rule to make target '-lexecline'

2014-12-23 Thread Laurent Bercot
I've discovered the problem only happens when running make -j2 (or presumably, any level of parallel building). Ah, I see. It's weird because specifying -lexecline in the *dependencies* should precisely force libexecline.a and/or libexecline.so to be built before the binaries that depend on

Re: s6 and friends 2.0

2014-12-28 Thread Laurent Bercot
On 28/12/2014 04:30, harish badrinath wrote: Feature-Request: Why not have a non-fs-root install configuration option that takes care of what the OP wanted to get done ? Well, --prefix is exactly what it's for. It just means that if you specify --prefix, you should also specify --includedir

Re: [skalibs-2.0][PATCH] posting new clean patch (from supervision lits)

2014-12-28 Thread Laurent Bercot
Hi Toki, * Please don't send binaries to the list. If a file is too big for you to send it, then put it on your favorite pastebin-like service and send the URL instead. *Contrary to what you are saying, there is no problem with libdir - I just tried again, to make sure. When you specify

Re: Fwd: [skalibs-2.0][PATCH] posting new clean patch (from supervision lits)

2014-12-29 Thread Laurent Bercot
If anyone on the list is having similar difficulties and is willing to provide a decent bug-report or feature wish, please do so. I'm always interested in making the software more accessible, and in adhering to conventions as long as they do not impact technical quality. -- Laurent

execline feature: import -u

2014-12-31 Thread Laurent Bercot
I find myself writing import VAR unexport VAR all the time in execline scripts, because some environment variables are just used for substitution and keeping them would only pollute the rest of the script. For convenience, I have added a new -u option to import and importas. import -u VAR

Re: Fwd: [skalibs-2.0][PATCH] posting new clean patch (from supervision lits)

2015-01-02 Thread Laurent Bercot
Hi Paul, (Sorry if this appears multiple times--I think my first message was blocked due to a non-subscribed envelope sender.) If you wish to have an additional envelope sender that can post, you can send it to me, as you did for the supervision list. I think a small change that would

Re: Fwd: [skalibs-2.0][PATCH] posting new clean patch (from supervision lits)

2015-01-02 Thread Laurent Bercot
I think a small change that would make toki a bit happier would be this: don't insert /usr into the default installation paths when the prefix is something other than /. I have changed the default prefixes to entirely omit /usr, and added some extra magic to add /usr to includedir, libdir

Re: skalibs ./configure args of form VAR=VALUE ignored

2015-01-02 Thread Laurent Bercot
On 02/01/2015 21:22, Patrick Mahoney wrote: In skalibs, ./configure --help says: To assign environment variables (e.g., CC, CFLAGS...), specify them as VAR=VALUE. See below for descriptions of some of the useful variables. Though specifying CC=something seems to have no effect. Ah,

Re: skarnet software packaged in nixpkgs

2015-01-17 Thread Laurent Bercot
Thanks Patrick! -- Laurent

[announce] skalibs-2.3.0.0, execline-2.0.2.1, s6-2.1.1.0

2015-02-16 Thread Laurent Bercot
Hello, * skalibs-2.3.0.0 is out. (Needed for the s6 release.) Mostly bugfixes, and some additions for siovec management. The major number has been bumped because some functions (buffer_getvall, buffer_putvall) changed interfaces. http://skarnet.org/software/skalibs/

Re: How to report a death by signal ?

2015-02-18 Thread Laurent Bercot
On 18/02/2015 14:55, Olivier Brunel wrote: But isn't the whole anything = 128 will be reported as 128, and anything higher is actually 128+signum also a convention that both needs to agree upon? Sure, but most commands exit 128 so that's reliable enough, and it's a lot easier to follow than

Re: How to report a death by signal ?

2015-02-18 Thread Laurent Bercot
On 18/02/2015 14:20, Peter Pentchev wrote: [roam@straylight ~]$ perl -e 'die(foo!\n);'; echo $? foo! 255 I think you should be ok, for the same reason why a shell is ok: if you're using Perl, you're most likely writing your whole script with it, especially control flow and error/crash

Re: How to report a death by signal ?

2015-02-18 Thread Laurent Bercot
On 18/02/2015 11:58, Peter Pentchev wrote: OK, so the not using the whole range of valid exit codes point rules out my obvious reply - do what the shell does - exit 128 + signum. Well the shell is happily ignoring the problem, but it doesn't mean it has solved it. The shell reserves a few

Re: How to report a death by signal ?

2015-02-18 Thread Laurent Bercot
On 18/02/2015 14:04, Olivier Brunel wrote: I don't follow, what's wrong with using a fd? It needs a convention between G and P. And I can't do that, because G and P are not necessarily both execline commands. They are normal Unix programs, and the whole point of execline is to have commands

Re: How to report a death by signal ?

2015-02-18 Thread Laurent Bercot
I'm leaning more and more towards the following approach: - child crashed: exit 128 + signal number - child exited with 128 or more: exit 128 - else: exit the child's exit code. Assuming normal commands never exit more than 127, that reports the whole information to the immediate parent,

Re: s6, execline, skalibs in FreeBSD

2015-02-01 Thread Laurent Bercot
Thanks Colin ! -- Laurent

Re: Feature requests for execline s6

2015-01-26 Thread Laurent Bercot
- execline: I'd like the addition of a new command, e.g. readvar, that would allow to read the content/first line of a file into a variable. IOW, something similar to importas (including an optional default value), only instead of specifying an environment variable one would give a file name to

Re: Fwd: [skalibs-2.0][PATCH] posting new clean patch (from supervision lits)

2015-01-05 Thread Laurent Bercot
On 05/01/2015 23:01, Paul Jarc wrote: Is there any autoconf-equivalent processing that needs to be done to a fresh git clone, or is it already in the same state as a released tarball? No processing necessary, fresh git clones should be usable as is. Tarballs are just made from tagged git

Re: building execline 2.0.0.0: No rule to make target '-lexecline'

2015-01-09 Thread Laurent Bercot
On 09/01/2015 23:37, Paul Jarc wrote: I've hit a similar problem with execline 2.0.1.0, without using -j: I don't think it's a similar problem. It's just that execline can't find its external dependencies with the default settings because you installed skalibs in a non-default location.

Re: s6 really up event hack

2015-01-09 Thread Laurent Bercot
On 09/01/2015 19:52, Patrick Mahoney wrote: Hi, This is a small hack I'm experimenting with to allow an unmodified service to notify s6 when it is really up. It does this by grepping the service's output for a certain pattern, then writing the U event. Is this a reasonable approach, or too

Re: tai confusion

2015-01-07 Thread Laurent Bercot
On 07/01/2015 08:40, Paul Jarc wrote: I'm finally digging into a long-standing bug exhibited by runwhen (rw-match computes a timestamp 10 seconds too early), and I think the problem is in skalibs. tai_from_sysclock() adds 10 seconds depending on whether skalibs is configured with

Re: tai confusion

2015-01-08 Thread Laurent Bercot
I made a complete pass on the tai* conversion subsystem. It should now be, unfortunately, less efficient, because there are a lot of nested function calls for very little real code - but it is a lot cleaner and more logical. I figured that since most machines have a leap second table lookup in

Re: Typo in http://skarnet.org/software/s6-portable-utils/upgrade.html

2015-01-08 Thread Laurent Bercot
On 08/01/2015 16:32, Vallo Kallaste wrote: in 2.0.0.1 skalibs dependency bumped to 2.0.0.0 ^^^ 2.1.0.0 Fixed. Thanks. -- Laurent

Re: tai confusion

2015-01-07 Thread Laurent Bercot
On 07/01/2015 18:49, Paul Jarc wrote: In this case I'm not dealing with the current time. How would I convert between an arbitrary system clock value stored in a time_t/struct timeval/struct timespec, and a TAI[N] value stored in a tai[n]_t? The fast answer is: if t is the number of seconds

Re: tai confusion

2015-01-07 Thread Laurent Bercot
On 07/01/2015 22:30, Paul Jarc wrote: Ok. And then in the other direction, use sysclock_from_tai() and subtract TAI_MAGIC? Yes, exactly. Without knowing the application's requirements, successfully hiding the system clock means you would have to supply *all* the interfaces that work with

Re: argc in s6 vs daemontools

2015-03-17 Thread Laurent Bercot
On 17/03/2015 21:14, Lorenzo wrote: there's a few commands that take N arguments in daemontools and only one in s6 - which is a perfectly fine choice, except that most of them (think svstat *) will reject no arguments and accept N arguments, but only using the 1st one. Giving extra arguments

Re: execline script as 2 tcp server sockets

2015-03-20 Thread Laurent Bercot
On 20/03/2015 12:27, Vincent de RIBOU wrote: Hi all, I am not very used to edit execline scripts to do high level features!! Do you think it is possible to edit some execline script in order to perform a 2 sockets tcp server ( or whatever type else) connections, with also an engine (data

Re: execline script as 2 tcp server sockets

2015-03-20 Thread Laurent Bercot
On 20/03/2015 14:08, Vincent de RIBOU wrote: Thanks for prevous answer. I would like, if possible, to have a execline script allowing to behave as 2 server-side sockets (accepting as many connections as possible like s6-tcpserver) and an engine (process probably) between the 2 sides able to

Re: argc in s6 vs daemontools

2015-03-20 Thread Laurent Bercot
On 19/03/2015 21:45, Paul Jarc wrote: I'm in favor of adding that handling, but until that happens I'd say an error message is appropriate. I added a warning message to s6-svc when it is run with extra arguments. (s6-svc is the only one I can reasonably envision adding multi-arg support to.)

Re: s6-tcpclient read/write FDs

2015-03-17 Thread Laurent Bercot
On 17/03/2015 16:52, Vincent de RIBOU wrote: Hi all, I assume that read and write separate FDs (6 and 7) are only present as compliancy with other tools which produce 2 real different FDs.But on TCP is not really. I've made TLS client over s6-tcpclient with wolfSSL. This lib takes only 1 FD

Re: s6 / skalibs runtime error - EOVERFLOW?

2015-03-06 Thread Laurent Bercot
On 06/03/2015 20:35, Guillermo wrote: * s6-ftrig-wait dies with a 'fatal: unable to ftrigr_startf: Value too large for defined data type' message. * s6-supervise dies with a 'fatal: unable to iopause: Value too large for defined data type' message. * s6-svscan issues a 'warning: unable to

Re: s6-devd, stdin stdout

2015-03-07 Thread Laurent Bercot
On 07/03/2015 18:37, Olivier Brunel wrote: Hi, I have a question regarding s6-devd: why does it set its stdin stdout to /dev/null on start? Hi Olivier, The original purpose of s6-devd was actually to emulate the behaviour of /proc/sys/kernel/hotplug, using the netlink to serialize calls

[announce] skalibs-2.3.2.0, s6-2.1.3.0

2015-03-13 Thread Laurent Bercot
Hello, * skalibs-2.3.2.0 is out. It fixes bugs reported by altell.ru's static analyzer. Thanks Altell! It also adds the gid0_scan() macro. http://skarnet.org/software/skalibs/ git://git.skarnet.org/skalibs * s6-2.1.3.0 is out. It features new options to s6-envuidgid.

Re: NULL pointer dereference in skalibs's mininetstring_write()

2015-03-13 Thread Laurent Bercot
On 13/03/2015 15:50, Roman Khimov wrote: 11if (!w) That one should be: if (!*w) It's obvious that if 'w' is NULL there will be NULL pointer dereference on line 19 or 20. What's not so obvious is how to properly fix that. Actually, w is never supposed to be NULL. Calling

Re: [PATCH 0/7] static analysis fixes for skalibs

2015-03-13 Thread Laurent Bercot
On 13/03/2015 15:24, Roman I Khimov wrote: Hello. Here at Altell we daily pass all of our project's software (and that is kinda whole distribution) through special 'static analysis' build that doesn't actually produce any output other than reports from two (currently) tools: cppcheck and

Re: [PATCH 0/7] static analysis fixes for skalibs

2015-03-13 Thread Laurent Bercot
On 13/03/2015 16:47, Roman Khimov wrote: Both scan-build and cppcheck complain here. Sure, it's not an error, just a harmless dead code, but well, tools don't like dead code and I personally don't like it either, so IMO it's better to drop it if there are no valid reasons for it to stay.

[announce] Minor releases

2015-03-30 Thread Laurent Bercot
Hello, A series of small releases. * skalibs-2.3.3.0 --- - A bugfix in buffer_get, that returned an error on short read instead of simply returning the number of bytes read. (For error on short reads, buffer_getall() is where it's at.) - A sha512 implementation,

Re: Call for contributions: test suite

2015-03-30 Thread Laurent Bercot
On 30/03/2015 00:51, Lorenzo wrote: A part of me still wishes I never sent that email, you know... ;p Why ? Is there anything wrong with knowledge of test suites ? If it's just that you hate testing as much as I do, then relax, you can know forget everything you just learned about it, if you

Re: Call for contributions: test suite

2015-03-29 Thread Laurent Bercot
On 30/03/2015 00:01, Dreamcat4 wrote: (...) Yes, all you said is true. And I'm well aware of it. It is very clear to me that the point of an automated test suite would be for regression tests, nothing more. As the codebase grows, even if every module remains simple and understandable,

[announce] execline-2.1.1.0, s6-portable-utils-2.0.3.0

2015-03-03 Thread Laurent Bercot
Hello, * execline-2.1.1.0 is out. It adds a new command: forstdin, which splits its standard input and spawns a program for every element. The forbacktickx command is now a wrapper around pipeline and forstdin. http://skarnet.org/software/execline/ git://git.skarnet.org/execline *

GitHub mirrors

2015-02-28 Thread Laurent Bercot
I finally caved in and set up GitHub mirrors for all the skarnet.org packages. https://github.com/skarnet (Yes, the picture is ugly. I may get a better one in a few months. :P) So, if you wanted a web interface to browse the source, here you go. I don't like GitHub much, but if it saves me

[announce] A few releases all around

2015-02-25 Thread Laurent Bercot
Hello, Some bug squashing and changes here. skalibs-2.3.1.0 --- - Bugfixes. - Imaginary bugfixes. (To make valgrind happy and reduce noise when looking for real bugs.) - Change in wait_status(): returns 256 if the wstat reports a crash. - New functions and macros.

Re: s6 readiness support

2015-02-25 Thread Laurent Bercot
On 25/02/2015 22:29, Patrick Mahoney wrote: The loopwhilex keeps the pump primed, so to speak, so /service/s can be stopped and started many times with readiness reporting working. Otherwise, I'd need to restart /service/s/log as well as /service/s. On the other hand, I have mostly idle

Re: s6 readiness support

2015-02-25 Thread Laurent Bercot
Try: forstdin -d\n i s6-notifywhenup -f echo with the latest execline git. That should be exactly what you need: only one extra long-running process, no shell. -- Laurent

Re: s6 readiness support

2015-02-25 Thread Laurent Bercot
On 26/02/2015 00:11, Olivier Brunel wrote: Well, except that only the later will also create the ready file as needed (i.e. w/ a TAI timestamp packed in it)... Ah, indeed. s6-notifywhenup echo it is. -- Laurent

Re: s6-log 2.1.1.1 selection directives

2015-02-24 Thread Laurent Bercot
echo -e fatal:\nSTAT | s6-log n30 E500 - +fatal: 2 - +^STAT =./status Only STAT is written to ./status; nothing is written to stderr. Whoops. Fixed in current git. Next release coming soon. Thanks for the bug-report ! -- Laurent

Re: process supervisor - considerations for docker

2015-02-25 Thread Laurent Bercot
(Moving the discussion to the supervis...@list.skarnet.org list. The original message is quoted below.) Hi Dreamcat4, Thanks for your detailed message. I'm very happy that s6 found an application in docker, and that there's such an interest for it! skaware@list.skarnet.org is indeed the

Re: wait but kill if a max. time was exceeeded

2015-04-23 Thread Laurent Bercot
On 23/04/2015 17:41, Gorka Lertxundi wrote: I have a very simple question, is it possible in execline to wait up to a maximum amount of time to finish a background program execution? And if it didn't finish, kill it forcibly? Does this help ?

s6-rc design ; comparison with anopa

2015-04-23 Thread Laurent Bercot
So, I've been planning to write s6-rc, a complete startup/shutdown script system based on s6, with complete dependency management, and of course optimal parallelization - a real init system done right. I worked on the design, and I think I have it more or less down; and I started coding.

Re: s6-rc design ; comparison with anopa

2015-04-23 Thread Laurent Bercot
On 23/04/2015 18:39, Dreamcat4 wrote: OK. But what about the situation when you are running a live compiled (running) system. You want to install a new pkg containing a service (or a bundle). And start that service without having to reboot the whole computer? Can it compile just the extra bit

Re: s6-rc design ; comparison with anopa

2015-04-23 Thread Laurent Bercot
On 23/04/2015 19:05, Dreamcat4 wrote: Doing the full recompile in background, ready for next reboot. I think you don't realize the order of magnitude. When I say full compilation with a thousandish atomic services, I'm estimating a few seconds of work for s6-rc-compile at worst. Really

Re: s6-rc design ; comparison with anopa

2015-04-23 Thread Laurent Bercot
On 23/04/2015 23:26, Joan Picanyol i Puig wrote: I'd really expect a ui that can diff compiled live vs. source (and obviously, to inspect compile live). There will definitely be a ui to inspect compiled + live. As for diffing the current state vs. source, I think it will be too complex,

Re: wait but kill if a max. time was exceeeded

2015-04-24 Thread Laurent Bercot
On 24/04/2015 13:28, Peter Pentchev wrote: Oof, thanks a LOT for taking away the opportunity for me to advertise http://devel.ringlet.net/sysutils/timelimit/ :P Sorry about that. :P It's not a very original idea anyway. busybox timeout, for instance, does the same thing. I'm sure there are

Re: s6-rc design ; comparison with anopa

2015-04-26 Thread Laurent Bercot
On 25/04/2015 21:38, Colin Booth wrote: This actually brings up another question, is there any provision for automatic bundling? If sshd requires sshd-log and a oneshot to create a chroot directory does s6-compile also create a bundle to represent that relationship or do we need to define those

Re: s6-rc design ; comparison with anopa

2015-04-26 Thread Laurent Bercot
On 25/04/2015 11:24, Joan Picanyol i Puig wrote: What I'd like is the ability to have some services ready-to-run, but not up by default. Some of them might be there for contingency purposes (so that an operator can start a failover), some of them might have to go up (and down) at certain times

Re: s6-rc design ; comparison with anopa

2015-04-24 Thread Laurent Bercot
On that note, one thing you've apparently done/planned is auto-stopping, whereas there is no such thing in anopa. This is because I always felt like while auto-starting can be easily predictable/have expected behavior, things aren't the same when it comes to stopping. That is, start httpd and it

Re: s6-rc design ; comparison with anopa

2015-04-25 Thread Laurent Bercot
On 25/04/2015 09:35, Colin Booth wrote: I've been having a hard time thinking about bundles the right way. At first they seemed like first-class services along with longruns and oneshots, but it sounds more like they are more of a shorthand to reference a collection of atomic services than a

github and dropbear

2015-04-22 Thread Laurent Bercot
Since a few days ago (but I haven't tried committing anything for a long time before that, so I'm not sure when it started) I've had trouble pushing commits to the github mirror of my packages. I push via git over SSH, with the dropbear SSH client, dbclient, that reports: dbclient: Connection

Re: s6-rc design ; comparison with anopa

2015-04-27 Thread Laurent Bercot
On 27/04/2015 07:59, Colin Booth wrote: OpenSSH, at least on Linux and *BSD, chroots into an empty directory after forking for your login. That was an example but I think the question is still valid: if you have a logical grouping of longrun foo, longrun foo-log, and a oneshot helper bar, where

Re: [PATCH] devd: Fix invalid option used for s6-uevent-listener

2015-04-27 Thread Laurent Bercot
Ah, good catch. Patch applied, thanks. It's available in the current git. Note that I still can't push to github because they've broken their sshd's compatibility with dropbear. I've reported the issue, but it hasn't been fixed yet. Until they fix it, the GitHub mirror for skarnet.org packages

Re: Very basic question, regarding redirects

2015-05-11 Thread Laurent Bercot
On 11/05/2015 13:52, Scott Mebberson wrote: I'm working on an addition to the s6-overlay project. I want to make it super easy to create environment variables within a Docker container. IIRC, /var/run/s6/container_environment is meant to hold the variables that the container is actually

  1   2   3   4   >