Description: <short summary of the patch>
 TODO: Put a short summary on the line above and replace this paragraph
 with a longer explanation of this change. Complete the meta-information
 with other relevant fields (see below for details). To make it easier, the
 information below has been extracted from the changelog. Adjust it or drop
 it.
 .
 barnowl (1.9-2) unstable; urgency=medium
 .
   * Fix FTBFS with . not in @INC, Closes: #834412, Thanks Dominic
     Hargreaves
Author: Sam Hartman <hartmans@debian.org>
Bug-Debian: https://bugs.debian.org/834412

---
The information above should follow the Patch Tagging Guidelines, please
checkout http://dep.debian.net/deps/dep3/ to learn about the format. Here
are templates for supplementary fields that you might want to add:

Origin: <vendor|upstream|other>, <url of original patch>
Bug: <url in upstream bugtracker>
Bug-Debian: https://bugs.debian.org/<bugnumber>
Bug-Ubuntu: https://launchpad.net/bugs/<bugnumber>
Forwarded: <no|not-needed|url proving that it has been forwarded>
Reviewed-By: <name and email of someone who approved the patch>
Last-Update: <YYYY-MM-DD>

--- barnowl-1.9.orig/perl/modules/Makefile.am
+++ barnowl-1.9/perl/modules/Makefile.am
@@ -8,7 +8,7 @@ $(MODULES): %: %/Makefile
 
 MODULES_MAKEFILE = $(MODULES:=/Makefile)
 $(MODULES_MAKEFILE): %/Makefile: %/Makefile.PL
-	$(AM_V_GEN)(cd $* && perl -I../../lib Makefile.PL)
+	$(AM_V_GEN)(cd $* && perl -I../../lib -I. Makefile.PL)
 
 MODULES_CLEAN = $(MODULES:%=clean_%)
 clean-local: $(MODULES_CLEAN)
--- barnowl-1.9.orig/perl/modules/Makefile.in
+++ barnowl-1.9/perl/modules/Makefile.in
@@ -406,7 +406,7 @@ all-local: $(MODULES)
 $(MODULES): %: %/Makefile
 	(cd $* && $(MAKE) $*.par)
 $(MODULES_MAKEFILE): %/Makefile: %/Makefile.PL
-	$(AM_V_GEN)(cd $* && perl -I../../lib Makefile.PL)
+	$(AM_V_GEN)(cd $* && perl -I../../lib -I. Makefile.PL)
 clean-local: $(MODULES_CLEAN)
 $(MODULES_CLEAN): clean_%:
 	(cd $* && (test ! -f Makefile || $(MAKE) clean))
