* [Buildroot] [PATCH 1/2] slang: fix linking issue
@ 2014-03-27 23:06 Romain Naour
2014-03-27 23:06 ` [Buildroot] [PATCH 2/2] slang: add ncurses optional dependency Romain Naour
2014-03-28 8:55 ` [Buildroot] [PATCH 1/2] slang: fix linking issue Peter Korsgaard
0 siblings, 2 replies; 5+ messages in thread
From: Romain Naour @ 2014-03-27 23:06 UTC (permalink / raw)
To: buildroot
The installation location of the slang library
does not take into account the DESTDIR directory.
So SLANG_INST_LIB is initialized with -L/usr/lib/
and slang may be linked with host's libdl.so (if any)
Therefore, we have to pass correct installation paths.
Fixes:
http://autobuild.buildroot.net/results/df4/df435d9cebbdc84b3581ba258b618123570dde8b/
Signed-off-by: Romain Naour <romain.naour@openwide.fr>
---
package/slang/slang.mk | 17 +++++++++++++++++
1 file changed, 17 insertions(+)
diff --git a/package/slang/slang.mk b/package/slang/slang.mk
index d519eca..38f0b6f 100644
--- a/package/slang/slang.mk
+++ b/package/slang/slang.mk
@@ -13,4 +13,21 @@ SLANG_LICENSE_FILES = COPYING
SLANG_INSTALL_STAGING = YES
SLANG_MAKE = $(MAKE1)
+# The installation location of the slang library
+# does not take into account the DESTDIR directory.
+# So SLANG_INST_LIB is initialized with -L/usr/lib/
+# and slang may be linked with host's libdl.so (if any)
+# Therefore, we have to pass correct installation paths.
+SLANG_INSTALL_STAGING_OPT = \
+ prefix=$(STAGING_DIR)/usr \
+ exec_prefix=$(STAGING_DIR)/usr \
+ DESTDIR=$(STAGING_DIR) \
+ install
+
+SLANG_INSTALL_TARGET_OPT = \
+ prefix=$(STAGING_DIR)/usr \
+ exec_prefix=$(STAGING_DIR)/usr \
+ DESTDIR=$(TARGET_DIR) \
+ install
+
$(eval $(autotools-package))
--
1.9.0
^ permalink raw reply related [flat|nested] 5+ messages in thread
* [Buildroot] [PATCH 2/2] slang: add ncurses optional dependency
2014-03-27 23:06 [Buildroot] [PATCH 1/2] slang: fix linking issue Romain Naour
@ 2014-03-27 23:06 ` Romain Naour
2014-03-28 8:56 ` Peter Korsgaard
2014-03-28 8:55 ` [Buildroot] [PATCH 1/2] slang: fix linking issue Peter Korsgaard
1 sibling, 1 reply; 5+ messages in thread
From: Romain Naour @ 2014-03-27 23:06 UTC (permalink / raw)
To: buildroot
Ncurses check need to be disabled if ncurses package is not
selected.
If we don't do that, host's ncurses5-config may be used by
configure script.
Signed-off-by: Romain Naour <romain.naour@openwide.fr>
---
Note: others optional dependencies may be missing
(pcre oniguruma png z iconv)
package/slang/slang.mk | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/package/slang/slang.mk b/package/slang/slang.mk
index 38f0b6f..2006c71 100644
--- a/package/slang/slang.mk
+++ b/package/slang/slang.mk
@@ -13,6 +13,12 @@ SLANG_LICENSE_FILES = COPYING
SLANG_INSTALL_STAGING = YES
SLANG_MAKE = $(MAKE1)
+ifeq ($(BR2_PACKAGE_NCURSES),y)
+ SLANG_DEPENDENCIES = ncurses
+else
+ SLANG_CONF_OPT = ac_cv_path_nc5config=no
+endif
+
# The installation location of the slang library
# does not take into account the DESTDIR directory.
# So SLANG_INST_LIB is initialized with -L/usr/lib/
--
1.9.0
^ permalink raw reply related [flat|nested] 5+ messages in thread
* [Buildroot] [PATCH 2/2] slang: add ncurses optional dependency
2014-03-27 23:06 ` [Buildroot] [PATCH 2/2] slang: add ncurses optional dependency Romain Naour
@ 2014-03-28 8:56 ` Peter Korsgaard
2014-03-29 9:39 ` Romain Naour
0 siblings, 1 reply; 5+ messages in thread
From: Peter Korsgaard @ 2014-03-28 8:56 UTC (permalink / raw)
To: buildroot
>>>>> "Romain" == Romain Naour <romain.naour@openwide.fr> writes:
> Ncurses check need to be disabled if ncurses package is not
> selected.
> If we don't do that, host's ncurses5-config may be used by
> configure script.
> Signed-off-by: Romain Naour <romain.naour@openwide.fr>
Committed, thanks.
> Note: others optional dependencies may be missing
> (pcre oniguruma png z iconv)
Care to cook up a patch for those?
--
Bye, Peter Korsgaard
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Buildroot] [PATCH 2/2] slang: add ncurses optional dependency
2014-03-28 8:56 ` Peter Korsgaard
@ 2014-03-29 9:39 ` Romain Naour
0 siblings, 0 replies; 5+ messages in thread
From: Romain Naour @ 2014-03-29 9:39 UTC (permalink / raw)
To: buildroot
Hi Peter,
Le 28/03/2014 09:56, Peter Korsgaard a ?crit :
>>>>>> "Romain" == Romain Naour <romain.naour@openwide.fr> writes:
> > Ncurses check need to be disabled if ncurses package is not
> > selected.
> > If we don't do that, host's ncurses5-config may be used by
> > configure script.
>
> > Signed-off-by: Romain Naour <romain.naour@openwide.fr>
>
> Committed, thanks.
>
> > Note: others optional dependencies may be missing
> > (pcre oniguruma png z iconv)
>
> Care to cook up a patch for those?
>
Sorry, I had notime to rework on this patch yesterday.
In the meantime Gustavo Zacarias added a patch for slsh and
added the missing dependencies.
Also, my patch for slang has broken the newt package.
newt could not find the slang library.
http://autobuild.buildroot.net/results/553/5533328ec987f12d0b3dd81c430e960d3dc50503/build-end.log
Thanks to Gustavo the problem is gone.
Best regards,
Romain
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Buildroot] [PATCH 1/2] slang: fix linking issue
2014-03-27 23:06 [Buildroot] [PATCH 1/2] slang: fix linking issue Romain Naour
2014-03-27 23:06 ` [Buildroot] [PATCH 2/2] slang: add ncurses optional dependency Romain Naour
@ 2014-03-28 8:55 ` Peter Korsgaard
1 sibling, 0 replies; 5+ messages in thread
From: Peter Korsgaard @ 2014-03-28 8:55 UTC (permalink / raw)
To: buildroot
>>>>> "Romain" == Romain Naour <romain.naour@openwide.fr> writes:
> The installation location of the slang library
> does not take into account the DESTDIR directory.
> So SLANG_INST_LIB is initialized with -L/usr/lib/
> and slang may be linked with host's libdl.so (if any)
> Therefore, we have to pass correct installation paths.
> Fixes:
> http://autobuild.buildroot.net/results/df4/df435d9cebbdc84b3581ba258b618123570dde8b/
> Signed-off-by: Romain Naour <romain.naour@openwide.fr>
The real problem is that the slang build system gets confused and
rebuilds slsh even though it has just built it in the build step (called
slsh_exe for some reason though).
But ok, I tried fiddling a bit with Makefile.in, but also didn't manage
to fix it - So committed, thanks.
--
Bye, Peter Korsgaard
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2014-03-29 9:39 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-03-27 23:06 [Buildroot] [PATCH 1/2] slang: fix linking issue Romain Naour
2014-03-27 23:06 ` [Buildroot] [PATCH 2/2] slang: add ncurses optional dependency Romain Naour
2014-03-28 8:56 ` Peter Korsgaard
2014-03-29 9:39 ` Romain Naour
2014-03-28 8:55 ` [Buildroot] [PATCH 1/2] slang: fix linking issue Peter Korsgaard
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox