From owner-freebsd-ports@freebsd.org Tue Aug 11 19:45:56 2020 Return-Path: Delivered-To: freebsd-ports@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 828823B5BB6 for ; Tue, 11 Aug 2020 19:45:56 +0000 (UTC) (envelope-from jrm@freebsd.org) Received: from smtp.freebsd.org (smtp.freebsd.org [IPv6:2610:1c1:1:606c::24b:4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "smtp.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4BR3Gr2v4wz3yJt; Tue, 11 Aug 2020 19:45:56 +0000 (UTC) (envelope-from jrm@freebsd.org) Received: from phe.ftfl.ca.ftfl.ca (drmons0544w-142-177-158-229.dhcp-dynamic.fibreop.ns.bellaliant.net [142.177.158.229]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) (Authenticated sender: jrm/mail) by smtp.freebsd.org (Postfix) with ESMTPSA id 19A6F21C77; Tue, 11 Aug 2020 19:45:56 +0000 (UTC) (envelope-from jrm@freebsd.org) From: Joseph Mingrone To: freebsd-ports@freebsd.org Cc: emacs@FreeBSD.org Subject: Packages with versions in their names (e.g. py37- or -emacs26-) Date: Tue, 11 Aug 2020 16:45:49 -0300 Message-ID: <86d03xotjm.fsf@phe.ftfl.ca> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (berkeley-unix) MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha512; protocol="application/pgp-signature" X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.33 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 11 Aug 2020 19:45:56 -0000 --=-=-= Content-Type: text/plain The major version of editors/emacs will soon be updated from 26 to 27. This means, with the way our flavored packages are now named, packages like pdf-tools-emacs26-0.90.41 will change to pdf-tools-emacs27-0.90.41. If users just do `pkg upgrade`, even with a PORTREVISION bump, pdf-tools-emacs26-0.90.41, e.g., will not be upgraded. Users must first do something like pkg set -yn "pdf-tools-emacs26-0.90.41":"pdf-tools-emacs27-0.90.41" I can think of a few ways we could make it, so that users do not have to complete this extra `pkg set -yn...` step. 1. Change the way the packages are named, so that the Emacs major version is not included in the package name. We could change the packages name like this: - pdf-tools-emacs27-0.90.41 -> pdf-tools-emacs-0.90.41 - pdf-tools-emacs28-0.90.41 -> pdf-tools-emacs-devel-0.90.41 - tablist-emacs28_nox-1.0_2 -> tablist-emacs-devel_nox-1.0_2 - auctex-emacs26_canna-12.2 -> auctex-emacs_canna-12.2 The downside to this solution is that it's more churn and some package names would become longer. 2. Hack up pkg, so that it somehow recognizes, that for the same port origin, only emacs26 changed to emacs27 in the package name, so do the upgrade. I am not familiar with pkg's internals, so there may be constraints that I'm not aware of. 3. Automatically run the `pkg set -yn..` command when emacs is upgraded. This is probably a bad idea. Maybe it's best to just continue with the way things are? What do you think? Joe --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQKkBAEBCgCOFiEEVbCTpybDiFVxIrrVNqQMg7DW754FAl8y9W1fFIAAAAAALgAo aXNzdWVyLWZwckBub3RhdGlvbnMub3BlbnBncC5maWZ0aGhvcnNlbWFuLm5ldDU1 QjA5M0E3MjZDMzg4NTU3MTIyQkFENTM2QTQwQzgzQjBENkVGOUUQHGpybUBmcmVl YnNkLm9yZwAKCRA2pAyDsNbvngNGEACI60GPVx3G5it6m92SDB0Y+nj0ZQOQu88K BywlRy1yJ+eFh6pfGZwmI4SnRVFkjLhgIDoYQBIRShzTNt1nIhKYb2F+2hXBJgai l3kNSGf9xeUGtNW0BptUWds1gRyNGLrPLGEY7qSW7aPGYDtK5fWKfQcnmjIXXTiD QeBv/ydloLwciQOVAxD59Q5I/qvZ4/Qq2n2NZOfdeDcdAWOa5Pj9Kyg3Flqxu8Kf v2ch+7wF98hHlOgpbfp2/HhDYfRi/P4Qk3cYXqHyDnKN5FsP4wq2U9VyqCHKDMCY wQLTSmXuGE8+wqULDPQ0YA/obxFqWcpbY1xYhwdAcQcB/i443jq69sGd3034up3d 5EACGbd2HJepSZfyyh01jJj6W3ZejM3BSSe+8y5b7muolW7PedmBr6vRa3lTlY5p LLUqE4FyR79LCF4nQAWRCzleYy6u4Md+CJtgx6MrzbpLo6LorHnzq6QGX3TRE2h9 ujTWkXKLLvnMknqHA2Pini0/cl5CoRhE709rZ7TtN3t0hsMIpKSaRPK3jTDUpNMo /pQkTuOQFTD5JkdBpvjI5YLGcTRE/rb9GrMiNKf+s8rzYPFxA7JLzBpVjtm21ovm wla54puEHi6qV1kTdeV0tlkhPpiNV59ObaP8ajgnAlugFJE0MyECvya0tll6oQrW HtPWmHOIeQ== =8vlZ -----END PGP SIGNATURE----- --=-=-=--