From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Daniel Brooks Newsgroups: gmane.emacs.devel Subject: Re: Git master head build failure? Date: Thu, 01 Apr 2021 02:56:27 -0700 Message-ID: <87r1ju9vlg.fsf@db48x.net> References: <875z16en2o.fsf@gmail.com> <8735waelo4.fsf@gmail.com> <83lfa2h327.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="4685"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.1 (gnu/linux) Cc: Tim Cross , monnier@iro.umontreal.ca, emacs-devel@gnu.org To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Thu Apr 01 11:58:13 2021 Return-path: Envelope-to: ged-emacs-devel@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lRu5b-00013O-Ht for ged-emacs-devel@m.gmane-mx.org; Thu, 01 Apr 2021 11:58:11 +0200 Original-Received: from localhost ([::1]:56002 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lRu5a-00021w-J9 for ged-emacs-devel@m.gmane-mx.org; Thu, 01 Apr 2021 05:58:10 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:33552) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lRu43-00019v-5O for emacs-devel@gnu.org; Thu, 01 Apr 2021 05:56:38 -0400 Original-Received: from smtp-out-4.mxes.net ([198.205.123.69]:65354) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lRu3z-0001Su-3O for emacs-devel@gnu.org; Thu, 01 Apr 2021 05:56:34 -0400 Original-Received: from Customer-MUA (mua.mxes.net [10.0.0.1]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.mxes.net (Postfix) with ESMTPSA id 4F9z984pHwz3cBl; Thu, 1 Apr 2021 05:56:28 -0400 (EDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mxes.net; s=mta; t=1617270989; bh=O7Snw4ASVnKuCfs/4Kko0JTanoi/nGFZas2vjQCqZ58=; h=From:To:Subject:References:Date:In-Reply-To:Message-ID: MIME-Version:Content-Type; b=KwEJY7OGQSRTXMkTvr7Gz2k996TIUizGT+Y70CK9ApKoe1FMQ61rrE5rQwGYWFl8S bcUOsJIgiv4o3tMobhBWV066oFB5zSezj4uchysPtKW1b0/WdCG76TTjetxPpE6rzv dsGxWqlkJIyd0yk/L0hQBIC/RhuNmr43vspTp/6w= Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwBAMAAAClLOS0AAAABGdBTUEAALGOfPtRkwAAABJQ TFRFpKfbdou67PD6JjJgAwUWXGSeIcyLHgAAAkZJREFUOI1VU8Fy6yAMxLi+Q13fCZ3cnQL3dqTc 7RD+/1feStDXVnXHDuvVSivZTMba2GPdw3gyCGcMAFxTyrTd9dwGoxHiZX9PmRFUHYAQlGGtXY+F Uk0SJOxgJiUEnH1qkitT9D+pQub7qGAmUbR6bu3CvI96Yv6QqkBBMrsyfZccr1/RDXGDTLf4P7ZY glVxe2V+/ACXWO1gvDO9/gDRpFFVmPluvLcmBjd5H6d8DEte+Pbk4rcY/Fa5tLKLOtCZsuQKYhpa LOkYDT7hESya7/WIET3lfQBqX0pwFtbI832Is0ayMUR9B+12xjgPCQ089cfwkCkX6L5TPmRelJTh zMS0Sz1PyjLAMCUWjcmgQLWQMds+e3aaauZDf9dU9A2/8kPVF2odCUoMKHkfjJR+mbgC+DRiycw5 3XSqGe6HmhN/AWjHypkAXOAFW5EiuA1ge2GiZuMb0s1fSEXcATeLUfbyEY2L8yPOmdSsdghQXx3K pz2eoeXuYvMCINVFDrCdNfVUp4eJ6cSEbjbgFjBEvonGGTrgv9cHjAc8aVgSAPoxaONbzfwhDIhR at7IIS7fAGiDSwIA9alhhTBzfA7YM2FY6eMwayrIGK8FDFmshmUA43WqhFtpvoqG9HHaJ7fqtgTz 8EWVkgZgtsylFliHDgk0MB7KAEC45C/rgnGvanNLXyzOeTzcT2nw/N44gfrtYXRQLoz9Q3TgmJRx 2Mx/Q51qzpm+l3m8z2SWBqC5+PZXAtNYlGFf/gKfHfjFkDT4x7od7R+w3Ls+ZdQBuQAAAABJRU5E rkJggg== In-Reply-To: <83lfa2h327.fsf@gnu.org> (Eli Zaretskii's message of "Thu, 01 Apr 2021 10:33:20 +0300") X-Sent-To: Received-SPF: none client-ip=198.205.123.69; envelope-from=db48x@db48x.net; helo=smtp-out-4.mxes.net X-Spam_score_int: -25 X-Spam_score: -2.6 X-Spam_bar: -- X-Spam_report: (-2.6 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, RCVD_IN_DNSWL_LOW=-0.7, SPF_HELO_PASS=-0.001, SPF_NONE=0.001 autolearn=unavailable autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.io gmane.emacs.devel:267248 Archived-At: Eli Zaretskii writes: > And second, we should simply make sure extraclean removes all the > generated files, as documented, and keep it that way. Looking into > .gitignore means either building its interpreter into our build system > (a non-trivial job, AFAIU), or using Git itself to do the job, which > would mean the job cannot be done without Git -- a disadvantage, IMO. There are external libraries that implement it, if anyone wants an alternative or an inspiration. One example that I know of is the MIT=E2=80=93licensed Rust crate =E2=80=9Cignore=E2=80=9D (https://docs.rs/ignore/0.4.17/ignore/), but note that it only gives you the files that aren=E2=80=99t ignored rather than all the ones that are. It=E2=80=99s not all that complicated. In the end it boils down to repeated application of a 30=E2=80=93line function, plus some parsing of course. (https://docs.rs/globset/0.4.6/src/globset/glob.rs.html#159-186) I would say that depending on Git for this doesn=E2=80=99t seem like too bi= g of a burden; anyone without git will be no worse off than before. Just print a warning that mentions =E2=80=9Cgit clean=E2=80=9D and suggests inst= alling git or doing it by hand. db48x