root@n8-laptop:/usr/src# rm evolution-3.2.1/ -rf
root@n8-laptop:/usr/src# apt-get source evolution
Reading package lists... Done
Building dependency tree       
Reading state information... Done
NOTICE: 'evolution' packaging is maintained in the 'Bzr' version control system at:
https://code.launchpad.net/~ubuntu-desktop/evolution/ubuntu
Please use:
bzr branch https://code.launchpad.net/~ubuntu-desktop/evolution/ubuntu
to retrieve the latest (possibly unreleased) updates to the package.
Skipping already downloaded file 'evolution_3.2.1-0ubuntu1.dsc'
Skipping already downloaded file 'evolution_3.2.1.orig.tar.bz2'
Skipping already downloaded file 'evolution_3.2.1-0ubuntu1.debian.tar.gz'
Need to get 0 B of source archives.
gpgv: Signature made Tue 18 Oct 2011 10:13:07 AM EDT using RSA key ID EE018C93
gpgv: Can't check signature: public key not found
dpkg-source: warning: failed to verify signature on ./evolution_3.2.1-0ubuntu1.dsc
dpkg-source: info: extracting evolution in evolution-3.2.1
dpkg-source: info: unpacking evolution_3.2.1.orig.tar.bz2
dpkg-source: info: unpacking evolution_3.2.1-0ubuntu1.debian.tar.gz
dpkg-source: info: applying 01_ubuntu_signature.patch
dpkg-source: info: applying 02_fix_missing_include_for_composer.patch
dpkg-source: info: applying 03_lpi.patch
dpkg-source: info: applying 04_delay_alarm_notifier.patch
dpkg-source: info: applying 09_add_ubuntuone_email.patch
dpkg-source: info: applying 10_desktop_shortcuts.patch
dpkg-source: info: applying 11_remove_upstream_submit_bugreport.patch
dpkg-source: info: applying 61_translate_menu_entry.patch
dpkg-source: info: applying 62_no_upstream_email_notification_by_default.patch
dpkg-source: info: applying 89_remove_component_id_registration.patch
dpkg-source: info: applying 89_remove_quit_button.patch
dpkg-source: info: applying 91_add_u1_email_translations.patch
dpkg-source: info: applying 93_no_tray_icon_by_default.patch
dpkg-source: info: applying 99-remove-gettext-macros.patch
dpkg-source: info: applying onlyshowin-add-unity.patch
dpkg-source: info: applying spamd_sbin_path.patch
root@n8-laptop:/usr/src# cd evolution-3.2.1/
root@n8-laptop:/usr/src/evolution-3.2.1# ls
a11y         compile       COPYING-DOCS      e-util                     evolution-zip.in      intltool-extract.in  Makefile.am  po
ABOUT-NLS    composer      COPYING.LGPL2     evolution-calendar-3.0.pc  filter                intltool-merge.in    Makefile.in  README
aclocal.m4   config.guess  COPYING.LGPL3     evolution-calendar.pc.in   glib-gen.mak          intltool-update.in   marshal.mk   shell
addressbook  config.h.in   COPYING.OPENLDAP  evolution-mail-3.0.pc      gnome-doc-utils.make  libgnomecanvas       missing      smclient
art          config.rpath  data              evolution-mail.pc.in       gtk-doc.make          ltmain.sh            modules      smime
AUTHORS      config.sub    debian            evolution-plugin-3.0.pc    HACKING               m4                   NEWS         sounds
calendar     configure     depcomp           evolution-plugin.pc.in     help                  mail                 NEWS-1.0     ui
capplet      configure.ac  doc               evolution-shell-3.0.pc     iconv-detect.c        maint                plugin.mk    views
ChangeLog    COPYING       em-format         evolution-shell.pc.in      install-sh            MAINTAINERS          plugins      widgets
root@n8-laptop:/usr/src/evolution-3.2.1# cat ../evo.patch.libraries | patch -p1
patching file addressbook/gui/Makefile.am
patching file addressbook/gui/contact-editor/Makefile.am
Hunk #2 succeeded at 27 with fuzz 1.
patching file addressbook/gui/contact-list-editor/Makefile.am
Hunk #2 succeeded at 23 (offset 1 line).
patching file addressbook/gui/widgets/Makefile.am
Hunk #3 succeeded at 31 (offset -1 lines).
Hunk #4 FAILED at 76.
Hunk #5 succeeded at 83 (offset -3 lines).
1 out of 5 hunks FAILED -- saving rejects to file addressbook/gui/widgets/Makefile.am.rej
patching file calendar/gui/Makefile.am
patching file composer/Makefile.am
Hunk #1 FAILED at 57.
1 out of 1 hunk FAILED -- saving rejects to file composer/Makefile.am.rej
patching file configure.ac
Hunk #1 succeeded at 1662 (offset 77 lines).
patching file mail/Makefile.am
Hunk #1 succeeded at 197 (offset -1 lines).
Hunk #2 succeeded at 208 with fuzz 1 (offset -1 lines).
patching file modules/addressbook/Makefile.am
Hunk #1 succeeded at 57 (offset -1 lines).
patching file modules/calendar/Makefile.am
patching file plugins/attachment-reminder/Makefile.am
Hunk #1 succeeded at 23 with fuzz 2 (offset -1 lines).
patching file plugins/bbdb/Makefile.am
Hunk #1 FAILED at 25.
1 out of 1 hunk FAILED -- saving rejects to file plugins/bbdb/Makefile.am.rej
patching file plugins/external-editor/Makefile.am
Hunk #1 FAILED at 37.
1 out of 1 hunk FAILED -- saving rejects to file plugins/external-editor/Makefile.am.rej
patching file plugins/vcard-inline/Makefile.am
Hunk #1 FAILED at 24.
1 out of 1 hunk FAILED -- saving rejects to file plugins/vcard-inline/Makefile.am.rej
patching file plugins/vcard-inline/vcard-inline.c
root@n8-laptop:/usr/src/evolution-3.2.1# cat addressbook/gui/widgets/Makefile.am.rej
--- addressbook/gui/widgets/Makefile.am
+++ addressbook/gui/widgets/Makefile.am
@@ -76,6 +80,8 @@
 	$(top_builddir)/widgets/menus/libmenus.la		\
 	$(top_builddir)/a11y/libevolution-a11y.la		\
 	$(top_builddir)/e-util/libeutil.la			\
+	$(top_builddir)/addressbook/printing/libecontactprint.la \
+	$(top_builddir)/addressbook/util/libeabutil.la		\
 	$(EVOLUTION_DATA_SERVER_LIBS)				\
 	$(GNOME_PLATFORM_LIBS)					\
 	$(CHAMPLAIN_LIBS)					\
root@n8-laptop:/usr/src/evolution-3.2.1# vi addressbook/gui/widgets/Makefile.am
root@n8-laptop:/usr/src/evolution-3.2.1# rm addressbook/gui/widgets/Makefile.am.rej
root@n8-laptop:/usr/src/evolution-3.2.1# cat composer/Makefile.am.rej
--- composer/Makefile.am
+++ composer/Makefile.am
@@ -57,12 +57,17 @@
 libcomposer_la_LDFLAGS = $(NO_UNDEFINED)
 
 libcomposer_la_LIBADD =					\
+	$(top_builddir)/a11y/libevolution-a11y.la	\
 	$(top_builddir)/e-util/libeutil.la		\
+	$(top_builddir)/widgets/menus/libmenus.la	\
 	$(top_builddir)/widgets/misc/libemiscwidgets.la	\
+	$(top_builddir)/widgets/table/libetable.la	\
 	$(top_builddir)/shell/libeshell.la		\
 	$(top_builddir)/em-format/libemformat.la	\
 	$(top_builddir)/addressbook/gui/contact-editor/libecontacteditor.la		\
 	$(top_builddir)/addressbook/gui/contact-list-editor/libecontactlisteditor.la	\
+	$(top_builddir)/addressbook/gui/widgets/libeabwidgets.la	\
+	$(top_builddir)/addressbook/util/libeabutil.la	\
 	$(EVOLUTION_DATA_SERVER_LIBS)			\
 	$(GNOME_PLATFORM_LIBS)				\
 	$(GTKHTML_LIBS)
root@n8-laptop:/usr/src/evolution-3.2.1# vi composer/Makefile.am
root@n8-laptop:/usr/src/evolution-3.2.1# rm composer/Makefile.am.rej
root@n8-laptop:/usr/src/evolution-3.2.1# cat plugins/bbdb/Makefile.am.rej
--- plugins/bbdb/Makefile.am
+++ plugins/bbdb/Makefile.am
@@ -25,10 +25,17 @@
 liborg_gnome_evolution_bbdb_la_LDFLAGS = -module -avoid-version $(NO_UNDEFINED)
 
 liborg_gnome_evolution_bbdb_la_LIBADD =		\
+	$(top_builddir)/a11y/libevolution-a11y.la	\
 	$(top_builddir)/e-util/libeutil.la	\
+	$(top_builddir)/shell/libeshell.la	\
 	$(top_builddir)/composer/libcomposer.la	\
+	$(top_builddir)/widgets/menus/libmenus.la	\
+	$(top_builddir)/widgets/misc/libemiscwidgets.la	\
+	$(top_builddir)/widgets/table/libetable.la \
 	$(top_builddir)/addressbook/gui/contact-editor/libecontacteditor.la \
 	$(top_builddir)/addressbook/gui/contact-list-editor/libecontactlisteditor.la \
+	$(top_builddir)/addressbook/gui/widgets/libeabwidgets.la	\
+	$(top_builddir)/addressbook/util/libeabutil.la	\
 	$(EVOLUTION_DATA_SERVER_LIBS)		\
 	$(GNOME_PLATFORM_LIBS)			\
 	$(GTKHTML_LIBS)
root@n8-laptop:/usr/src/evolution-3.2.1# vi plugins/bbdb/Makefile.am
root@n8-laptop:/usr/src/evolution-3.2.1# rm plugins/bbdb/Makefile.am.rej
root@n8-laptop:/usr/src/evolution-3.2.1# cat plugins/external-editor/Makefile.am.rej
--- plugins/external-editor/Makefile.am
+++ plugins/external-editor/Makefile.am
@@ -37,12 +37,18 @@
 liborg_gnome_external_editor_la_LDFLAGS = \
 	-module -avoid-version $(NO_UNDEFINED)
 liborg_gnome_external_editor_la_LIBADD = 			\
+	$(top_builddir)/a11y/libevolution-a11y.la		\
 	$(top_builddir)/e-util/libeutil.la 			\
 	$(top_builddir)/composer/libcomposer.la 		\
 	$(top_builddir)/shell/libeshell.la			\
 	$(top_builddir)/addressbook/gui/contact-editor/libecontacteditor.la 		\
 	$(top_builddir)/addressbook/gui/contact-list-editor/libecontactlisteditor.la	\
+	$(top_builddir)/addressbook/gui/widgets/libeabwidgets.la	\
+	$(top_builddir)/addressbook/util/libeabutil.la		\
 	$(top_builddir)/mail/libevolution-mail.la		\
+	$(top_builddir)/widgets/menus/libmenus.la		\
+	$(top_builddir)/widgets/misc/libemiscwidgets.la		\
+	$(top_builddir)/widgets/table/libetable.la 		\
 	$(EVOLUTION_DATA_SERVER_LIBS)				\
 	$(GNOME_PLATFORM_LIBS)					\
 	$(GTKHTML_LIBS)
root@n8-laptop:/usr/src/evolution-3.2.1# vi plugins/external-editor/Makefile.am
root@n8-laptop:/usr/src/evolution-3.2.1# rm plugins/external-editor/Makefile.am.rej
root@n8-laptop:/usr/src/evolution-3.2.1# cat plugins/vcard-inline/Makefile.am.rej
--- plugins/vcard-inline/Makefile.am
+++ plugins/vcard-inline/Makefile.am
@@ -24,10 +24,16 @@
 liborg_gnome_vcard_inline_la_LDFLAGS = -module -avoid-version $(NO_UNDEFINED)
 
 liborg_gnome_vcard_inline_la_LIBADD =					\
+	$(top_builddir)/a11y/libevolution-a11y.la			\
 	$(top_builddir)/mail/libevolution-mail.la			\
+	$(top_builddir)/e-util/libeutil.la				\
+	$(top_builddir)/shell/libeshell.la				\
+	$(top_builddir)/widgets/menus/libmenus.la			\
+	$(top_builddir)/widgets/misc/libemiscwidgets.la			\
+	$(top_builddir)/widgets/table/libetable.la			\
+	$(top_builddir)/addressbook/util/libeabutil.la			\
 	$(top_builddir)/addressbook/util/libeabutil.la			\
 	$(top_builddir)/addressbook/gui/widgets/libeabwidgets.la	\
-	$(top_builddir)/addressbook/gui/merging/libeabbookmerging.la	\
 	$(top_builddir)/addressbook/printing/libecontactprint.la	\
 	$(EVOLUTION_DATA_SERVER_LIBS)					\
 	$(GNOME_PLATFORM_LIBS)						\
root@n8-laptop:/usr/src/evolution-3.2.1# vi plugins/vcard-inline/Makefile.am
root@n8-laptop:/usr/src/evolution-3.2.1# rm plugins/vcard-inline/Makefile.am.rej
root@n8-laptop:/usr/src/evolution-3.2.1# mv ./addressbook/gui/merging/eab-contact-* ./addressbook/gui/widgets/
root@n8-laptop:/usr/src/evolution-3.2.1# rm ./addressbook/gui/merging/ -rf
root@n8-laptop:/usr/src/evolution-3.2.1# grep DEB_BUILD_OPTIONS * -R
root@n8-laptop:/usr/src/evolution-3.2.1# dpkg-buildpackage -uc -b -nc -j1

