Skip to contentSkip to conversation

gnu-config-native and perl-native

DISCUSSION Phil Blundell 3 participants 3 messages Jun 1, 2011

lore
Share & tools
lore
#0 lore raw

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.

#1 lore raw
Quoted 3 lines · Phil Blundell

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.

Quoted 7 lines

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:

Quoted 7 lines
	# 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.

Signature · 2 lines
Tom Rini
Mentor Graphics Corporation
#2 lore raw
In reply to Phil Blundell
Quoted 11 lines · Phil Blundell

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:

Quoted 7 lines
	# 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