Opened 6 years ago
Last modified 15 months ago
#1719 new defect
Some files may be not logged when using cmake+porg
Reported by: | Pierre Labastie | Owned by: | |
---|---|---|---|
Priority: | normal | Milestone: | 3.0 |
Component: | jhalfs | Version: | GIT |
Severity: | normal | Keywords: | |
Cc: |
Description
When a file is already present on the system, cmake does not reinstall it. SO porg does not log it.
Change History (5)
comment:1 by , 6 years ago
comment:2 by , 4 years ago
It looks like cmake accepts an undocumented environment variable CMAKE_INSTALL_ALWAYS, which, if set to 1 or ON allows to overwrite existing files. Let's try to use it from envars.conf.
comment:4 by , 3 years ago
Version: | SVN → GIT |
---|
comment:5 by , 15 months ago
Replying to Pierre Labastie:
Looks like setting CMAKE_INSTALL_ALWAYS to 1 has no action.
It must be set in the environment when doing make install.
Note:
See TracTickets
for help on using tickets.
There are two possibilities for avoiding that (maybe others, of course):
There are several drawbacks with the first approach: some packages are needed for compiling/installing, so cannot be removed from the system, even just before installation (occurs only in LFS, I think. One such package is coreutils. Of course, also glibc, and a couple of others). Also, some packages change library versions at each update, so that removing the old library breaks all packages compiled against that library (example poppler).
I'm sure the issue does not exist with autotools: existing files are overwritten. I do not know for meson.