rrdtool: fix compile error
rrdtool: fix compile error

Since cpan.bbclass has evolved, the old wrapper simulation needs some adoption.
Use as much as possible from cpan.bbclass instead of copying code from there.

Signed-off-by: Jens Rehsack <69d49c504a9219a55b8be0f905e8fe3c32ffb57f@netbsd.org>
Signed-off-by: Martin Jansa <516df3ff67e1fa5d153800b15fb204c0a1a389dc@gmail.com>

lgirdk/meta-openembedded,joelagnel/meta-openembedded,lgirdk/meta-openembedded,rehsack/meta-openembedded,schnitzeltony/meta-openembedded,openembedded/meta-openembedded,mrchapp/meta-openembedded,kraj/meta-openembedded,fredcadete/meta-openembedded,fredcadete/meta-openembedded,openembedded/meta-openembedded,lgirdk/meta-openembedded,rdm-dev/meta-openembedded,RedFIR/meta-openembedded,fredcadete/meta-openembedded,shr-distribution/meta-oe,mrchapp/meta-openembedded,victronenergy/meta-openembedded,rehsack/meta-openembedded,RedFIR/meta-openembedded,victronenergy/meta-openembedded,moto-timo/meta-openembedded,amery/meta-openembedded,amery/meta-openembedded,rehsack/meta-openembedded,lgirdk/meta-openembedded,VCTLabs/meta-openembedded,fredcadete/meta-openembedded,shr-distribution/meta-oe,VCTLabs/meta-openembedded,VCTLabs/meta-openembedded,openembedded/meta-openembedded,openembedded/meta-openembedded,RedFIR/meta-openembedded,rdm-dev/meta-openembedded,sigma-embedded/elito-org.openembedded.meta,VCTLabs/meta-openembedded,sigma-embedded/elito-org.openembedded.meta,rdm-dev/meta-openembedded,mrchapp/meta-openembedded,moto-timo/meta-openembedded,shr-distribution/meta-oe,moto-timo/meta-openembedded,RedFIR/meta-openembedded,VCTLabs/meta-openembedded,amery/meta-openembedded,joelagnel/meta-openembedded,sigma-embedded/elito-org.openembedded.meta,rehsack/meta-openembedded,amery/meta-openembedded,victronenergy/meta-openembedded,sigma-embedded/elito-org.openembedded.meta,RedFIR/meta-openembedded,rehsack/meta-openembedded,kraj/meta-openembedded,RedFIR/meta-openembedded,shr-distribution/meta-oe,joelagnel/meta-openembedded,schnitzeltony/meta-openembedded,shr-distribution/meta-oe,joelagnel/meta-openembedded,schnitzeltony/meta-openembedded,shr-distribution/meta-oe,kraj/meta-openembedded,moto-timo/meta-openembedded,openembedded/meta-openembedded,joelagnel/meta-openembedded,schnitzeltony/meta-openembedded,sigma-embedded/elito-org.openembedded.meta,victronenergy/meta-openembedded,RedFIR/meta-openembedded,shr-distribution/meta-oe,openembedded/meta-openembedded,VCTLabs/meta-openembedded,kraj/meta-openembedded,fredcadete/meta-openembedded,joelagnel/meta-openembedded,victronenergy/meta-openembedded,amery/meta-openembedded,sigma-embedded/elito-org.openembedded.meta,openembedded/meta-openembedded,amery/meta-openembedded,joelagnel/meta-openembedded,amery/meta-openembedded,fredcadete/meta-openembedded,moto-timo/meta-openembedded,rdm-dev/meta-openembedded,lgirdk/meta-openembedded,victronenergy/meta-openembedded,RedFIR/meta-openembedded,rdm-dev/meta-openembedded,rdm-dev/meta-openembedded,lgirdk/meta-openembedded,sigma-embedded/elito-org.openembedded.meta,kraj/meta-openembedded,rdm-dev/meta-openembedded,VCTLabs/meta-openembedded,schnitzeltony/meta-openembedded,kraj/meta-openembedded,joelagnel/meta-openembedded,rehsack/meta-openembedded,lgirdk/meta-openembedded,schnitzeltony/meta-openembedded,amery/meta-openembedded,mrchapp/meta-openembedded,victronenergy/meta-openembedded,rehsack/meta-openembedded,shr-distribution/meta-oe,mrchapp/meta-openembedded,openembedded/meta-openembedded,fredcadete/meta-openembedded,mrchapp/meta-openembedded,kraj/meta-openembedded,VCTLabs/meta-openembedded,fredcadete/meta-openembedded,mrchapp/meta-openembedded,rdm-dev/meta-openembedded,schnitzeltony/meta-openembedded