The following message is displayed and fails to compile. <snip> ===> src/rc (all) gmake[2]: Entering directory '/var/tmp/portage/sys-apps/openrc-0.20.2/work/openrc-0.20.2/src/rc' echo "#define VERSION \"0.20.2\"" >version.h.tmp if test -n "Gentoo FreeBSD"; then \ echo "#define BRANDING \"Gentoo FreeBSD\"" >> version.h.tmp; \ fi cmp -s version.h.tmp version.h && rm version.h.tmp || mv version.h.tmp version.h rm -f .depend clang -I../includes -I../librc -I../libeinfo -DHAVE_TERMCAP -MM checkpath.c do_e.c do_mark_service.c do_service.c do_value.c fstabinfo.c is_newer_than.c is_older_than.c mountinfo.c openrc-run.c rc-abort.c rc.c rc-depend.c rc-logger.c rc-misc.c rc-plugin.c rc-selinux.c rc-service.c rc-status.c rc-update.c shell_var.c start-stop-daemon.c swclock.c _usage.c > .depend rc-selinux.c:26:10: fatal error: 'selinux/selinux.h' file not found #include <selinux/selinux.h> ^ 1 error generated. gmake[2]: *** No rule to make target '.depend', needed by 'depend'. Stop. gmake[2]: Leaving directory '/var/tmp/portage/sys-apps/openrc-0.20.2/work/openrc-0.20.2/src/rc' ../mk/subdir.mk:26: recipe for target 'all' failed gmake[1]: *** [all] Error 2 gmake[1]: Leaving directory '/var/tmp/portage/sys-apps/openrc-0.20.2/work/openrc-0.20.2/src' /var/tmp/portage/sys-apps/openrc-0.20.2/work/openrc-0.20.2//mk/subdir.mk:26: recipe for target 'all' failed gmake: *** [all] Error 2
Created attachment 423070 [details, diff] fix-bsd.patch Please test with this patch and let me know if the build succeeds. Thanks, William
https://github.com/openrc/openrc/commit/79359f7 This will be included in openrc-0.21 and 0.20.3.