aboutsummaryrefslogtreecommitdiff
path: root/eclass
diff options
context:
space:
mode:
Diffstat (limited to 'eclass')
-rw-r--r--eclass/openib.eclass13
1 files changed, 11 insertions, 2 deletions
diff --git a/eclass/openib.eclass b/eclass/openib.eclass
index 3726625bc..98e16ef12 100644
--- a/eclass/openib.eclass
+++ b/eclass/openib.eclass
@@ -29,11 +29,20 @@ case ${OFED_VER} in
;;
esac
+case ${PV} in
+ *p*)
+ MY_PV="${PV/p/}"
+ ;;
+ *)
+ MY_PV="${PV}"
+ ;;
+esac
+
# @FUNCTION: openib_src_unpack
# @DESCRIPTION:
# This function will unpack OFED packages
openib_src_unpack() {
unpack ${A}
- rpm_unpack "OFED-${OFED_VER}/SRPMS/${P}-${OFED_SUFFIX}.src.rpm"
- unpack ./${P}.tar.gz
+ rpm_unpack "OFED-${OFED_VER}/SRPMS/${PN}-${MY_PV}-${OFED_SUFFIX}.src.rpm"
+ unpack ./${PN}-${MY_PV}.tar.gz
}