Discussion:
Bug in DBI module Makefile
(too old to reply)
Enrique Perez-Terron
2015-07-28 16:57:42 UTC
Permalink
I don't know where to report this, please suggest some place.

There appears to be a bug in the Makefile in the cpan module DBI. (Not
Makefile.PL.)

Patch: ----------------------------------
--- Makefile.org 2015-07-28 18:21:36.496069300 +0200
+++ Makefile 2015-07-28 18:50:02.508463000 +0200
@@ -1186,7 +1186,7 @@

pure_install :: pure_$(INSTALLDIRS)_install
$(CHMOD) $(PERM_RWX)
$(DESTDIR)/usr/lib/perl5/site_perl/5.14/i686-cygwin-threads-64int/auto//DBI/DBI.dll
- /bin/find
$(DESTDIR)/usr/lib/perl5/site_perl/5.14/i686-cygwin-threads-64int/auto/
-xdev -name \*.dll /bin/rebase -sOT -
+ /bin/find
$(DESTDIR)/usr/lib/perl5/site_perl/5.14/i686-cygwin-threads-64int/auto/
-xdev -name \*.dll | /bin/rebase -sOT -

doc_install :: doc_$(INSTALLDIRS)_install
$(NOECHO) $(NOOP)
--------------------------------- end patch

The difference is that the pipe character was missing: /bin/find ... |
/bin/rebase ...

The cpan install DBI command bails out on a cygwin install with the
following message:

/bin/find: paths must precede expression: /bin/rebase
Usage: /bin/find [-H] [-L] [-P] [-Olevel] [-D
help|tree|search|stat|rates|opt|exec] [path...] [expression]
Makefile:1188: recipe for target 'pure_install' failed
make: *** [pure_install] Error 1
TIMB/DBI-1.633.tar.gz
/usr/bin/make install -- NOT OK
Failed during this command:
TIMB/DBI-1.633.tar.gz : install NO

cpan[2]>
-----------------------------end terminal session dump
Andy Lester
2015-07-28 18:47:18 UTC
Permalink
Post by Enrique Perez-Terron
I don't know where to report this, please suggest some place.
http://search.cpan.org/~timb/DBI/ <http://search.cpan.org/~timb/DBI/> has a link to the bug tracker labeled “View/Report Bugs”.

On MetaCPAN at https://metacpan.org/release/DBI <https://metacpan.org/release/DBI> it is labeled “Issues”.

Both lead to https://rt.cpan.org/Public/Dist/Display.html?Name=DBI

--
Andy Lester => www.petdance.com

Loading...