On Fri, Jun 08, 2012 at 08:42:19PM +0200, Herbert Duerr wrote:
> Hi Andrew,
> 
> On 06/08/2012 07:20 PM, you wrote:
> >I believe the current build problems are due to the change in the
> >location of external tar balls.
> >How should the build get these using the new script?
> 
> Looking through the logs I saw
> ./bootstrap: 46: download_external_dependencies.pl: Permission denied
> and that pointed at missing execute permissions for that script.
> 
> I committed the fix as revision 1348184

Looking at bootstrap.1, that file gets executed by a system perl
(supposed you have one installed), not respecting the perl set with
--with-perl-home, stored in $PERL.

I should try a full build renaming /usr/bin/perl to /usr/bin/perl.foo
and configuring with --with-perl-home, I guess there will be more places
than the ones found in the attached patch.


Regards
-- 
Ariel Constenla-Haile
La Plata, Argentina
diff --git a/main/bootstrap.1 b/main/bootstrap.1
index 719f385..7f2dff8 100644
--- a/main/bootstrap.1
+++ b/main/bootstrap.1
@@ -30,16 +30,18 @@ export EXEEXT
 
 mkdir -p "$SOLARENV/$OUTPATH/bin"
 
-#make sure build.pl is executable 
+#make sure perl scripts are executable
 
 chmod +x "$SRC_ROOT/solenv/bin/build.pl"
 chmod +x "$SRC_ROOT/solenv/bin/build_client.pl"
 chmod +x "$SRC_ROOT/solenv/bin/zipdep.pl"
 chmod +x "$SRC_ROOT/solenv/bin/gccinstlib.pl"
+chmod +x "$SRC_ROOT/solenv/bin/download_external_dependencies.pl"
+chmod +x "$SRC_ROOT/solenv/bin/download_missing_extensions.pl"
 
 # fetch or update external tarballs
 if [ "$DO_FETCH_TARBALLS" = "yes" ]; then
-    download_external_dependencies.pl $SRC_ROOT/external_deps.lst
+    "$PERL" "$SOLARENV/bin/download_external_dependencies.pl" 
$SRC_ROOT/external_deps.lst
 fi
 
 # 
------------------------------------------------------------------------------
@@ -152,4 +154,4 @@ else
 fi
 
 # Download missing extensions.
-download_missing_extensions.pl
+"$PERL" "$SOLARENV/bin/download_missing_extensions.pl"
diff --git a/main/set_soenv.in b/main/set_soenv.in
index 1ea51ce..5bead59 100644
--- a/main/set_soenv.in
+++ b/main/set_soenv.in
@@ -1558,11 +1558,11 @@ for my $repo (split(/ /,"@ADDITIONAL_REPOSITORIES@"))
 #
 print "Setting the aliases... ";
 # 1. alias for a full product make. 
-       $mkout           = '"perl $SOLARENV/bin/mkout.pl"';
-       $deliver         = '"perl $SOLARENV/bin/deliver.pl"';
-       $build           = '"perl $SOLARENV/bin/build.pl"';
-       $build_client    = '"perl $SOLARENV/bin/build_client.pl"';
-       $zipdep          = '"perl $SOLARENV/bin/zipdep.pl"';
+       $mkout           = '"$PERL $SOLARENV/bin/mkout.pl"';
+       $deliver         = '"$PERL $SOLARENV/bin/deliver.pl"';
+       $build           = '"$PERL $SOLARENV/bin/build.pl"';
+       $build_client    = '"$PERL $SOLARENV/bin/build_client.pl"';
+       $zipdep          = '"$PERL $SOLARENV/bin/zipdep.pl"';
 # 3. alias for a full product make
 $nmake           = '"dmake"';
 print "done\n";

Attachment: pgpMM1gYjs1tM.pgp
Description: PGP signature

Reply via email to