summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJakov Smolic <jakov.smolic@sartura.hr>2021-01-23 11:43:23 +0100
committerDavid Seifert <soap@gentoo.org>2021-01-23 11:43:23 +0100
commitd6fe9356fe9e158a11a40b4206d38447ef0a16ad (patch)
treea6563fcfb877ebc367417fa78b7c369dfd5b2ad7 /app-backup
parentgnustep-apps/pikopixel: 1.0 beta10 bump (diff)
downloadgentoo-d6fe9356fe9e158a11a40b4206d38447ef0a16ad.tar.gz
gentoo-d6fe9356fe9e158a11a40b4206d38447ef0a16ad.tar.bz2
gentoo-d6fe9356fe9e158a11a40b4206d38447ef0a16ad.zip
app-backup/amanda: depend on libtirpc for USE=ndmp
Closes: https://github.com/gentoo/gentoo/pull/19155 Closes: https://bugs.gentoo.org/656340 Signed-off-by: Jakov Smolic <jakov.smolic@sartura.hr> Signed-off-by: David Seifert <soap@gentoo.org>
Diffstat (limited to 'app-backup')
-rw-r--r--app-backup/amanda/amanda-3.5.1-r3.ebuild2
-rw-r--r--app-backup/amanda/files/amanda-3.5.1-tirpc.patch16
2 files changed, 18 insertions, 0 deletions
diff --git a/app-backup/amanda/amanda-3.5.1-r3.ebuild b/app-backup/amanda/amanda-3.5.1-r3.ebuild
index fe0544d23930..0b672997bcdf 100644
--- a/app-backup/amanda/amanda-3.5.1-r3.ebuild
+++ b/app-backup/amanda/amanda-3.5.1-r3.ebuild
@@ -27,6 +27,7 @@ DEPEND="
sys-libs/readline:=
virtual/awk
kerberos? ( app-crypt/mit-krb5 )
+ ndmp? ( net-libs/libtirpc:= )
nls? ( virtual/libintl )
samba? ( net-fs/samba:= )
s3? ( net-misc/curl )
@@ -135,6 +136,7 @@ src_unpack() {
src_prepare() {
default
+ use ndmp && eapply "${FILESDIR}"/${P}-tirpc.patch
# gentoo bug #331111
sed -i '/^check-local: check-perl$/d' config/automake/scripts.am || die
sed -i '/^check-local:/s,syntax-check,,g' perl/Makefile.am || die
diff --git a/app-backup/amanda/files/amanda-3.5.1-tirpc.patch b/app-backup/amanda/files/amanda-3.5.1-tirpc.patch
new file mode 100644
index 000000000000..42472b59af3a
--- /dev/null
+++ b/app-backup/amanda/files/amanda-3.5.1-tirpc.patch
@@ -0,0 +1,16 @@
+https://bugs.gentoo.org/656340
+--- a/config/amanda/amanda_configure.m4
++++ b/config/amanda/amanda_configure.m4
+@@ -257,6 +257,12 @@ AMANDA_CHECK_READLINE
+ AC_CHECK_LIB(m,modf)
+ AMANDA_CHECK_LIBDL
+ AMANDA_GLIBC_BACKTRACE
++PKG_CHECK_MODULES([TIRPC],[libtirpc],[
++ CPPFLAGS="${CPPFLAGS} ${TIRPC_CFLAGS} -DHAVE_RPC_RPC_H"
++ LIBS="${LIBS} ${TIRPC_LIBS}"
++], [
++ AC_MSG_ERROR([libtirpc requested but library not found])
++])
+ AC_SEARCH_LIBS([shm_open], [rt], [], [
+ AC_MSG_ERROR([unable to find the shm_open() function])
+ ])