Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 11 Aug 2020 16:45:49 -0300
From:      Joseph Mingrone <jrm@FreeBSD.org>
To:        freebsd-ports@freebsd.org
Cc:        emacs@FreeBSD.org
Subject:   Packages with versions in their names (e.g. py37- or -emacs26-)
Message-ID:  <86d03xotjm.fsf@phe.ftfl.ca>

next in thread | raw e-mail | index | archive | help
--=-=-=
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-----
--=-=-=--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?86d03xotjm.fsf>