libblockdev: Build without nvdimm on ppc
This commit is contained in:
parent
5a3d1c7996
commit
2222fe01a3
|
@ -5,7 +5,7 @@ revision=1
|
||||||
build_style=gnu-configure
|
build_style=gnu-configure
|
||||||
hostmakedepends="pkg-config python3"
|
hostmakedepends="pkg-config python3"
|
||||||
makedepends="cryptsetup-devel device-mapper-devel dmraid-devel libbytesize-devel
|
makedepends="cryptsetup-devel device-mapper-devel dmraid-devel libbytesize-devel
|
||||||
libglib-devel libkmod-devel libndctl-devel libparted-devel nss-devel
|
libglib-devel libkmod-devel libparted-devel nss-devel
|
||||||
volume_key-devel libyaml-devel"
|
volume_key-devel libyaml-devel"
|
||||||
short_desc="A library for manipulating block devices"
|
short_desc="A library for manipulating block devices"
|
||||||
maintainer="maxice8 <thinkabit.ukim@gmail.com>"
|
maintainer="maxice8 <thinkabit.ukim@gmail.com>"
|
||||||
|
@ -17,6 +17,14 @@ checksum=f87873aefebbd43976b73b823cd6e53f15e4e364611bd288b2886c2fcbb45a24
|
||||||
conf_files="/etc/libblockdev/conf.d/10-lvm-dbus.cfg
|
conf_files="/etc/libblockdev/conf.d/10-lvm-dbus.cfg
|
||||||
/etc/libblockdev/conf.d/00-default.cfg"
|
/etc/libblockdev/conf.d/00-default.cfg"
|
||||||
|
|
||||||
|
#ndctl not present on ppc
|
||||||
|
case "$XBPS_TARGET_MACHINE" in
|
||||||
|
ppc|ppc-musl)
|
||||||
|
configure_args+=" --without-nvdimm" ;;
|
||||||
|
*)
|
||||||
|
makedepends+=" libndctl-devel" ;;
|
||||||
|
esac
|
||||||
|
|
||||||
libblockdev-devel_package() {
|
libblockdev-devel_package() {
|
||||||
depends="libblockdev-${version}_${revision} glib-devel"
|
depends="libblockdev-${version}_${revision} glib-devel"
|
||||||
short_desc+=" - development files"
|
short_desc+=" - development files"
|
||||||
|
|
Loading…
Reference in New Issue