Skip to content

Commit

Permalink
app-emulation/libvirt: ebuild maintenance
Browse files Browse the repository at this point in the history
Package-Manager: portage-2.3.0
  • Loading branch information
tamiko committed Oct 5, 2016
1 parent 06349ff commit e60bfec
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 31 deletions.
4 changes: 0 additions & 4 deletions app-emulation/libvirt/libvirt-2.1.0-r2.ebuild
Original file line number Diff line number Diff line change
Expand Up @@ -318,10 +318,6 @@ src_configure() {
# bug #377279
(cd .gnulib && git reset --hard > /dev/null)
fi

# Workaround: Sometimes this subdirectory is missing and leads to a
# build failure.
mkdir -p "${BUILD_DIR}"/docs/internals
}

src_test() {
Expand Down
23 changes: 10 additions & 13 deletions app-emulation/libvirt/libvirt-2.2.0-r1.ebuild
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,6 @@ pkg_setup() {
~CGROUPS
~CGROUP_SCHED
~CPUSETS
~DEVPTS_MULTIPLE_INSTANCES
~IPC_NS
~MACVLAN
~NAMESPACES
Expand All @@ -172,14 +171,9 @@ pkg_setup() {
~!GRKERNSEC_CHROOT_PIVOT
~!GRKERNSEC_CHROOT_CHMOD
~!GRKERNSEC_CHROOT_CAPS"
# Handle specific kernel versions for different features
kernel_is lt 3 6 && CONFIG_CHECK+=" ~CGROUP_MEM_RES_CTLR"
if $(kernel_is ge 3 6); then
CONFIG_CHECK+=" ~MEMCG ~MEMCG_SWAP "
if $(kernel_is lt 4 5); then
CONFIG_CHECK+=" ~MEMCG_KMEM "
fi
fi

kernel_is lt 4 7 && use lxc && CONFIG_CHECK+="
~DEVPTS_MULTIPLE_INSTANCES"

use macvtap && CONFIG_CHECK+="
~MACVTAP"
Expand All @@ -201,6 +195,13 @@ pkg_setup() {
~NET_SCH_INGRESS
~NET_SCH_SFQ"

# Handle specific kernel versions for different features
kernel_is lt 3 6 && CONFIG_CHECK+=" ~CGROUP_MEM_RES_CTLR"
if kernel_is ge 3 6; then
CONFIG_CHECK+=" ~MEMCG ~MEMCG_SWAP "
kernel_is lt 4 5 && CONFIG_CHECK+=" ~MEMCG_KMEM "
fi

ERROR_USER_NS="Optional depending on LXC configuration."

if [[ -n ${CONFIG_CHECK} ]]; then
Expand Down Expand Up @@ -318,10 +319,6 @@ src_configure() {
# bug #377279
(cd .gnulib && git reset --hard > /dev/null)
fi

# Workaround: Sometimes this subdirectory is missing and leads to a
# build failure.
mkdir -p "${BUILD_DIR}"/docs/internals
}

src_test() {
Expand Down
6 changes: 1 addition & 5 deletions app-emulation/libvirt/libvirt-2.3.0.ebuild
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,7 @@ pkg_setup() {
~!GRKERNSEC_CHROOT_CHMOD
~!GRKERNSEC_CHROOT_CAPS"

kernel_is lt 4 7 && use lxc && CONFIG_CHECK+="
kernel_is lt 4 7 && use lxc && CONFIG_CHECK+="
~DEVPTS_MULTIPLE_INSTANCES"

use macvtap && CONFIG_CHECK+="
Expand Down Expand Up @@ -319,10 +319,6 @@ src_configure() {
# bug #377279
(cd .gnulib && git reset --hard > /dev/null)
fi

# Workaround: Sometimes this subdirectory is missing and leads to a
# build failure.
mkdir -p "${BUILD_DIR}"/docs/internals
}

src_test() {
Expand Down
19 changes: 10 additions & 9 deletions app-emulation/libvirt/libvirt-9999.ebuild
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,6 @@ pkg_setup() {
~CGROUPS
~CGROUP_SCHED
~CPUSETS
~DEVPTS_MULTIPLE_INSTANCES
~IPC_NS
~MACVLAN
~NAMESPACES
Expand All @@ -172,14 +171,9 @@ pkg_setup() {
~!GRKERNSEC_CHROOT_PIVOT
~!GRKERNSEC_CHROOT_CHMOD
~!GRKERNSEC_CHROOT_CAPS"
# Handle specific kernel versions for different features
kernel_is lt 3 6 && CONFIG_CHECK+=" ~CGROUP_MEM_RES_CTLR"
if $(kernel_is ge 3 6); then
CONFIG_CHECK+=" ~MEMCG ~MEMCG_SWAP "
if $(kernel_is lt 4 5); then
CONFIG_CHECK+=" ~MEMCG_KMEM "
fi
fi

kernel_is lt 4 7 && use lxc && CONFIG_CHECK+="
~DEVPTS_MULTIPLE_INSTANCES"

use macvtap && CONFIG_CHECK+="
~MACVTAP"
Expand All @@ -201,6 +195,13 @@ pkg_setup() {
~NET_SCH_INGRESS
~NET_SCH_SFQ"

# Handle specific kernel versions for different features
kernel_is lt 3 6 && CONFIG_CHECK+=" ~CGROUP_MEM_RES_CTLR"
if kernel_is ge 3 6; then
CONFIG_CHECK+=" ~MEMCG ~MEMCG_SWAP "
kernel_is lt 4 5 && CONFIG_CHECK+=" ~MEMCG_KMEM "
fi

ERROR_USER_NS="Optional depending on LXC configuration."

if [[ -n ${CONFIG_CHECK} ]]; then
Expand Down

0 comments on commit e60bfec

Please sign in to comment.