* [Buildroot] [pull request] kmsxx: fix a few build failures
@ 2016-08-05 18:04 Yann E. MORIN
2016-08-05 18:05 ` [Buildroot] [PATCH 1/2] package/kmsxx: detect failure at install-staging Yann E. MORIN
` (2 more replies)
0 siblings, 3 replies; 4+ messages in thread
From: Yann E. MORIN @ 2016-08-05 18:04 UTC (permalink / raw)
To: buildroot
Hello All!
This short series fixes a few build failures for kmsxx when doing
a static build.
Basically, only the shared libs were ever installed, and the
install-staging command was not catching the failure (fortuantely,
the install-target command did).
Regards,
Yann E. MORIN.
The following changes since commit 5879f0192e99982880aeff7da5bb934b202a6262
libsepol: fix static build (2016-08-05 15:48:48 +0200)
are available in the git repository at:
https://gitlab.com/ymorin/buildroot.git
for you to fetch changes up to f79ac35d1809e53962c3241c6483f3f7f1613603
package/kmsxx: fix static install (2016-08-05 20:02:30 +0200)
----------------------------------------------------------------
Yann E. MORIN (2):
package/kmsxx: detect failure at install-staging
package/kmsxx: fix static install
package/kmsxx/kmsxx.mk | 18 ++++++++++++------
1 file changed, 12 insertions(+), 6 deletions(-)
--
.-----------------.--------------------.------------------.--------------------.
| Yann E. MORIN | Real-Time Embedded | /"\ ASCII RIBBON | Erics' conspiracy: |
| +33 662 376 056 | Software Designer | \ / CAMPAIGN | ___ |
| +33 223 225 172 `------------.-------: X AGAINST | \e/ There is no |
| http://ymorin.is-a-geek.org/ | _/*\_ | / \ HTML MAIL | v conspiracy. |
'------------------------------^-------^------------------^--------------------'
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Buildroot] [PATCH 1/2] package/kmsxx: detect failure at install-staging
2016-08-05 18:04 [Buildroot] [pull request] kmsxx: fix a few build failures Yann E. MORIN
@ 2016-08-05 18:05 ` Yann E. MORIN
2016-08-05 18:05 ` [Buildroot] [PATCH 2/2] package/kmsxx: fix static install Yann E. MORIN
2016-08-05 19:00 ` [Buildroot] [pull request] kmsxx: fix a few build failures Thomas Petazzoni
2 siblings, 0 replies; 4+ messages in thread
From: Yann E. MORIN @ 2016-08-05 18:05 UTC (permalink / raw)
To: buildroot
Currently, the staging-install commands do not detect failures to
install the libs.
That's because we use ';' to separate the commands, so we only get the
result of the last one.
Fix that by using multi-line commands, so they each are called on their
own and make would catch the failures.
Partially fixes (only detects the real failure):
http://autobuild.buildroot.org/results/82c/82cfb7451f933b222abe30b5d35d23e409a4af79
and a few others.
Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
Cc: Maxime Ripard <maxime.ripard@free-electrons.com>
Cc: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
---
package/kmsxx/kmsxx.mk | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/package/kmsxx/kmsxx.mk b/package/kmsxx/kmsxx.mk
index d49ec8f..84c860c 100644
--- a/package/kmsxx/kmsxx.mk
+++ b/package/kmsxx/kmsxx.mk
@@ -39,8 +39,8 @@ endef
define KMSXX_INSTALL_STAGING_CMDS
$(foreach l,$(KMSXX_LIBS),\
$(INSTALL) -D -m 0755 $(@D)/lib/lib$(l).so \
- $(STAGING_DIR)/usr/lib/lib$(l).so ; \
- mkdir -p $(STAGING_DIR)/usr/include/$(l) ; \
+ $(STAGING_DIR)/usr/lib/lib$(l).so
+ mkdir -p $(STAGING_DIR)/usr/include/$(l)
cp -dpfr $(@D)/$(l)/inc/$(l)/* $(STAGING_DIR)/usr/include/$(l)/
)
endef
--
2.7.4
^ permalink raw reply related [flat|nested] 4+ messages in thread
* [Buildroot] [PATCH 2/2] package/kmsxx: fix static install
2016-08-05 18:04 [Buildroot] [pull request] kmsxx: fix a few build failures Yann E. MORIN
2016-08-05 18:05 ` [Buildroot] [PATCH 1/2] package/kmsxx: detect failure at install-staging Yann E. MORIN
@ 2016-08-05 18:05 ` Yann E. MORIN
2016-08-05 19:00 ` [Buildroot] [pull request] kmsxx: fix a few build failures Thomas Petazzoni
2 siblings, 0 replies; 4+ messages in thread
From: Yann E. MORIN @ 2016-08-05 18:05 UTC (permalink / raw)
To: buildroot
Currently, we only try to install the shared libraries.
However, when doing a static build, only the static libs are built,
obviously.
Fix this by only installing relevant libraries.
Fixes:
http://autobuild.buildroot.org/results/82c/82cfb7451f933b222abe30b5d35d23e409a4af79/
http://autobuild.buildroot.org/results/bb3/bb3840f14382b6ed77d5947eb3ac5c229286681e/
Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
Cc: Maxime Ripard <maxime.ripard@free-electrons.com>
Cc: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
---
package/kmsxx/kmsxx.mk | 16 +++++++++++-----
1 file changed, 11 insertions(+), 5 deletions(-)
diff --git a/package/kmsxx/kmsxx.mk b/package/kmsxx/kmsxx.mk
index 84c860c..df0ab23 100644
--- a/package/kmsxx/kmsxx.mk
+++ b/package/kmsxx/kmsxx.mk
@@ -29,17 +29,23 @@ endif
KMSXX_LIBS = kms++ kms++util
define KMSXX_INSTALL_TARGET_CMDS
- $(foreach l,$(KMSXX_LIBS),\
- $(INSTALL) -D -m 0755 $(@D)/lib/lib$(l).so \
- $(TARGET_DIR)/usr/lib/lib$(l).so
+ $(if $(BR2_SHARED_LIBS)$(BR2_SHARED_STATIC_LIBS),
+ $(foreach l,$(KMSXX_LIBS),\
+ $(INSTALL) -D -m 0755 $(@D)/lib/lib$(l).so \
+ $(TARGET_DIR)/usr/lib/lib$(l).so
+ )
)
$(KMSXX_INSTALL_TARGET_TESTS)
endef
define KMSXX_INSTALL_STAGING_CMDS
$(foreach l,$(KMSXX_LIBS),\
- $(INSTALL) -D -m 0755 $(@D)/lib/lib$(l).so \
- $(STAGING_DIR)/usr/lib/lib$(l).so
+ $(if $(BR2_SHARED_LIBS)$(BR2_SHARED_STATIC_LIBS),
+ $(INSTALL) -D -m 0755 $(@D)/lib/lib$(l).so \
+ $(STAGING_DIR)/usr/lib/lib$(l).so)
+ $(if $(BR2_STATIC_LIBS)$(BR2_SHARED_STATIC_LIBS),
+ $(INSTALL) -D -m 0755 $(@D)/lib/lib$(l).a \
+ $(STAGING_DIR)/usr/lib/lib$(l).a)
mkdir -p $(STAGING_DIR)/usr/include/$(l)
cp -dpfr $(@D)/$(l)/inc/$(l)/* $(STAGING_DIR)/usr/include/$(l)/
)
--
2.7.4
^ permalink raw reply related [flat|nested] 4+ messages in thread
* [Buildroot] [pull request] kmsxx: fix a few build failures
2016-08-05 18:04 [Buildroot] [pull request] kmsxx: fix a few build failures Yann E. MORIN
2016-08-05 18:05 ` [Buildroot] [PATCH 1/2] package/kmsxx: detect failure at install-staging Yann E. MORIN
2016-08-05 18:05 ` [Buildroot] [PATCH 2/2] package/kmsxx: fix static install Yann E. MORIN
@ 2016-08-05 19:00 ` Thomas Petazzoni
2 siblings, 0 replies; 4+ messages in thread
From: Thomas Petazzoni @ 2016-08-05 19:00 UTC (permalink / raw)
To: buildroot
Hello,
On Fri, 5 Aug 2016 20:04:52 +0200, Yann E. MORIN wrote:
> Yann E. MORIN (2):
> package/kmsxx: detect failure at install-staging
> package/kmsxx: fix static install
Both applied, thanks!
Thomas
--
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2016-08-05 19:00 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-08-05 18:04 [Buildroot] [pull request] kmsxx: fix a few build failures Yann E. MORIN
2016-08-05 18:05 ` [Buildroot] [PATCH 1/2] package/kmsxx: detect failure at install-staging Yann E. MORIN
2016-08-05 18:05 ` [Buildroot] [PATCH 2/2] package/kmsxx: fix static install Yann E. MORIN
2016-08-05 19:00 ` [Buildroot] [pull request] kmsxx: fix a few build failures Thomas Petazzoni
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox