[MTOS-dev] Reducing memory footprints of MT applications

Reed A. Cartwright reed at scit.us
Fri Feb 29 12:23:54 PST 2008


> 
> It doesn't work on freebsd either, because the the build process has the 
> name of the make tool hardwired as 'make'.  Even if I run gmake, one of 
> the sub makefiles will call 'make'.  This is a major distribution bug.

I had to make three changes to the build system to get it to build on 
FreeBSD with no errors or warnings:

1. Rename make to gmake.
2. Rename tar to gtar
3. Change how the Crypt::SSLeay is looked for.  (This bug should affect 
all systems.)

Please decide on some way for a user to use gmake and gtar in these scripts.

Here is the snv patch.

Index: build/mt-dists/make-dists
===================================================================
--- build/mt-dists/make-dists	(revision 1436)
+++ build/mt-dists/make-dists	(working copy)
@@ -47,7 +47,7 @@

  my %options;

-my $make = 'make';
+my $make = 'gmake';
  $make .= ' -s' if $silent;
  $ExtUtils::Manifest::Quiet = $silent;
  $ExtUtils::Manifest::Verbose = ! $silent;
@@ -106,7 +106,7 @@
      verbose_command("chmod +x $distname/tools/*");

      my $options = $silent ? 'cf' : 'cvf';
-    verbose_command("tar $options $distname.tar --wildcards --exclude 
'*.zip' $distname");
+    verbose_command("gtar $options $distname.tar --wildcards --exclude 
'*.zip' $distname");
      $options = $silent ? '-q' : '';
      verbose_command("gzip $options --best $distname.tar");
      $options = $silent ? '-rq' : '-r';
Index: build/Build.pm
===================================================================
--- build/Build.pm	(revision 1436)
+++ build/Build.pm	(working copy)
@@ -143,7 +143,7 @@

      # Do we have SSL support?
      $prereq = 'Crypt::SSLeay';
-    eval { require $prereq };
+    eval "require $prereq;";
      warn( "WARNING: $prereq not found. Can't use SSL.\n" ) if $@;

      # Replace the current language if given one as an argument.

-- 
*********************************************************
Reed A. Cartwright, PhD     http://scit.us/
Postdoctoral Researcher     http://www.dererumnatura.us/
Department of Genetics      http://www.pandasthumb.org/

Bioinformatics Research Center
North Carolina State University
Campus Box 7566
Raleigh, NC 27695-7566

Cuiusvis hominis est errare, nullius nisi
insipientis in errore perserverare. --Cicero


More information about the MTOS-dev mailing list