1 |
The build system's rpm2tar command is executed during unpack, so it |
2 |
must be install in /. |
3 |
|
4 |
Signed-off-by: David Michael <fedora.dm0@×××××.com> |
5 |
--- |
6 |
|
7 |
This patch fixes failures like this: |
8 |
>>> Unpacking source... |
9 |
>>> Unpacking urw-fonts-2.4-9.fc13.src.rpm to /var/tmp/portage/media-fonts/urw-fonts-2.4.9/work |
10 |
/var/tmp/portage/media-fonts/urw-fonts-2.4.9/temp/environment: line 850: rpm2tar: command not found |
11 |
|
12 |
eclass/rpm.eclass | 5 ++++- |
13 |
1 file changed, 4 insertions(+), 1 deletion(-) |
14 |
|
15 |
diff --git a/eclass/rpm.eclass b/eclass/rpm.eclass |
16 |
index 3a29c7e9f76..d27f0a386c7 100644 |
17 |
--- a/eclass/rpm.eclass |
18 |
+++ b/eclass/rpm.eclass |
19 |
@@ -8,7 +8,10 @@ |
20 |
|
21 |
inherit estack eutils |
22 |
|
23 |
-DEPEND=">=app-arch/rpm2targz-9.0.0.3g" |
24 |
+case "${EAPI:-0}" in |
25 |
+ [0-6]) DEPEND=">=app-arch/rpm2targz-9.0.0.3g" ;; |
26 |
+ *) BDEPEND=">=app-arch/rpm2targz-9.0.0.3g" ;; |
27 |
+esac |
28 |
|
29 |
# @FUNCTION: rpm_unpack |
30 |
# @USAGE: <rpms> |
31 |
-- |
32 |
2.21.1 |