Small Makefile bug in libwww-perl-5.50

Kent Boortz (kent@erix.ericsson.se)
21 Feb 2001 13:49:31 +0100


If I configure and 'make' as one user and install as another user
(for security reasons) then I get

  gandalf libwww-perl-5.50> make install
  /opt/local/bin/perl -e 'use Config; chdir q{blib/script}; foreach (qw(GET HEAD POST)) {' \
  -e 'unlink "$_";' \
  -e 'system("$Config{\"lns\"} lwp-request $_") && die; }'
  ln: cannot create GET: File exists
  Died at -e line 3.
  *** Error code 13
  make: Fatal error: Command failed for target `all'

This is because the Makefile 'install' target depends on 'all' that
call the lines above writing to the build directory without any
dependency check.

Not a big problem and it may not be a bug at all but it does not work
like most other modules I have installed.

kent