Gentoo Archives: gentoo-portage-dev

From: William Hubbs <williamh@g.o>
To: gentoo-portage-dev@l.g.o
Subject: [gentoo-portage-dev] possible bug with 2.1 alpha?
Date: Mon, 31 Oct 2011 03:55:46
Message-Id: 20051002173537.GA31467@linux1.home
1 -----BEGIN PGP SIGNED MESSAGE-----
2 Hash: SHA1
3
4 All,
5
6 I am working on a new ebuild, and having trouble getting the install phase
7 to work. I am using portage 2.1 alpha and I believe ${D} has a trailing "/"
8 and that is the cause of the problem.
9
10 I'm posting here because I'm not sure whether I am making proper use of DESTDIR
11 or if this is a bug, and I don't want to post to the bug unless it is a bug. :-)
12
13 Here is an exerpt from the makefile for the package:
14
15 BINARIES = speakupcfg speakupctl
16 INSTALL = install
17 PREFIX = /usr
18
19 all: $(BINARIES)
20
21 install: all
22 $(INSTALL) $(BINARIES) $(DESTDIR)$(PREFIX)/bin
23
24 Here is an exerpt from the ebuild:
25
26 src_install() {
27 make DESTDIR=${D} install || die "Install Failed"
28 dodoc COPYING Changelog README
29 }
30
31 Here is an exerpt from the output from emerge:
32
33 >>> Unpacking source...
34 >>> Unpacking speakup-utils-1.0.tar.gz to /var/tmp/portage/speakup-utils-1.0/work
35 >>> Source unpacked.
36 /usr/lib/portage/bin/ebuild.sh: line 4733: portageq: readonly function
37 /usr/lib/portage/bin/ebuild.sh: line 4992: speak: readonly function
38 >>> Compiling source ...
39 g++ -march=pentium2 -O3 -pipe -o speakupcfg speakupcfg.cpp -lcurses
40 g++ -march=pentium2 -O3 -pipe -o speakupctl speakupctl.cpp
41 >>> Finished compiling
42 /usr/lib/portage/bin/ebuild.sh: line 6775: portageq: readonly function
43 /usr/lib/portage/bin/ebuild.sh: line 7034: speak: readonly function
44 >>> Test phase [not enabled]; app-accessibility/speakup-utils-1.0
45 /usr/lib/portage/bin/ebuild.sh: line 2693: portageq: readonly function
46 /usr/lib/portage/bin/ebuild.sh: line 2952: speak: readonly function
47
48 >>> Install speakup-utils-1.0 into /var/tmp/portage/speakup-utils-1.0/image/ category app-accessibility
49 install speakupcfg speakupctl /var/tmp/portage/speakup-utils-1.0/image//usr/bin
50 install: installing multiple files, but last argument, `/var/tmp/portage/speakup-utils-1.0/image//usr/bin' is not a directory
51 Try `install --help' for more information.
52 make: *** [install] Error 1
53
54 !!! ERROR: app-accessibility/speakup-utils-1.0 failed.
55 !!! Function src_install, Line 2959, Exitcode 2
56 !!! Install Failed
57 !!! If you need support, post the topmost build error, NOT this status message.
58
59 Should this be posted to the bug for 2.1 alpha?
60
61 Thanks,
62
63 William
64
65 -----BEGIN PGP SIGNATURE-----
66 Version: GnuPG v1.4.1 (GNU/Linux)
67
68 iD8DBQFDQBppblQW9DDEZTgRAjkQAKCwuWy9C2b+GBV/2cd5KKz8Z99s7ACdG52M
69 WAe+6b4JzZzd0yvw8VjhTBs=
70 =A3Ts
71 -----END PGP SIGNATURE-----
72 --
73 gentoo-portage-dev@g.o mailing list

Replies

Subject Author
Re: [gentoo-portage-dev] possible bug with 2.1 alpha? Alec Warner <warnera6@×××××××.edu>
Re: [gentoo-portage-dev] possible bug with 2.1 alpha? Thomas de Grenier de Latour <degrenier@×××××××××××.fr>