[oe] [meta-oe][PATCH 1/5] waf-samba: add new class
Huang, Jie (Jackie)
Jackie.Huang at windriver.com
Thu Sep 24 06:56:03 UTC 2015
> -----Original Message-----
> From: openembedded-devel-bounces at lists.openembedded.org [mailto:openembedded-devel-
> bounces at lists.openembedded.org] On Behalf Of Martin Jansa
> Sent: Monday, August 24, 2015 8:29 PM
> To: openembedded-devel at lists.openembedded.org
> Cc: Koen Kooi
> Subject: Re: [oe] [meta-oe][PATCH 1/5] waf-samba: add new class
>
> On Fri, Aug 21, 2015 at 01:11:03AM +0000, Bian, Naimeng wrote:
> > > -----Original Message-----
> > > From: Koen Kooi [mailto:koen at dominion.thruhere.net]
> > > Sent: Thursday, August 20, 2015 11:59 PM
> > > To: openembedded-devel at lists.openembedded.org
> > > Cc: Bian, Naimeng; Koen Kooi
> > > Subject: [meta-oe][PATCH 1/5] waf-samba: add new class
> > >
> > > From: Bian Naimeng <biannm at cn.fujitsu.com>
>
> I've merged Bian's implementation, because it was passing jenkins builds now, can one of you please
> send rebased version of these patches?
Any new progress for this? talloc do_configure fails with current implementation:
| Checking for program gcc or cc : ['powerpc-wrs-linux-gcc', '-m32', '-mhard-float', '-mcpu=7400', '--sysroot=/buildarea/raid0/jhuang0/builds/d_samba_150914/p_ppc_150923/bitbake_build/tmp/sysroots/qemuppc']
| Checking for program ar : powerpc-wrs-linux-ar
| Checking for program ranlib : powerpc-wrs-linux-ranlib
| Checking for gcc : ok
| Checking for program git : /buildarea/raid0/jhuang0/builds/d_samba_150914/p_ppc_150923/bitbake_build/buildtools/sysroots/x86_64-wrlinuxsdk-linux/usr/bin/git
| Check for -MD : yes
| Checking for program gdb : /buildarea/raid0/jhuang0/builds/d_samba_150914/p_ppc_150923/scripts/gdb
| Checking build system : Linux pek-lpggp1 3.13.0-61-generic #100-Ubuntu SMP Wed Jul 29 11:21:34 UTC 2015 x86_64 x86_64 x86_64 GNU/Linux
| Checking for header sys/utsname.h : yes
| Checking uname sysname type : not found
| Checking uname machine type : not found
| Checking uname release type : not found
| Checking uname version type : not found
| Checking for header stdio.h : yes
| Checking simple C program : /buildarea/raid0/jhuang0/builds/d_samba_150914/p_ppc_150923/bitbake_build/tmp/work/ppc7400-wrs-linux/talloc/2.1.1-r0/talloc-2.1.1/lib/replace/../../buildtools/wafsamba/wscript:296: error: the configuration failed (see '/buildarea/raid0/jhuang0/builds/d_samba_150914/p_ppc_150923/bitbake_build/tmp/work/ppc7400-wrs-linux/talloc/2.1.1-r0/talloc-2.1.1/bin/config.log')
| WARNING: exit code 1 from a shell command.
| ERROR: Function failed: do_configure (log file is located at /buildarea/raid0/jhuang0/builds/d_samba_150914/p_ppc_150923/bitbake_build/tmp/work/ppc7400-wrs-linux/talloc/2.1.1-r0/temp/do_configure/log.do_configure.79871)
NOTE: recipe talloc-2.1.1-r0: task do_configure: Failed
Thanks,
Jackie
>
> > >
> > > waf-samba is a build system used by samba related software
> > >
> > > Signed-off-by: Bian Naimeng <biannm at cn.fujitsu.com>
> > > Signed-off-by: Koen Kooi <koen at dominion.thruhere.net>
> > > ---
> > > meta-oe/classes/waf-samba.bbclass | 51
> > > +++++++++++++++++++++++++++++++++++++++
> > > 1 file changed, 51 insertions(+)
> > > create mode 100644 meta-oe/classes/waf-samba.bbclass
> > >
> > > diff --git a/meta-oe/classes/waf-samba.bbclass
> > > b/meta-oe/classes/waf-samba.bbclass
> > > new file mode 100644
> > > index 0000000..b8e010a
> > > --- /dev/null
> > > +++ b/meta-oe/classes/waf-samba.bbclass
> > > @@ -0,0 +1,51 @@
> > > +# waf is a build system which is used by samba related project.
> > > +# Obtain details from https://wiki.samba.org/index.php/Waf
> > > +#
> > > +inherit qemu pythonnative
> > > +
> > > +DEPENDS += "qemu-native libxslt-native
> > > +docbook-xsl-stylesheets-native
> > > python"
> > > +
> > > +CONFIGUREOPTS = " --prefix=${prefix} \
> > > + --bindir=${bindir} \
> > > + --sbindir=${sbindir} \
> > > + --libexecdir=${libexecdir} \
> > > + --datadir=${datadir} \
> > > + --sysconfdir=${sysconfdir} \
> > > + --sharedstatedir=${sharedstatedir} \
> > > + --localstatedir=${localstatedir} \
> > > + --libdir=${libdir} \
> > > + --includedir=${includedir} \
> > > + --oldincludedir=${oldincludedir} \
> > > + --infodir=${infodir} \
> > > + --mandir=${mandir} \
> > > + "
> > > +
> > > +do_configure() {
> > > + qemu_binary="${@qemu_target_binary(d)}"
> > > + if [ ${qemu_binary} == "qemu-allarch" ]; then
> > > + qemu_binary="qemuwrapper"
> > > + fi
> > > +
> > > + libdir_qemu="${STAGING_DIR_HOST}/${libdir}"
> > > + base_libdir_qemu="${STAGING_DIR_HOST}/${base_libdir}"
> > > + oldest_kernel_qemu=${OLDEST_KERNEL}
> > > +
> > > + CROSS_EXEC="${qemu_binary} \
> > > + -r ${oldest_kernel_qemu} \
> > > + -L ${STAGING_DIR_HOST} \
> > > + -E LD_LIBRARY_PATH=${libdir_qemu}:${base_libdir_qemu}"
> > > +
> > > + export BUILD_SYS=${BUILD_SYS}
> > > + export HOST_SYS=${HOST_SYS}
> > > + export BUILD_ARCH=${BUILD_ARCH}
> > > + export HOST_ARCH=${HOST_ARCH}
> > > + export STAGING_LIBDIR=${STAGING_LIBDIR}
> > > + export STAGING_INCDIR=${STAGING_INCDIR}
> > > + export PYTHONPATH=${STAGING_DIR_HOST}${PYTHON_SITEPACKAGES_DIR}
> > > +
> > > + ./configure ${CONFIGUREOPTS} ${EXTRA_OECONF} --cross-compile
> > > --cross-execute="${CROSS_EXEC}"
> > > --cross-answers=${B}/cross-answers-${TARGET_ARCH}.txt
> >
> > Thanks for your update.
> >
> > Would you tell me why both --cross-execute and --cross-answer are required.
> > If the --cross-answers is not be required, IMO, we do not need support it.
> > Because it will be not an easy job to maintain
> > cross-answers-${TARGET_ARCH}.txt for each waf-samba.bbclass based recipe.
> >
> > Thanks
> > Bian
> >
> > > +}
> > > +
> > > +do_install() {
> > > + oe_runmake install DESTDIR=${D} }
> > > --
> > > 2.0.1
> >
> > --
> > _______________________________________________
> > Openembedded-devel mailing list
> > Openembedded-devel at lists.openembedded.org
> > http://lists.openembedded.org/mailman/listinfo/openembedded-devel
>
> --
> Martin 'JaMa' Jansa jabber: Martin.Jansa at gmail.com
More information about the Openembedded-devel
mailing list