Gentoo Archives: gentoo-dev

From: Thomas Preissler <tomjohn@×××.de>
To: gentoo-dev@g.o
Subject: Re: [gentoo-dev] Making an ebuild.
Date: Thu, 18 Sep 2003 21:21:59
Message-Id: 20030918212150.GD9327@zeus.tpfm.de
In Reply to: [gentoo-dev] Making an ebuild. by Aaron Crist
1 Hello,
2
3 * Aaron wrote on 09/18/03:
4
5 > I am trying to make an ebuild for the coolest filemanager....thats
6 > right..velocity ;)
7 >
8 > Anyway, I have next to zero programming expereience (barring some small
9 > shell scripts/html), so I am n00b.
10 >
11 > Anyway, here is the error I get when emergeing the proggy. It
12 > 'configures' 'make's fine, but borks on 'make install'
13 >
14 > Here is the output from the failed emerge:
15 >
16 > /make[3]: Entering directory
17 > `/var/tmp/portage/velocity-fm-0.1/work/velocity-0.1.0/scripts'
18 > chmod a+x /usr/share/velocity/scripts/*
19 > chmod: failed to get attributes of `/usr/share/velocity/scripts/*': No
20 > such file or directory
21 > make[3]: *** [install-data-hook] Error 1
22 > make[3]: Leaving directory
23 > `/var/tmp/portage/velocity-fm-0.1/work/velocity-0.1.0/scripts'
24 > make[2]: *** [install-data-am] Error 2
25 > make[2]: Leaving directory
26 > `/var/tmp/portage/velocity-fm-0.1/work/velocity-0.1.0/scripts'
27 > make[1]: *** [install-am] Error 2
28 > make[1]: Leaving directory
29 > `/var/tmp/portage/velocity-fm-0.1/work/velocity-0.1.0/scripts'
30 > make: *** [install-recursive] Error 1/
31 >
32 > /!!! ERROR: app-misc/velocity-fm-0.1 failed.
33 > !!! Function src_install, Line 59, Exitcode 2
34 > !!! (no error message)/
35 >
36 > And here is the relevant part of the ebuild:
37 >
38 > /src_compile() {
39 > ./configure \
40 > --host=${CHOST} \
41 > --prefix=/usr \
42 > --infodir=/usr/share/info \
43 > --mandir=/usr/share/man || die "./configure failed"
44 > emake || die
45 > #make || die/
46 >
47 > /}/
48 >
49 > /src_install() {
50 > make DESTDIR=${D} install || die
51 > make \
52 > prefix=${D}/usr \
53 > mandir=${D}/usr/share/man \
54 > infodir=${D}/usr/share/info \
55 > mkdir usr/share/velocity/scripts
56
57 Try:
58
59 mkdir ${D}/usr/share/velocity/scripts
60
61 > install || die
62 > }/
63 >
64 > Thanks (and I am sorry if this is the wrong mailing-list.) I figured
65 > portage questions and such were more of devleoper issues.
66
67
68 Greets,
69 Tom
70
71 --
72 gentoo-dev@g.o mailing list