From d47dbc8602bbab9358bc1ab2e7b2c4f4fbbc666d Mon Sep 17 00:00:00 2001 From: Pacho Ramos Date: Sun, 21 Jul 2024 10:35:15 +0200 Subject: media-tv/plex-media-server: Fix VariableScope warning Closes: https://github.com/gentoo/gentoo/pull/37514 Signed-off-by: Pacho Ramos --- .../plex-media-server/plex-media-server-1.40.4.8679.ebuild | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'media-tv') 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}" -- cgit v1.2.3-65-gdbad