I've been building my own emacs because I want to fix some issues in it and get the bug fixes upstream. However, Ubuntu keeps automatically removing my own built emacs and I have to keep rebuilding and reinstalling it.
Here's my output of
apt-cache policy emacs when I went to bed last night:
~/emacs$ sudo apt-cache policy emacs emacs: Installed: 26.0.50.aaron-1 Candidate: 46.1 Version table: 46.1 500 500 http://us.archive.ubuntu.com/ubuntu xenial/main amd64 Packages 500 http://us.archive.ubuntu.com/ubuntu xenial/main i386 Packages *** 26.0.50.aaron-1 100 100 /var/lib/dpkg/status
Here it is when I wake up:
~/emacs$ sudo apt-cache policy emacs [sudo] password for excelsiora: emacs: Installed: 46.1 Candidate: 46.1 Version table: *** 46.1 500 500 http://us.archive.ubuntu.com/ubuntu xenial/main amd64 Packages 500 http://us.archive.ubuntu.com/ubuntu xenial/main i386 Packages 100 /var/lib/dpkg/status
Why is this package being versioned at 46 instead of 24 or 25? 26 is the currently the highest major emacs version you can get.
I can see that this is a meta-package: https://packages.debian.org/source/jessie/emacs-defaults
Why is Ubuntu updating software without asking?
Main Question: What am I supposed to do - assign my package version a number higher than 46 just to make it stick?
That seems like a horrible hack, or maybe that's how it's supposed to work?