System update replaces compiled package with one from repos

Bug #1635778 reported by Kartik Shenoy
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
elementary OS
Invalid
Undecided
Unassigned

Bug Description

I compiled and installed the vim 8 (with GUI) to /usr/local/bin: http://imgur.com/17sEt4D
However, right after I do that I get a notification that there's a system update available:
http://imgur.com/jlByt32

And, once I install the system update, it replaces my compiled version of vim with what I'm guessing is the non-GUI version from the repos: http://imgur.com/Z7buDzL

I can reproduce this error consistently and I have been facing this issue since launch though it took me some time to figure out why my gvim kept disappearing. Please let me know in case more information is required.

These are the steps I follow to compile and install vim:
./configure --prefix=/usr/local \
            --with-features=huge \
            --enable-fail-if-missing \
            --enable-multibyte \
            --enable-rubyinterp \
            --enable-pythoninterp \
            --with-python-config-dir=/usr/lib/python2.7/config-x86_64-linux-gnu\
            --enable-python3interp \
            --with-python3-config-dir=/usr/lib/python3.5/config-3.5m-x86_64-linux-gnu \
            --enable-perlinterp \
            --enable-luainterp \
            --enable-gui=auto \
            --enable-fontset \
            --enable-cscope | tee configure.log

make VIMRUNTIMEDIR=/usr/local/share/vim/vim80

checkinstall --default

Revision history for this message
Matt Spaulding (madsa) wrote :

It looks to me like the version number of the package you're generating is "older" than the one in the repository and is therefore getting "upgraded".

Currently in the repository this is the version of vim: 2:7.4.1689-3ubuntu1.1

Notice the "2" in front of the version which is the epoch field. You should set that to "3" for your package to ensure that your package doesn't get overwritten. I don't know how you do that with checkinstall but I'm sure you can look it up.

This isn't a problem with elementary os.

Changed in elementaryos:
status: New → Invalid
Revision history for this message
Kartik Shenoy (kartikshenoy) wrote :

Thanks, that worked. I didn't know that the "2" was just a tag and didn't count towards version numbering.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.