All paths provided by the PMS are intended to use top-down. Going above FILESDIR is disallowed. Not to mention this particular use case makes no real sense: if [[ ! -f ${S}/patches.txt ]]; then # patches.txt is empty so lets use our ChangeLog [[ -f ${FILESDIR}/../ChangeLog ]] && \ echo "Please check the ebuild ChangeLog for more details." \ > "${S}"/patches.txt fi So, the installed package will reference ChangeLogs on install system depending on whether build system had ChangeLogs...
From afc71d7a13428d612ad2e890ee978d6040e6bba7 Mon Sep 17 00:00:00 2001 From: Mike Pagano <mpagano@gentoo.org> Date: Mon, 26 Dec 2016 10:45:13 -0500 Subject: kernel-2.eclass: Remove code that looks for Changelog which is also breaks PMS rules going above FILESDIR.