linux-info.eclass: account for lack of trailing slash
authorMarty E. Plummer <hanetzer@startmail.com>
Fri, 13 Jul 2018 23:44:48 +0000 (18:44 -0500)
committerMatt Turner <mattst88@gentoo.org>
Tue, 17 Jul 2018 14:15:17 +0000 (07:15 -0700)
commitc3ae6116333410443f596f6dc49bc95e8cce6432
tree631da50182342766b4b1bd381d1bd274020b3bbc
parent59c3a96f9bfb7ee88b19d4466039b0d6f70fe1d6
linux-info.eclass: account for lack of trailing slash

In EAPI 7, D, ED, ROOT, EROOT no longer have a trailing slash[1]. This
makes finding /usr/src/linux not work properly as it currently stands.

Use the form "${ROOT%/}/" where apropos in order to unify behavior across
EAPIs.

1: https://dev.gentoo.org/~ulm/pms/head/pms.html#x1-113001r7
Closes: https://github.com/gentoo/gentoo/pull/9222
eclass/linux-info.eclass