1 |
commit: b7b5b2617c1a25af25fa51f50bbd853ba55caea3 |
2 |
Author: Jonathan Vasquez <fearedbliss <AT> gentoo <DOT> org> |
3 |
AuthorDate: Mon Jan 29 20:42:09 2018 +0000 |
4 |
Commit: Jonathan Vasquez <fearedbliss <AT> gentoo <DOT> org> |
5 |
CommitDate: Mon Jan 29 20:43:39 2018 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b7b5b261 |
7 |
|
8 |
media-tv/plex-media-server: Fixing bug 646066 |
9 |
|
10 |
Package-Manager: Portage-2.3.19, Repoman-2.3.6 |
11 |
|
12 |
....1.ebuild => plex-media-server-1.10.1-r1.ebuild} | 21 +++++++++++++++++---- |
13 |
1 file changed, 17 insertions(+), 4 deletions(-) |
14 |
|
15 |
diff --git a/media-tv/plex-media-server/plex-media-server-1.10.1.ebuild b/media-tv/plex-media-server/plex-media-server-1.10.1-r1.ebuild |
16 |
similarity index 84% |
17 |
rename from media-tv/plex-media-server/plex-media-server-1.10.1.ebuild |
18 |
rename to media-tv/plex-media-server/plex-media-server-1.10.1-r1.ebuild |
19 |
index 7941b222c81..1d59396063e 100644 |
20 |
--- a/media-tv/plex-media-server/plex-media-server-1.10.1.ebuild |
21 |
+++ b/media-tv/plex-media-server/plex-media-server-1.10.1-r1.ebuild |
22 |
@@ -87,6 +87,10 @@ src_install() { |
23 |
# Disabling due to Bug 644694 |
24 |
#_handle_multilib |
25 |
|
26 |
+ # Mask Plex libraries so that revdep-rebuild doesn't try to rebuild them. |
27 |
+ # Plex has it's own precompiled libraries. |
28 |
+ _mask_plex_libraries_revdep |
29 |
+ |
30 |
# Install systemd service file |
31 |
local INIT_NAME="${PN}.service" |
32 |
local INIT="${FILESDIR}/systemd/${INIT_NAME}" |
33 |
@@ -108,9 +112,10 @@ pkg_postinst() { |
34 |
elog "To start the Plex Server, run 'rc-config start plex-media-server', you will then be able to access your library at http://<ip>:32400/web/" |
35 |
} |
36 |
|
37 |
-# Bug 644694. We shouldn't register plex libraries in global |
38 |
-# library path since this will cause other packages on the system |
39 |
-# to break. |
40 |
+# Disabling the follow function due to Bug 644694. |
41 |
+# We shouldn't register plex libraries in global |
42 |
+# library path since this will cause other packages |
43 |
+# on the system to break. |
44 |
|
45 |
# Finds out where the library directory is for this system |
46 |
# and handles ldflags as to not break library dependencies |
47 |
@@ -124,7 +129,15 @@ _handle_multilib() { |
48 |
doenvd "${T}"/66plex |
49 |
} |
50 |
|
51 |
-# Remove execstack flags from some libraries/executables so that it works in hardened setups. |
52 |
+# Adds the precompiled plex libraries to the revdep-rebuild's mask list |
53 |
+# so it doesn't try to rebuild libraries that can't be rebuilt. |
54 |
+_mask_plex_libraries_revdep() { |
55 |
+ dodir /etc/revdep-rebuild/ |
56 |
+ echo "SEARCH_DIRS_MASK=\"${EPREFIX}/usr/$(get_libdir)/plexmediaserver\"" > "${ED}"/etc/revdep-rebuild/80plexmediaserver |
57 |
+} |
58 |
+ |
59 |
+# Remove execstack flags from some libraries/executables |
60 |
+# so that it works in hardened setups. |
61 |
_remove_execstack_markings() { |
62 |
for f in "${EXECSTACKED_BINS[@]}"; do |
63 |
# Unquoting 'f' so that expansion works. |