anchor.diff:  BBCLASSEXTEND = "native nativesdk"
   
   #
  -# To build from debian (jessie) source code
  -#
  -
  -inherit debian-package
  -DEBIAN_SECTION = "admin"
  -DPR = "0"
  -
  -LICENSE = "GPL-2.0"
  -LIC_FILES_CHKSUM = "file://COPYING;md5=f5259151d26ff18e78023450a5ac8d96"
  -
  -# FIXME: fail when regenerate config.status and Makefile.in
  -# Makefile.in is already available, temporarily remove this step
  -# with no_recreate_Makefile_in.patch
  -SRC_URI += " \
  -file://no_recreate_Makefile_in.patch \
  -file://pythondeps.sh \
  -file://change-aclocal-version.patch \
  -file://remove-db3-from-configure.patch \                                
  -file://add_RPMSENSE_MISSINGOK_to_rpmmodule.patch \                      
  -file://support-suggests-tag.patch \                                     
  -file://remove-dir-check.patch \                                         
  -file://disable_shortcircuited.patch \                                   
  -file://fix_libdir.patch \                                               
  -file://rpm-scriptetexechelp.patch \ 
  -"
  -
  -EXTRA_OEMAKE += " LIBTOOL=${HOST_SYS}-libtool"
  -
  -# Autoreconf breaks with
  -# gnu-configize: `configure.ac' or `configure.in' is required
  -# Works good enough without autoreconf
  -do_configure () {
  -	# configure cannot find sechash.h by default
  -	export CPPFLAGS="-I${STAGING_INCDIR_NATIVE} -I${STAGING_INCDIR_NATIVE}/nss3"
  -	# set some variables so python can see Python.h header 
  -	export BUILD_SYS=${BUILD_SYS}
  -	export HOST_SYS=${HOST_SYS}
  -	export STAGING_INCDIR=${STAGING_INCDIR}
  -	export STAGING_LIBDIR=${STAGING_LIBDIR}
  -	oe_runconf
  -}
  -
  -#
   # Debian Native Test
   #
   inherit debian-test
  
positive.code: #
  # rpm_4.11.2.bb from openembedded
  #
  SUMMARY = "The RPM package management system"
  DESCRIPTION = "The RPM Package Manager (RPM) is a powerful command line driven \
  package management system capable of installing, uninstalling, \
  
negative.code: 		--enable-python \
  		--with-external-db \
  		"
  LDFLAGS_append = " -Wl,-Bsymbolic-functions -ffunction-sections"
  CCFLAGS_append = " -fPIC "
  CXXFLAGS_append = " -fPIC "
  CFLAGS_append = " -fPIC -DRPM_VENDOR_WINDRIVER -DRPM_VENDOR_POKY -DRPM_VENDOR_OE "
  
  EXTRA_OEMAKE += " LIBTOOL=${HOST_SYS}-libtool"
  
  do_configure_prepend() {
  	rm -rf sqlite
  	rm -f m4/libtool.m4
  	rm -f m4/lt*.m4
  	rm -rf db3/configure*
  }
  
  # Autoreconf breaks with
  # gnu-configize: `configure.ac' or `configure.in' is required
  # Works good enough without autoreconf
  do_configure () {
          # configure cannot find sechash.h by default
          export CPPFLAGS="-I${STAGING_INCDIR_NATIVE} -I${STAGING_INCDIR_NATIVE}/nss3"
          # set some variables so python can see Python.h header 
          export BUILD_SYS=${BUILD_SYS}
          export HOST_SYS=${HOST_SYS}
          export STAGING_INCDIR=${STAGING_INCDIR}
          export STAGING_LIBDIR=${STAGING_LIBDIR}
          oe_runconf
  }
  
  do_install_append() {
  