Gentoo Archives: gentoo-user

From: James <wireless@×××××××××××.com>
To: gentoo-user@l.g.o
Subject: [gentoo-user] SRC_URISRC_URI.mirror
Date: Sat, 20 Sep 2014 17:07:43
Message-Id: loom.20140920T185304-350@post.gmane.org
1 Hello,
2
3 So I'm working on apache spark (overlay) ebuild.
4 I cannot see to get the sources to download.
5
6 Here are the sources:
7 http://www.apache.org/dist/spark/spark-1.1.0/
8 or here:
9 http://mir2.ovh.net/ftp.apache.org/dist/spark/spark-1.1.0/
10
11 My local ebuild has these etries:
12
13 <snip>
14
15 MY_PV=${PV/_/}
16
17 SRC_URI="http://www.apache.org/dist/spark/spark/${PV}/${P}.tgz
18 http://mir2.ovh.net/ftp.apache.org/dist/spark/spark/${PV}/${P}.tgz"
19
20 'ebuild spark-1.1.0.ebuild manifest'
21
22 When attemping to compile (emerge spark<###> ) I get:
23 !!! Couldn't download 'spark-1.1.0.tgz'. Aborting.
24 !!! Fetch failed for spark-1.1.0.tgz, can't update Manifest
25
26 So based on 'repoman scan spark-1.1.0.ebuild' I add:
27
28 SRC_URI.mirror="mirror://apache/spark/spark/1.1.0/spark-1.1.0.tgz"
29 and comment out the original "SRC_URI" line.
30
31 I can then update the manifest, but ti fails to build:
32
33 " /usr/local/portage/sys-cluster/spark/spark-1.1.0.ebuild: line 19:
34 SRC_URI.mirror=mirror://apache/spark/spark/1.1.0/spark-1.1.0.tgz: No such
35 file or directory
36 "
37
38 I've tried dozens and dozens of varous SRC_URI, but it just will
39 not download the file.
40
41 ideas?
42
43
44 And here is the rest, just in case anyone wants to make suggestions.
45
46 LICENSE="Apache-2.0"
47 SLOT="0"
48 KEYWORDS="~amd64 ~x86"
49 IUSE="java python scala"
50
51 DEPEND="python? ( dev-lang/python dev-python/boto )
52 java? ( virtual/jdk )
53 scala? ( dev-lang/scala )
54 dev-java/maven-bin
55 ${DEPEND}"
56
57 RDEPEND=" python? ( dev-lang/python )
58 >=virtual/jdk-1.6
59 scala? ( dev-lang/scala )
60 dev-java/maven-bin"
61
62 S="${WORKDIR}/${P}"
63
64 ECONF_SOURCE="${S}"
65
66 src_prepare() {
67 mkdir "${S}/build" || die
68 }
69
70 src_configure() {
71 cd "${S}/build"
72 econf \
73 $(use_enable python) \
74 $(use_enable java)
75 }
76
77 src_compile() {
78 cd "${S}/build"
79 emake -j1 V=1
80 }
81
82 src_install() {
83 cd "${S}/build"

Replies

Subject Author
Re: [gentoo-user] SRC_URISRC_URI.mirror Michael Orlitzky <mjo@g.o>