dev-perl/Quota: Fix linkage against libtirpc bug #644420

- add dependency to libtirpc
- add minimal test case

Closes: https://bugs.gentoo.org/644420
Closes: https://github.com/gentoo/gentoo/pull/6845
This commit is contained in:
Marcel Greter
2018-01-13 04:57:10 +01:00
committed by Kent Fredric
parent 9450c1fcad
commit f77afa38d6

View File

@@ -14,6 +14,7 @@ IUSE=""
RDEPEND="
sys-fs/quota[rpc]
net-libs/libtirpc
"
DEPEND="${RDEPEND}
virtual/perl-ExtUtils-MakeMaker
@@ -24,8 +25,20 @@ DIST_TEST=skip
src_prepare() {
default
export mymake="OPTIMIZE=$($(tc-getPKG_CONFIG) --cflags libtirpc)"
export mymake="INC=$($(tc-getPKG_CONFIG) --cflags libtirpc) OTHERLDFLAGS=$($(tc-getPKG_CONFIG) --libs libtirpc)"
# disable AFS completely for now, need somebody who can really test it
sed -i -e 's|-d "/afs"|0|' Makefile.PL || die "sed failed"
}
src_test() {
ebegin "Compile testing Quota ${PV}"
perl -Mblib="${S}" -M"Quota ${PV} ()" -e1
if ! eend $?; then
echo
eerror "One or more modules failed compile:";
eerror " Quota ${PV}"
die "Failing due to module compilation errors";
fi
perl-module_src_test
}