[KPhotoAlbum] KPA 5.1 issue list

Martin Jost lists at majo.name
Sun Jan 15 14:28:28 GMT 2017


Hello,

[seems that didn't made it to the list - incorrect sender address used...]

Am 30.12.2016 um 23:29 schrieb Johannes Zarl-Zierl:
> On Mittwoch, 28. Dezember 2016 19:15:50 CET Tobias Leupold wrote:
>>> 4. At least in one install, parts of the menu entries had been missing,
>>> due to missing permissions on
>>> /usr/local/share/kphotoalbum
>>> /usr/local/etc/xdg/kphotoalbumrc
>>> (and sub dirs in the path)
>>> Note that I build as a normal user, but install as 'root'.
>>> At the same time my root account has a limited umask (077) set.
>>> I guess the install process should give explicit permissions, instead of
>>> relying on umask or the one already present on installed files.
>>
>> Probably also a porting issue. Interestingly, no bug concerning this was
>> filed yet – I don't think anything about the install process was changed.
>> But it's Johannes who's the cmake expert.
> 
> There's not much that we can do w.r.t. permissions. CMake docs state:
> "Files [...] are by default given permissions OWNER_WRITE, OWNER_READ, 
> GROUP_READ, and WORLD_READ if no PERMISSIONS argument is given."
> 
> [source:
> https://cmake.org/cmake/help/v3.7/command/install.html#installing-files]
> 
> That means that even if we set this explicitly, your umask will probably 
> interfere in the same way. Do you have the same problem with other cmake-based 
> installers?

You're right. My umask should win. After all I decided how I would like
to have the permissions limited.
If cmake (or install or whatever) would disregard, I would probably
complain about THIS. (Yes, seems I want to keep my cake and eat it...)

[Background: I'm a little bit uneasy, when it comes to these permissions
issues. This comes from "calibre" (an EBook management program). It
comes pre-compiled (mostly scripts anyway) and has an installer.
I had the bad experience, that installing it with my limiting umask set,
spoofed up my whole system. (Reinstalling with 'umask 0' fixed it
fortunately, but in the meantime I had been heavily cursing...)]

Regards

Martin




More information about the Kphotoalbum mailing list