If I installed granite compiling it from source will it still be updated from the ppa?

Asked by Camilo Higuita

wondering if i will get the updates if i compiled it from source

Question information

Language:
English Edit question
Status:
Solved
For:
Granite Edit question
Assignee:
No assignee Edit question
Solved by:
Victor Martinez
Solved:
Last query:
Last reply:
Revision history for this message
982c80311320c1b (alexander-wilms) said :
#1

No. I think the package management doesn't know about manually compiled programs

Revision history for this message
Camilo Higuita (kxmylo) said :
#2

so there isn't way to uninstall the compiled granite and get back to the ppa packages?

Revision history for this message
Best Victor Martinez (victored) said :
#3

The files you installed from your local build will be overwritten by dpkg when the package is reinstalled or updated, and removed when the package is uninstalled, as long as you configured the build passing -DCMAKE_INSTALL_PREFIX=/usr to CMake.

If you forgot to do that, granite's files have most probably been installed to /usr/local/, and you will notice that your self-compiled version is ALWAYS used instead of the version installed by the package (i.e. system upgrades appear to take no effect, etc.) If this is your case, delete the files from /usr/local/, and re-configure the build using "cmake .. -DMAKE_INSTALL_PREFIX=/usr"; then reinstall. The files to remove from /usr/local/ would be:

/usr/local/lib/pkgconfig/granite.pc
/usr/local/share/vala/vapi/granite.vapi
/usr/local/share/vala/vapi/granite.deps
/usr/local/include/granite/granite.h
/usr/local/include/granite/widgets-utils.h
/usr/local/lib/libgranite.so.0.1.1
/usr/local/lib/libgranite.so.0
/usr/local/lib/libgranite.so

/usr/local/bin/granite-demo
/usr/local/share/icons/hicolor/16x16/actions/application-menu.svg
/usr/local/share/icons/hicolor/22x22/actions/application-menu.svg
/usr/local/share/icons/hicolor/24x24/actions/application-menu.svg
/usr/local/share/icons/hicolor/32x32/actions/application-menu.svg
/usr/local/share/icons/hicolor/48x48/actions/application-menu.svg
/usr/local/share/icons/hicolor/scalable/actions/application-menu-symbolic.svg

... and all the granite.mo files under /usr/local/share/locale/

Hope this helps.

Revision history for this message
Camilo Higuita (kxmylo) said :
#4

Thanks Victor Eduardo, that solved my question.

Revision history for this message
Erasmo Marín (erasmo-marin) said :
#5

About this, I have noticed some strange behavior of the granite package. I have compiled and installed custom granite branches a lot of times. Then, with some updates from PPA I have had lot of problems. For example, after the first API break (when thin paned was introduced), this didn't worked for me, I had to compile granite manually to have thin paned.

Also, if you download the granite-dev package and install it from the Ubuntu Software Center, it detect the package as "bad quality".