* [Buildroot] [PATCH v2] package/luajit: luajit.pc: return the path to host-luajit from the Buildroot package
@ 2016-05-01 21:22 Romain Naour
2016-05-01 21:32 ` Thomas Petazzoni
0 siblings, 1 reply; 3+ messages in thread
From: Romain Naour @ 2016-05-01 21:22 UTC (permalink / raw)
To: buildroot
The luajit.pc file is manually generated in the luajit Makefile, so it give a wrong
path for host-luajit.
$ output/host/usr/bin/pkgconf --cflags luajit
/usr/include/luajit-2.0
It should be:
$ output/host/usr/bin/pkgconf --cflags luajit
[...]output/host/usr/include/luajit-2.0
Set PREFIX with $(HOST_DIR)/usr and remove DESTDIR since the installation path
is DPREFIX=$(DESTDIR)$(PREFIX).
Otherwise the host-luajit is installed to output/host/home/[...]/output/host/usr
Signed-off-by: Romain Naour <romain.naour@gmail.com>
Cc: Gustavo Zacarias <gustavo@zacarias.com.ar>
---
v2: remove the post install hook and set PREFIX with $(HOST_DIR)/usr (ThomasP)
---
package/luajit/luajit.mk | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/package/luajit/luajit.mk b/package/luajit/luajit.mk
index 623bfcc..81a2660 100644
--- a/package/luajit/luajit.mk
+++ b/package/luajit/luajit.mk
@@ -66,13 +66,13 @@ LUAJIT_POST_INSTALL_TARGET_HOOKS += LUAJIT_INSTALL_SYMLINK
# host-efl package needs host-luajit to be linked dynamically.
define HOST_LUAJIT_BUILD_CMDS
- $(MAKE) PREFIX="/usr" BUILDMODE=dynamic \
+ $(MAKE) PREFIX="$(HOST_DIR)/usr" BUILDMODE=dynamic \
TARGET_LDFLAGS="$(HOST_LDFLAGS)" \
-C $(@D) amalg
endef
define HOST_LUAJIT_INSTALL_CMDS
- $(MAKE) PREFIX="/usr" DESTDIR="$(HOST_DIR)" LDCONFIG=true -C $(@D) install
+ $(MAKE) PREFIX="$(HOST_DIR)/usr" LDCONFIG=true -C $(@D) install
endef
$(eval $(generic-package))
--
2.5.5
^ permalink raw reply related [flat|nested] 3+ messages in thread
* [Buildroot] [PATCH v2] package/luajit: luajit.pc: return the path to host-luajit from the Buildroot package
2016-05-01 21:22 [Buildroot] [PATCH v2] package/luajit: luajit.pc: return the path to host-luajit from the Buildroot package Romain Naour
@ 2016-05-01 21:32 ` Thomas Petazzoni
2016-05-02 7:31 ` Romain Naour
0 siblings, 1 reply; 3+ messages in thread
From: Thomas Petazzoni @ 2016-05-01 21:32 UTC (permalink / raw)
To: buildroot
Hello,
On Sun, 1 May 2016 23:22:08 +0200, Romain Naour wrote:
> The luajit.pc file is manually generated in the luajit Makefile, so it give a wrong
> path for host-luajit.
>
> $ output/host/usr/bin/pkgconf --cflags luajit
> /usr/include/luajit-2.0
>
> It should be:
> $ output/host/usr/bin/pkgconf --cflags luajit
> [...]output/host/usr/include/luajit-2.0
>
> Set PREFIX with $(HOST_DIR)/usr and remove DESTDIR since the installation path
> is DPREFIX=$(DESTDIR)$(PREFIX).
> Otherwise the host-luajit is installed to output/host/home/[...]/output/host/usr
>
> Signed-off-by: Romain Naour <romain.naour@gmail.com>
> Cc: Gustavo Zacarias <gustavo@zacarias.com.ar>
> ---
> v2: remove the post install hook and set PREFIX with $(HOST_DIR)/usr (ThomasP)
> ---
> package/luajit/luajit.mk | 4 ++--
> 1 file changed, 2 insertions(+), 2 deletions(-)
I've quite significantly rewritten the commit log, and applied, thanks!
Thomas
--
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com
^ permalink raw reply [flat|nested] 3+ messages in thread
* [Buildroot] [PATCH v2] package/luajit: luajit.pc: return the path to host-luajit from the Buildroot package
2016-05-01 21:32 ` Thomas Petazzoni
@ 2016-05-02 7:31 ` Romain Naour
0 siblings, 0 replies; 3+ messages in thread
From: Romain Naour @ 2016-05-02 7:31 UTC (permalink / raw)
To: buildroot
Hello,
Le 1 mai 2016 23:32, "Thomas Petazzoni" <thomas.petazzoni@free-electrons.com>
a ?crit :
>
> Hello,
>
> On Sun, 1 May 2016 23:22:08 +0200, Romain Naour wrote:
> > The luajit.pc file is manually generated in the luajit Makefile, so it
give a wrong
> > path for host-luajit.
> >
> > $ output/host/usr/bin/pkgconf --cflags luajit
> > /usr/include/luajit-2.0
> >
> > It should be:
> > $ output/host/usr/bin/pkgconf --cflags luajit
> > [...]output/host/usr/include/luajit-2.0
> >
> > Set PREFIX with $(HOST_DIR)/usr and remove DESTDIR since the
installation path
> > is DPREFIX=$(DESTDIR)$(PREFIX).
> > Otherwise the host-luajit is installed to
output/host/home/[...]/output/host/usr
> >
> > Signed-off-by: Romain Naour <romain.naour@gmail.com>
> > Cc: Gustavo Zacarias <gustavo@zacarias.com.ar>
> > ---
> > v2: remove the post install hook and set PREFIX with $(HOST_DIR)/usr
(ThomasP)
> > ---
> > package/luajit/luajit.mk | 4 ++--
> > 1 file changed, 2 insertions(+), 2 deletions(-)
>
> I've quite significantly rewritten the commit log, and applied, thanks!
OK, thanks.
Romain
>
> Thomas
> --
> Thomas Petazzoni, CTO, Free Electrons
> Embedded Linux, Kernel and Android engineering
> http://free-electrons.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.busybox.net/pipermail/buildroot/attachments/20160502/98173d42/attachment.html>
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2016-05-02 7:31 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-05-01 21:22 [Buildroot] [PATCH v2] package/luajit: luajit.pc: return the path to host-luajit from the Buildroot package Romain Naour
2016-05-01 21:32 ` Thomas Petazzoni
2016-05-02 7:31 ` Romain Naour
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox