https://bugs.kde.org/show_bug.cgi?id=360614

--- Comment #3 from Maurizio Paolini <paol...@dmf.unicatt.it> ---
I narrowed the problem a bit:

after creating a bogus empty "share" file in the sources directory I did a
"make VERBOSE=1 install"
as root, to get the error:

[...]
-----------------------------------------------------------------------------------------
CMake Error at icons/cmake_install.cmake:1127 (file):
  file failed to open for writing (Not a directory):

    /home/paolini/Git/kig/share/kig/icons/hicolor/temp.txt
Call Stack (most recent call first):
  cmake_install.cmake:66 (include)
----------------------------------------------------------------------------------------

and in the indicated file I find:

-----------------------------------------------------------------------------
if(NOT CMAKE_INSTALL_COMPONENT OR "${CMAKE_INSTALL_COMPONENT}" STREQUAL "kig")

    set(DESTDIR_VALUE "$ENV{DESTDIR}")
    if (NOT DESTDIR_VALUE)
        file(WRITE "share/kig/icons/hicolor/temp.txt" "update")
        file(REMOVE "share/kig/icons/hicolor/temp.txt")
        set(HAVE_GTK_UPDATE_ICON_CACHE_EXEC /usr/bin/gtk-update-icon-cache)
        if (HAVE_GTK_UPDATE_ICON_CACHE_EXEC)
            execute_process(COMMAND /usr/bin/gtk-update-icon-cache -q -t -i .
WORKING_DIRECTORY "/usr/share/kig/icons/hicolor")
        endif ()
    endif (NOT DESTDIR_VALUE)

endif()
--------------------------------------------------------------
and clearly the two lines starting with "file(..." are wrong.  I don't know
where they come
from.

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to