Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

build: install symlinks natively with meson #725

Merged
merged 1 commit into from
Jul 23, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ project('OpenRC', 'c',
'prefix=/usr',
'warning_level=3',
],
meson_version : '>=0.56.0' # pkgconfig dict support
meson_version : '>=0.61.0'
)

cc = meson.get_compiler('c')
Expand Down
5 changes: 5 additions & 0 deletions src/openrc-init/meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,9 @@ if os == 'Linux'
dependencies: [dl_dep, selinux_dep],
install: true,
install_dir: sbindir)
if get_option('sysvinit')
install_symlink('init',
pointing_to: 'openrc-init',
install_dir: sbindir)
endif
endif
3 changes: 0 additions & 3 deletions tools/meson_final.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,3 @@ if [ "${os}" != Linux ]; then
install -d "${DESTDIR}/${rc_libexecdir}"/init.d
fi
install -m 644 "${MESON_BUILD_ROOT}/src/shared/version" "${DESTDIR}/${rc_libexecdir}"
if [ "${os}" = Linux ] && [ "${sysvinit}" = yes ]; then
ln -sf openrc-init "${DESTDIR}/${sbindir}"/init
fi
Loading