games-mods.eclass: [QA] Do not access PORTDIR.
authorUlrich Müller <ulm@gentoo.org>
Sun, 3 Sep 2017 15:32:55 +0000 (17:32 +0200)
committerUlrich Müller <ulm@gentoo.org>
Sun, 3 Sep 2017 15:32:55 +0000 (17:32 +0200)
Simply inline the 2 (two!) header lines instead.

Bug: 416739

eclass/games-mods.eclass

index 8c7e72beed58bf41e3d0e042bdfd419c732c5ff7..f2e4a25841fc2f7f950ec192d57a9514e9165157 100644 (file)
@@ -1,4 +1,4 @@
-# Copyright 1999-2011 Gentoo Foundation
+# Copyright 1999-2017 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
 
 # Variables to specify in an ebuild which uses this eclass:
@@ -197,7 +197,8 @@ games-mods_dosyms() {
 games-mods_make_initd() {
        cat <<EOF > "${T}"/${MOD_DED_BIN}
 #!/sbin/openrc-run
-$(head -n 2 ${PORTDIR}/header.txt)
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
 # Generated by games-mods.eclass
 
 depend() {