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

            Bug ID: 448719
           Summary: Install process does not respect prefix
           Product: kalarm
           Version: unspecified
          Platform: Compiled Sources
                OS: Linux
            Status: REPORTED
          Severity: normal
          Priority: NOR
         Component: general
          Assignee: djar...@kde.org
          Reporter: snehit...@protonmail.com
  Target Milestone: ---

Created attachment 145617
  --> https://bugs.kde.org/attachment.cgi?id=145617&action=edit
build_log.txt : output of flatpak's build process including only the log from
installing/building kalarm

SUMMARY

When installing KAlarm from source, it does not respect prefix for all install
directives, and hence fails trying to access /usr/lib when installing to a user
directory.

I am trying to package KAlarm for Flathub which requires installing it to a
user folder and packaging. The above mentioned issue is preventing me from
doing so.

STEPS TO REPRODUCE
Install KAlarm in a user directory without superuser privileges.

OBSERVED RESULT
Install fails with following message
```
-- Installing: /usr/lib/x86_64-linux-gnu/libexec/kauth/kalarm_helper
CMake Error at src/cmake_install.cmake:119 (file):
  file INSTALL cannot copy file "/run/build/kalarm/bin/kalarm_helper" to
  "/usr/lib/x86_64-linux-gnu/libexec/kauth/kalarm_helper": Read-only file
  system.
Call Stack (most recent call first):
  cmake_install.cmake:47 (include)


FAILED: CMakeFiles/install.util 
cd /run/build/kalarm && /usr/bin/cmake -P cmake_install.cmake
ninja: build stopped: subcommand failed.
Error: module kalarm: Child process exited with code 1
```

EXPECTED RESULT
KAlarm should install to user directory without accessing root


ADDITIONAL INFORMATION
Source tarball obtained from :
https://download.kde.org/stable/release-service/21.12.1/src/kalarm-21.12.1.tar.xz
Build log attached with bug report.

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

Reply via email to