Hi,
On Sid, building and installing locally modified packages for testing
at the same version as in the archive, I am surprised that apt upgrade
will reinstall any of those installed by the one from the archive. I
did not remember such a "feature" in the past, unless my memory plays
tricks on me:-).
On Sat, Nov 16, 2024 at 03:11:37PM +0100, Patrice Duroux wrote:
On Sid, building and installing locally modified packages for testing
at the same version as in the archive, I am surprised that apt upgrade
will reinstall any of those installed by the one from the archive. I
did not remember such a "feature" in the past, unless my memory plays tricks on me:-).
I think you should change the package version (and thus the name) if you
make local changes. ISTR that I added some ~local0 suffix. Then you can
talk to your package manager about it (e.g. pinning,etc.)
On Sat 16 Nov 2024 at 15:54:17 (+0100), tomas@tuxteam.de wrote:
On Sat, Nov 16, 2024 at 03:11:37PM +0100, Patrice Duroux wrote:
On Sid, building and installing locally modified packages for testing
at the same version as in the archive, I am surprised that apt upgrade will reinstall any of those installed by the one from the archive. I
did not remember such a "feature" in the past, unless my memory plays tricks on me:-).
I think you should change the package version (and thus the name) if you make local changes. ISTR that I added some ~local0 suffix. Then you can talk to your package manager about it (e.g. pinning,etc.)
I found adding an epoch number was the simplest surefire method, as:
. it's the most significant field in the version number,
. you can leave the version number unchanged as an indication
of the unmodified source,
. a descriptive suffix is fine, but no help against upgrades.
That's why I ended up with the suffix and letting the sysadmin
(often me, with a different hat on ;-) making that preference
explicit in the APT machinery.
But could it be the a nice feature for apt to have a list apart on the upgrading
(I would say then 'replacing') of such cases?
User can be alerted more easily during apt upgrade that some packages with a same version could be replaced by the Debian archive ones.
apt list --replaceable
apt upgrade --no-replaceable
:-)
Note that it could be replacement from configured alternative source archives.
But could it be the a nice feature for apt to have a list apart on the upgrading
(I would say then 'replacing') of such cases?
User can be alerted more easily during apt upgrade that some packages with a same version could be replaced by the Debian archive ones.
On Sat, Nov 16, 2024 at 11:53:25AM -0600, David Wright wrote:
On Sat 16 Nov 2024 at 15:54:17 (+0100), tomas@tuxteam.de wrote:
On Sat, Nov 16, 2024 at 03:11:37PM +0100, Patrice Duroux wrote:
On Sid, building and installing locally modified packages for testing
at the same version as in the archive, I am surprised that apt upgrade >>>> will reinstall any of those installed by the one from the archive. I
did not remember such a "feature" in the past, unless my memory plays
tricks on me:-).
I think you should change the package version (and thus the name) if you >>> make local changes. ISTR that I added some ~local0 suffix. Then you can
talk to your package manager about it (e.g. pinning,etc.)
I found adding an epoch number was the simplest surefire method, as:
. it's the most significant field in the version number,
. you can leave the version number unchanged as an indication
of the unmodified source,
. a descriptive suffix is fine, but no help against upgrades.
I was in this deliberation too, and came to the conclusion that
sometimes you want a newer version overriding yours (perhaps
you expect Debian's fix to be more important than yours, perhaps
you even expect theirs to supersede yours), while sometimes you
don't.
That's why I ended up with the suffix and letting the sysadmin
(often me, with a different hat on ;-) making that preference
explicit in the APT machinery.
That's what I do too.
+~tjw12r1
if I've patched the current version.
~tjw12r1 if I've backported a higher version.
I scan for newer versions in debian and auto-rebase my changes (unless
the rebase fails) so I'm rarely more than a day or two behind on
security fixes.
That's why I ended up with the suffix and letting the sysadmin
(often me, with a different hat on ;-) making that preference
explicit in the APT machinery.
But could it be the a nice feature for apt to have a list apart on the upgrading
(I would say then 'replacing') of such cases?
User can be alerted more easily during apt upgrade that some packages with a same version could be replaced by the Debian archive ones.
apt list --replaceable
apt upgrade --no-replaceable
:-)
Note that it could be replacement from configured alternative source archives.
Sysop: | Keyop |
---|---|
Location: | Huddersfield, West Yorkshire, UK |
Users: | 546 |
Nodes: | 16 (2 / 14) |
Uptime: | 153:36:22 |
Calls: | 10,383 |
Files: | 14,054 |
Messages: | 6,417,840 |