Re: skarnet stack and changelog

2023-05-27 Thread alice
On Sat May 27, 2023 at 4:58 PM CEST, yianiris via skaware wrote:
> Is there a place I didn't see on the website where the latest stack and
> changelog exists, it helps out while packaging the group.
> Something like the announcement sent on the list during a new release

the 'changelog' is generally part of the announcement:  
https://skarnet.org/lists/supervision/0030.html
https://skarnet.org/lists/supervision/2547.html

there is also NEWS:
https://github.com/skarnet/s6/blob/master/NEWS

this generally goes for all the skaware projects.

> I know the release numbers are mentioned on each pkg a simple link to a
> simple text list of the editions and changelog summary may be helpful
>
> Thank you



Re: [announce] skarnet.org February 2023 release

2023-02-22 Thread alice
On Wed Feb 22, 2023 at 5:31 PM CET, Jeff wrote:
> > * s6-portable-utils-2.3.0.0
> > -
> > 
> > - s6-test removed, hence the major update.
>
> why did you remove s6-test?
> i use it in a few execline scripts.

it was renamed/moved to `eltest`, part of execline.



Re: [announce] skarnet.org February 2023 release

2023-02-19 Thread alice
On Sun Feb 19, 2023 at 8:38 AM CET, Alexis wrote:
>
> You're quite right, and my apologies - it's been a 
>  challenging day, and i wasn't thinking clearly. i'll try to 
> be more careful and mindful in the future.

no worries :) just looking out.

take care of yourself first!

>
> Alexis.



Re: [announce] skarnet.org February 2023 release

2023-02-18 Thread alice
On Sun Feb 19, 2023 at 7:39 AM CET, Alexis wrote:
>
> "alice"  writes:
>
> > On Sun Feb 19, 2023 at 6:39 AM CET, Alexis wrote:
>
> >>   
> >> https://github.com/flexibeast/s6-portable-utils-man-pages/releases/tag/v2.3.0.0.1
> >
> > these (s6-portable-utils-man-pages) fail to make install, 
> > because
> > s6-test.1 was removed.
>
> Gah, sorry about that! This should now be fixed.

thanks! works now.

don't mean to backseat the release process too much, but you should generally
not retag a new commit (breaks history of the tag for whoever already had it,
cached tarballs (me, funnily), ..), rather just release .2 .

>
>
> Alexis.



Re: [announce] skarnet.org February 2023 release

2023-02-18 Thread alice
On Sun Feb 19, 2023 at 6:39 AM CET, Alexis wrote:
>
> Updates to the s6-man-pages, s6-portable-utils-man-pages and 
> execline-man-pages repos are now available:
>
> * 
>   https://github.com/flexibeast/s6-man-pages/releases/tag/v2.11.3.0.1
>
> * 
>   
> https://github.com/flexibeast/s6-portable-utils-man-pages/releases/tag/v2.3.0.0.1

these (s6-portable-utils-man-pages) fail to make install, because s6-test.1 was 
removed.

> * 
>   https://github.com/flexibeast/execline-man-pages/releases/tag/v2.9.2.0.1
>
> There were no documentation changes in the new s6-networking 
> release, but i've added a new tag to the s6-networking-man-pages 
> repo to indicate that it's current:
>
> * 
>   
> https://github.com/flexibeast/s6-networking-man-pages/releases/tag/v2.5.1.3.1
>
>
> Alexis.



Re: single-binary for execline programs?

2023-01-31 Thread alice
On Wed Feb 1, 2023 at 6:58 AM CET, Dominique Martinet wrote:
> Laurent Bercot wrote on Wed, Feb 01, 2023 at 04:49:47AM +:
> > > It should be fairly easy to do something like coreutils'
> > > --enable-single-binary without much modification
> > 
> >  The subject has come up a few times recently,
>
> I believe I did my homework looking first -- are there other discussion
> channels than this list that one should be aware of?
>
> > so, at the risk of being
> > blunt, I will make it very clear and definitive, for future reference:
> >
> >  No. It will not happen.
>
> Well, thanks for the clear answer, I'm glad I asked first!
>
> I'm a sore loser though, so I'll develop a bit more below. You've
> probably got better to do so feel free to just say you're not changing
> your mind or pointing me at the other discussions and I'll stop bugging
> you.
>
> >  The fact that toolchains are becoming worse and worse is not imputable
> > to execline, or to the way I write or package software. It has always
> > been possible, and reasonable, to provide a lot of small binaries.
> > Building a binary is not inherently more complicated today than it was
> > 20 years ago. There is no fundamental reason why this should change; the
> > only reason why people are even thinking this is that there is an
> > implicit assumption that software always becomes better with time, and
> > using the latest versions is always a good idea. I am guilty of this
> > too.
> > 
> >  This assumption is true when it comes to bugs, but it becomes false if
> > the main functionality of a project is impacted.
> >  If a newer version of binutils is unable to produce reasonably small
> > binaries, to the point that it incites software developers to change
> > their packaging to accommodate the tool, then it's not an improvement,
> > it's a recession. And the place to fix it is binutils.
>
> I definitely agree with this, I reported the problem in the bz I linked,
> and the reception has been rather good -- I trust we'll get back to
> smaller binaries in the next version or otherwise near future.
>  
> >  Multicall binaries have costs, mostly maintainability costs.
> > Switching from a multiple binaries model to a multicall binary model
> > because the tooling is making the multiple binaries model unusably
> > expensive is basically moving the burden from the tooling to the
> > maintainer. Here's a worse tool, do more effort to accommodate it!
>
> I guess it isn't completely free, but it certainly isn't heavy if the
> abstraction isn't done too badly.
>
> I'd go out a limb and say if you only support single-binary mode, some
> of the code could be simplified further by sharing some argument
> handling, but it's hard to do simpler than your exlsn_main wrapper so
> it'll likely be identical with individual programs not changing at all,
> with just an extra shim to wrap them all; it's not like busybox where
> individual binaries can be selected so a static wrapper would be dead
> simple.
>
> >  Additionally to maintainability costs, multicall binaries also have a
> > small cost in CPU usage (binary starting time) and RAM usage (larger
> > mappings, fewer memory optimizations) compared to multiple binaries.
> > These costs are paid not by the maintainer, but by the users.
>
> Hmm, I'd need to do some measurements, but my impression would be that
> since the overall size is smaller it should pay off for any pipeline
> calling more than a handful of binaries, as you'll benefit from running
> the same binary multiple times rather than having to look through
> multiple binaries (even without optimizing the execs out).
>
> Memory in particular ought to be shared for r-x pages, or there's some
> problem with the system. I'm not sure if it'll lazily load only the
> pages it requires for execution or if some readahead will read it all
> (it probably should), but once it's read it shouldn't take space
> multiple times, so multiple binaries is likely to take more space when
> you include vfs cache as soon as you call a few in a row; memory usage
> should be mostly identical to disk usage in practice.
>
> Anyway, I'll concede that in doubt, let's call it a space vs. speed
> tradeoff where I'm favoring space.
>
> >  Well, no. If having a bunch of execline binaries becomes more expensive
> > in disk space because of an "upgrade" in binutils, that is a binutils
> > problem, and the place to fix it is binutils.
>
> I shouldn't have brought up the binutils bug.
> Even almost 1MB (the x86_64 version that doesn't have the problem,
> package currently 852KB installed size + filesystem overhead..) is
> still something I consider big for the systems I'm building, even
> without the binutils issue it's getting harder to fit in a complete
> rootfs in 100MB.
>
> Just looking at the s6 suite (s6, s6-rc, execline, skalibs,
> s6-linux-init) I'm looking at a 3MB increase (because I won't be able to
> get rid of openrc for compatibility with user scripts it'll have to live
> in compat 

Re: s6-test -v does not work for variable "!"

2022-09-05 Thread alice
On Mon Sep 5, 2022 at 10:08 PM CEST, Songbo Wang wrote:
> On 9/5/22 20:57, alice wrote
>  > s6-test -v '\!'
>  > seems to work for me, tested with
>  > env !=1 s6-test -v'\!'
>  > and without the env. maybe i'm misreading it?
>  >
> Your example works for me on bash, but I just tested by the following 
> execline script
>
> #!/usr/bin/execlineb -P
> exec -c s6-test -v !
>
> which gives a parse error to me. Double quoting the ! gives the same 
> error. Single quoting eliminates the error, but doesn't seem to work 
> correctly:
>
> #!/usr/bin/execlineb -P
> export ! 0
> s6-test -v '!'
>
> exits 1. Backslashing ! doesn't work, double quoted or not. Single quote 
> works, but same
>
>
> #!/usr/bin/execlineb -P
> export ! 0
> s6-test -v '\!'
changing this to

s6-test -v \\\!

works as expected. quoting is different in execline, i think there was
more written in some documentation for the specifics, but i think it
needs to both escape the ! and the \ , so it's three levels of \

as a bonus, that also works in normal shell (no quoting in both places)

>
> exits 1.
>
> I wonder if I am stuck in some intricate no-go land of execline or 
> s6-test...
> -- 
> Songbo Wang (汪嵩博)



Re: s6-test -v does not work for variable "!"

2022-09-05 Thread alice
On Mon Sep 5, 2022 at 8:42 PM CEST, Songbo Wang wrote:
> Hi,
>
> I've been recently playing with execline scripts and found out that
> s6-test -v !
s6-test -v '\!'
seems to work for me, tested with
env !=1 s6-test -v'\!'
and without the env. maybe i'm misreading it?

> is not able to test if the ! environment variable is set. I guess it is 
> because s6-test would also need to handle expressions like "x != y", but 
> the code is too mystic for me to understand (by the way, s6-test fails 
> to test = too, but I don't even know if it is a legit envvar name).
>
> I think it is reasonable to use ! as an envvar, as it is set by some 
> execline utilities, e.g. background, wait.
>
> Cheers,
> -- 
> Songbo Wang (汪嵩博)