1 |
-----BEGIN PGP SIGNED MESSAGE----- |
2 |
Hash: SHA1 |
3 |
|
4 |
William Hubbs wrote: |
5 |
> All, |
6 |
> |
7 |
> I am working on a new ebuild, and having trouble getting the install phase |
8 |
> to work. I am using portage 2.1 alpha and I believe ${D} has a trailing "/" |
9 |
> and that is the cause of the problem. |
10 |
> |
11 |
> I'm posting here because I'm not sure whether I am making proper use of DESTDIR |
12 |
> or if this is a bug, and I don't want to post to the bug unless it is a bug. :-) |
13 |
|
14 |
In the future I'd suggest posting it on bugszilla anyway, not everyone |
15 |
who could ascertain if it's a bug reads this list. If it's not a bug it |
16 |
will be marked as such, no harm, no foul. Some developers utilize |
17 |
bugs.gentoo.org as their communications channel to users ( along with |
18 |
IRC of course ) and aren't subscribed to many lists. |
19 |
|
20 |
> Here is an exerpt from the makefile for the package: |
21 |
> |
22 |
> BINARIES = speakupcfg speakupctl |
23 |
> INSTALL = install |
24 |
> PREFIX = /usr |
25 |
> |
26 |
> all: $(BINARIES) |
27 |
> |
28 |
> install: all |
29 |
> $(INSTALL) $(BINARIES) $(DESTDIR)$(PREFIX)/bin |
30 |
> |
31 |
> Here is an exerpt from the ebuild: |
32 |
> |
33 |
> src_install() { |
34 |
> make DESTDIR=${D} install || die "Install Failed" |
35 |
> dodoc COPYING Changelog README |
36 |
> } |
37 |
> |
38 |
> Here is an exerpt from the output from emerge: |
39 |
> |
40 |
> |
41 |
>>>>>Unpacking source... |
42 |
>>>>>Unpacking speakup-utils-1.0.tar.gz to /var/tmp/portage/speakup-utils-1.0/work |
43 |
>>>>>Source unpacked. |
44 |
> |
45 |
> /usr/lib/portage/bin/ebuild.sh: line 4733: portageq: readonly function |
46 |
> /usr/lib/portage/bin/ebuild.sh: line 4992: speak: readonly function |
47 |
> |
48 |
>>>>>Compiling source ... |
49 |
> |
50 |
> g++ -march=pentium2 -O3 -pipe -o speakupcfg speakupcfg.cpp -lcurses |
51 |
> g++ -march=pentium2 -O3 -pipe -o speakupctl speakupctl.cpp |
52 |
> |
53 |
>>>>>Finished compiling |
54 |
> |
55 |
> /usr/lib/portage/bin/ebuild.sh: line 6775: portageq: readonly function |
56 |
> /usr/lib/portage/bin/ebuild.sh: line 7034: speak: readonly function |
57 |
> |
58 |
>>>>>Test phase [not enabled]; app-accessibility/speakup-utils-1.0 |
59 |
> |
60 |
> /usr/lib/portage/bin/ebuild.sh: line 2693: portageq: readonly function |
61 |
> /usr/lib/portage/bin/ebuild.sh: line 2952: speak: readonly function |
62 |
> |
63 |
> |
64 |
>>>>>Install speakup-utils-1.0 into /var/tmp/portage/speakup-utils-1.0/image/ category app-accessibility |
65 |
> |
66 |
> install speakupcfg speakupctl /var/tmp/portage/speakup-utils-1.0/image//usr/bin |
67 |
> install: installing multiple files, but last argument, `/var/tmp/portage/speakup-utils-1.0/image//usr/bin' is not a directory |
68 |
> Try `install --help' for more information. |
69 |
> make: *** [install] Error 1 |
70 |
> |
71 |
> !!! ERROR: app-accessibility/speakup-utils-1.0 failed. |
72 |
> !!! Function src_install, Line 2959, Exitcode 2 |
73 |
> !!! Install Failed |
74 |
> !!! If you need support, post the topmost build error, NOT this status message. |
75 |
> |
76 |
> Should this be posted to the bug for 2.1 alpha? |
77 |
|
78 |
Does it work in stable portage? |
79 |
|
80 |
> |
81 |
> Thanks, |
82 |
> |
83 |
> William |
84 |
> |
85 |
-----BEGIN PGP SIGNATURE----- |
86 |
Version: GnuPG v1.4.1 (GNU/Linux) |
87 |
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org |
88 |
|
89 |
iQIVAwUBQ0AlEmzglR5RwbyYAQKchg/9HkIL7uDJ1fo7VhTxr+8BG+7T2gWAGXGl |
90 |
adAJUiMYQVkJC6WlD4UW7IRiNeaHC33sRxBgd85MSpC00u3hdZoqDPKVfvpCb/SE |
91 |
3w3LaypfgaLi15Ne+Gi8TKKqw4cr5SSqurTr8TMz+bHEbWpxx++BQ9OfB9rwHLFa |
92 |
B5+4NGtRoimIXKg+dwKpjau0FhUtU4LSzp6pAoVuBwkfrvGQN//BFIfWKca5vo5k |
93 |
FHFFLUgHrOMFZ0+UB5G+J6YtRr+039kVTpKWFVRHRL1UyT/zjSmhMugxHHjJyKHZ |
94 |
HA7HJgkPsayfe6jM5fMqmBimdkj9q0xLQAO8Cudd8U+Of03UdD2oVfUVsVKq+UZV |
95 |
r/+WDox2DPkHOlsWhw7ckkEzTf+gnYBeqs0yRWV/e3T1rpq2PfoD1qokHpDYaJbD |
96 |
2T6vtY7nJuC6rm4QlEAYtvN2ptZ4xDe0AuUJh6b34uqZmlFExlhkEsG9LmcUYQLj |
97 |
TAl+l32tTp66NmZJnamYJ42veDjIXz0tAOLwWs6Oxz0Uhk8THHl8VFcxkhF49UYi |
98 |
kU6MfWaBKNIhsF5dIpiIKhqEew5joEjQ9BtZkh+EIz6rPLTdI320ea9s6z5NlCDm |
99 |
voQGi49rK+RN0bt8XGGs2wonliootpLnzEbSrsycUhlzaUZEUNdkDgxI4VjXbtbA |
100 |
enCPksyW0dQ= |
101 |
=fvyo |
102 |
-----END PGP SIGNATURE----- |
103 |
-- |
104 |
gentoo-portage-dev@g.o mailing list |