* autotools --prefix ignored?
@ 2015-08-07 14:28 Adam Rossi
2015-08-08 19:37 ` Khem Raj
2015-08-10 9:53 ` Burton, Ross
0 siblings, 2 replies; 4+ messages in thread
From: Adam Rossi @ 2015-08-07 14:28 UTC (permalink / raw)
To: yocto
Hi folks. I have tried a number of different ways to control the
installation location of an auto tools-based project. From the command
line I would run:
./bootstrap
./configure --prefix=/opt/myfolder
make
make install
In my recipe I tried a number of ways to keep the binary out of
/usr/bin, but none seem to work. Relevant parts of the recipe:
inherit autotools
EXTRA_OECONF = "--prefix=${D}/opt/myfolder"
The above is ignored, auto tools puts the results in /usr/bin
I also tried to override the do configure:
do_configure() {
oe_runconf --prefix=${D}/opt/myfolder
}
But I get complaints that the configure script is not found. I realize
I am trying to swim upstream by controlling this location, but the
heart wants what the heart wants. Any ideas?
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: autotools --prefix ignored?
2015-08-07 14:28 autotools --prefix ignored? Adam Rossi
@ 2015-08-08 19:37 ` Khem Raj
2015-08-10 9:53 ` Burton, Ross
1 sibling, 0 replies; 4+ messages in thread
From: Khem Raj @ 2015-08-08 19:37 UTC (permalink / raw)
To: Adam Rossi; +Cc: yocto
> On Aug 7, 2015, at 7:28 AM, Adam Rossi <ac.rossi@gmail.com> wrote:
>
> Hi folks. I have tried a number of different ways to control the
> installation location of an auto tools-based project. From the command
> line I would run:
>
> ./bootstrap
> ./configure --prefix=/opt/myfolder
> make
> make install
>
> In my recipe I tried a number of ways to keep the binary out of
> /usr/bin, but none seem to work. Relevant parts of the recipe:
>
> inherit autotools
> EXTRA_OECONF = "--prefix=${D}/opt/myfolder”
you should look into the build scripts run.do_configure for this recipe
and see if its honoring your —prefix and ${D} in there is wrong since this
is the prefix you want it to appear in on target which usually is relative to /
>
> The above is ignored, auto tools puts the results in /usr/bin
>
> I also tried to override the do configure:
>
> do_configure() {
> oe_runconf --prefix=${D}/opt/myfolder
> }
>
> But I get complaints that the configure script is not found. I realize
> I am trying to swim upstream by controlling this location, but the
> heart wants what the heart wants. Any ideas?
> --
> _______________________________________________
> yocto mailing list
> yocto@yoctoproject.org
> https://lists.yoctoproject.org/listinfo/yocto
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: autotools --prefix ignored?
2015-08-07 14:28 autotools --prefix ignored? Adam Rossi
2015-08-08 19:37 ` Khem Raj
@ 2015-08-10 9:53 ` Burton, Ross
2015-08-10 19:35 ` Adam Rossi
1 sibling, 1 reply; 4+ messages in thread
From: Burton, Ross @ 2015-08-10 9:53 UTC (permalink / raw)
To: Adam Rossi; +Cc: yocto
[-- Attachment #1: Type: text/plain, Size: 381 bytes --]
On 7 August 2015 at 15:28, Adam Rossi <ac.rossi@gmail.com> wrote:
> inherit autotools
> EXTRA_OECONF = "--prefix=${D}/opt/myfolder"
>
> The above is ignored, auto tools puts the results in /usr/bin
>
Autotools already passes --prefix so you should probably just set prefix in
the recipe instead. Also don't use ${D}.
inherit autotools
prefix=/opt/myfolder
Ross
[-- Attachment #2: Type: text/html, Size: 894 bytes --]
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: autotools --prefix ignored?
2015-08-10 9:53 ` Burton, Ross
@ 2015-08-10 19:35 ` Adam Rossi
0 siblings, 0 replies; 4+ messages in thread
From: Adam Rossi @ 2015-08-10 19:35 UTC (permalink / raw)
To: Burton, Ross; +Cc: yocto
Perfection! Thanks Ross!
On Mon, Aug 10, 2015 at 5:53 AM, Burton, Ross <ross.burton@intel.com> wrote:
>
> On 7 August 2015 at 15:28, Adam Rossi <ac.rossi@gmail.com> wrote:
>>
>> inherit autotools
>> EXTRA_OECONF = "--prefix=${D}/opt/myfolder"
>>
>> The above is ignored, auto tools puts the results in /usr/bin
>
>
> Autotools already passes --prefix so you should probably just set prefix in
> the recipe instead. Also don't use ${D}.
>
> inherit autotools
> prefix=/opt/myfolder
>
> Ross
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2015-08-10 19:35 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-08-07 14:28 autotools --prefix ignored? Adam Rossi
2015-08-08 19:37 ` Khem Raj
2015-08-10 9:53 ` Burton, Ross
2015-08-10 19:35 ` Adam Rossi
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.