* [gentoo-portage-dev] possible bug with 2.1 alpha?
@ 2005-10-02 17:35 William Hubbs
2005-10-02 18:21 ` Alec Warner
2005-10-02 18:31 ` Thomas de Grenier de Latour
0 siblings, 2 replies; 3+ messages in thread
From: William Hubbs @ 2005-10-02 17:35 UTC (permalink / raw
To: gentoo-portage-dev
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
All,
I am working on a new ebuild, and having trouble getting the install phase
to work. I am using portage 2.1 alpha and I believe ${D} has a trailing "/"
and that is the cause of the problem.
I'm posting here because I'm not sure whether I am making proper use of DESTDIR
or if this is a bug, and I don't want to post to the bug unless it is a bug. :-)
Here is an exerpt from the makefile for the package:
BINARIES = speakupcfg speakupctl
INSTALL = install
PREFIX = /usr
all: $(BINARIES)
install: all
$(INSTALL) $(BINARIES) $(DESTDIR)$(PREFIX)/bin
Here is an exerpt from the ebuild:
src_install() {
make DESTDIR=${D} install || die "Install Failed"
dodoc COPYING Changelog README
}
Here is an exerpt from the output from emerge:
>>> Unpacking source...
>>> Unpacking speakup-utils-1.0.tar.gz to /var/tmp/portage/speakup-utils-1.0/work
>>> Source unpacked.
/usr/lib/portage/bin/ebuild.sh: line 4733: portageq: readonly function
/usr/lib/portage/bin/ebuild.sh: line 4992: speak: readonly function
>>> Compiling source ...
g++ -march=pentium2 -O3 -pipe -o speakupcfg speakupcfg.cpp -lcurses
g++ -march=pentium2 -O3 -pipe -o speakupctl speakupctl.cpp
>>> Finished compiling
/usr/lib/portage/bin/ebuild.sh: line 6775: portageq: readonly function
/usr/lib/portage/bin/ebuild.sh: line 7034: speak: readonly function
>>> Test phase [not enabled]; app-accessibility/speakup-utils-1.0
/usr/lib/portage/bin/ebuild.sh: line 2693: portageq: readonly function
/usr/lib/portage/bin/ebuild.sh: line 2952: speak: readonly function
>>> Install speakup-utils-1.0 into /var/tmp/portage/speakup-utils-1.0/image/ category app-accessibility
install speakupcfg speakupctl /var/tmp/portage/speakup-utils-1.0/image//usr/bin
install: installing multiple files, but last argument, `/var/tmp/portage/speakup-utils-1.0/image//usr/bin' is not a directory
Try `install --help' for more information.
make: *** [install] Error 1
!!! ERROR: app-accessibility/speakup-utils-1.0 failed.
!!! Function src_install, Line 2959, Exitcode 2
!!! Install Failed
!!! If you need support, post the topmost build error, NOT this status message.
Should this be posted to the bug for 2.1 alpha?
Thanks,
William
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (GNU/Linux)
iD8DBQFDQBppblQW9DDEZTgRAjkQAKCwuWy9C2b+GBV/2cd5KKz8Z99s7ACdG52M
WAe+6b4JzZzd0yvw8VjhTBs=
=A3Ts
-----END PGP SIGNATURE-----
--
gentoo-portage-dev@gentoo.org mailing list
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [gentoo-portage-dev] possible bug with 2.1 alpha?
2005-10-02 17:35 [gentoo-portage-dev] possible bug with 2.1 alpha? William Hubbs
@ 2005-10-02 18:21 ` Alec Warner
2005-10-02 18:31 ` Thomas de Grenier de Latour
1 sibling, 0 replies; 3+ messages in thread
From: Alec Warner @ 2005-10-02 18:21 UTC (permalink / raw
To: gentoo-portage-dev
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
William Hubbs wrote:
> All,
>
> I am working on a new ebuild, and having trouble getting the install phase
> to work. I am using portage 2.1 alpha and I believe ${D} has a trailing "/"
> and that is the cause of the problem.
>
> I'm posting here because I'm not sure whether I am making proper use of DESTDIR
> or if this is a bug, and I don't want to post to the bug unless it is a bug. :-)
In the future I'd suggest posting it on bugszilla anyway, not everyone
who could ascertain if it's a bug reads this list. If it's not a bug it
will be marked as such, no harm, no foul. Some developers utilize
bugs.gentoo.org as their communications channel to users ( along with
IRC of course ) and aren't subscribed to many lists.
> Here is an exerpt from the makefile for the package:
>
> BINARIES = speakupcfg speakupctl
> INSTALL = install
> PREFIX = /usr
>
> all: $(BINARIES)
>
> install: all
> $(INSTALL) $(BINARIES) $(DESTDIR)$(PREFIX)/bin
>
> Here is an exerpt from the ebuild:
>
> src_install() {
> make DESTDIR=${D} install || die "Install Failed"
> dodoc COPYING Changelog README
> }
>
> Here is an exerpt from the output from emerge:
>
>
>>>>>Unpacking source...
>>>>>Unpacking speakup-utils-1.0.tar.gz to /var/tmp/portage/speakup-utils-1.0/work
>>>>>Source unpacked.
>
> /usr/lib/portage/bin/ebuild.sh: line 4733: portageq: readonly function
> /usr/lib/portage/bin/ebuild.sh: line 4992: speak: readonly function
>
>>>>>Compiling source ...
>
> g++ -march=pentium2 -O3 -pipe -o speakupcfg speakupcfg.cpp -lcurses
> g++ -march=pentium2 -O3 -pipe -o speakupctl speakupctl.cpp
>
>>>>>Finished compiling
>
> /usr/lib/portage/bin/ebuild.sh: line 6775: portageq: readonly function
> /usr/lib/portage/bin/ebuild.sh: line 7034: speak: readonly function
>
>>>>>Test phase [not enabled]; app-accessibility/speakup-utils-1.0
>
> /usr/lib/portage/bin/ebuild.sh: line 2693: portageq: readonly function
> /usr/lib/portage/bin/ebuild.sh: line 2952: speak: readonly function
>
>
>>>>>Install speakup-utils-1.0 into /var/tmp/portage/speakup-utils-1.0/image/ category app-accessibility
>
> install speakupcfg speakupctl /var/tmp/portage/speakup-utils-1.0/image//usr/bin
> install: installing multiple files, but last argument, `/var/tmp/portage/speakup-utils-1.0/image//usr/bin' is not a directory
> Try `install --help' for more information.
> make: *** [install] Error 1
>
> !!! ERROR: app-accessibility/speakup-utils-1.0 failed.
> !!! Function src_install, Line 2959, Exitcode 2
> !!! Install Failed
> !!! If you need support, post the topmost build error, NOT this status message.
>
> Should this be posted to the bug for 2.1 alpha?
Does it work in stable portage?
>
> Thanks,
>
> William
>
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org
iQIVAwUBQ0AlEmzglR5RwbyYAQKchg/9HkIL7uDJ1fo7VhTxr+8BG+7T2gWAGXGl
adAJUiMYQVkJC6WlD4UW7IRiNeaHC33sRxBgd85MSpC00u3hdZoqDPKVfvpCb/SE
3w3LaypfgaLi15Ne+Gi8TKKqw4cr5SSqurTr8TMz+bHEbWpxx++BQ9OfB9rwHLFa
B5+4NGtRoimIXKg+dwKpjau0FhUtU4LSzp6pAoVuBwkfrvGQN//BFIfWKca5vo5k
FHFFLUgHrOMFZ0+UB5G+J6YtRr+039kVTpKWFVRHRL1UyT/zjSmhMugxHHjJyKHZ
HA7HJgkPsayfe6jM5fMqmBimdkj9q0xLQAO8Cudd8U+Of03UdD2oVfUVsVKq+UZV
r/+WDox2DPkHOlsWhw7ckkEzTf+gnYBeqs0yRWV/e3T1rpq2PfoD1qokHpDYaJbD
2T6vtY7nJuC6rm4QlEAYtvN2ptZ4xDe0AuUJh6b34uqZmlFExlhkEsG9LmcUYQLj
TAl+l32tTp66NmZJnamYJ42veDjIXz0tAOLwWs6Oxz0Uhk8THHl8VFcxkhF49UYi
kU6MfWaBKNIhsF5dIpiIKhqEew5joEjQ9BtZkh+EIz6rPLTdI320ea9s6z5NlCDm
voQGi49rK+RN0bt8XGGs2wonliootpLnzEbSrsycUhlzaUZEUNdkDgxI4VjXbtbA
enCPksyW0dQ=
=fvyo
-----END PGP SIGNATURE-----
--
gentoo-portage-dev@gentoo.org mailing list
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [gentoo-portage-dev] possible bug with 2.1 alpha?
2005-10-02 17:35 [gentoo-portage-dev] possible bug with 2.1 alpha? William Hubbs
2005-10-02 18:21 ` Alec Warner
@ 2005-10-02 18:31 ` Thomas de Grenier de Latour
1 sibling, 0 replies; 3+ messages in thread
From: Thomas de Grenier de Latour @ 2005-10-02 18:31 UTC (permalink / raw
To: gentoo-portage-dev
On Sun, 2 Oct 2005 12:35:37 -0500
William Hubbs <williamh@gentoo.org> wrote:
> install: all
> $(INSTALL) $(BINARIES) $(DESTDIR)$(PREFIX)/bin
...
> install: installing multiple files, but last argument,
> `/var/tmp/portage/speakup-utils-1.0/image//usr/bin' is not a
> directory
Seems that it simply lacks creation of the target directory.
I would either add an "$(INSTALL) -d $(DESTDIR)$(PREFIX)/bin" in the
makefile, or workaround it with a "dodir /usr/bin" in the ebuild.
But i don't think it's related to portage CVS.
--
TGL.
--
gentoo-portage-dev@gentoo.org mailing list
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2011-10-31 3:55 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-10-02 17:35 [gentoo-portage-dev] possible bug with 2.1 alpha? William Hubbs
2005-10-02 18:21 ` Alec Warner
2005-10-02 18:31 ` Thomas de Grenier de Latour
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox