anchor.diff:  		--enable-python \
   		--with-external-db \
   		"
  -#CPPFLAGS_append = " `pkg-config --cflags nss`"
   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() {
  
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: 
  HOMEPAGE = "http://www.rpm.org"
  
  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 \
  "
  
  DEPENDS = "db libxml2 xz file popt nss bzip2 elfutils patch attr \
                 zlib acl gzip make binutils python"
  