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

sys-libs/liburing: Add use flags for building examples and testing #29563

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
Expand Up @@ -17,9 +17,9 @@ fi
LICENSE="MIT"
SLOT="0/2" # liburing.so major version

IUSE="static-libs"
IUSE="examples static-libs test"
# fsync test hangs forever
RESTRICT="test"
RESTRICT="test !test? ( test )"

# At least installed headers need <linux/*>, bug #802516
DEPEND=">=sys-kernel/linux-headers-5.1"
Expand All @@ -39,6 +39,13 @@ src_prepare() {
sed -i "/^Version:/s@[[:digit:]\.]\+@${PV}@" ${PN}.spec || die
fi

if ! use examples; then
Copy link
Contributor Author

@imwints imwints Feb 13, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should we force this by adding something like if use elibc_musl || ! use examples; then?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's a good question, but it's something we should do in profiles/ instead (in profiles/features/musl/package.use.mask).

sed -e '/examples/d' Makefile -i || die
fi
if ! use test; then
sed -e '/test/d' Makefile -i || die
fi

multilib_copy_sources
}

Expand Down