app-admin/checkrestart: Workaround a problem with finding pkg name
authorAmadeusz Żołnowski <aidecoe@gentoo.org>
Sun, 21 Aug 2016 21:23:02 +0000 (22:23 +0100)
committerAmadeusz Żołnowski <aidecoe@gentoo.org>
Sun, 21 Aug 2016 21:26:44 +0000 (22:26 +0100)
commit7980fff798a450fd9c13b251259fb559f2888f56
treefb7105eb1d30fd7ef1a741da74583a0e20006190
parentdd3f3f9c6cb37d8e6b8e11277e25bd8805fd778b
app-admin/checkrestart: Workaround a problem with finding pkg name

The output of qfile is used by checkrestart to get a list of programs
owning certain files. A feature of qfile is that its output is dependent
on the current working directory. Some of the files in its output aren't
programs and checkrestart crashed. This patch sets the cwd to / for the
qfile subprocess, so its output is as expected.

Thanks to Karl <karlc@keckec.com> for investigating the issue, providing
patch and explanation above.

This not a final soluation for the problem, but it's a good workaround
given there are not so many processes named after any directory in /.

Gentoo-Bug: 548920

Package-Manager: portage-2.3.0
app-admin/checkrestart/checkrestart-0.47-r4.ebuild [new file with mode: 0644]
app-admin/checkrestart/files/checkrestart-0.47-cwd.patch [new file with mode: 0644]