* gnu-config-native and perl-native
@ 2011-06-01 17:14 Phil Blundell
2011-06-01 17:20 ` Tom Rini
2011-06-01 17:51 ` Richard Purdie
0 siblings, 2 replies; 3+ messages in thread
From: Phil Blundell @ 2011-06-01 17:14 UTC (permalink / raw)
To: Patches and discussions about the oe-core layer
Further to my mini-crusade against perl-native, I discovered that it was
also being included during the initial pseudo build because
gnu-config-native depends on it.
This also seems a bit mysterious: gnu-config has:
DEPENDS_virtclass-native = "perl-native"
... which suggests that the dependency on perl-native was indeed
intentional rather than accidental. But later, it has:
# In the native case we want the system perl as perl-native can't have built yet
if [ "${BUILD_ARCH}" != "${TARGET_ARCH}" ]; then
sed -i -e 's,/usr/bin/env,${bindir}/env,g' ${D}${bindir}/gnu-configize
fi
... which suggests that it isn't actually expecting to use the
newly-built perl anyway. Does anybody know what's going on with that?
p.
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: gnu-config-native and perl-native
2011-06-01 17:14 gnu-config-native and perl-native Phil Blundell
@ 2011-06-01 17:20 ` Tom Rini
2011-06-01 17:51 ` Richard Purdie
1 sibling, 0 replies; 3+ messages in thread
From: Tom Rini @ 2011-06-01 17:20 UTC (permalink / raw)
To: openembedded-core
On 06/01/2011 10:14 AM, Phil Blundell wrote:
> Further to my mini-crusade against perl-native, I discovered that it was
> also being included during the initial pseudo build because
> gnu-config-native depends on it.
Probably a partial sync with oe.dev where we do have perl-native way up
front.
> This also seems a bit mysterious: gnu-config has:
>
> DEPENDS_virtclass-native = "perl-native"
>
> ... which suggests that the dependency on perl-native was indeed
> intentional rather than accidental. But later, it has:
>
> # In the native case we want the system perl as perl-native can't have built yet
> if [ "${BUILD_ARCH}" != "${TARGET_ARCH}" ]; then
> sed -i -e 's,/usr/bin/env,${bindir}/env,g' ${D}${bindir}/gnu-configize
> fi
>
> ... which suggests that it isn't actually expecting to use the
> newly-built perl anyway. Does anybody know what's going on with that?
It's never safe to use #!/full/random/path/to/bin/{perl,python,etc} in
things in our sysroots since some of us build in /very/deep/subdirs and
#! fails.
--
Tom Rini
Mentor Graphics Corporation
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: gnu-config-native and perl-native
2011-06-01 17:14 gnu-config-native and perl-native Phil Blundell
2011-06-01 17:20 ` Tom Rini
@ 2011-06-01 17:51 ` Richard Purdie
1 sibling, 0 replies; 3+ messages in thread
From: Richard Purdie @ 2011-06-01 17:51 UTC (permalink / raw)
To: Patches and discussions about the oe-core layer
On Wed, 2011-06-01 at 18:14 +0100, Phil Blundell wrote:
> Further to my mini-crusade against perl-native, I discovered that it was
> also being included during the initial pseudo build because
> gnu-config-native depends on it.
>
> This also seems a bit mysterious: gnu-config has:
>
> DEPENDS_virtclass-native = "perl-native"
>
> ... which suggests that the dependency on perl-native was indeed
> intentional rather than accidental. But later, it has:
>
> # In the native case we want the system perl as perl-native can't have built yet
> if [ "${BUILD_ARCH}" != "${TARGET_ARCH}" ]; then
> sed -i -e 's,/usr/bin/env,${bindir}/env,g' ${D}${bindir}/gnu-configize
> fi
>
> ... which suggests that it isn't actually expecting to use the
> newly-built perl anyway. Does anybody know what's going on with that?
This was merged as a work around to the ton of bugs we were seeing where
if perl-native was half staged (say the perl binary without libperl)
when gnu-configize was run you would see build failures or other timing
related issues.
It works since it makes perl-native happen early and consistently.
I allowed the workaround on the condition we did go back and fix the
problem properly, Dexuan has published a series doing just this and many
perl-native dependencies will disappear when that series merges.
Cheers,
Richard
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2011-06-01 17:55 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-06-01 17:14 gnu-config-native and perl-native Phil Blundell
2011-06-01 17:20 ` Tom Rini
2011-06-01 17:51 ` Richard Purdie
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox