mirror of
https://github.com/trapexit/mergerfs.git
synced 2026-12-02 21:00:13 -05:00
build: keep the compiler handoff and probe files out of /tmp
- install-build-pkgs runs as root and handed its compiler choice to build-mergerfs through /tmp/build-env, which another user could create before root writes it. Use /etc/mergerfs-build-env, written to a temporary name, made mode 0644 and renamed into place, so a normal user can source it regardless of root's umask and never reads it half written. - The C++20 probe compiles in a private temporary directory instead of at fixed names in /tmp. - yum hosts also consider an already installed devtoolset, which "yum list available" omits. - Document sourcing the handoff file before make deb.
This commit is contained in:
parent
8e6bfc4b0c
commit
4540af2a75
3 changed files with 31 additions and 10 deletions
|
|
@ -19,6 +19,7 @@ $ wget https://github.com/trapexit/mergerfs/releases/download/<ver>/mergerfs-<ve
|
|||
```
|
||||
$ cd mergerfs
|
||||
$ sudo buildtools/install-build-pkgs
|
||||
$ . /etc/mergerfs-build-env
|
||||
$ make deb
|
||||
$ sudo dpkg -i ../mergerfs_<version>_<arch>.deb
|
||||
```
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue