diff options
author | Maxim Koltsov <maksbotan@gentoo.org> | 2013-07-30 07:31:20 +0000 |
---|---|---|
committer | Maxim Koltsov <maksbotan@gentoo.org> | 2013-07-30 07:31:20 +0000 |
commit | bc3d3cc7a829f3b1349a3dc1671de13059d39b18 (patch) | |
tree | d5fb0d97a49a8bf4b8b912fc7c40f952a25f363a /net-fs/autofs | |
parent | Remove old. (diff) | |
download | gentoo-2-bc3d3cc7a829f3b1349a3dc1671de13059d39b18.tar.gz gentoo-2-bc3d3cc7a829f3b1349a3dc1671de13059d39b18.tar.bz2 gentoo-2-bc3d3cc7a829f3b1349a3dc1671de13059d39b18.zip |
1) fix broken libtirpc link error, bug #464120 2) fix occational parallel build error 3) fix duplicated user_patch 4) fix dmalloc deps. Thanks to Dennis 'dlan' Lan.
(Portage version: 2.1.13.1/cvs/Linux x86_64, signed Manifest commit with key F8DBDADE)
Diffstat (limited to 'net-fs/autofs')
-rw-r--r-- | net-fs/autofs/ChangeLog | 13 | ||||
-rw-r--r-- | net-fs/autofs/autofs-5.0.7-r3.ebuild | 130 | ||||
-rw-r--r-- | net-fs/autofs/autofs-9999.ebuild | 14 | ||||
-rw-r--r-- | net-fs/autofs/files/autofs-5.0.7-libtirpc-link.patch | 10 | ||||
-rw-r--r-- | net-fs/autofs/files/autofs-5.0.7-parallel-make.patch | 48 | ||||
-rw-r--r-- | net-fs/autofs/files/autofs-5.0.7-respect-user-flags-and-fix-asneeded-r3.patch | 144 |
6 files changed, 351 insertions, 8 deletions
diff --git a/net-fs/autofs/ChangeLog b/net-fs/autofs/ChangeLog index a02ab2bd556e..afc0f3d52216 100644 --- a/net-fs/autofs/ChangeLog +++ b/net-fs/autofs/ChangeLog @@ -1,6 +1,17 @@ # ChangeLog for net-fs/autofs # Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/net-fs/autofs/ChangeLog,v 1.154 2013/07/22 11:05:44 tomwij Exp $ +# $Header: /var/cvsroot/gentoo-x86/net-fs/autofs/ChangeLog,v 1.155 2013/07/30 07:31:20 maksbotan Exp $ + +*autofs-5.0.7-r3 (30 Jul 2013) + + 30 Jul 2013; Maxim Koltsov <maksbotan@gentoo.org> +autofs-5.0.7-r3.ebuild, + +files/autofs-5.0.7-libtirpc-link.patch, + +files/autofs-5.0.7-parallel-make.patch, + +files/autofs-5.0.7-respect-user-flags-and-fix-asneeded-r3.patch, + autofs-9999.ebuild: + 1) fix broken libtirpc link error, bug #464120 2) fix occational parallel + build error 3) fix duplicated user_patch 4) fix dmalloc deps. Thanks to Dennis + 'dlan' Lan. 22 Jul 2013; Tom Wijsman <TomWij@gentoo.org> metadata.xml: Drop Dustin from metadata.xml, make Dennis (dlan) Lan primary maintainer; diff --git a/net-fs/autofs/autofs-5.0.7-r3.ebuild b/net-fs/autofs/autofs-5.0.7-r3.ebuild new file mode 100644 index 000000000000..d4622b9a603b --- /dev/null +++ b/net-fs/autofs/autofs-5.0.7-r3.ebuild @@ -0,0 +1,130 @@ +# Copyright 1999-2013 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/net-fs/autofs/autofs-5.0.7-r3.ebuild,v 1.1 2013/07/30 07:31:20 maksbotan Exp $ + +EAPI=5 + +AUTOTOOLS_AUTORECONF=true + +inherit autotools-utils linux-info multilib + +PATCH_VER=3 +[[ -n ${PATCH_VER} ]] && \ + PATCHSET_URI="http://dev.gentoo.org/~jlec/distfiles/${P}-patches-${PATCH_VER}.tar.lzma" + +DESCRIPTION="Kernel based automounter" +HOMEPAGE="http://www.linux-consulting.com/Amd_AutoFS/autofs.html" +SRC_URI=" + mirror://kernel/linux/daemons/${PN}/v5/${P}.tar.bz2 + ${PATCHSET_URI}" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sparc ~x86" +IUSE="-dmalloc hesiod ldap libtirpc mount-locking sasl" + +# USE="sasl" adds SASL support to the LDAP module which will not be build. If +# SASL support should be available, please add "ldap" to the USE flags. +REQUIRED_USE="sasl? ( ldap )" + +# currently, sasl code assumes the presence of kerberosV +RDEPEND=">=sys-apps/util-linux-2.20 + dmalloc? ( dev-libs/dmalloc[threads] ) + hesiod? ( net-dns/hesiod ) + ldap? ( >=net-nds/openldap-2.0 + sasl? ( + dev-libs/cyrus-sasl + dev-libs/libxml2 + virtual/krb5 + ) + ) + libtirpc? ( net-libs/libtirpc )" + +DEPEND="${RDEPEND} + sys-devel/flex + virtual/yacc" + +CONFIG_CHECK="~AUTOFS4_FS" + +PATCHES=( + # Fix for bug #210762 + # Upstream reference: http://thread.gmane.org/gmane.linux.kernel.autofs/4203 + "${FILESDIR}"/${PN}-5.0.3-heimdal.patch + + # Accumulated fixes for bugs + # #154797: Respect CC and CFLAGS + # #253412: Respect LDFLAGS + # #247969: Link order for --as-needed + "${FILESDIR}"/${PN}-5.0.7-respect-user-flags-and-fix-asneeded-r3.patch + + # Upstream reference: http://thread.gmane.org/gmane.linux.kernel.autofs/5371 + "${FILESDIR}"/${PN}-5.0.5-fix-install-deadlink.patch + + "${FILESDIR}"/${P}-add-missing-endif-HAVE_SASL-in-modules-lookup_ldap.c.patch #361899, #468606 + "${FILESDIR}"/${PN}-5.0.6-revert-ldap.patch #381315 + "${FILESDIR}"/${PN}-5.0.7-sasl-def.patch #469324 + "${FILESDIR}"/${PN}-5.0.7-libtirpc-link.patch #464120 + "${FILESDIR}"/${PN}-5.0.7-parallel-make.patch + ) + +AUTOTOOLS_IN_SOURCE_BUILD=1 + +src_prepare() { + # Upstream's patchset + if [[ -n ${PATCH_VER} ]]; then + EPATCH_SUFFIX="patch" \ + epatch "${WORKDIR}"/patches + fi + autotools-utils_src_prepare +} + +src_configure() { + # --with-confdir is for bug #361481 + # --with-mapdir is for bug #385113 + # for systemd support (not enabled yet): + # --with-systemd + # --disable-move-mount: requires kernel >=2.6.39 + local myeconfargs=( + --with-confdir=/etc/conf.d + --with-mapdir=/etc/autofs + $(use_with dmalloc) + $(use_with ldap openldap) + $(use_with libtirpc) + $(use_with sasl) + $(use_with hesiod) + $(use_enable mount-locking) + --disable-ext-env + --enable-sloppy-mount # bug #453778 + --enable-forced-shutdown + --enable-ignore-busy + ) + autotools-utils_src_configure +} + +src_install() { + autotools-utils_src_install + + if kernel_is -lt 2 6 30; then + # kernel patches + docinto patches + dodoc patches/${PN}4-2.6.??{,.?{,?}}-v5-update-????????.patch + fi + newinitd "${FILESDIR}"/autofs5.initd autofs + insinto etc/autofs + newins "${FILESDIR}"/autofs5-auto.master auto.master +} + +pkg_postinst() { + if kernel_is -lt 2 6 30; then + elog "This version of ${PN} requires a kernel with autofs4 supporting" + elog "protocol version 5.00. Patches for kernels older than 2.6.30 have" + elog "been installed into" + elog "${EROOT}usr/share/doc/${P}/patches." + elog "For further instructions how to patch the kernel, please refer to" + elog "${EROOT}usr/share/doc/${P}/INSTALL." + elog + fi + elog "If you plan on using autofs for automounting remote NFS mounts," + elog "please check that both portmap (or rpcbind) and rpc.statd/lockd" + elog "are running." +} diff --git a/net-fs/autofs/autofs-9999.ebuild b/net-fs/autofs/autofs-9999.ebuild index 10a1f05d0ce5..538044a96563 100644 --- a/net-fs/autofs/autofs-9999.ebuild +++ b/net-fs/autofs/autofs-9999.ebuild @@ -1,6 +1,6 @@ # Copyright 1999-2013 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/net-fs/autofs/autofs-9999.ebuild,v 1.2 2013/06/13 15:03:59 robbat2 Exp $ +# $Header: /var/cvsroot/gentoo-x86/net-fs/autofs/autofs-9999.ebuild,v 1.3 2013/07/30 07:31:20 maksbotan Exp $ EAPI=5 @@ -24,6 +24,7 @@ REQUIRED_USE="sasl? ( ldap )" # currently, sasl code assumes the presence of kerberosV RDEPEND=">=sys-apps/util-linux-2.20 + dmalloc? ( dev-libs/dmalloc[threads] ) hesiod? ( net-dns/hesiod ) ldap? ( >=net-nds/openldap-2.0 sasl? ( @@ -40,11 +41,6 @@ DEPEND="${RDEPEND} CONFIG_CHECK="~AUTOFS4_FS" -src_prepare() { - epatch_user - autotools-utils_src_prepare -} - src_configure() { # --with-confdir is for bug #361481 # --with-mapdir is for bug #385113 @@ -62,12 +58,16 @@ src_configure() { $(use_enable mount-locking) --disable-ext-env --enable-sloppy-mount - --enable-forced-shutdown + --enable-force-shutdown --enable-ignore-busy ) autotools-utils_src_configure } +src_compile() { + autotools-utils_src_compile DONTSTRIP=1 +} + src_install() { autotools-utils_src_install diff --git a/net-fs/autofs/files/autofs-5.0.7-libtirpc-link.patch b/net-fs/autofs/files/autofs-5.0.7-libtirpc-link.patch new file mode 100644 index 000000000000..92143f1d3066 --- /dev/null +++ b/net-fs/autofs/files/autofs-5.0.7-libtirpc-link.patch @@ -0,0 +1,10 @@ +diff --git a/modules/Makefile b/modules/Makefile +index 4ecbd6a..6a17540 100644 +--- a/modules/Makefile ++++ b/modules/Makefile +@@ -114,4 +114,4 @@ lookup_ldap.so: lookup_ldap.c dclist.o base64.o $(SASL_OBJ) + + mount_nfs.so: mount_nfs.c replicated.o + $(CC) $(LDFLAGS) $(SOLDFLAGS) $(CFLAGS) -o mount_nfs.so \ +- mount_nfs.c replicated.o $(AUTOFS_LIB) $(LIBNSL) ++ mount_nfs.c replicated.o $(AUTOFS_LIB) $(LIBNSL) $(TIRPCLIB) diff --git a/net-fs/autofs/files/autofs-5.0.7-parallel-make.patch b/net-fs/autofs/files/autofs-5.0.7-parallel-make.patch new file mode 100644 index 000000000000..f510f8fa2015 --- /dev/null +++ b/net-fs/autofs/files/autofs-5.0.7-parallel-make.patch @@ -0,0 +1,48 @@ +From ed85b855e1bcdb814b3dca7f6c768b86e6353fe7 Mon Sep 17 00:00:00 2001 +From: "Lan Yixun (dlan)" <dennis.yxun@gmail.com> +Date: Thu, 25 Jul 2013 10:04:23 +0800 +Subject: [PATCH] fix occasional build error when enable parallel compiling + +the problem here we pass "-jX" ( X> 1) to "make", and "rpc_subs.c" +occasionally fail to compile due to it can't find "mount.h", +the root cause it that "mount.h" haven't generated by that time, +add this patch should fix this problem. +to make rpc_subs.o explicitly depend on "mount.h". + +--- +error message: + +x86_64-pc-linux-gnu-gcc -O2 -pipe -march=core2 -D_REENTRANT +-D_FILE_OFFSET_BITS=64 -I/usr/include/tirp c -D_REENTRANT +-D_FILE_OFFSET_BITS=64 -I/usr/include/tirpc -I../include -fPIC +-D_GNU_SOURCE -DAUTOFS_MA P_DIR=\"/etc/autofs\" +-DAUTOFS_CONF_DIR=\"/etc/conf.d\" -c rpc_subs.c +rpc_subs.c:46:19: fatal error: mount.h: No such file or directory + #include "mount.h" + ^ +compilation terminated. +make[1]: *** [rpc_subs.o] Error 1 +make[1]: *** Waiting for unfinished +jobs.... + +Signed-off-by: Lan Yixun (dlan) <dennis.yxun@gmail.com> +--- + lib/Makefile | 2 ++ + 1 file changed, 2 insertions(+) + +diff --git a/lib/Makefile b/lib/Makefile +index 5418009..314779b 100644 +--- a/lib/Makefile ++++ b/lib/Makefile +@@ -70,6 +70,8 @@ nss_tok.o: nss_tok.c nss_parse.tab.h + + nss_parse.tab.o: nss_parse.tab.c nss_parse.tab.h + ++rpc_subs.o: mount.h ++ + install: all + + clean: +-- +1.8.3.2 + diff --git a/net-fs/autofs/files/autofs-5.0.7-respect-user-flags-and-fix-asneeded-r3.patch b/net-fs/autofs/files/autofs-5.0.7-respect-user-flags-and-fix-asneeded-r3.patch new file mode 100644 index 000000000000..c12d4bbe2b17 --- /dev/null +++ b/net-fs/autofs/files/autofs-5.0.7-respect-user-flags-and-fix-asneeded-r3.patch @@ -0,0 +1,144 @@ +--- a/Makefile.conf.in ++++ b/Makefile.conf.in +@@ -100,3 +100,6 @@ initdir = @initdir@ + + # Location of systemd unit files + systemddir = @systemddir@ ++ ++# Use the compiler determined by configure ++CC := @CC@ +--- a/Makefile.rules ++++ b/Makefile.rules +@@ -16,44 +16,30 @@ INSTALLROOT = $(DESTDIR) + AUTOFS_LIB = ../lib/autofs.a + + # Compilers, linkers and flags +-# The STRIP defined here *must not* remove any dynamic-loading symbols +- + ifdef DMALLOCLIB + DEBUG=1 + endif + + ifdef DEBUG + CFLAGS ?= -g -Wall -DDEBUG +-LDFLAGS = -g +-STRIP = : + else +-ifdef DONTSTRIP + CFLAGS ?= -O2 -g +-LDFLAGS = -g +-STRIP = : +-else +-CFLAGS ?= -O2 -Wall +-LDFLAGS = -s +-STRIP = strip --strip-debug +-endif + endif ++AUTOFS_LDFLAGS = -g + +-CC = gcc +-CXX = g++ + CXXFLAGS = $(CFLAGS) + LD = ld + SOLDFLAGS = -shared + + CFLAGS += -D_REENTRANT -D_FILE_OFFSET_BITS=64 +-LDFLAGS += -lpthread + + ifdef TIRPCLIB + CFLAGS += -I/usr/include/tirpc +-LDFLAGS += $(TIRPCLIB) ++AUTOFS_LDFLAGS += $(TIRPCLIB) + endif + + ifdef DMALLOCLIB +-LDFLAGS += $(DMALLOCLIB) ++AUTOFS_LDFLAGS += $(DMALLOCLIB) + endif + + ifdef SASL +@@ -71,5 +57,4 @@ endif + $(CC) $(CFLAGS) -S $< + + .c.so: +- $(CC) $(SOLDFLAGS) $(CFLAGS) -o $*.so $< $(AUTOFS_LIB) $(DMALLOCLIB) $(LIBNSL) +- $(STRIP) $*.so ++ $(CC) $(LDFLAGS) $(SOLDFLAGS) $(CFLAGS) -o $*.so $< $(AUTOFS_LIB) $(DMALLOCLIB) $(LIBNSL) +--- a/configure.in ++++ b/configure.in +@@ -183,7 +183,7 @@ AC_ARG_WITH(hesiod, + : Search for Hesiod in normal directory path + else + : Search for Hesiod in specific directory +- LDFLAGS="$LDFLAGS -L${withval}/lib" ++ LDFLAGS="$LDFLAGS -Wl,--no-as-needed -L${withval}/lib" + LIBHESIOD="-L${withval}/lib" + HESIOD_FLAGS="-I${withval}/include" + fi +--- a/daemon/Makefile ++++ b/daemon/Makefile +@@ -20,7 +20,7 @@ CFLAGS += -DAUTOFS_FIFO_DIR=\"$(autofsfi + CFLAGS += -DAUTOFS_FLAG_DIR=\"$(autofsflagdir)\" + CFLAGS += -DVERSION_STRING=\"$(version)\" + LDFLAGS += -rdynamic +-LIBS = -ldl ++LIBS += -ldl -lpthread + + ifeq ($(LDAP), 1) + CFLAGS += $(XML_FLAGS) +@@ -30,8 +30,7 @@ endif + all: automount + + automount: $(OBJS) $(AUTOFS_LIB) +- $(CC) $(LDFLAGS) $(DAEMON_LDFLAGS) -o automount $(OBJS) $(AUTOFS_LIB) $(LIBS) +- $(STRIP) automount ++ $(CC) $(AUTOFS_LDFLAGS) $(DAEMON_LDFLAGS) $(LDFLAGS) -o automount $(OBJS) $(AUTOFS_LIB) $(LIBS) + + clean: + rm -f *.o *.s *~ automount +--- a/lib/Makefile ++++ b/lib/Makefile +@@ -41,14 +41,12 @@ mount_clnt.c: mount.h + + mount_clnt.o: mount_clnt.c + $(CC) $(CFLAGS) -o mount_clnt.o -c mount_clnt.c +- $(STRIP) mount_clnt.o + + mount_xdr.c: mount.h + $(RPCGEN) -c -o mount_xdr.c mount.x + + mount_xdr.o: mount_xdr.c + $(CC) $(CFLAGS) -Wno-unused-variable -o mount_xdr.o -c mount_xdr.c +- $(STRIP) mount_xdr.o + + master_tok.c: master_tok.l + $(LEX) -o$@ -Pmaster_ $? +--- a/modules/Makefile ++++ b/modules/Makefile +@@ -87,9 +87,8 @@ endif + # Ad hoc compilation rules for modules which need auxilliary libraries + # + lookup_hesiod.so: lookup_hesiod.c +- $(CC) $(SOLDFLAGS) $(CFLAGS) $(HESIOD_FLAGS) -o lookup_hesiod.so \ ++ $(CC) $(LDFLAGS) $(SOLDFLAGS) $(CFLAGS) $(HESIOD_FLAGS) -o lookup_hesiod.so \ + lookup_hesiod.c $(AUTOFS_LIB) $(LIBHESIOD) $(LIBRESOLV) +- $(STRIP) lookup_hesiod.so + + cyrus-sasl.o: cyrus-sasl.c + $(CC) $(CFLAGS) $(LDAP_FLAGS) -c $< +@@ -98,13 +97,10 @@ cyrus-sasl-extern.o: cyrus-sasl-extern.c + $(CC) $(CFLAGS) $(LDAP_FLAGS) -c $< + + lookup_ldap.so: lookup_ldap.c dclist.o base64.o $(SASL_OBJ) +- $(CC) $(SOLDFLAGS) $(CFLAGS) $(LDAP_FLAGS) -o lookup_ldap.so \ ++ $(CC) $(LDFLAGS) $(SOLDFLAGS) $(CFLAGS) $(LDAP_FLAGS) -o lookup_ldap.so \ + lookup_ldap.c dclist.o base64.o $(SASL_OBJ) \ + $(AUTOFS_LIB) $(LIBLDAP) $(LIBRESOLV) +- $(STRIP) lookup_ldap.so + + mount_nfs.so: mount_nfs.c replicated.o +- $(CC) $(SOLDFLAGS) $(CFLAGS) -o mount_nfs.so \ ++ $(CC) $(LDFLAGS) $(SOLDFLAGS) $(CFLAGS) -o mount_nfs.so \ + mount_nfs.c replicated.o $(AUTOFS_LIB) $(LIBNSL) +- $(STRIP) mount_nfs.so +- |