From debbugs-submit-bounces@debbugs.gnu.org Sun Dec 20 15:41:08 2020 Received: (at submit) by debbugs.gnu.org; 20 Dec 2020 20:41:09 +0000 Received: from localhost ([127.0.0.1]:45711 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kr5Vs-0004Nr-LJ for submit@debbugs.gnu.org; Sun, 20 Dec 2020 15:41:08 -0500 Received: from lists.gnu.org ([209.51.188.17]:41092) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kr5Vr-0004Nk-5k for submit@debbugs.gnu.org; Sun, 20 Dec 2020 15:41:07 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:56934) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kr5Vq-0007zH-TP for bug-gnu-emacs@gnu.org; Sun, 20 Dec 2020 15:41:06 -0500 Received: from mail.hostpark.net ([212.243.197.30]:52502) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kr5Vp-0001Kp-3b for bug-gnu-emacs@gnu.org; Sun, 20 Dec 2020 15:41:06 -0500 Received: from localhost (localhost [127.0.0.1]) by mail.hostpark.net (Postfix) with ESMTP id 2C73B165C4 for ; Sun, 20 Dec 2020 21:41:03 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=bernoul.li; h= content-type:content-type:mime-version:message-id:date:date :subject:subject:from:from:received:received; s=sel2011a; t= 1608496863; bh=mDXKGw4QFQ80XDMCEJs6v3dPHfKQhJfMq7P95wKN2OA=; b=v CWoUTE/bS0+apa/t2lKcLZ9VcUC/yuRAvnZqM0UoGV1DMJUYUnYNy0iH1R0QLXYS 6DYujy79WcuH79EzPbbVnt1OinOsEmL3iyUSAb5kUfbgHgM1Q7dqaimD0WXNrmjE IfrujipA5geCaKZAfekMuuYP9uGfDNGhX5GmmMEZPA= X-Virus-Scanned: by Hostpark/NetZone Mailprotection at hostpark.net Received: from mail.hostpark.net ([127.0.0.1]) by localhost (mail0.hostpark.net [127.0.0.1]) (amavisd-new, port 10224) with ESMTP id VwHGxvMzJFJ1 for ; Sun, 20 Dec 2020 21:41:03 +0100 (CET) Received: from customer (localhost [127.0.0.1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mail.hostpark.net (Postfix) with ESMTPSA id F3209165BD for ; Sun, 20 Dec 2020 21:41:02 +0100 (CET) From: Jonas Bernoulli To: bug-gnu-emacs@gnu.org Subject: [elpa-archive] :ignored-files is processed to early X-Debbugs-Cc: Stefan Monnier Date: Sun, 20 Dec 2020 21:41:02 +0100 Message-ID: <873600i529.fsf@bernoul.li> MIME-Version: 1.0 Content-Type: text/plain Received-SPF: none client-ip=212.243.197.30; envelope-from=jonas@bernoul.li; helo=mail.hostpark.net X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 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, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, SPF_HELO_NONE=0.001, SPF_NONE=0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: submit 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 (---) Currently it is not possible to move some files out of a directory and then ignore all the remaining files without having to specify each one of them individually. Ignoring the directory overrides and `:renames' that attempt to move some files out of the directory. A second unfortunate effect is that the directory is added to the tarball even though it is empty after moving or removing all files it originally contained. It appears that `:ignored-files' is processes before `:renames' and that that should be changed. From debbugs-submit-bounces@debbugs.gnu.org Sun Dec 20 17:04:39 2020 Received: (at 45346) by debbugs.gnu.org; 20 Dec 2020 22:04:39 +0000 Received: from localhost ([127.0.0.1]:45735 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kr6oh-0006HP-2x for submit@debbugs.gnu.org; Sun, 20 Dec 2020 17:04:39 -0500 Received: from mailscanner.iro.umontreal.ca ([132.204.25.50]:58347) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kr6of-0006HB-3C for 45346@debbugs.gnu.org; Sun, 20 Dec 2020 17:04:38 -0500 Received: from pmg1.iro.umontreal.ca (localhost.localdomain [127.0.0.1]) by pmg1.iro.umontreal.ca (Proxmox) with ESMTP id 88C5C100222; Sun, 20 Dec 2020 17:04:31 -0500 (EST) Received: from mail01.iro.umontreal.ca (unknown [172.31.2.1]) by pmg1.iro.umontreal.ca (Proxmox) with ESMTP id 3F5671000D1; Sun, 20 Dec 2020 17:04:30 -0500 (EST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=iro.umontreal.ca; s=mail; t=1608501870; bh=taxWUGIG7I1qn3osWcELLBF9AkQdjMxpZeTB1oZKRG4=; h=From:To:Cc:Subject:References:Date:In-Reply-To:From; b=MiiS68h8bro/N5a/XasMgfaunPCJUw2P7vnN9aLdBch42XmNq0R5Aw3tPol69av+v p7JxUukVS9+hCxZNgArRAxF4+KnJFrbWJqgmQomdRw5lTceDZ9QGPKG4qNa7EkLOrJ B2t/1ZXHL5qEx2qbPcu0LUpAWrlEyESDjnTI6jZHhcbI2LgZe7orngH7SL+nCp0eFF S43ZLZ+Uu6lYk2FQEoX1L6PqDYKjseznPu1r8rxs6cycjKkDmm45MOQNuNAw7gqnJW PfNnargWuFH1dcW25tYk1etwTQZJF3tXcFAKdS/w2BWv5FoJ+VyaQ1dz5La+vgAJ1G roWDPoCQMJgJA== Received: from alfajor (69-165-136-52.dsl.teksavvy.com [69.165.136.52]) by mail01.iro.umontreal.ca (Postfix) with ESMTPSA id F35B112044D; Sun, 20 Dec 2020 17:04:29 -0500 (EST) From: Stefan Monnier To: Jonas Bernoulli Subject: Re: bug#45346: [elpa-archive] :ignored-files is processed to early Message-ID: References: <873600i529.fsf@bernoul.li> Date: Sun, 20 Dec 2020 17:04:29 -0500 In-Reply-To: <873600i529.fsf@bernoul.li> (Jonas Bernoulli's message of "Sun, 20 Dec 2020 21:41:02 +0100") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-SPAM-INFO: Spam detection results: 0 ALL_TRUSTED -1 Passed through trusted hosts only via SMTP AWL -0.087 Adjusted score from AWL reputation of From: address BAYES_00 -1.9 Bayes spam probability is 0 to 1% DKIM_SIGNED 0.1 Message has a DKIM or DK signature, not necessarily valid DKIM_VALID -0.1 Message has at least one valid DKIM or DK signature DKIM_VALID_AU -0.1 Message has a valid DKIM or DK signature from author's domain X-SPAM-LEVEL: X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 45346 Cc: 45346@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 (---) > It appears that `:ignored-files' is processes before `:renames' and > that that should be changed. Indeed, the renaming is applied last and it's not easy to change that with the approach I use (the renaming is done by `tar` via `--transform`). Maybe I could try and remove the entries after generating the tarball. Hmm... Note, FWIW, I tend to consider that it's OK to keep useless files in the tarball as long as they're not actively harmful (e.g. they triple the size of the tarball), and more generally I think it's best to use `:ignore` and `:renames` with moderation. Stefan From debbugs-submit-bounces@debbugs.gnu.org Mon Dec 21 05:20:41 2020 Received: (at 45346) by debbugs.gnu.org; 21 Dec 2020 10:20:41 +0000 Received: from localhost ([127.0.0.1]:46383 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1krIIz-00082t-Di for submit@debbugs.gnu.org; Mon, 21 Dec 2020 05:20:41 -0500 Received: from mail.hostpark.net ([212.243.197.30]:46178) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1krIIw-00082a-AX for 45346@debbugs.gnu.org; Mon, 21 Dec 2020 05:20:39 -0500 Received: from localhost (localhost [127.0.0.1]) by mail.hostpark.net (Postfix) with ESMTP id A5780160EC; Mon, 21 Dec 2020 11:20:36 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=bernoul.li; h= content-type:content-type:mime-version:message-id:date:date :references:in-reply-to:subject:subject:from:from:received :received; s=sel2011a; t=1608546036; bh=f67xV6o30FlXHR9LIEXsgJoH ozy/Xb9c2iV+iKYTIqQ=; b=AXIy3ujmH8BcfbBpPb1WDgCInLOa1WQDRFXp3Opl XZKXPhwwo/ysa1IMP62cihBLlrjF2oVGpm4VHSRLeR2uadLsHZwyFcjLO88G2zgQ fiJym3fBdaEBjEVjSOXcTYMkD3jfj7WF77IBKn8EQ7PehL7gcy+oZSk4KIRPRKuO dtY= X-Virus-Scanned: by Hostpark/NetZone Mailprotection at hostpark.net Received: from mail.hostpark.net ([127.0.0.1]) by localhost (mail1.hostpark.net [127.0.0.1]) (amavisd-new, port 10224) with ESMTP id j41W0jf0tYPx; Mon, 21 Dec 2020 11:20:36 +0100 (CET) Received: from customer (localhost [127.0.0.1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mail.hostpark.net (Postfix) with ESMTPSA id 6EB0E160DD; Mon, 21 Dec 2020 11:20:36 +0100 (CET) From: Jonas Bernoulli To: Stefan Monnier Subject: Re: bug#45346: [elpa-archive] :ignored-files is processed to early In-Reply-To: References: <873600i529.fsf@bernoul.li> Date: Mon, 21 Dec 2020 11:20:34 +0100 Message-ID: <87im8vbgul.fsf@bernoul.li> MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 45346 Cc: 45346@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.7 (-) Stefan Monnier writes: >> It appears that `:ignored-files' is processes before `:renames' and >> that that should be changed. > > Indeed, the renaming is applied last and it's not easy to change that > with the approach I use (the renaming is done by `tar` via > `--transform`). > > Maybe I could try and remove the entries after generating the tarball. > Hmm... IMO it would be better to just do it in lisp and simplify the call to `tar'. > Note, FWIW, I tend to consider that it's OK to keep useless files in the > tarball as long as they're not actively harmful (e.g. they triple the > size of the tarball), and more generally I think it's best to use > `:ignore` and `:renames` with moderation. I consider useless files to be actively harmful. Some users will investigate what those apparently useless files are for and once they have seen that they are in fact useless some of them still won't be satisfied and continue to wonder what they have missed because obviously nobody would include such useless files... I am like that and would like to save others (plural) from having to do the same work over and over again when I can just do it for them once. Jonas From debbugs-submit-bounces@debbugs.gnu.org Mon Dec 21 09:36:20 2020 Received: (at 45346) by debbugs.gnu.org; 21 Dec 2020 14:36:20 +0000 Received: from localhost ([127.0.0.1]:46624 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1krMIO-0001Z5-GA for submit@debbugs.gnu.org; Mon, 21 Dec 2020 09:36:20 -0500 Received: from mailscanner.iro.umontreal.ca ([132.204.25.50]:49380) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1krMIN-0001Yd-9Y for 45346@debbugs.gnu.org; Mon, 21 Dec 2020 09:36:19 -0500 Received: from pmg1.iro.umontreal.ca (localhost.localdomain [127.0.0.1]) by pmg1.iro.umontreal.ca (Proxmox) with ESMTP id 0F0D910024D; Mon, 21 Dec 2020 09:36:14 -0500 (EST) Received: from mail01.iro.umontreal.ca (unknown [172.31.2.1]) by pmg1.iro.umontreal.ca (Proxmox) with ESMTP id 9B2EA100068; Mon, 21 Dec 2020 09:36:12 -0500 (EST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=iro.umontreal.ca; s=mail; t=1608561372; bh=oShd/LK5kvGOxzvmHxRlTgezpdEkUeoEooZZxeRjfJk=; h=From:To:Cc:Subject:References:Date:In-Reply-To:From; b=R0EUJoWSj6O4/rDKURI3p5/3JghwL/cZ/3AgBYFIKS/mwUAvwlKfXfKyeCAQYxKoz VelWXbYdlwgsDWzAlpXwd4gONUI5g4CdKFqbqStxYKKbn3NSilPMsqzexTwv/tyzgz On10QZ8MknrJjKtUzMPWbU89efQ5Ag0MXKwkxfIa34Eueut3h5/ymhBm+tiFp20NcO rJDl87MSQUpqN4lTIANQ6gtrV3/kj6Hwcs3Jq1R+/MNwAw5SrcoxC5InaledHbo+hH LDWuUS1zLRI3CXSrB5hv3ceCiz55lu/ez72e2KZqVJ5iGf41d74hbZvQ1uQwQBPQbP mf6gg5nAejstg== Received: from alfajor (69-165-136-52.dsl.teksavvy.com [69.165.136.52]) by mail01.iro.umontreal.ca (Postfix) with ESMTPSA id 6C37F120392; Mon, 21 Dec 2020 09:36:12 -0500 (EST) From: Stefan Monnier To: Jonas Bernoulli Subject: Re: bug#45346: [elpa-archive] :ignored-files is processed to early Message-ID: References: <873600i529.fsf@bernoul.li> <87im8vbgul.fsf@bernoul.li> Date: Mon, 21 Dec 2020 09:36:11 -0500 In-Reply-To: <87im8vbgul.fsf@bernoul.li> (Jonas Bernoulli's message of "Mon, 21 Dec 2020 11:20:34 +0100") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-SPAM-INFO: Spam detection results: 0 ALL_TRUSTED -1 Passed through trusted hosts only via SMTP AWL -0.087 Adjusted score from AWL reputation of From: address BAYES_00 -1.9 Bayes spam probability is 0 to 1% DKIM_SIGNED 0.1 Message has a DKIM or DK signature, not necessarily valid DKIM_VALID -0.1 Message has at least one valid DKIM or DK signature DKIM_VALID_AU -0.1 Message has a valid DKIM or DK signature from author's domain X-SPAM-LEVEL: X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 45346 Cc: 45346@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 (---) >>> It appears that `:ignored-files' is processes before `:renames' and >>> that that should be changed. >> Indeed, the renaming is applied last and it's not easy to change that >> with the approach I use (the renaming is done by `tar` via >> `--transform`). >> Maybe I could try and remove the entries after generating the tarball. >> Hmm... > IMO it would be better to just do it in lisp and simplify the call to `tar'. BTW, in the mean time you can work around this by doing the renames "by hand" in the `:make` rule. Stefan