-
Notifications
You must be signed in to change notification settings - Fork 281
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
make uninstall leaves artefacts in standard locations #1501
Comments
The previous commit and b92002b should take care of the symlinks now, taken from the Cmake FAQ. That leaves empty directories only, and it's not only the ones w/ "exiv2" in the name, but all:
Obviously, it would be safe to remove only the two "*/exiv2" ones without checking. No idea how to handle those w/ cmake... |
Good Job, @kmilos. dangling symlinks are gone. As you say, empty directories remain. It's totally OK to leave /standard/location/bin include lib cmake pkgconfig share - as they are infrastructure. Don't think about them. We should be removing lib/cmake/exiv2 and include/exiv2. macOS hasn't populated pkgconfig. Life isn't perfect. Life goes on! We'll nail it for RC2. 835 rmills@rmillsmm-local:~/gnu/github/exiv2/0.27-maintenance/build $ (cd /usr/local ; find . -name "*exiv2*" -depth | xargs sudo rm -rf )
836 rmills@rmillsmm-local:~/gnu/github/exiv2/0.27-maintenance/build $ (cd /usr/local ; find . -name "*exiv2*")
837 rmills@rmillsmm-local:~/gnu/github/exiv2/0.27-maintenance/build $ (make && sudo make install) 2>&1 >/dev/null
838 rmills@rmillsmm-local:~/gnu/github/exiv2/0.27-maintenance/build $ (cd /usr/local ; find . -name "*exiv2*")
./bin/exiv2json
./bin/exiv2
./include/exiv2
./include/exiv2/exiv2lib_export.h
./include/exiv2/xmp_exiv2.hpp
./include/exiv2/exiv2.hpp
./lib/libexiv2-xmp.a
./lib/pkgconfig/exiv2.pc
./lib/libexiv2.27.dylib
./lib/cmake/exiv2
./lib/cmake/exiv2/exiv2Config-noconfig.cmake
./lib/cmake/exiv2/exiv2ConfigVersion.cmake
./lib/cmake/exiv2/exiv2Config.cmake
./lib/libexiv2.dylib
./lib/libexiv2.0.27.4.1.dylib
./share/man/man1/exiv2.1
./share/locale/sk/LC_MESSAGES/exiv2.mo
./share/locale/ug/LC_MESSAGES/exiv2.mo
./share/locale/pl/LC_MESSAGES/exiv2.mo
./share/locale/vi/LC_MESSAGES/exiv2.mo
./share/locale/sv/LC_MESSAGES/exiv2.mo
./share/locale/ms/LC_MESSAGES/exiv2.mo
./share/locale/ca/LC_MESSAGES/exiv2.mo
./share/locale/ru/LC_MESSAGES/exiv2.mo
./share/locale/pt/LC_MESSAGES/exiv2.mo
./share/locale/uk/LC_MESSAGES/exiv2.mo
./share/locale/bs/LC_MESSAGES/exiv2.mo
./share/locale/gl/LC_MESSAGES/exiv2.mo
./share/locale/nl/LC_MESSAGES/exiv2.mo
./share/locale/de/LC_MESSAGES/exiv2.mo
./share/locale/fi/LC_MESSAGES/exiv2.mo
./share/locale/fr/LC_MESSAGES/exiv2.mo
./share/locale/es/LC_MESSAGES/exiv2.mo
839 rmills@rmillsmm-local:~/gnu/github/exiv2/0.27-maintenance/build $ sudo make uninstall 2>&1 >/dev/null
840 rmills@rmillsmm-local:~/gnu/github/exiv2/0.27-maintenance/build $ (cd /usr/local ; find . -name "*exiv2*" | xargs ls -alt)
./lib/cmake/exiv2:
total 0
drwxr-xr-x 2 root wheel 64 19 Mar 16:38 .
drwxr-xr-x 4 rmills wheel 128 19 Mar 16:37 ..
./include/exiv2:
total 0
drwxr-xr-x 2 root admin 64 19 Mar 16:38 .
drwxrwxr-x 106 piponazo admin 3392 19 Mar 16:37 ..
841 rmills@rmillsmm-local:~/gnu/github/exiv2/0.27-maintenance/build $ |
There are artefacts not being removed in the Visual Studio msvc when we run: > cmake --build . --target uninstall Lots of empty directories. It's leaving a 7mb exiv2.dll in the bin. It does an impressive job of removing the header files. Something to investigate for RC2. |
I'm going to punt this to v1.00. Exiv2 v0.27.4 is better than previous releases. We'll get this right for v1.00. |
Discovered while working on #1500 (messages from
$ sudo make uninstall
) Uninstall on macOS:There should be nothing!
We are leaving behind 2 dangling symlinks and 2 empty directories.
The text was updated successfully, but these errors were encountered: