* [gentoo-dev] Retrieve get_libdir path on EAPI 6
@ 2017-03-12 9:36 Geaaru
2017-03-12 9:53 ` Michał Górny
2017-03-12 10:14 ` Andrew Savchenko
0 siblings, 2 replies; 6+ messages in thread
From: Geaaru @ 2017-03-12 9:36 UTC (permalink / raw
To: gentoo-dev
Hi,
in EAPI 6 get_libdir function is not more available but I currently use
it on my eclass for initialize some metadata.
How can I retrieve environment $libdir path ? With LIBDIR_${cpu}
variable?
On mgorny post I read that get_libdir function is part of EAPI, but I
don't understand how this means. I use portage-2.3.4.
Thanks in advance
G.
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [gentoo-dev] Retrieve get_libdir path on EAPI 6
2017-03-12 9:36 [gentoo-dev] Retrieve get_libdir path on EAPI 6 Geaaru
@ 2017-03-12 9:53 ` Michał Górny
2017-03-12 10:02 ` Geaaru
2017-03-12 10:14 ` Andrew Savchenko
1 sibling, 1 reply; 6+ messages in thread
From: Michał Górny @ 2017-03-12 9:53 UTC (permalink / raw
To: gentoo-dev
[-- Attachment #1: Type: text/plain, Size: 577 bytes --]
W dniu 12.03.2017, nie o godzinie 10∶36 +0100, użytkownik Geaaru
napisał:
> Hi,
>
> in EAPI 6 get_libdir function is not more available but I currently use
> it on my eclass for initialize some metadata.
> How can I retrieve environment $libdir path ? With LIBDIR_${cpu}
> variable?
>
> On mgorny post I read that get_libdir function is part of EAPI, but I
> don't understand how this means. I use portage-2.3.4.
>
This means that you can use it without inheriting any eclass. It's
provided by portage directly.
--
Best regards,
Michał Górny
[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 963 bytes --]
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [gentoo-dev] Retrieve get_libdir path on EAPI 6
2017-03-12 9:53 ` Michał Górny
@ 2017-03-12 10:02 ` Geaaru
2017-03-12 10:07 ` Michał Górny
0 siblings, 1 reply; 6+ messages in thread
From: Geaaru @ 2017-03-12 10:02 UTC (permalink / raw
To: gentoo-dev
[-- Attachment #1: Type: text/plain, Size: 935 bytes --]
Thanks for replay. But if I try to use it inside my eclass inside my
overlay isn't resolved correctly. I receive an empty string. Could be
related that in my eclass function is not already available? Or related to
a wrong version of some packages?
On Mar 12, 2017 10:55 AM, "Michał Górny" <mgorny@gentoo.org> wrote:
> W dniu 12.03.2017, nie o godzinie 10∶36 +0100, użytkownik Geaaru
> napisał:
> > Hi,
> >
> > in EAPI 6 get_libdir function is not more available but I currently use
> > it on my eclass for initialize some metadata.
> > How can I retrieve environment $libdir path ? With LIBDIR_${cpu}
> > variable?
> >
> > On mgorny post I read that get_libdir function is part of EAPI, but I
> > don't understand how this means. I use portage-2.3.4.
> >
>
> This means that you can use it without inheriting any eclass. It's
> provided by portage directly.
>
> --
> Best regards,
> Michał Górny
>
[-- Attachment #2: Type: text/html, Size: 1290 bytes --]
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [gentoo-dev] Retrieve get_libdir path on EAPI 6
2017-03-12 10:02 ` Geaaru
@ 2017-03-12 10:07 ` Michał Górny
[not found] ` <CAJW3CeyaDWPFKbVsxz1BJt+DNRLieLnpmZPmUZgApv8ZS=KtWA@mail.gmail.com>
0 siblings, 1 reply; 6+ messages in thread
From: Michał Górny @ 2017-03-12 10:07 UTC (permalink / raw
To: gentoo-dev
[-- Attachment #1: Type: text/plain, Size: 592 bytes --]
W dniu 12.03.2017, nie o godzinie 11∶02 +0100, użytkownik Geaaru
napisał:
> Thanks for replay. But if I try to use it inside my eclass inside my
> overlay isn't resolved correctly. I receive an empty string. Could be
> related that in my eclass function is not already available? Or related to
> a wrong version of some packages?
If you are attempting to use it in global scope (i.e. outside phase
functions), then it won't work. Such a use is forbidden since it would
mean that global variables differ depending on profile being used.
--
Best regards,
Michał Górny
[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 963 bytes --]
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [gentoo-dev] Retrieve get_libdir path on EAPI 6
2017-03-12 9:36 [gentoo-dev] Retrieve get_libdir path on EAPI 6 Geaaru
2017-03-12 9:53 ` Michał Górny
@ 2017-03-12 10:14 ` Andrew Savchenko
1 sibling, 0 replies; 6+ messages in thread
From: Andrew Savchenko @ 2017-03-12 10:14 UTC (permalink / raw
To: gentoo-dev; +Cc: Geaaru
[-- Attachment #1: Type: text/plain, Size: 383 bytes --]
On Sun, 12 Mar 2017 10:36:33 +0100 Geaaru wrote:
> Hi,
>
> in EAPI 6 get_libdir function is not more available
???
It _is_ available.
In EAPI 6 get_libdir was removed from multilib.eclass and put to
EAPI 6:
https://projects.gentoo.org/pms/6/pms.html#x1-143034r25
P.S. Questions about ebuild writing should go to gentoo-devhelp ML.
Best regards,
Andrew Savchenko
[-- Attachment #2: Type: application/pgp-signature, Size: 819 bytes --]
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [gentoo-dev] Retrieve get_libdir path on EAPI 6
[not found] ` <CAJW3CeybvOiz6s2gUQUyhRQNKABprFYKYzScNQEciDHmQjtk8g@mail.gmail.com>
@ 2017-03-12 12:08 ` Geaaru
0 siblings, 0 replies; 6+ messages in thread
From: Geaaru @ 2017-03-12 12:08 UTC (permalink / raw
To: gentoo-dev
[-- Attachment #1: Type: text/plain, Size: 778 bytes --]
Ok. Thank you very much for clarification.
And sorry, for next questions I will use gentoo-devhelp ml.
G.
On Mar 12, 2017 11:08 AM, "Michał Górny" <mgorny@gentoo.org> wrote:
W dniu 12.03.2017, nie o godzinie 11∶02 +0100, użytkownik Geaaru
napisał:
> Thanks for replay. But if I try to use it inside my eclass inside my
> overlay isn't resolved correctly. I receive an empty string. Could be
> related that in my eclass function is not already available? Or related to
> a wrong version of some packages?
If you are attempting to use it in global scope (i.e. outside phase
functions), then it won't work. Such a use is forbidden since it would
mean that global variables differ depending on profile being used.
--
Best regards,
Michał Górny
[-- Attachment #2: Type: text/html, Size: 1308 bytes --]
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2017-03-12 12:08 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-03-12 9:36 [gentoo-dev] Retrieve get_libdir path on EAPI 6 Geaaru
2017-03-12 9:53 ` Michał Górny
2017-03-12 10:02 ` Geaaru
2017-03-12 10:07 ` Michał Górny
[not found] ` <CAJW3CeyaDWPFKbVsxz1BJt+DNRLieLnpmZPmUZgApv8ZS=KtWA@mail.gmail.com>
[not found] ` <CAJW3CeybvOiz6s2gUQUyhRQNKABprFYKYzScNQEciDHmQjtk8g@mail.gmail.com>
2017-03-12 12:08 ` Geaaru
2017-03-12 10:14 ` Andrew Savchenko
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox