Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 572068 - sys-apps/openrc-0.20.2: build fails on Gentoo/FreeBSD (amd64 clang profile only)
Summary: sys-apps/openrc-0.20.2: build fails on Gentoo/FreeBSD (amd64 clang profile only)
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Hosted Projects
Classification: Unclassified
Component: OpenRC (show other bugs)
Hardware: All FreeBSD
: Normal normal (vote)
Assignee: OpenRC Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-01-16 08:54 UTC by Yuta SATOH
Modified: 2016-01-19 05:38 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
fix-bsd.patch (fix-bsd.patch,530 bytes, patch)
2016-01-16 18:01 UTC, William Hubbs
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Yuta SATOH 2016-01-16 08:54:09 UTC
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
Comment 1 William Hubbs gentoo-dev 2016-01-16 18:01:13 UTC
Created attachment 423070 [details, diff]
fix-bsd.patch

Please test with this patch and let me know if the build succeeds.

Thanks,

William
Comment 2 William Hubbs gentoo-dev 2016-01-19 05:38:19 UTC
https://github.com/openrc/openrc/commit/79359f7

This will be included in openrc-0.21 and 0.20.3.