1 |
commit: 04f33a597c41dbb22b483fcbff1d9a2b2cfefb95 |
2 |
Author: Sebastian Pipping <sping <AT> gentoo <DOT> org> |
3 |
AuthorDate: Wed May 1 22:00:41 2019 +0000 |
4 |
Commit: Pacho Ramos <pacho <AT> gentoo <DOT> org> |
5 |
CommitDate: Mon May 6 11:04:04 2019 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=04f33a59 |
7 |
|
8 |
media-gfx/gimp: Move sandbox fixes from src_compile to src_configure |
9 |
|
10 |
The configure script is accessing graphics hardware already. |
11 |
Bug: https://bugs.gentoo.org/684886 |
12 |
Signed-off-by: Pacho Ramos <pacho <AT> gentoo.org> |
13 |
Package-Manager: Portage-2.3.65, Repoman-2.3.12 |
14 |
|
15 |
.../{gimp-9999.ebuild => gimp-2.10.10-r1.ebuild} | 43 ++++++++++++---------- |
16 |
media-gfx/gimp/gimp-9999.ebuild | 27 ++++++++------ |
17 |
2 files changed, 39 insertions(+), 31 deletions(-) |
18 |
|
19 |
diff --git a/media-gfx/gimp/gimp-9999.ebuild b/media-gfx/gimp/gimp-2.10.10-r1.ebuild |
20 |
similarity index 90% |
21 |
copy from media-gfx/gimp/gimp-9999.ebuild |
22 |
copy to media-gfx/gimp/gimp-2.10.10-r1.ebuild |
23 |
index 81a0a726eb3..988122916d6 100644 |
24 |
--- a/media-gfx/gimp/gimp-9999.ebuild |
25 |
+++ b/media-gfx/gimp/gimp-2.10.10-r1.ebuild |
26 |
@@ -5,15 +5,14 @@ EAPI=6 |
27 |
PYTHON_COMPAT=( python2_7 ) |
28 |
GNOME2_EAUTORECONF=yes |
29 |
|
30 |
-inherit virtualx autotools gnome2 multilib python-single-r1 git-r3 |
31 |
+inherit eapi7-ver virtualx autotools gnome2 multilib python-single-r1 |
32 |
|
33 |
DESCRIPTION="GNU Image Manipulation Program" |
34 |
HOMEPAGE="https://www.gimp.org/" |
35 |
-EGIT_REPO_URI="https://gitlab.gnome.org/GNOME/gimp.git" |
36 |
-SRC_URI="" |
37 |
+SRC_URI="mirror://gimp/v$(ver_cut 1-2)/${P}.tar.bz2" |
38 |
LICENSE="GPL-3 LGPL-3" |
39 |
SLOT="2" |
40 |
-KEYWORDS="" |
41 |
+KEYWORDS="~amd64 ~x86" |
42 |
|
43 |
LANGS="am ar ast az be bg br ca ca@valencia cs csb da de dz el en_CA en_GB eo es et eu fa fi fr ga gl gu he hi hr hu id is it ja ka kk km kn ko lt lv mk ml ms my nb nds ne nl nn oc pa pl pt pt_BR ro ru rw si sk sl sr sr@latin sv ta te th tr tt uk vi xh yi zh_CN zh_HK zh_TW" |
44 |
IUSE="alsa aalib altivec aqua debug doc openexr gnome heif postscript jpeg2k cpu_flags_x86_mmx mng python cpu_flags_x86_sse udev unwind vector-icons webp wmf xpm" |
45 |
@@ -70,7 +69,6 @@ RDEPEND=">=dev-libs/glib-2.56.0:2 |
46 |
DEPEND="${RDEPEND} |
47 |
>=dev-lang/perl-5.10.0 |
48 |
dev-libs/appstream-glib |
49 |
- dev-util/gdbus-codegen |
50 |
dev-util/gtk-update-icon-cache |
51 |
sys-apps/findutils |
52 |
virtual/pkgconfig |
53 |
@@ -78,7 +76,6 @@ DEPEND="${RDEPEND} |
54 |
>=sys-devel/gettext-0.19 |
55 |
doc? ( >=dev-util/gtk-doc-1 ) |
56 |
>=sys-devel/libtool-2.2 |
57 |
- >=sys-devel/autoconf-2.54 |
58 |
>=sys-devel/automake-1.11 |
59 |
dev-util/gtk-doc-am" |
60 |
|
61 |
@@ -102,10 +99,26 @@ src_prepare() { |
62 |
fgrep -q GIMP_DISABLE_DEPRECATED configure || die #615144, self-test |
63 |
} |
64 |
|
65 |
+_adjust_sandbox() { |
66 |
+ # Bugs #569738 and #591214 |
67 |
+ local nv |
68 |
+ for nv in /dev/nvidia-uvm /dev/nvidiactl /dev/nvidia{0..9} ; do |
69 |
+ # We do not check for existence as they may show up later |
70 |
+ # https://bugs.gentoo.org/show_bug.cgi?id=569738#c21 |
71 |
+ addwrite "${nv}" |
72 |
+ done |
73 |
+ |
74 |
+ addwrite /dev/dri/ # bugs #574038 and #684886 |
75 |
+ addwrite /dev/ati/ # bug #589198 |
76 |
+ addwrite /proc/mtrr # bug #589198 |
77 |
+} |
78 |
+ |
79 |
src_configure() { |
80 |
+ _adjust_sandbox |
81 |
+ |
82 |
local myconf=( |
83 |
GEGL="${EPREFIX}"/usr/bin/gegl-0.4 |
84 |
- GDBUS_CODEGEN="${EPREFIX}"/usr/bin/gdbus-codegen |
85 |
+ GDBUS_CODEGEN="${EPREFIX}"/bin/false |
86 |
|
87 |
--enable-default-binary |
88 |
--disable-silent-rules |
89 |
@@ -141,17 +154,6 @@ src_configure() { |
90 |
} |
91 |
|
92 |
src_compile() { |
93 |
- # Bugs #569738 and #591214 |
94 |
- local nv |
95 |
- for nv in /dev/nvidia-uvm /dev/nvidiactl /dev/nvidia{0..9} ; do |
96 |
- # We do not check for existence as they may show up later |
97 |
- # https://bugs.gentoo.org/show_bug.cgi?id=569738#c21 |
98 |
- addwrite "${nv}" |
99 |
- done |
100 |
- addwrite /dev/dri/ # bug #574038 |
101 |
- addwrite /dev/ati/ # bug 589198 |
102 |
- addwrite /proc/mtrr # bug 589198 |
103 |
- |
104 |
export XDG_DATA_DIRS="${EPREFIX}"/usr/share # bug 587004 |
105 |
gnome2_src_compile |
106 |
} |
107 |
@@ -173,7 +175,7 @@ _rename_plugins() { |
108 |
einfo 'Renaming plug-ins to not collide with pre-2.10.6 file layout (bug #664938)...' |
109 |
local prepend=gimp-org- |
110 |
( |
111 |
- cd "${ED%/}"/usr/$(get_libdir)/gimp/2.99/plug-ins || exit 1 |
112 |
+ cd "${ED%/}"/usr/$(get_libdir)/gimp/2.0/plug-ins || exit 1 |
113 |
for plugin_slash in $(ls -d1 */); do |
114 |
plugin=${plugin_slash%/} |
115 |
if [[ -f ${plugin}/${plugin} ]]; then |
116 |
@@ -204,7 +206,8 @@ src_install() { |
117 |
find "${D}" -name '*.la' -type f -delete || die |
118 |
|
119 |
# Prevent dead symlink gimp-console.1 from downstream man page compression (bug #433527) |
120 |
- mv "${ED%/}"/usr/share/man/man1/gimp-console{-*,}.1 || die |
121 |
+ local gimp_app_version=$(get_version_component_range 1-2) |
122 |
+ mv "${ED%/}"/usr/share/man/man1/gimp-console{-${gimp_app_version},}.1 || die |
123 |
|
124 |
_rename_plugins || die |
125 |
_clean_up_locales |
126 |
|
127 |
diff --git a/media-gfx/gimp/gimp-9999.ebuild b/media-gfx/gimp/gimp-9999.ebuild |
128 |
index 81a0a726eb3..30b9a0ee9d5 100644 |
129 |
--- a/media-gfx/gimp/gimp-9999.ebuild |
130 |
+++ b/media-gfx/gimp/gimp-9999.ebuild |
131 |
@@ -102,7 +102,23 @@ src_prepare() { |
132 |
fgrep -q GIMP_DISABLE_DEPRECATED configure || die #615144, self-test |
133 |
} |
134 |
|
135 |
+_adjust_sandbox() { |
136 |
+ # Bugs #569738 and #591214 |
137 |
+ local nv |
138 |
+ for nv in /dev/nvidia-uvm /dev/nvidiactl /dev/nvidia{0..9} ; do |
139 |
+ # We do not check for existence as they may show up later |
140 |
+ # https://bugs.gentoo.org/show_bug.cgi?id=569738#c21 |
141 |
+ addwrite "${nv}" |
142 |
+ done |
143 |
+ |
144 |
+ addwrite /dev/dri/ # bugs #574038 and #684886 |
145 |
+ addwrite /dev/ati/ # bug #589198 |
146 |
+ addwrite /proc/mtrr # bug #589198 |
147 |
+} |
148 |
+ |
149 |
src_configure() { |
150 |
+ _adjust_sandbox |
151 |
+ |
152 |
local myconf=( |
153 |
GEGL="${EPREFIX}"/usr/bin/gegl-0.4 |
154 |
GDBUS_CODEGEN="${EPREFIX}"/usr/bin/gdbus-codegen |
155 |
@@ -141,17 +157,6 @@ src_configure() { |
156 |
} |
157 |
|
158 |
src_compile() { |
159 |
- # Bugs #569738 and #591214 |
160 |
- local nv |
161 |
- for nv in /dev/nvidia-uvm /dev/nvidiactl /dev/nvidia{0..9} ; do |
162 |
- # We do not check for existence as they may show up later |
163 |
- # https://bugs.gentoo.org/show_bug.cgi?id=569738#c21 |
164 |
- addwrite "${nv}" |
165 |
- done |
166 |
- addwrite /dev/dri/ # bug #574038 |
167 |
- addwrite /dev/ati/ # bug 589198 |
168 |
- addwrite /proc/mtrr # bug 589198 |
169 |
- |
170 |
export XDG_DATA_DIRS="${EPREFIX}"/usr/share # bug 587004 |
171 |
gnome2_src_compile |
172 |
} |