anchor.diff:  # base branch: daisy
   #
   
  -PR = "r0"
  +SUMMARY = "Apache Portable Runtime Library"
  +DESCRIPTION = "APR is Apache's Portable Runtime Library, designed to be a support library \
  +that provides a predictable and consistent interface to underlying \
  +platform-specific implementations."
  +HOMEPAGE = "http://apr.apache.org/"
  +
  +PR = "r1"
   
   inherit debian-package
   
  
positive.code: 
  OE_BINCONFIG_EXTRA_MANGLE = " -e 's:location=source:location=installed:'"
  
  # Added to fix some issues with cmake. Refer to https://github.com/bmwcarit/meta-ros/issues/68#issuecomment-19896928
  CACHED_CONFIGUREVARS += "apr_cv_mutex_recursive=yes"
  
  do_configure_prepend() {
  	cd ${S}
  	./buildconf
  }
  
  FILES_${PN}-dev += "${libdir}/apr.exp ${datadir}/build-1/*"
  
  #for some reason, build/libtool.m4 handled by buildconf still be overwritten
  #when autoconf, so handle it again.
  
negative.code: }
  
  do_install_append() {
  	oe_multilib_header apr-1.0/apr.h
  	install -m 0755 ${S}/${HOST_SYS}-libtool ${D}${datadir}/apr-1.0/build/libtool
  
  	ln -sf apr-1-config ${D}${bindir}/apr-config
  }
  
  # apr-config is a symlink, only apr-1-config should be modified
  BINCONFIG_GLOB = "apr-1-config"
  SSTATE_SCAN_FILES += "apr_rules.mk libtool"
  
  SYSROOT_PREPROCESS_FUNCS += "apr_sysroot_preprocess"
  
  apr_sysroot_preprocess () {
  	d=${SYSROOT_DESTDIR}${datadir}/apr-1.0/build
  	sed -i s,apr_builddir=.*,apr_builddir=,g $d/apr_rules.mk
  	sed -i s,apr_builders=.*,apr_builders=,g $d/apr_rules.mk
  	sed -i s,LIBTOOL=.*,LIBTOOL=${HOST_SYS}-libtool,g $d/apr_rules.mk
  	sed -i s,\$\(apr_builders\),${STAGING_DATADIR}/apr-1.0/build,g $d/apr_rules.mk
  
  	sed -i "s,cd /usr/share,cd ${STAGING_DATADIR},g" ${SYSROOT_DESTDIR}${bindir_crossscripts}/apr-1-config
  }
  
  DEBIANNAME_${PN} = "lib${PN}1"
  DEBIANNAME_${PN}-dev = "lib${PN}1-dev"
  DEBIANNAME_${PN}-dbg = "lib${PN}1-dbg"
  
  do_compile_ptest() {
  	cd ${S}/test
  