From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel Subject: Re: Updating the "ELPA Protocol" Date: Wed, 16 Nov 2022 14:20:13 -0500 Message-ID: References: <164484721900.31751.1453162457552427931@vcs2.savannah.gnu.org> <87y1song5x.fsf@posteo.net> <83v8nsyof7.fsf@gnu.org> <87leoond7l.fsf@posteo.net> <83r0yfzz01.fsf@gnu.org> <87bkpjyx3p.fsf@posteo.net> <83bkpjynmj.fsf@gnu.org> <87iljqya44.fsf@posteo.net> <8335auzo9s.fsf@gnu.org> <87zgd2ws8z.fsf@posteo.net> <831qqezkxj.fsf@gnu.org> <87y1slgq3m.fsf@posteo.net> <87bkpgfsqv.fsf@posteo.net> <87educ9fei.fsf@posteo.net> <87y1sk7xtg.fsf_-_@posteo.net> <87h6z0rnuz.fsf@posteo.net> <87zgcqepy0.fsf@bernoul.li> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="17523"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) Cc: Stefan Kangas , Philip Kaludercic , Eli Zaretskii , rms@gnu.org, emacs-devel@gnu.org, Lars Ingebrigtsen To: Jonas Bernoulli Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Wed Nov 16 20:21:25 2022 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 1ovNyP-0004I1-5g for ged-emacs-devel@m.gmane-mx.org; Wed, 16 Nov 2022 20:21:25 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ovNxR-0003FH-Dm; Wed, 16 Nov 2022 14:20:25 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ovNxQ-0003F6-7y for emacs-devel@gnu.org; Wed, 16 Nov 2022 14:20:24 -0500 Original-Received: from mailscanner.iro.umontreal.ca ([132.204.25.50]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ovNxL-00007V-FF; Wed, 16 Nov 2022 14:20:23 -0500 Original-Received: from pmg1.iro.umontreal.ca (localhost.localdomain [127.0.0.1]) by pmg1.iro.umontreal.ca (Proxmox) with ESMTP id 5413F100145; Wed, 16 Nov 2022 14:20:16 -0500 (EST) Original-Received: from mail01.iro.umontreal.ca (unknown [172.31.2.1]) by pmg1.iro.umontreal.ca (Proxmox) with ESMTP id A1DDF1000D6; Wed, 16 Nov 2022 14:20:14 -0500 (EST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=iro.umontreal.ca; s=mail; t=1668626414; bh=JrYmGyOFaxjywz/nX3C32SKE+6GntFBl+cSQCb3/M40=; h=From:To:Cc:Subject:In-Reply-To:References:Date:From; b=j5y6qfdIZBRSObzF6rNhSA5iR1EsrTitt3A6i324jCmYV1b2f6Ru9RYOBpHPpXVfB A+ZHWF4roXgvYmIexRSY7Vci6D9Xp/9fqIZDTHRS/wiSm5i8iQrso3DbLB3bnE+Q3z hOQ2aEJHq/MHmjg9oVNN+nGi/1XKerYTvq/1n6GuVdoUFvr49AxALB8+H3VxJWiEii xY9pR0AwlVrQT7HrRtCQhkDV4Nub3zJZgE/YuP+IuJcJnUXWnv6s5QZkLSBC7nKX60 mzc+v5jaGP/oSLwNKu941zAs2DCe+K7U7s9HHn8npF115JtPVStwrrmWlGAXRVJchA WY9kjMILrGW8w== Original-Received: from lechazo (lechon.iro.umontreal.ca [132.204.27.242]) by mail01.iro.umontreal.ca (Postfix) with ESMTPSA id 7E417120E8E; Wed, 16 Nov 2022 14:20:14 -0500 (EST) In-Reply-To: <87zgcqepy0.fsf@bernoul.li> (Jonas Bernoulli's message of "Wed, 16 Nov 2022 19:04:23 +0100") Received-SPF: pass client-ip=132.204.25.50; envelope-from=monnier@iro.umontreal.ca; helo=mailscanner.iro.umontreal.ca X-Spam_score_int: -42 X-Spam_score: -4.3 X-Spam_bar: ---- X-Spam_report: (-4.3 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, RCVD_IN_DNSWL_MED=-2.3, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.29 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-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.devel:299971 Archived-At: >> How about using something like Debian's transitional packages, where you >> replace the old package with an empty package that just depends on the >> new package? Would that work? > > I would prefer if package.el took care of it. > `package-update-all' could ask: > > Package `foo' has been renamed to `foobar'. > When a package is renamed, then names of variables and functions > often change as well, making it necessary to adjust configuration. > > Would you like to replace `foo' with `foobar' now? > yes/no/no, don't ask again This discussion of replacement reminds me of the more general problem of restructuring where a package may split into 2 (or more), or the reverse. The combination of dependencies and renaming/replacement may cover all those cases if used wisely, but we should pay attention to the details so that it does. > Somewhat related, I have again started working on moving Melpa > ("unstable") away from using timestamps as version strings. Eventually > users will have to update from, e.g., 20230101.123 to the smaller 0.2.3. > Here too I hope we could add a special case to package.el. We may have a few problematic packages which use versions that look very much like Melpa's, but my gut feeling is that it shouldn't be too hard to come up with a heuristic that can handle it correctly enough, yes. Stefan