It's a [PERL] lie...
After three weeks, I've finally figured out why my PERL based programs (Amanda in particular) don't run on my Poky/Yocto system.
I have my own distribution, derived from Poky, with some minor tweaks. In particular, I have some reduced DISTRO_FEATURES(*). One of them that I had removed, 'largefile', was the root cause of my PERL problems. It turns out that PERL is the only package that cares about this DISTRO_FEATURE and it builds incorrectly if it's left out :-( Adding this feature back into my settings made PERL build properly and now Amanda runs as well.
My point/query is that if this setting is only used by PERL *and* leaving it out breaks things anyway, shouldn't it just be removed and the PERL recipes changed to assume that it was set?
* Note: I made these changes years ago, when I was new to OE/Poky and still quite naive, and I don't recall why I removed 'largefile'.
Signature · 4 lines
------------------------------------------------------------ Gary Thomas | Consulting for the MLB Associates | Embedded world ------------------------------------------------------------
Quoted 4 lines · Gary Thomas
It turns out that PERL is the only package
that cares about thisDISTRO_FEATUREand it builds incorrectly if it's left out :-( Adding this feature back into my settings made PERL build properly and now Amanda runs as well.
According to grep it's perl, cmake and libarchive that respect the largefile feature.
If perl is known to break without largefile it's simple enough to make it error when building if the feature isn't enabled, but to be honest should we just remove this feature as it's so infrequently used?
Ross
Quoted 8 lines · Ross
Quoted 4 lines · Gary Thomas
It turns out that PERL is the only package
that cares about thisDISTRO_FEATUREand it builds incorrectly if it's left out :-( Adding this feature back into my settings made PERL build properly and now Amanda runs as well.According to grep it's perl, cmake and libarchive that respect the largefile feature.
Indeed, I missed them in my zeal :-( I new I was looking for something that affected my problem, and perl was the key (I'm not using either of the other packages)
Quoted 4 lines
If perl is known to break without largefile it's simple enough to make it error when building if the feature isn't enabled, but to be honest should we just remove this feature as it's so infrequently used?
I'd vote for at least fixing the perl recipe. The problem is insidious; it only fails at runtime and then in mysterious ways... It also fails on every architecture I tried (x86, ARM, PPC)
Signature · 4 lines
------------------------------------------------------------ Gary Thomas | Consulting for the MLB Associates | Embedded world ------------------------------------------------------------