* [ptxdist] [PATCH] pre/Rules.make: Let CMAKE_INSTALL_LIBDIR be relative, as per spec.
@ 2021-08-09 8:36 Christian Melki
2021-08-10 5:45 ` Denis Osterland-Heim
2021-10-07 10:18 ` [ptxdist] [APPLIED] " Michael Olbrich
0 siblings, 2 replies; 4+ messages in thread
From: Christian Melki @ 2021-08-09 8:36 UTC (permalink / raw)
To: ptxdist
This means that packages that assume that this variable is absolute
will have to be modified.
Adding something like -DCMAKE_INSTALL_LIBDIR=/usr/$(CROSS_LIB_DIR),
after CROSS_CMAKE_USR to your CONF_OPT will probably suffice.
Signed-off-by: Christian Melki <christian.melki@t2data.com>
---
rules/pre/Rules.make | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/rules/pre/Rules.make b/rules/pre/Rules.make
index 54a677c47..0943a51b7 100644
--- a/rules/pre/Rules.make
+++ b/rules/pre/Rules.make
@@ -233,7 +233,7 @@ CROSS_AUTOCONF_ROOT := $(CROSS_AUTOCONF_SYSROOT_ROOT) $(CROSS_AUTOCONF_ARCH)
CROSS_CMAKE_USR := \
-DCMAKE_INSTALL_PREFIX=/usr \
- -DCMAKE_INSTALL_LIBDIR=/usr/$(CROSS_LIB_DIR) \
+ -DCMAKE_INSTALL_LIBDIR=$(CROSS_LIB_DIR) \
-DCMAKE_INSTALL_SYSCONFDIR=/etc \
-DCMAKE_BUILD_TYPE:STRING=RelWithDebInfo \
-DCMAKE_TOOLCHAIN_FILE='${PTXDIST_CMAKE_TOOLCHAIN_TARGET}'
--
2.32.0
_______________________________________________
ptxdist mailing list
ptxdist@pengutronix.de
To unsubscribe, send a mail with subject "unsubscribe" to ptxdist-request@pengutronix.de
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [ptxdist] [PATCH] pre/Rules.make: Let CMAKE_INSTALL_LIBDIR be relative, as per spec.
2021-08-09 8:36 [ptxdist] [PATCH] pre/Rules.make: Let CMAKE_INSTALL_LIBDIR be relative, as per spec Christian Melki
@ 2021-08-10 5:45 ` Denis Osterland-Heim
2021-08-25 14:58 ` Alexander Dahl
2021-10-07 10:18 ` [ptxdist] [APPLIED] " Michael Olbrich
1 sibling, 1 reply; 4+ messages in thread
From: Denis Osterland-Heim @ 2021-08-10 5:45 UTC (permalink / raw)
To: ptxdist
Am Montag, den 09.08.2021, 10:36 +0200 schrieb Christian Melki:
> This means that packages that assume that this variable is absolute
> will have to be modified.
> Adding something like -DCMAKE_INSTALL_LIBDIR=/usr/$(CROSS_LIB_DIR),
> after CROSS_CMAKE_USR to your CONF_OPT will probably suffice.
>
> Signed-off-by: Christian Melki <christian.melki@t2data.com>
Reviewed-by: Denis Osterland-Heim <denis.osterland@diehl.com>
> ---
> rules/pre/Rules.make | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/rules/pre/Rules.make b/rules/pre/Rules.make
> index 54a677c47..0943a51b7 100644
> --- a/rules/pre/Rules.make
> +++ b/rules/pre/Rules.make
> @@ -233,7 +233,7 @@ CROSS_AUTOCONF_ROOT := $(CROSS_AUTOCONF_SYSROOT_ROOT) $(CROSS_AUTOCONF_ARCH)
>
> CROSS_CMAKE_USR := \
> -DCMAKE_INSTALL_PREFIX=/usr \
> --DCMAKE_INSTALL_LIBDIR=/usr/$(CROSS_LIB_DIR) \
> +-DCMAKE_INSTALL_LIBDIR=$(CROSS_LIB_DIR) \
> -DCMAKE_INSTALL_SYSCONFDIR=/etc \
> -DCMAKE_BUILD_TYPE:STRING=RelWithDebInfo \
> -DCMAKE_TOOLCHAIN_FILE='${PTXDIST_CMAKE_TOOLCHAIN_TARGET}'
Diehl Connectivity Solutions GmbH
Geschäftsführung: Horst Leonberger
Sitz der Gesellschaft: Nürnberg - Registergericht: Amtsgericht
Nürnberg: HRB 32315
________________________________
Der Inhalt der vorstehenden E-Mail ist nicht rechtlich bindend. Diese E-Mail enthaelt vertrauliche und/oder rechtlich geschuetzte Informationen.
Informieren Sie uns bitte, wenn Sie diese E-Mail faelschlicherweise erhalten haben. Bitte loeschen Sie in diesem Fall die Nachricht.
Jede unerlaubte Form der Reproduktion, Bekanntgabe, Aenderung, Verteilung und/oder Publikation dieser E-Mail ist strengstens untersagt.
- Informationen zum Datenschutz, insbesondere zu Ihren Rechten, erhalten Sie unter:
https://www.diehl.com/group/de/transparenz-und-informationspflichten/
The contents of the above mentioned e-mail is not legally binding. This e-mail contains confidential and/or legally protected information. Please inform us if you have received this e-mail by
mistake and delete it in such a case. Each unauthorized reproduction, disclosure, alteration, distribution and/or publication of this e-mail is strictly prohibited.
- For general information on data protection and your respective rights please visit:
https://www.diehl.com/group/en/transparency-and-information-obligations/
_______________________________________________
ptxdist mailing list
ptxdist@pengutronix.de
To unsubscribe, send a mail with subject "unsubscribe" to ptxdist-request@pengutronix.de
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [ptxdist] [PATCH] pre/Rules.make: Let CMAKE_INSTALL_LIBDIR be relative, as per spec.
2021-08-10 5:45 ` Denis Osterland-Heim
@ 2021-08-25 14:58 ` Alexander Dahl
0 siblings, 0 replies; 4+ messages in thread
From: Alexander Dahl @ 2021-08-25 14:58 UTC (permalink / raw)
To: ptxdist; +Cc: Denis Osterland-Heim, Christian Melki
Hei hei,
Am Dienstag, 10. August 2021, 07:45:34 CEST schrieb Denis Osterland-Heim:
> Am Montag, den 09.08.2021, 10:36 +0200 schrieb Christian Melki:
>
> > This means that packages that assume that this variable is absolute
> > will have to be modified.
> > Adding something like -DCMAKE_INSTALL_LIBDIR=/usr/$(CROSS_LIB_DIR),
> > after CROSS_CMAKE_USR to your CONF_OPT will probably suffice.
> >
> >
> >
> > Signed-off-by: Christian Melki <christian.melki@t2data.com>
>
> Reviewed-by: Denis Osterland-Heim <denis.osterland@diehl.com>
Tested-by: Alexander Dahl <ada@thorsis.com>
In fact 62f3fc6e4bf9 ("Add missing install CROSS_LIB_DIR for CMAKE
environments.") released with ptxdist-2021.06 broke our CMake based package
prepare stages. Applications were not able to find libraries anymore. Adding
this patch, build succeeds again.
Thanks Christian for giving me the hint in IRC.
Greets
Alex
>
> > ---
> >
> > rules/pre/Rules.make | 2 +-
> > 1 file changed, 1 insertion(+), 1 deletion(-)
> >
> >
> >
> > diff --git a/rules/pre/Rules.make b/rules/pre/Rules.make
> > index 54a677c47..0943a51b7 100644
> > --- a/rules/pre/Rules.make
> > +++ b/rules/pre/Rules.make
> > @@ -233,7 +233,7 @@ CROSS_AUTOCONF_ROOT := $(CROSS_AUTOCONF_SYSROOT_ROOT)
> > $(CROSS_AUTOCONF_ARCH)
>
> >
> >
> > CROSS_CMAKE_USR := \
> > -DCMAKE_INSTALL_PREFIX=/usr \
> >
> > --DCMAKE_INSTALL_LIBDIR=/usr/$(CROSS_LIB_DIR) \
> > +-DCMAKE_INSTALL_LIBDIR=$(CROSS_LIB_DIR) \
> >
> > -DCMAKE_INSTALL_SYSCONFDIR=/etc \
> > -DCMAKE_BUILD_TYPE:STRING=RelWithDebInfo \
> > -DCMAKE_TOOLCHAIN_FILE='${PTXDIST_CMAKE_TOOLCHAIN_TARGET}'
>
> Diehl Connectivity Solutions GmbH
> Geschäftsführung: Horst Leonberger
> Sitz der Gesellschaft: Nürnberg - Registergericht: Amtsgericht
> Nürnberg: HRB 32315
>
> ________________________________
>
> Der Inhalt der vorstehenden E-Mail ist nicht rechtlich bindend. Diese E-Mail
> enthaelt vertrauliche und/oder rechtlich geschuetzte Informationen.
> Informieren Sie uns bitte, wenn Sie diese E-Mail faelschlicherweise
> erhalten haben. Bitte loeschen Sie in diesem Fall die Nachricht. Jede
> unerlaubte Form der Reproduktion, Bekanntgabe, Aenderung, Verteilung
> und/oder Publikation dieser E-Mail ist strengstens untersagt.
> - Informationen zum Datenschutz, insbesondere zu Ihren Rechten, erhalten Sie
> unter:
> https://www.diehl.com/group/de/transparenz-und-informationspflichten/
>
> The contents of the above mentioned e-mail is not legally binding. This
> e-mail contains confidential and/or legally protected information. Please
> inform us if you have received this e-mail by
mistake and delete it in
> such a case. Each unauthorized reproduction, disclosure, alteration,
> distribution and/or publication of this e-mail is strictly prohibited.
> - For general information on data protection and your respective rights
> please visit:
> https://www.diehl.com/group/en/transparency-and-information-obligations/
>
>
> _______________________________________________
> ptxdist mailing list
> ptxdist@pengutronix.de
> To unsubscribe, send a mail with subject "unsubscribe" to
> ptxdist-request@pengutronix.de
_______________________________________________
ptxdist mailing list
ptxdist@pengutronix.de
To unsubscribe, send a mail with subject "unsubscribe" to ptxdist-request@pengutronix.de
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [ptxdist] [APPLIED] pre/Rules.make: Let CMAKE_INSTALL_LIBDIR be relative, as per spec.
2021-08-09 8:36 [ptxdist] [PATCH] pre/Rules.make: Let CMAKE_INSTALL_LIBDIR be relative, as per spec Christian Melki
2021-08-10 5:45 ` Denis Osterland-Heim
@ 2021-10-07 10:18 ` Michael Olbrich
1 sibling, 0 replies; 4+ messages in thread
From: Michael Olbrich @ 2021-10-07 10:18 UTC (permalink / raw)
To: ptxdist; +Cc: Christian Melki
Thanks, applied as 3fa9174fa8ce494337253620f87ed2c9de631cec.
Michael
[sent from post-receive hook]
On Thu, 07 Oct 2021 12:18:19 +0200, Christian Melki <christian.melki@t2data.com> wrote:
> This means that packages that assume that this variable is absolute
> will have to be modified.
> Adding something like -DCMAKE_INSTALL_LIBDIR=/usr/$(CROSS_LIB_DIR),
> after CROSS_CMAKE_USR to your CONF_OPT will probably suffice.
>
> Signed-off-by: Christian Melki <christian.melki@t2data.com>
> Reviewed-by: Denis Osterland-Heim <denis.osterland@diehl.com>
> Tested-by: Alexander Dahl <ada@thorsis.com>
> Message-Id: <20210809083621.3676-1-christian.melki@t2data.com>
> Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
>
> diff --git a/rules/pre/Rules.make b/rules/pre/Rules.make
> index 54a677c474d2..0943a51b7a1d 100644
> --- a/rules/pre/Rules.make
> +++ b/rules/pre/Rules.make
> @@ -233,7 +233,7 @@ CROSS_AUTOCONF_ROOT := $(CROSS_AUTOCONF_SYSROOT_ROOT) $(CROSS_AUTOCONF_ARCH)
>
> CROSS_CMAKE_USR := \
> -DCMAKE_INSTALL_PREFIX=/usr \
> - -DCMAKE_INSTALL_LIBDIR=/usr/$(CROSS_LIB_DIR) \
> + -DCMAKE_INSTALL_LIBDIR=$(CROSS_LIB_DIR) \
> -DCMAKE_INSTALL_SYSCONFDIR=/etc \
> -DCMAKE_BUILD_TYPE:STRING=RelWithDebInfo \
> -DCMAKE_TOOLCHAIN_FILE='${PTXDIST_CMAKE_TOOLCHAIN_TARGET}'
_______________________________________________
ptxdist mailing list
ptxdist@pengutronix.de
To unsubscribe, send a mail with subject "unsubscribe" to ptxdist-request@pengutronix.de
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2021-10-07 10:19 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-08-09 8:36 [ptxdist] [PATCH] pre/Rules.make: Let CMAKE_INSTALL_LIBDIR be relative, as per spec Christian Melki
2021-08-10 5:45 ` Denis Osterland-Heim
2021-08-25 14:58 ` Alexander Dahl
2021-10-07 10:18 ` [ptxdist] [APPLIED] " Michael Olbrich
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox