Skip to content

meson: de-duplicate binaries using symlinks#713

Open
floppym wants to merge 1 commit into
OpenRC:masterfrom
floppym:install-symlinks
Open

meson: de-duplicate binaries using symlinks#713
floppym wants to merge 1 commit into
OpenRC:masterfrom
floppym:install-symlinks

Conversation

@floppym

@floppym floppym commented May 29, 2024

Copy link
Copy Markdown
Contributor

Use custom targets to create symlinks for testing.
meson will dereference these at install time, so use install_symlink().

@floppym

floppym commented May 29, 2024

Copy link
Copy Markdown
Contributor Author

This is a possible alternative to #712.

I personally prefer the end result given by using hard links, but this symlink approach seems a bit cleaner from a meson perspective.

@navi-desu

Copy link
Copy Markdown
Member

the custom target shouldn't be necessary, as the argument for install_symlink is a str, so just

foreach exec: einfo_execs
  install_symlink(exec, install_dir: rc_bindir, pointing_to: 'einfo')
endforeach

works

@floppym

floppym commented May 29, 2024

Copy link
Copy Markdown
Contributor Author

the custom target shouldn't be necessary, as the argument for install_symlink is a str, so just

The custom targets are to populate symlinks in the build directory for use by the test suite.

Use custom targets to create symlinks for testing.
meson will dereference these at install time, so use install_symlink().
@floppym floppym force-pushed the install-symlinks branch from bb027eb to 76c91be Compare July 23, 2024 14:43
@navi-desu

Copy link
Copy Markdown
Member

mind if i tweak this to install do_{value,service,mark} instead, and symlink to that? (already done it, just wanted to get confirmation)

@floppym

floppym commented Sep 22, 2024

Copy link
Copy Markdown
Contributor Author

If you want to make that adjustment, I don't mind.

Just reset the author to yourself because it wasn't my idea and I prefer not to have non-functional binaries tied to my name.

@N-R-K

N-R-K commented Mar 15, 2025

Copy link
Copy Markdown
Contributor

This would be useful to have. Bump.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants