From unknown Mon Aug 18 14:22:48 2025 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) Content-Type: text/plain; charset=utf-8 From: bug#42031 <42031@debbugs.gnu.org> To: bug#42031 <42031@debbugs.gnu.org> Subject: Status: [PATCH] gnu: Add autofs. Reply-To: bug#42031 <42031@debbugs.gnu.org> Date: Mon, 18 Aug 2025 21:22:48 +0000 retitle 42031 [PATCH] gnu: Add autofs. reassign 42031 guix-patches submitter 42031 Oleg Pykhalov severity 42031 normal tag 42031 patch thanks From debbugs-submit-bounces@debbugs.gnu.org Wed Jun 24 11:56:24 2020 Received: (at submit) by debbugs.gnu.org; 24 Jun 2020 15:56:24 +0000 Received: from localhost ([127.0.0.1]:38730 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jo7lA-0006Xu-2I for submit@debbugs.gnu.org; Wed, 24 Jun 2020 11:56:24 -0400 Received: from lists.gnu.org ([209.51.188.17]:51536) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jo7l7-0006Xl-9O for submit@debbugs.gnu.org; Wed, 24 Jun 2020 11:56:23 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:37448) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jo7l7-00030D-0L for guix-patches@gnu.org; Wed, 24 Jun 2020 11:56:21 -0400 Received: from mail-lj1-x232.google.com ([2a00:1450:4864:20::232]:35743) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1jo7l5-0003Lt-33 for guix-patches@gnu.org; Wed, 24 Jun 2020 11:56:20 -0400 Received: by mail-lj1-x232.google.com with SMTP id q19so3142368lji.2 for ; Wed, 24 Jun 2020 08:56:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=R2rTouI/GKL6rvAFZEAtznZHovEyoLhVAzvvLMyyXJo=; b=qD9xWg0c7JJ1CKR7bUhTB6SXxeD0b1I6mWoRH3OMOIz+hVkTZBMUi937QzdAQcvH7E OtVyvVzzBSEUv5tQP6r+PdOCv/k5yy9Bf4xNk+i29dyRmMsLTUcNdh193/+MW3IUg9+B QVZeiy+niRKUb9kO27ufAhJH1NhqrSG3an1LDWrm/w2fVH095vBHxJFDcFPMl21TW7Yx /CMl6YwelfBVCK5V1U0hGkbo5kzIFDoL9bLNWGn1rcxbawdICqoPDuxGU52aE5HtME67 hCE1cB7cMwLXXHl/LDEXhK1iE+XkHQ35BY/WMRbOTroGCsPayKGmKoGo+XZua9SlZOLv /3iQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=R2rTouI/GKL6rvAFZEAtznZHovEyoLhVAzvvLMyyXJo=; b=Q6mwXZYko92AbaFHw80O4qUSXgWgmfuw8DqNqr/1IipbvxnRI9HEcAD6hEymXLKS9I TIz2bHYQ2E/1qx+J8OwpKJjHTYBTXJhYhgjFq88gAttUXPylBPUqR69wUu9rwAV2Pv9V n9bdz88Ao9LNI5SopqdMeTysg7A4o4flmhEP2cixdtholyMFk1usfSOoqBKETmEvQ5JA OKp4Gbt2VnRzMhjWaYWAQ8c5BDEXSzvwU+gwzURYog230KSR6jzGQgzM00wb6/M2HMa4 ApDHzSvUi/6/7kaS0PWQbVEmMBcj8AshuxRuxJNscXoCmuUFwvtwJeMsiNbqWXmp0cQH 2WuQ== X-Gm-Message-State: AOAM533Ffm317lI1B01koY310oQ5cjqyMKva7SRV69raovmF2V7uNXhj DxVNa3R7NgzN7nrGWFN9qpCr3bRR X-Google-Smtp-Source: ABdhPJw47DeTsC+7hM+/HFd+bhkVySg2lOSEJuauogSpx6RUUW9005KlhWU9P08ZWeJFz4b3rICnWg== X-Received: by 2002:a2e:b0fa:: with SMTP id h26mr13801711ljl.148.1593014176566; Wed, 24 Jun 2020 08:56:16 -0700 (PDT) Received: from localhost.localdomain (ppp91-122-98-213.pppoe.avangarddsl.ru. [91.122.98.213]) by smtp.gmail.com with ESMTPSA id a27sm4225426ljn.58.2020.06.24.08.56.15 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 24 Jun 2020 08:56:15 -0700 (PDT) From: Oleg Pykhalov To: guix-patches@gnu.org Subject: [PATCH] gnu: Add autofs. Date: Wed, 24 Jun 2020 18:56:05 +0300 Message-Id: <20200624155605.23002-1-go.wigust@gmail.com> X-Mailer: git-send-email 2.26.2 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Received-SPF: pass client-ip=2a00:1450:4864:20::232; envelope-from=go.wigust@gmail.com; helo=mail-lj1-x232.google.com X-detected-operating-system: by eggs.gnu.org: No matching host in p0f cache. That's all we know. X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=_AUTOLEARN X-Spam_action: no action X-Spam-Score: 0.7 (/) X-Debbugs-Envelope-To: submit Cc: Oleg Pykhalov X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.3 (--) * gnu/packages/file-systems.scm (autofs): New variable. --- gnu/packages/file-systems.scm | 77 +++++++++++++++++++++++++++++++++++ 1 file changed, 77 insertions(+) diff --git a/gnu/packages/file-systems.scm b/gnu/packages/file-systems.scm index dd72152c51..c8d881e542 100644 --- a/gnu/packages/file-systems.scm +++ b/gnu/packages/file-systems.scm @@ -36,6 +36,7 @@ #:use-module (gnu packages acl) #:use-module (gnu packages attr) #:use-module (gnu packages autotools) + #:use-module (gnu packages base) #:use-module (gnu packages bison) #:use-module (gnu packages check) #:use-module (gnu packages compression) @@ -57,6 +58,7 @@ #:use-module (gnu packages python-xyz) #:use-module (gnu packages readline) #:use-module (gnu packages rsync) + #:use-module (gnu packages sssd) #:use-module (gnu packages sqlite) #:use-module (gnu packages tls) #:use-module (gnu packages valgrind) @@ -782,3 +784,78 @@ directory onto a single drive and create FreeDesktop.org Trash specification compatible directories.") (home-page "https://github.com/trapexit/mergerfs-tools") (license license:isc)))) + +(define-public autofs + (package + (name "autofs") + (version "5.1.6") + (source (origin + (method url-fetch) + (uri (string-append + "https://mirrors.edge.kernel.org/pub/linux/daemons/autofs/v" + (version-major version) "/autofs-" version ".tar.xz")) + (sha256 + (base32 + "1vya21mb4izj3khcr3flibv7xc15vvx2v0rjfk5yd31qnzcy7pnx")))) + (build-system gnu-build-system) + (inputs `(("util-linux" ,util-linux) + ("nfs-utils" ,nfs-utils) + ("kmod" ,kmod) + ("e2fsprogs" ,e2fsprogs) + ("sssd" ,sssd) + ("linux-headers" ,linux-libre-headers) + ("libtirpc", libtirpc) + ("binutils" ,binutils) + ("rpcsvc-proto" ,rpcsvc-proto) ;for 'rpcgen' + ("libxml2" ,libxml2))) + (native-inputs + `(("flex" ,flex) + ("bison" ,bison) + ("pkg-config" ,pkg-config))) + (arguments + `(#:tests? #f ; no tests + #:validate-runpath? #f + #:configure-flags '("--enable-force-shutdown" "--with-path=$PATH" + "--enable-ignore-busy") + #:phases + (modify-phases %standard-phases + (add-before 'configure 'pre-configure + (lambda* (#:key inputs outputs #:allow-other-keys) + (setenv "exportsssldir" (string-append (assoc-ref inputs "sssd") + "/lib/sssd/modules")) + (setenv "HAVE_SSS_AUTOFS" "1") + (setenv "YACC" (string-append (assoc-ref inputs "bison") + "/bin/yacc")) + (setenv "RANLIB" (string-append (assoc-ref inputs "binutils") + "/bin/ranlib")) + (setenv "RPCGEN" (string-append (assoc-ref inputs "rpcsvc-proto") + "/bin/rpcgen")) + (setenv "LEX" (string-append (assoc-ref inputs "flex") + "/bin/flex")) + (setenv "MOUNT" (string-append (assoc-ref inputs "util-linux") + "/bin/mount")) + (setenv "MOUNT_NFS" (string-append (assoc-ref inputs "nfs-utils") + "/sbin/mount.nfs")) + (setenv "UMOUNT" (string-append (assoc-ref inputs "util-linux") + "/bin/umount")) + (setenv "MODPROBE" (string-append (assoc-ref inputs "kmod") + "/bin/modprobe")) + (setenv "E2FSCK" (string-append (assoc-ref inputs "e2fsprogs") + "/sbin/fsck.ext2")) + (setenv "E3FSCK" (string-append (assoc-ref inputs "e2fsprogs") + "/sbin/fsck.ext3")) + (setenv "E4FSCK" (string-append (assoc-ref inputs "e2fsprogs") + "/sbin/fsck.ext4")) + ;; Allow & co. to be found. + (setenv "CPATH" (string-append (assoc-ref inputs "libtirpc") + "/include/tirpc")) + ;; Makefile.rules defines a usable STRIP only without the env var. + (unsetenv "STRIP") + #t))))) + (home-page "https://www.kernel.org/pub/linux/daemons/autofs/") + (synopsis "Kernel-based automounter") + (description "Autofs controls the operation of the automount daemons. The +automount daemons automatically mount filesystems when they are used and +unmount them after a period of inactivity. This is done based on a set of +pre-configured maps.") + (license license:gpl2))) -- 2.26.2 From debbugs-submit-bounces@debbugs.gnu.org Thu Jun 25 06:12:28 2020 Received: (at control) by debbugs.gnu.org; 25 Jun 2020 10:12:28 +0000 Received: from localhost ([127.0.0.1]:39736 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1joOrs-0001on-CY for submit@debbugs.gnu.org; Thu, 25 Jun 2020 06:12:28 -0400 Received: from eggs.gnu.org ([209.51.188.92]:46558) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1joOrq-0001oY-Gi for control@debbugs.gnu.org; Thu, 25 Jun 2020 06:12:26 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:37501) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1joOrl-0003Qk-BQ for control@debbugs.gnu.org; Thu, 25 Jun 2020 06:12:21 -0400 Received: from [2a01:e0a:1d:7270:af76:b9b:ca24:c465] (port=33710 helo=ribbon) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1joOrk-0006Ql-84 for control@debbugs.gnu.org; Thu, 25 Jun 2020 06:12:20 -0400 Date: Thu, 25 Jun 2020 12:12:18 +0200 Message-Id: <87zh8rsbct.fsf@gnu.org> To: control@debbugs.gnu.org From: =?utf-8?Q?Ludovic_Court=C3=A8s?= Subject: control message for bug #42031 MIME-version: 1.0 Content-type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) merge 42031 42033 quit From debbugs-submit-bounces@debbugs.gnu.org Thu Jun 25 06:13:05 2020 Received: (at 42031) by debbugs.gnu.org; 25 Jun 2020 10:13:05 +0000 Received: from localhost ([127.0.0.1]:39740 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1joOsT-0001qF-Kx for submit@debbugs.gnu.org; Thu, 25 Jun 2020 06:13:05 -0400 Received: from eggs.gnu.org ([209.51.188.92]:46666) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1joOsR-0001pS-UU for 42031@debbugs.gnu.org; Thu, 25 Jun 2020 06:13:04 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:37527) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1joOsM-0003UG-7Y; Thu, 25 Jun 2020 06:12:58 -0400 Received: from [2a01:e0a:1d:7270:af76:b9b:ca24:c465] (port=33714 helo=ribbon) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1joOsL-0001Kn-Jf; Thu, 25 Jun 2020 06:12:58 -0400 From: =?utf-8?Q?Ludovic_Court=C3=A8s?= To: Oleg Pykhalov , Tobias Geerinckx-Rice Subject: Re: [bug#42031] [PATCH] gnu: Add autofs. References: <20200624155605.23002-1-go.wigust@gmail.com> Date: Thu, 25 Jun 2020 12:12:56 +0200 In-Reply-To: <20200624155605.23002-1-go.wigust@gmail.com> (Oleg Pykhalov's message of "Wed, 24 Jun 2020 18:56:05 +0300") Message-ID: <87v9jfsbbr.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.3 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 42031 Cc: 42031@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) Hey comrades! Since you both submitted a patch adding autofs, I suggest that you review each other=E2=80=99s patch. :-) Ludo=E2=80=99. From debbugs-submit-bounces@debbugs.gnu.org Thu Jun 25 08:27:38 2020 Received: (at 42031) by debbugs.gnu.org; 25 Jun 2020 12:27:38 +0000 Received: from localhost ([127.0.0.1]:39849 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1joQyg-00012i-4f for submit@debbugs.gnu.org; Thu, 25 Jun 2020 08:27:38 -0400 Received: from tobias.gr ([80.241.217.52]:48712) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1joQyd-00012X-IE for 42031@debbugs.gnu.org; Thu, 25 Jun 2020 08:27:37 -0400 Received: by tobias.gr (OpenSMTPD) with ESMTP id 2aea7b49; Thu, 25 Jun 2020 12:27:36 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed; d=tobias.gr; h=from:to:cc :subject:message-id:references:in-reply-to:date:mime-version :content-type; s=2018; i=me@tobias.gr; bh=jahM4sofIivy37Zi2xSNAm BQxfIhyxWQpfOtBH6FGIA=; b=gEhan+SdLAcJkBk8XU4P6uy1rJY/zp2V6CXkbe qTwp1YgqbuhMI7+QsAe2yzStuHlAD8y60FSC+FtGNZpEuPFE/VoiCIcbSxRZ9Qaf q2E34xSOoFcsttEbHbhJ4f0pXyNL530PFgRfWkF4vWc9VZA6tlQbvlmQ6u/ndf4b bWZ1X7g9AAzVEel0fKKtelaJIJus1AV5CZrOAgQLTFgdCzNipG6YPOBeBFZ34zC1 qtd9Ikc8T/t7zV7w8ZsnUMGLZJrMKcx4fL2PxKZyVoj63ZxyfTmyVhjbk+D069C0 2UOxUulbP5ZPHiI5YRQ7LIcWQc9RwvJ0UMyzdKYBEjnktGrQ== Received: by submission.tobias.gr (OpenSMTPD) with ESMTPSA id 3d6b5075 (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256:NO); Thu, 25 Jun 2020 12:27:36 +0000 (UTC) BIMI-Selector: v=BIMI1; s=default; From: Tobias Geerinckx-Rice To: Oleg Pykhalov Subject: Re: [bug#42031] [PATCH] gnu: Add autofs. Message-ID: <875zbg41nu.fsf@nckx> References: <20200624155605.23002-1-go.wigust@gmail.com> In-reply-to: <20200624155605.23002-1-go.wigust@gmail.com> Date: Thu, 25 Jun 2020 14:27:31 +0200 MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha512; protocol="application/pgp-signature" X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 42031 Cc: 42031@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) --=-=-= Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: quoted-printable Oleg, Thank you for the patch! I'm superbly biased[1] but 3 cruel people have insisted we review=20 each others' patches so here you go :-) Oleg told me on #guix that this is basically a straight port from=20 Nix[0]. The Nix package is very=E2=80=A6 not good? There's nothing worth= =20 scavenging. A =E2=80=98reviewed=E2=80=99 version of Oleg's patch ends up=20 identical to mine, but without the SASL support. Oleg Pykhalov =E5=86=99=E9=81=93=EF=BC=9A > * gnu/packages/file-systems.scm (autofs): New variable. > --- > gnu/packages/file-systems.scm | 77=20 > +++++++++++++++++++++++++++++++++++ > 1 file changed, 77 insertions(+) > > diff --git a/gnu/packages/file-systems.scm=20 > b/gnu/packages/file-systems.scm > index dd72152c51..c8d881e542 100644 > --- a/gnu/packages/file-systems.scm > +++ b/gnu/packages/file-systems.scm > @@ -36,6 +36,7 @@ > #:use-module (gnu packages acl) > #:use-module (gnu packages attr) > #:use-module (gnu packages autotools) > + #:use-module (gnu packages base) > #:use-module (gnu packages bison) > #:use-module (gnu packages check) > #:use-module (gnu packages compression) > @@ -57,6 +58,7 @@ > #:use-module (gnu packages python-xyz) > #:use-module (gnu packages readline) > #:use-module (gnu packages rsync) > + #:use-module (gnu packages sssd) > #:use-module (gnu packages sqlite) > #:use-module (gnu packages tls) > #:use-module (gnu packages valgrind) > @@ -782,3 +784,78 @@ directory onto a single drive and create=20 > FreeDesktop.org Trash specification > compatible directories.") > (home-page "https://github.com/trapexit/mergerfs-tools") > (license license:isc)))) > + > +(define-public autofs > + (package > + (name "autofs") > + (version "5.1.6") > + (source (origin > + (method url-fetch) > + (uri (string-append > +=20 > "https://mirrors.edge.kernel.org/pub/linux/daemons/autofs/v" > + (version-major version) "/autofs-" version=20 > ".tar.xz")) > + (sha256 > + (base32 > +=20 > "1vya21mb4izj3khcr3flibv7xc15vvx2v0rjfk5yd31qnzcy7pnx")))) > + (build-system gnu-build-system) > + (inputs `(("util-linux" ,util-linux) > + ("nfs-utils" ,nfs-utils) > + ("kmod" ,kmod) > + ("e2fsprogs" ,e2fsprogs) > + ("sssd" ,sssd) > + ("linux-headers" ,linux-libre-headers) > + ("libtirpc", libtirpc) > + ("binutils" ,binutils) > + ("rpcsvc-proto" ,rpcsvc-proto) ;for 'rpcgen' > + ("libxml2" ,libxml2))) Order *inputs alphabetically. rpcsvc-proto should be native. So would binutils, but including=20 it at all is probably a mistake. linux-libre-headers aren't necessary. Nor is kmod. Sometimes, configure scripts check for things just for fun. > + (native-inputs > + `(("flex" ,flex) > + ("bison" ,bison) > + ("pkg-config" ,pkg-config))) > + (arguments > + `(#:tests? #f ; no tests Despite the =E2=80=98warning: foo not found, disabling the foo tests=E2=80= =99=20 ./configure warnings I didn't find them either. > + #:validate-runpath? #f This is a sign that something is broken & needs to be fixed, not=20 ignored. > + #:configure-flags '("--enable-force-shutdown" INSTALL describes this as: --enable-force-shutdown This option enables the use of the USR1 signal to force an unconditional unlink umount of all mounts at shutdown. Safety aside, I read that as =E2=80=98requires init/service to actually=20 send the signal on shutdown to have any effect=E2=80=99. There's no=20 autofs service that does so yet. I don't have much of an opinion about it. Does anyone think it's=20 useful or unsafe? > "--with-path=3D$PATH" In Nix, everything between ''fun quotes'' is evaluated by a shell.=20 In Guix, unless ./configure does its own eval somewhere (I didn't=20 check), this just sets the path to (literally) "$PATH". > + "--enable-ignore-busy") > + #:phases > + (modify-phases %standard-phases > + (add-before 'configure 'pre-configure > + (lambda* (#:key inputs outputs #:allow-other-keys) > + (setenv "exportsssldir" (string-append (assoc-ref=20 > inputs "sssd") > +=20 > "/lib/sssd/modules")) > + (setenv "HAVE_SSS_AUTOFS" "1") Pass these as #:configure-flags when possible =E2=80=94 it's declarative=C2= =AE. > + (setenv "YACC" (string-append (assoc-ref inputs=20 > "bison") > + "/bin/yacc")) > + (setenv "RANLIB" (string-append (assoc-ref inputs=20 > "binutils") > + "/bin/ranlib")) > + (setenv "RPCGEN" (string-append (assoc-ref inputs=20 > "rpcsvc-proto") > + "/bin/rpcgen")) > + (setenv "LEX" (string-append (assoc-ref inputs=20 > "flex") > + "/bin/flex")) > + (setenv "MOUNT" (string-append (assoc-ref inputs=20 > "util-linux") > + "/bin/mount")) > + (setenv "MOUNT_NFS" (string-append (assoc-ref=20 > inputs "nfs-utils") > +=20 > "/sbin/mount.nfs")) > + (setenv "UMOUNT" (string-append (assoc-ref inputs=20 > "util-linux") > + "/bin/umount")) > + (setenv "MODPROBE" (string-append (assoc-ref=20 > inputs "kmod") > +=20 > "/bin/modprobe")) > + (setenv "E2FSCK" (string-append (assoc-ref inputs=20 > "e2fsprogs") > +=20 > "/sbin/fsck.ext2")) > + (setenv "E3FSCK" (string-append (assoc-ref inputs=20 > "e2fsprogs") > +=20 > "/sbin/fsck.ext3")) > + (setenv "E4FSCK" (string-append (assoc-ref inputs=20 > "e2fsprogs") > +=20 > "/sbin/fsck.ext4")) All of this can be avoided with: + (add-before 'configure 'fix-hard-coded-search-path + (lambda _ + (substitute* "configure" + (("^searchpath=3D\".*\"") + "searchpath=3D\"$PATH\"")) + #t)) allowing the configure script to do the work of finding things. > + ;; Allow & co. to be found. > + (setenv "CPATH" (string-append (assoc-ref inputs=20 > "libtirpc") > + "/include/tirpc")) > + ;; Makefile.rules defines a usable STRIP only=20 > without the env var. > + (unsetenv "STRIP") > + #t))))) Here too: I don't know if you simply copied these from Nix[0]=20 because they were there, or if you encountered errors without=20 them, but neither should be needed. I suspect STRIP is only=20 needed because of the bogus binutils input above, if at all. > + (home-page=20 > "https://www.kernel.org/pub/linux/daemons/autofs/") > + (synopsis "Kernel-based automounter") Which kernel? ;-) > + (description "Autofs controls the operation of the=20 > automount daemons. The > +automount daemons automatically mount filesystems when they are=20 > used and > +unmount them after a period of inactivity. This is done based=20 > on a set of > +pre-configured maps.") The first sentence describes the autofs *command*. > + (license license:gpl2))) Kind regards, T G-R [0]:=20 https://github.com/NixOS/nixpkgs/blob/84cf00f98031e93f389f1eb93c4a7374a33cc= 0a9/pkgs/os-specific/linux/autofs/default.nix [1]: https://issues.guix.gnu.org/42033 --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iHUEARYKAB0WIQT12iAyS4c9C3o4dnINsP+IT1VteQUCXvSYMwAKCRANsP+IT1Vt ecBmAP0fMlTaLJQZ2jLsQN3K343EpBEWBwlbjZQu8rUhrkDGXQD9GQYYRgq2YTrN LldJ72sN5fmiBhixlH4Pp/LLmVe9iAg= =uvqd -----END PGP SIGNATURE----- --=-=-=-- From debbugs-submit-bounces@debbugs.gnu.org Thu Jun 25 08:28:39 2020 Received: (at control) by debbugs.gnu.org; 25 Jun 2020 12:28:39 +0000 Received: from localhost ([127.0.0.1]:39854 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1joQzf-00014N-Ki for submit@debbugs.gnu.org; Thu, 25 Jun 2020 08:28:39 -0400 Received: from tobias.gr ([80.241.217.52]:48740) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1joQzd-00014F-Dm for control@debbugs.gnu.org; Thu, 25 Jun 2020 08:28:37 -0400 Received: by tobias.gr (OpenSMTPD) with ESMTP id 06d4f732 for ; Thu, 25 Jun 2020 12:28:39 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed; d=tobias.gr; h=from:to :date:message-id:mime-version:content-type; s=2018; i= me@tobias.gr; bh=s/cvITX9UYrTpaNZl9TUNAydpB34qWKLz85cPBdY4dg=; b= bxokCEcaYV62fj2ZiED0tKUM3iMMpp6Gr/wHcM+5SIARwvXeDucrBIywJ+CPrSLE TRPBpM+rczMOqY1QPI1nZbs/cY8hLtOuUsZgsgHRnJedDhp2IV701vZqo7LrIXTo pZTpDyeve/1UOOPP6D7mPnizhTbDO9FlzwZsrlpx78TlZZciLzkXlvk39MjMfVCh kE1XsMdkCFrh2ALy2oJsiEBbLJC3MmTvs6Es/8eSnrzq0iE8SOdu2kW8VrU7jI+x oHgn6VV0SdIVF93M6M2eulbWZT25CbW/snCvX1ljOU6gKrRKZtXKPq3YVaCgcCwp y5ce5mxFtxj+kcLhJVSkNw== Received: by submission.tobias.gr (OpenSMTPD) with ESMTPSA id eb75ebde (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256:NO) for ; Thu, 25 Jun 2020 12:28:39 +0000 (UTC) BIMI-Selector: v=BIMI1; s=default; From: Tobias Geerinckx-Rice To: control@debbugs.gnu.org Date: Thu, 25 Jun 2020 14:28:35 +0200 Message-ID: <87eeq3ba8c.fsf@nckx> MIME-Version: 1.0 Content-Type: text/plain; format=flowed X-Spam-Score: -0.3 (/) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.3 (-) merge 42031 42033 From debbugs-submit-bounces@debbugs.gnu.org Thu Jun 25 15:59:34 2020 Received: (at 42031) by debbugs.gnu.org; 25 Jun 2020 19:59:34 +0000 Received: from localhost ([127.0.0.1]:41214 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1joY22-0000OP-0Z for submit@debbugs.gnu.org; Thu, 25 Jun 2020 15:59:34 -0400 Received: from mail-lj1-f195.google.com ([209.85.208.195]:40776) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1joY1z-0000OB-0L for 42031@debbugs.gnu.org; Thu, 25 Jun 2020 15:59:32 -0400 Received: by mail-lj1-f195.google.com with SMTP id n23so7901881ljh.7 for <42031@debbugs.gnu.org>; Thu, 25 Jun 2020 12:59:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version; bh=5MwVNGKoQYUzSQ+l92jAj+b5a19eMLhq5Tfgf3jpays=; b=Lbqexw/x6BrfqT8lHyiyVQNPLpbBTinXSWTHNP0kJpw+/j4RV2YQvVehmZq3lMBdZc 8pPpuT+0EovbPXtQLZ4g5UIBLk0WV8jP9YzosACupA0I/OilCgkSMxx86wFaUF39x4F+ MK4C8mHpycz3/vL9CPQn3ZFL1PL/QNGbfqsfwsPqKgvBPveiBKYA6t9p0M6z9wNzqqZP TqOaUXkcY5yJz/3CSKd/db946S3quLrHkn5BkyMWYDQylYBr0PMBgE3yLyELeLrQrNI6 sW2VRpFqxuk42SfgXZX2jU0vY5+QGdZ1oTDkksb9PpZNMr4TUbGj/QYXlz+nrPQgLM3v CD7Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:references:date:in-reply-to :message-id:user-agent:mime-version; bh=5MwVNGKoQYUzSQ+l92jAj+b5a19eMLhq5Tfgf3jpays=; b=RjFvhJrT7ND4JGS6RngBZXXRXKopJaapboZbJI0FalYFGftxoUJ8S7SulCGNTZGSr2 CuCMC63Gqhdga5AEq3yHrl7tKeeYSZFDV8/qh9AeHPFNWwBkE38wxbS6GL2yf/lPkLkS nq3QCnKmZoMnTHBI6LoSiTjHAKhPNNMfdObyPQhSC2WLXmx8RRbVIOBUHT5kGEZGlKMm wlkAvu0ctFcmVnR+9w+19Bzo3BxkrEWX5o9rOiIDJa20DJg4ndiM3XlfQsoAAvpZt6AA ZMUA1sLgw6z+MhOIw5nHGMCys3ooHJUBBsO4uloJmQV0j8lqtUNKTxr9pt5rc4n7fYHH uh9Q== X-Gm-Message-State: AOAM532QzMa+0o3U1NYrpamM9ykHGhPbkg0RKBDcoSnlWea5jnEG/zQ+ hpBF66LVgvhbp4YUe6r8Q12EbdHPlHc= X-Google-Smtp-Source: ABdhPJyzpLjbVdy8m4UCZ49Pl0ZKTSQGXQDr48mKKlx05lig2FqwTz0/Gu+FDqT4L7PsiyslYjQXCw== X-Received: by 2002:a2e:a16d:: with SMTP id u13mr18002679ljl.362.1593115164147; Thu, 25 Jun 2020 12:59:24 -0700 (PDT) Received: from guixsd (ppp91-122-98-213.pppoe.avangarddsl.ru. [91.122.98.213]) by smtp.gmail.com with ESMTPSA id z13sm6172510lfd.7.2020.06.25.12.59.22 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 25 Jun 2020 12:59:23 -0700 (PDT) From: Oleg Pykhalov To: Tobias Geerinckx-Rice Subject: Re: [bug#42031] [PATCH] gnu: Add autofs. References: <20200624155605.23002-1-go.wigust@gmail.com> <875zbg41nu.fsf@nckx> Date: Thu, 25 Jun 2020 22:59:20 +0300 In-Reply-To: <875zbg41nu.fsf@nckx> (Tobias Geerinckx-Rice's message of "Thu, 25 Jun 2020 14:27:31 +0200") Message-ID: <87h7uyq5lz.fsf@gmail.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.3 (gnu/linux) MIME-Version: 1.0 Content-Type: multipart/signed; boundary="==-=-="; micalg=pgp-sha512; protocol="application/pgp-signature" X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 42031 Cc: 42031@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) --==-=-= Content-Type: multipart/mixed; boundary="=-=-=" --=-=-= Content-Type: text/plain Hi, Your patch looks good for me except minor: --=-=-= Content-Type: text/x-patch Content-Disposition: inline Content-Description: sddm diff --git a/gnu/packages/file-systems.scm b/gnu/packages/file-systems.scm index 7c3a19305f..0d62e64bf0 100644 --- a/gnu/packages/file-systems.scm +++ b/gnu/packages/file-systems.scm @@ -59,6 +59,7 @@ #:use-module (gnu packages python) #:use-module (gnu packages python-xyz) #:use-module (gnu packages readline) + #:use-module (gnu packages sssd) #:use-module (gnu packages rsync) #:use-module (gnu packages sqlite) #:use-module (gnu packages tls) --=-=-= Content-Type: text/plain I've tested your autofs recipe with my ext4 flash drive and sshfs. Both works great. I think you could go a head with merging your cleaner recipe. Oleg. --=-=-=-- --==-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAEBCgAdFiEEcjhxI46s62NFSFhXFn+OpQAa+pwFAl71AhgACgkQFn+OpQAa +pxTRQ//aVBs/HJeepXwWzMj800GumTWZX8AcXHLEmHX6YTuP+yBlo7vOnOWMK58 AChGRENOAPoiVbjWAoh0zRrdXwfcS0a2KKAnWESehSVHgq67iGKE4qGqqIHE62yJ Q/eVtG8zhmyLsBybJkakyz+7urWEH69Pc2t4QISlqJN9V2F38VhLwF4W34i3hmu0 WqdideRrgo36LuZhMCcMDI5B3OuXbFVdUfLhi08GRzfCL/44qNekDQl02NQUjqDZ i9hawJr+l4c29dWnZhJYfpCYZ2QvvRWXwqOo+sunb2s8GJboVMKXMsQD1+yrSev0 Tv32/XJplR2CF9YDARgKnuXHYIxm/avyVIQzYx7SKPRTGpyIXe6LYwp1XutL8Y65 tv0zdZfAnOAHSl/7VRcjLwR9QDrDc+zVhlGzGyHFCmyYflfnZRRTWMP7oT7AXhES u9lzoT/zJcBAB1nWUcMjm1SKYChcmqxvG07NMt8syPeUqxxhSres8CW/SouF5Nf1 prfKd1LLXaRPM2YOTgue3BhlFHiv5twLtuj/ExzjYhoUdwt5iNwEyFF/bPg9Lbj5 kTRaS6S0f0zfzIE1slB1h/PpSsfcAnLAqIzdrGN99adsdWRgI/gXIjtpFSODqjmG H600JVWQSK4ehFvJI5TgoIBxc+eTyonXUb334BoypHXFh9PkPJw= =zJ/A -----END PGP SIGNATURE----- --==-=-=-- From debbugs-submit-bounces@debbugs.gnu.org Sun Jun 28 05:40:38 2020 Received: (at 42031-done) by debbugs.gnu.org; 28 Jun 2020 09:40:38 +0000 Received: from localhost ([127.0.0.1]:45251 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jpTni-0001O7-Lp for submit@debbugs.gnu.org; Sun, 28 Jun 2020 05:40:38 -0400 Received: from tobias.gr ([80.241.217.52]:47950) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jpTnh-0001Nz-8G for 42031-done@debbugs.gnu.org; Sun, 28 Jun 2020 05:40:37 -0400 Received: by tobias.gr (OpenSMTPD) with ESMTP id 96281b33; Sun, 28 Jun 2020 09:40:39 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed; d=tobias.gr; h=from:to:cc :subject:references:in-reply-to:date:message-id:mime-version :content-type; s=2018; i=me@tobias.gr; bh=xwD4974ptpdzN2ZkghF0s4 lJW1XBRC5q98es8lXdTCw=; b=agNFaPcDLEW0f+Iz0ODEplo3sxSBTJoL+9fe5h Rac+0rMVjkZDGfw1y8I1Z02hM0unK+Ka5fd7roc5YxfUoHWQsiMm9hWmbLsj4O8F 8DYlfyoUOhXuukNJo+H5MxJ37irXRKaNDSy070Qh4wV40IUNzXobNVsBDLAqLww/ 5EB4KWn3P7e8SYqd3AlPt1h3h0gWI47hudQHJjyIpguv7PS5KXK36DO2bJf2iFrU u5trHxMk4zyBAQi5upQJIX37/I4pAb+hBHnevnRu8l+lhPFyohSYwEpKklrxU/va O/0qk/yICw5x/WJBtW4Se2XmCA655lVQ1vWcKRCt3OYKqsmw== Received: by submission.tobias.gr (OpenSMTPD) with ESMTPSA id da64b3dd (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256:NO); Sun, 28 Jun 2020 09:40:39 +0000 (UTC) BIMI-Selector: v=BIMI1; s=default; From: Tobias Geerinckx-Rice To: Oleg Pykhalov Subject: Re: [bug#42031] [PATCH] gnu: Add autofs. References: <20200624155605.23002-1-go.wigust@gmail.com> <875zbg41nu.fsf@nckx> <87h7uyq5lz.fsf@gmail.com> In-reply-to: <87h7uyq5lz.fsf@gmail.com> Date: Sun, 28 Jun 2020 11:40:34 +0200 Message-ID: <87tuyvr0j1.fsf@nckx> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha512; protocol="application/pgp-signature" X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 42031-done Cc: 42031-done@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) --=-=-= Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: quoted-printable Oleg, Oleg Pykhalov =E5=86=99=E9=81=93=EF=BC=9A > Hi, > > Your patch looks good for me except minor: Thanks! Lost in the git dance. > I've tested your autofs recipe with my ext4 flash drive and=20 > sshfs. Both > works great. I think you could go a head with merging your=20 > cleaner > recipe. Pushed as 5c10200b5499826a2e430a46fdb664d269857278! Kind regards, T G-R --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iHUEARYKAB0WIQT12iAyS4c9C3o4dnINsP+IT1VteQUCXvhlkgAKCRANsP+IT1Vt eR7pAQDCpLAF+ZAP1VrUVBcelVymBxekHDosT2IGP2Ma462dvAD/fgz/c8oge0tB 8mVmpNbKpyb3KT/nRJV3ubx1X/gVbg8= =O+vI -----END PGP SIGNATURE----- --=-=-=-- From unknown Mon Aug 18 14:22:48 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Sun, 26 Jul 2020 11:24:04 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator