Bringing S6/66 init-system to GoboLinux

Hi there!

I am currently attempting to bring the s6 init-system with the 66 toolset to GoboLinux.

I have packaged every tool needed so far and pushed an experimental 66 branch on my github. Everything needed is in commit 2b5c698.

You will need to install the following packages, ideally in the order specified below:

  • SkaLibs
  • ExecLine
  • S6
  • S6-RC
  • ObLibs
  • 66
  • 66-Tools
  • Boot-66serv

Some other dependencies will prompt to install as a drive-by.

For some context:
boot-66serv is special sauce by 66’s dev Eric Vidal, in an attempt to provide a portable service that boots any machine.
66-scandir create sets up the necessary default at /run/66/scandir, that would be Data/Variable/run in gobo. Then 66-svcanctl start makes the scandir ready to accept any service.
Example service files can be found here and here.

That’s the theory.

Now before I do that, I’d like to ensure sure the packages have been build correctly.
The only issue I have noticed while packaging the above, was while building Boot-66serv. Compile --debug Boot-66serv shows the following errors, even before the actual build step begins:

[...]
adding dependency /Programs/S6-Portable-Utils/2.2.3.1
adding dependency /Programs/IPRoute2/5.6.
mount -t overlay none -o lowerdir=/Programs/66/0.6.1.2/bin:/Programs/66-Tools/0.0.7.1/bin:/Programs/LowDown/0.8.2/bin:/Programs/ExecLine/2.8.0.0/bin:/Programs/S6/2.10.0.2/bin:/Programs/S6-RC/0.5.2.1/bin:/Programs/S6-Linux-Utils/2.5.1.4/bin:/Programs/S6-Portable-Utils/2.2.3.1/bin:/Programs/Autoconf/2.69/bin:/Programs/Automake/1.16.3/bin:/Programs/Bash/5.0/bin:/Programs/BinUtils/2.33.1/bin:/Programs/CMake/3.16.4/bin:/Programs/CoreUtils/8.31/bin:/Programs/FindUtils/4.7.0/bin:/Programs/GCC/9.2.0/bin:/Programs/Gawk/5.0.1/bin:/Programs/Glibc/2.30/bin:/Programs/GoboHide/1.3/bin:/Programs/Grep/3.4/bin:/Programs/Lua/5.4.2/bin:/Programs/Make/4.3/bin:/Programs/Patch/2.7.6/bin:/Programs/Perl/5.30.1/bin:/Programs/Python/3.8.1/bin:/Programs/Scripts/017-GIT/bin:/Programs/Sed/4.8/bin:/Programs/Sudo/1.9.5p2/bin:/Programs/Wget/1.20.3/bin:/Programs/Compile/017-GIT/bin:/Programs/IPRoute2/5.6.0/sbin:/System/Index/bin,upperdir=/Users/root/.local/Runner/1617212769-Compile-9BeJse/upper_layer/bin,workdir=/Users/root/.local/Runner/1617212769-Compile-9BeJse/write_layer/bin /System/Index/bin
mount -t overlay none -o lowerdir=/Programs/66/0.6.1.2/include:/Programs/66-Tools/0.0.7.1/include:/Programs/LowDown/0.8.2/include:/Programs/ExecLine/2.8.0.0/include:/Programs/S6/2.10.0.2/include:/Programs/S6-RC/0.5.2.1/include:/Programs/S6-Linux-Utils/2.5.1.4/include:/Programs/S6-Portable-Utils/2.2.3.1/include:/Programs/IPRoute2/5.6.0/include:/Programs/Bash/5.0/include:/Programs/BinUtils/2.33.1/include:/Programs/GCC/9.2.0/include:/Programs/Gawk/5.0.1/include:/Programs/Glibc/2.30/include:/Programs/Lua/5.4.2/include:/Programs/Make/4.3/include:/Programs/Python/3.8.1/include:/Programs/Sudo/1.9.5p2/include:/System/Index/include,upperdir=/Users/root/.local/Runner/1617212769-Compile-9BeJse/upper_layer/include,workdir=/Users/root/.local/Runner/1617212769-Compile-9BeJse/write_layer/include /System/Index/include
mount -t overlay none -o lowerdir=/Programs/66/0.6.1.2/lib:/Programs/LowDown/0.8.2/lib:/Programs/ExecLine/2.8.0.0/lib:/Programs/S6/2.10.0.2/lib:/Programs/S6-RC/0.5.2.1/lib:/Programs/IPRoute2/5.6.0/lib:/Programs/Bash/5.0/lib:/Programs/BinUtils/2.33.1/lib:/Programs/CoreUtils/8.31/lib:/Programs/FindUtils/4.7.0/lib:/Programs/GCC/9.2.0/lib:/Programs/Gawk/5.0.1/lib:/Programs/Glibc/2.30/lib:/Programs/Lua/5.4.2/lib:/Programs/Perl/5.30.1/lib:/Programs/Python/3.8.1/lib:/Programs/Scripts/017-GIT/lib:/Programs/Sudo/1.9.5p2/lib:/Programs/Compile/017-GIT/lib:/System/Index/lib,upperdir=/Users/root/.local/Runner/1617212769-Compile-9BeJse/upper_layer/lib,workdir=/Users/root/.local/Runner/1617212769-Compile-9BeJse/write_layer/lib /System/Index/lib
mount -t overlay none -o lowerdir=/Programs/66/0.6.1.2/share:/Programs/66-Tools/0.0.7.1/share:/Programs/LowDown/0.8.2/share:/Programs/IPRoute2/5.6.0/share:/Programs/Autoconf/2.69/share:/Programs/Automake/1.16.3/share:/Programs/Bash/5.0/share:/Programs/BinUtils/2.33.1/share:/Programs/CMake/3.16.4/share:/Programs/CoreUtils/8.31/share:/Programs/FindUtils/4.7.0/share:/Programs/GCC/9.2.0/share:/Programs/Gawk/5.0.1/share:/Programs/Glibc/2.30/share:/Programs/GoboHide/1.3/share:/Programs/Grep/3.4/share:/Programs/Lua/5.4.2/share:/Programs/Make/4.3/share:/Programs/Patch/2.7.6/share:/Programs/Perl/5.30.1/share:/Programs/Python/3.8.1/share:/Programs/Scripts/017-GIT/share:/Programs/Sed/4.8/share:/Programs/Sudo/1.9.5p2/share:/Programs/Wget/1.20.3/share:/Programs/Compile/017-GIT/share:/System/Index/share,upperdir=/Users/root/.local/Runner/1617212769-Compile-9BeJse/upper_layer/share,workdir=/Users/root/.local/Runner/1617212769-Compile-9BeJse/write_layer/share /System/Index/share
Creating wrapper /Users/root/.local/Runner/1617212769-Compile-9BeJse/wrapper
/Programs/Compile/017-GIT/bin/../Functions/Compile: line 575: 66_path=/Programs/66/0.6.1.2: No such file or directory
/Programs/Compile/017-GIT/bin/../Functions/Compile: line 576: 66_settings_path=/Programs/66/Settings: No such file or directory
/Programs/Compile/017-GIT/bin/../Functions/Compile: line 577: 66_variable_path=/Data/Variable: No such file or directory
/Programs/Compile/017-GIT/bin/../Functions/Compile: line 575: 66_tools_path=/Programs/66-Tools/0.0.7.1: No such file or directory
/Programs/Compile/017-GIT/bin/../Functions/Compile: line 576: 66_tools_settings_path=/Programs/66-Tools/Settings: No such file or directory
/Programs/Compile/017-GIT/bin/../Functions/Compile: line 577: 66_tools_variable_path=/Data/Variable: No such file or directory
FetchArchive: /Data/Compile/Archives/boot-66serv-v2.3.0.tar.gz is complete and matches MD5/SHA checksum.
[...]

Though later on, the actual build step and installation appears to go about correctly.

Is this anything to worry about and possibly a bug in Compile?

Thanks in advance!

nuc

PS: Oh and please don’t hesitate to point out anything obvious I might have missed above! Like issues I might stumble upon after initializing the new init. Or obvious missing steps before I reboot my machine and end up in an undefined state :sweat_smile: (@lucasvr)

Hi there! The problem here is that the program name starts with a number (66) – and Compile uses the program name as prefix when defining some internal variables. The error you are seeing comes from Bash, which complains that variable names cannot begin with a number.

The problem will go away if you name the program something else, such as Sixty-six.