anchor.diff:  
   HOMEPAGE = "http://www.rpm.org"
   
  -#LICENSE = "GPL-2.0+"
  +LICENSE = "GPL-2.0"
  +LIC_FILES_CHKSUM = "file://COPYING;md5=f5259151d26ff18e78023450a5ac8d96"
   
  -#LIC_FILES_CHKSUM ??= " \
  -#file://${COMMON_LICENSE_DIR}/GPL-2.0;md5=801f80980d171dd6425610833a22dbe6"
  +# 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 \
  +"
   
   DEPENDS = "db libxml2 xz file popt nss bzip2 elfutils patch attr \
                  zlib acl gzip make binutils python"
  
positive.code: 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
  
negative.code: 		nativesdk-popt nativesdk-nss nativesdk-bzip2 nativesdk-elfutils nativesdk-attr \
  		nativesdk-zlib nativesdk-acl nativesdk-make nativesdk-python"
  RDEPENDS_${PN}_class-nativesdk = ""
  
  inherit autotools
  inherit pythonnative
  