]> Cypherpunks repositories - bass.git/commitdiff
/tmp is often a tmpfs
authorSergey Matveev <stargrave@stargrave.org>
Fri, 26 Dec 2025 08:05:18 +0000 (11:05 +0300)
committerSergey Matveev <stargrave@stargrave.org>
Fri, 26 Dec 2025 08:05:19 +0000 (11:05 +0300)
So after reboot it will be lost and skelenv is not working.

doc/Build/Tutorial
doc/Build/skelbin
doc/INSTALL

index 38af68bc0a3c80b690590d9ec3aad3552b3a8d5522bd9ef6e7ef6e64046d7733..91bbf469a8af31cea22ccf77c513cb7512bcb2a08442022bc28b7550ac6550e8 100644 (file)
@@ -20,7 +20,7 @@ But let's write a skel and build a skelpkg for convenient
     $ cd build/
     $ cat >rc <<EOF
     MAKE_JOBS=8
-    SKELBINS=/tmp/skelbins
+    SKELBINS=/somewhere/skelbins
     EOF
     $ export BASS_RC=`realpath rc`
 
index 4b53ab6179d53ce3f2bacadfa4e57a3b0074c0b46cce024b930183aab690258e..fd7444d54bef0fc38d96ca46f64247b86b68450ff13be47fc62866f8420250e4 100644 (file)
@@ -8,24 +8,24 @@ A [Index/Concepts] namenhash
 $hsh is a supplementary hash value used to distinguish different
 builds/revisions of the same package. Currently it is just a hash of the
 skel itself and BASS'es current commit revision. It is URL-safe Base64
-encoded string. So for example if $SKELBINS is /tmp/skelbins directory,
+encoded string. So for example if $SKELBINS is /somewhere/skelbins directory,
 then that Perl skelbin is installed to:
-/tmp/skelbins/perl-5.32.1-zP3IpCa_XY7pGHCNYQxp_1KjQQNCyUl84LqSrWLErjA.
+/somewhere/skelbins/perl-5.32.1-zP3IpCa_XY7pGHCNYQxp_1KjQQNCyUl84LqSrWLErjA.
 $NAME-$hsh is often called "namenhash" in the code.
 
 A [Index/Concepts] GNU-Stow\r
 But that is just a single software skelbin directory. What if my another
 skel requires multiple other skelbins, depends on them?
 https://www.gnu.org/software/stow/, GNU Stow helps there. That is simple
-symbolic links manager. Assume you have got /tmp/skelbins/perl5-$hsh0
-and /tmp/skelbins/gmake-4.4-$hsh1 skelbins and you current working
-directory is /tmp/tmp.whatever. stow is used to create symlinks from
+symbolic links manager. Assume you have got /somewhere/skelbins/perl5-$hsh0
+and /somewhere/skelbins/gmake-4.4-$hsh1 skelbins and you current working
+directory is /somewhere/tmp.whatever. stow is used to create symlinks from
 dependant skelbins to our current's local/ subdirectory that way:
 
-    /tmp/tmp.whatever/local/bin/gmake -> /tmp/skelbins/gmake-4.4-$hsh1/bin/gmake
-    /tmp/tmp.whatever/local/bin/perl5 -> /tmp/skelbins/perl5-$hsh0/bin/perl5
-    /tmp/tmp.whatever/local/lib/site_perl -> /tmp/skelbins/perl5-$hsh0/lib/site_perl
-    /tmp/tmp.whatever/local/share/info -> /tmp/skelbins/gmake-4.4-$hsh1/share/info
+    /somewhere/tmp.whatever/local/bin/gmake -> /somewhere/skelbins/gmake-4.4-$hsh1/bin/gmake
+    /somewhere/tmp.whatever/local/bin/perl5 -> /somewhere/skelbins/perl5-$hsh0/bin/perl5
+    /somewhere/tmp.whatever/local/lib/site_perl -> /somewhere/skelbins/perl5-$hsh0/lib/site_perl
+    /somewhere/tmp.whatever/local/share/info -> /somewhere/skelbins/gmake-4.4-$hsh1/share/info
     [...]
 
 If you add $tmp/local/bin to your $PATH and $tmp/local/lib to
index 118ac732ca1befa3439e8d956bf67c8451a742c1b40fec34ff07b89644427c7f..ed91e302a96f2f665f15bd97a902803fdb56eae757a2f125b499730cf4ede89c 100644 (file)
@@ -13,7 +13,7 @@ project (package building/management is pretty steady now).
     $ ./do
     $ PATH="$(realpath local/bin):$(realpath local/go/bin):$PATH"
     $ cd ../../build
-    $ echo SKELBINS=/tmp/skelbins >rc
+    $ echo SKELBINS=/somewhere/skelbins >rc
     $ export BASS_RC=$(realpath rc)
     $ pkg/mk-arch
     $ redo pkg/FreeBSD-amd64-13.2-RELEASE/shells/zsh-5.9