From owner-freebsd-stable@freebsd.org Mon Jan 11 15:28:57 2016 Return-Path: Delivered-To: freebsd-stable@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 6BA84A6A8A8 for ; Mon, 11 Jan 2016 15:28:57 +0000 (UTC) (envelope-from david@catwhisker.org) Received: from mailman.ysv.freebsd.org (mailman.ysv.freebsd.org [IPv6:2001:1900:2254:206a::50:5]) by mx1.freebsd.org (Postfix) with ESMTP id 57B68162E for ; Mon, 11 Jan 2016 15:28:57 +0000 (UTC) (envelope-from david@catwhisker.org) Received: by mailman.ysv.freebsd.org (Postfix) id 55829A6A8A7; Mon, 11 Jan 2016 15:28:57 +0000 (UTC) Delivered-To: stable@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 55196A6A8A6 for ; Mon, 11 Jan 2016 15:28:57 +0000 (UTC) (envelope-from david@catwhisker.org) Received: from albert.catwhisker.org (mx.catwhisker.org [198.144.209.73]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 26C8F162C for ; Mon, 11 Jan 2016 15:28:56 +0000 (UTC) (envelope-from david@catwhisker.org) Received: from albert.catwhisker.org (localhost [127.0.0.1]) by albert.catwhisker.org (8.15.2/8.15.2) with ESMTP id u0BFSnHa013959 for ; Mon, 11 Jan 2016 15:28:49 GMT (envelope-from david@albert.catwhisker.org) Received: (from david@localhost) by albert.catwhisker.org (8.15.2/8.15.2/Submit) id u0BFSnKS013958 for stable@freebsd.org; Mon, 11 Jan 2016 07:28:49 -0800 (PST) (envelope-from david) Date: Mon, 11 Jan 2016 07:28:49 -0800 From: David Wolfskill To: stable@freebsd.org Subject: Interaction between make & autofs/automountd Message-ID: <20160111152849.GF1223@albert.catwhisker.org> Reply-To: stable@freebsd.org Mail-Followup-To: stable@freebsd.org MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="ChQOR20MqfxkMJg9" Content-Disposition: inline User-Agent: Mutt/1.5.24 (2015-08-30) X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 11 Jan 2016 15:28:57 -0000 --ChQOR20MqfxkMJg9 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Dating from back when I was building ports on each of the 3 machines on one of my networks using portmaster(8), I have had my ports tree implemented as an SVN working copy that resides on a ReadyNAS, which is thus accessed via NFS. The 3 machines are running "recent" FreEBSD stable/10 (amd64): the build machine is updated daily, and is thus updated to r293654; the other 2 machines are only updated weekly, so they are presently updated to r293620. A couple of the machines use autofs & automountd to make the ports tree available on demand. (In the case of the 3rd, I manually mount it when needed, but that's not at issue for this note, and I won't pursue that further here.) The machines that use autofs do so by using symlinks and the existing maps; e.g.: albert(10.2-S)[7] ls -lT /usr/ports lrwxr-xr-x 1 root wheel 20 Dec 21 04:15:39 2010 /usr/ports -> /net/howla= nd/c/ports albert(10.2-S)[8] cat -n auto_master 1 # $FreeBSD: stable/10/etc/auto_master 283242 2015-05-21 13:42:37Z t= rasz $ 2 # 3 # Automounter master map, see auto_master(5) for details. 4 # 5 /net -hosts -nosuid,intr 6 # When using the -media special map, make sure to edit devd.conf(5) 7 # to move the call to "automount -c" out of the comments section. 8 #/media -media -nosuid 9 #/- -noauto albert(10.2-S)[9]=20 The contents of /etc/autofs are "vanilla" -- I have not changed them. I did modify /etc/auto_master a bit, to remove the "nobrowse" option for -net. For most purposes, including: * svn update * cd to a port directory * Updating files in distfiles * reading arbitrary files in the tree this works well, and there's no indication of any problems or issues. I recently noticed, thiough, that running "portmaster -aF" generates a large number of messages. I was able to narrow this down to portmaster's invocation of (e.g.) * cd /usr/ports/sysutils/dmidecode * make -V PKGNAME The "cd" seems OK; it's the "make -V PKGNAME" -- even if I invoke it by: hand. It works, but at the expense of messages: albert(10.2-S)[4] dirs; date; make -V PKGNAME; date /usr/ports/sysutils/dmidecode=20 Mon Jan 11 07:26:45 PST 2016 dmidecode-3.0 Mon Jan 11 07:26:47 PST 2016 albert(10.2-S)[5]=20 Jan 11 15:26:45 albert automountd[13912]: "/etc/autofs/special_hosts share"= , pid 13913, terminated with exit status 1 Jan 11 15:26:45 albert automountd[13912]: failed to handle special map "-ho= sts" Jan 11 15:26:45 albert kernel: WARNING: autofs_trigger_one: request for /ne= t/ completed with error 5 Jan 11 15:26:46 albert automountd[13915]: "/etc/autofs/special_hosts share"= , pid 13916, terminated with exit status 1 Jan 11 15:26:46 albert automountd[13915]: failed to handle special map "-ho= sts" Jan 11 15:26:46 albert kernel: WARNING: autofs_trigger_one: request for /ne= t/ completed with error 5 Jan 11 15:26:47 albert automountd[13918]: "/etc/autofs/special_hosts share"= , pid 13919, terminated with exit status 1 Jan 11 15:26:47 albert automountd[13918]: failed to handle special map "-ho= sts" Jan 11 15:26:47 albert kernel: WARNING: autofs_trigger_one: request for /ne= t/ completed with error 5 So I'm wondering why make(1) appears to be doing something that causes this -- while nothing else (that I've noticed so far) does. Peace, david --=20 David H. Wolfskill david@catwhisker.org Those who would murder in the name of God or prophet are blasphemous coward= s. See http://www.catwhisker.org/~david/publickey.gpg for my public key. --ChQOR20MqfxkMJg9 Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iQF8BAEBCgBmBQJWk8owXxSAAAAAAC4AKGlzc3Vlci1mcHJAbm90YXRpb25zLm9w ZW5wZ3AuZmlmdGhob3JzZW1hbi5uZXRDQ0I3Q0VGOTE3QTgwMUY0MzA2NEQ3N0Ix NTM5Q0M0MEEwNDlFRTE3AAoJEBU5zECgSe4Xkf4IAIB/6MqNeX8v76evdxG5dVZ1 8jkILx/npJFvynrXg7rbelIvTNwDfSEepnC2yg3PxBqg4faGxhoLNZgoaOkwi6rh zvBKKKPfDLnIr3Ym3Ys/DF2glehp2h9Yo9Mi4EQL3pCWHADvXrf4MvPncmWAANVs /BqWoJ+vBhUiLohTgfiaGk8Np/HnK+ByGYfTFU6Z3VPt8wbPOJxcnNgKQZm9He8Y gzqxEflQHyDFSNglv89iXEIVSVYZi/dI1dXMD6cNA+H950EjK0nA0aXtEEEeX+J3 w/i/Ttzv2Hpqhph3y4UyzM/Ge5DsXw8jX6CMGcTJXGsmRlJroGTrNO8GH/pKcTo= =4DKo -----END PGP SIGNATURE----- --ChQOR20MqfxkMJg9--