FS#43616 - [colord] directory ownership differs - add explanation howto to package update message

Attached to Project: Arch Linux
Opened by Patcom (Patcom) - Wednesday, 28 January 2015, 19:31 GMT
Last edited by Eli Schwartz (eschwartz) - Wednesday, 03 January 2018, 17:05 GMT
Task Type Bug Report
Category Packages: Extra
Status Closed
Assigned To Ionut Biru (wonder)
Jan Alexander Steffens (heftig)
Architecture All
Severity Very Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 4
Private No

Details

During the update of colord (1.2.7-2 -> 1.2.8-1) a warning is shown:
warning: directory ownership differs on /var/lib/colord/icc/

This seems to be related to https://bugs.archlinux.org/task/43189 . There is also the suggested fix (chown).

Please save all colord users searching in the package history to find out why they have a differing ownership on their system by just adding a update message which is shown by pacman. E.g. this:

> If you are updating and get a "directory ownership differs" warning: There was a bug in this package which caused a wrong directory ownership. Please fix the ownership of the icc directory manually: chown colord:colord /var/lib/colord/icc
This task depends upon

Closed by  Eli Schwartz (eschwartz)
Wednesday, 03 January 2018, 17:05 GMT
Reason for closing:  Not a bug
Comment by patrick (potomac) - Wednesday, 28 January 2015, 20:26 GMT
this could be fixed by a simple ".install" inside the package with this line :

chown colord:colord /var/lib/colord/icc

or directly in the PKGBUILD
Comment by Doug Newgard (Scimmia) - Thursday, 29 January 2015, 00:20 GMT
How about simply reading pacman's output and acing accordingly? Why do you need a post-install message for this?
Comment by Patcom (Patcom) - Thursday, 29 January 2015, 01:17 GMT
replying at Doug: Pacman just reports a fact, but does not say why this has happened. As said ("why they have a differing ownership"), because I (and likely also other users) would wonder *why* this warning appears. So they need to begin searching (their own directories, package history, diffs, …). Of course, in the first place the pacman warning needs to be understood (complicated by a wrong translation https://bugs.archlinux.org/task/43617 ), and it is not an everyday warning.

That could be saved if the package update would just say "WE messed up, please fix it". Of course, if fixing it automatically (what patrick means, I guess) is safe, that would even be better.
Comment by Doug Newgard (Scimmia) - Thursday, 29 January 2015, 02:05 GMT
While it may not be an everyday error, it isn't uncommon. I've seen it numerous times (not even counting bugzilla, which gives me dozens of those permission warnings on every upgrade). It's usually trivial to take a look at the package's git log, see what changed, and make the appropriate changes locally. If you take a cavalier attitude to system administration (like so many do), you can just chown the dir and be done with it, who cares why?
Comment by Patcom (Patcom) - Thursday, 29 January 2015, 02:25 GMT
replying at Doug: as said, I care and I think caring is the essence of Arch Linux, isn't it? And although I am using Arch since a year this is the first time with this warning.

For me, this is a pair: break something and if you broke it, fix it. Here we have just a break. The fact that there is a break is reported by pacman. To me it is just natural to investigate why there is a unexpected(!) break.

Is that causing any trouble somewhere else to show a message? I mean, what are the downsides (except of some lines of terminal space of "cavaliers")?
Comment by Peter Weber (hoschi) - Thursday, 29 January 2015, 09:23 GMT
Well, this becomes a discussion and not merely report about a bug.

This happens for some packages every few months, sometimes triggered by upstream (often?) or downstream (seldom?).
Possible causes are initally wrong permissions or newly added files by the package, which where formerly maybe created by the software and vice versa.

Pacman itself is acting here correct, it looks after clean and consistend of all packages on the filesystem.
The new package itself is also correct.
If some owner or mode permissions differs, the root user has to care about. Especially because sometimes files could be created by the software itself but later be provided by the package.

I answer here because this happened within 24 hours for libvirt and colord and searched for this unusual accumulation (few months...).
I would be appreciate it, if maintainers of a package handle the individual cases automatically if this is possible without risking breakage. If this is not possible, a short notice which is no merely a warning would be very nice.
A terse and concise message is enough.

I think this bug could be closed?
Comment by Patcom (Patcom) - Thursday, 29 January 2015, 23:51 GMT
I guess closing this bug is the best. I realized that adding an advice text would mean that there will be a new package version which means that all people who already updated, get another update, just for this message. That would be annoying for them. I guess the same package version cannot be changed (message added) without creating a new version?!

So, in essence, it just would be beneficial if packagers could take more care of such situations in future, as Peter said, and this bug can be closed as there is nothing useful to do.

Loading...