[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

swig-pl does not respect prefix

From: Hal Finkel <hfinkel_at_anl.gov>
Date: Sat, 24 Sep 2011 17:03:37 -0500

Hello,

The default makefile does not seem to pass the prefix given to configure
to the Makefile.PL used to build the swig-pl bindings, and this seems to
cause the obvious problems with doing non-root installs.

Fixing the problem seems simple:

--- Makefile.in.orig 2010-11-25 17:55:59.000000000 +0000
+++ Makefile.in 2011-09-24 21:47:19.512442060 +0000
@@ -682,7 +682,7 @@
         ./config.status subversion/bindings/swig/perl/native/Makefile.PL
 
 $(SWIG_PL_DIR)/native/Makefile: $(SWIG_PL_DIR)/native/Makefile.PL
- cd $(SWIG_PL_DIR)/native; $(PERL) Makefile.PL
+ cd $(SWIG_PL_DIR)/native; $(PERL) Makefile.PL PREFIX=$(prefix)
 
 # There is a "readlink -f" command on some systems for the same
purpose,
 # but it's not as portable (e.g. Mac OS X doesn't have it). These
should

 -Hal

-- 
Hal Finkel
Postdoctoral Appointee
Leadership Computing Facility
Argonne National Laboratory
Received on 2011-09-25 03:03:58 CEST

This is an archived mail posted to the Subversion Users mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.