commit: d47dbc8602bbab9358bc1ab2e7b2c4f4fbbc666d Author: Pacho Ramos <pacho <AT> gentoo <DOT> org> AuthorDate: Sun Jul 21 08:35:15 2024 +0000 Commit: Pacho Ramos <pacho <AT> gentoo <DOT> org> CommitDate: Sun Jul 21 08:35:58 2024 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d47dbc86
media-tv/plex-media-server: Fix VariableScope warning Closes: https://github.com/gentoo/gentoo/pull/37514 Signed-off-by: Pacho Ramos <pacho <AT> gentoo.org> .../plex-media-server/plex-media-server-1.40.4.8679.ebuild | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/media-tv/plex-media-server/plex-media-server-1.40.4.8679.ebuild b/media-tv/plex-media-server/plex-media-server-1.40.4.8679.ebuild index b5ba18cdfb50..6dd77f9a9ed1 100644 --- a/media-tv/plex-media-server/plex-media-server-1.40.4.8679.ebuild +++ b/media-tv/plex-media-server/plex-media-server-1.40.4.8679.ebuild @@ -40,11 +40,6 @@ QA_MULTILIB_PATHS=( "usr/lib/plexmediaserver/Resources/Python/lib/python2.7/lib-dynload/_hashlib.so" ) -BINS_TO_PAX_MARK=( - "${ED}/usr/lib/plexmediaserver/Plex Script Host" - "${ED}/usr/lib/plexmediaserver/Plex Media Scanner" -) - src_install() { # Remove Debian specific files rm -r "usr/share/doc" || die @@ -67,6 +62,11 @@ src_install() { systemd_newunit "${ED}"/usr/lib/plexmediaserver/lib/plexmediaserver.service "${PN}.service" # Add pax markings to some binaries so that they work on hardened setup + BINS_TO_PAX_MARK=( + "${ED}/usr/lib/plexmediaserver/Plex Script Host" + "${ED}/usr/lib/plexmediaserver/Plex Media Scanner" + ) + local f for f in "${BINS_TO_PAX_MARK[@]}"; do pax-mark m "${f}"
