memtester port

Scott Haneda talklists at newgeo.com
Tue Jul 14 12:01:53 PDT 2009


I am not seeing a port for memtester.

$cd ~/Downloads/memtester-4.0.8
$sudo make
$file memtester
	memtester: Mach-O executable i386
$./memtester 100 3 -L
	memtester version 4.0.8 (32-bit)
	Copyright (C) 2007 Charles Cazabon.
	Licensed under the GNU General Public License version 2 (only).

	pagesize is 4096
	....

My portfile:
# $Id$
PortSystem 1.0

name			memtester
version			4.0.8
categories		sysutils
maintainers		hostwizard.com:scott
description		A userspace utility for testing the memory subsystem for  
faults.
long_description	A userspace utility for testing the memory subsystem  
for faults.

homepage		http://pyropus.ca/software/memtester/
master_sites		http://pyropus.ca/software/memtester/old-versions
checksums           md5     a4971ed1ccaf5b2e2148fd66b0eb7363 \
                     sha1    1330edaa60e0d797b83df51a56bba377db9223fc \
                     rmd160  b804eb9563f98ffbd51ce17c091b71a466ba4eae

$sudo port -d install
DEBUG: Changing to port directory: /Users/me/macports/sysutils/memtester
DEBUG: setting option os.universal_supported to yes
DEBUG: org.macports.load registered provides 'load', a pre-existing  
procedure. Target override will not be provided
DEBUG: org.macports.distfiles registered provides 'distfiles', a pre- 
existing procedure. Target override will not be provided
DEBUG: adding the default universal variant
DEBUG: Requested variant darwin is not provided by port memtester.
DEBUG: Requested variant i386 is not provided by port memtester.
DEBUG: Requested variant macosx is not provided by port memtester.
DEBUG: Changing to port directory: /Users/me/macports/sysutils/memtester
DEBUG: setting option os.universal_supported to yes
DEBUG: org.macports.load registered provides 'load', a pre-existing  
procedure. Target override will not be provided
DEBUG: org.macports.distfiles registered provides 'distfiles', a pre- 
existing procedure. Target override will not be provided
DEBUG: adding the default universal variant
DEBUG: Requested variant darwin is not provided by port memtester.
DEBUG: Requested variant i386 is not provided by port memtester.
DEBUG: Requested variant macosx is not provided by port memtester.
DEBUG: Executing org.macports.main (memtester)
--->  Fetching memtester
DEBUG: Executing org.macports.fetch (memtester)
--->  Verifying checksum(s) for memtester
DEBUG: Executing org.macports.checksum (memtester)
--->  Checksumming memtester-4.0.8.tar.gz
DEBUG: Correct (md5) checksum for memtester-4.0.8.tar.gz
DEBUG: Correct (sha1) checksum for memtester-4.0.8.tar.gz
DEBUG: Correct (rmd160) checksum for memtester-4.0.8.tar.gz
--->  Extracting memtester
DEBUG: Executing org.macports.extract (memtester)
--->  Extracting memtester-4.0.8.tar.gz
DEBUG: setting option extract.args to /opt/local/var/macports/ 
distfiles/memtester/memtester-4.0.8.tar.gz
DEBUG: Environment: MACOSX_DEPLOYMENT_TARGET='10.5'
DEBUG: Assembled command: 'cd "/opt/local/var/macports/build/ 
_Users_me_macports_sysutils_memtester/work" && gzip -dc /opt/local/var/ 
macports/distfiles/memtester/memtester-4.0.8.tar.gz | /usr/bin/gnutar  
--no-same-owner -xf -'
DEBUG: Executing org.macports.patch (memtester)
--->  Configuring memtester
DEBUG: Using compiler 'Mac OS X gcc 4.0'
DEBUG: Executing org.macports.configure (memtester)
DEBUG: Environment: CFLAGS='-O2' CPPFLAGS='-I/opt/local/include'  
CXXFLAGS='-O2' MACOSX_DEPLOYMENT_TARGET='10.5' CPP='/usr/bin/cpp-4.0'  
CXX='/usr/bin/g++-4.0' F90FLAGS='-O2' LDFLAGS='-L/opt/local/lib'  
FCFLAGS='-O2' OBJC='/usr/bin/gcc-4.0' INSTALL='/usr/bin/install -c'  
OBJCFLAGS='-O2' FFLAGS='-O2' CC='/usr/bin/gcc-4.0'
DEBUG: Assembled command: 'cd "/opt/local/var/macports/build/ 
_Users_me_macports_sysutils_memtester/work/memtester-4.0.8" && ./ 
configure --prefix=/opt/local'
sh: ./configure: No such file or directory
Error: Target org.macports.configure returned: configure failure:  
shell command " cd "/opt/local/var/macports/build/ 
_Users_me_macports_sysutils_memtester/work/memtester-4.0.8" && ./ 
configure --prefix=/opt/local " returned error 127
Command output: sh: ./configure: No such file or directory

Warning: the following items did not execute (for memtester):  
org.macports.activate org.macports.configure org.macports.build  
org.macports.destroot org.macports.install
Error: Status 1 encountered during processing.

Where am I getting tripped up on this one?  Do I need destroot to also  
install the binary and the man pages, or does that happen as part of  
make install?  Could this be that make is not able to understand the  
prefix?

I could then add
configure.pre_args-delete --prefix=${prefix}
and just hand install this man and binary in correct locations?

Here is the by hand method:
$sudo make --prefix=/opt/local
make: unrecognized option `--prefix=/opt/local'
Usage: make [options] [target] ...
Options:
   -b, -m                      Ignored for compatibility.
   -B, --always-make           Unconditionally make all targets.
   -C DIRECTORY, --directory=DIRECTORY
                               Change to DIRECTORY before doing  
anything.
   -d                          Print lots of debugging information.
   --debug[=FLAGS]             Print various types of debugging  
information.
   -e, --environment-overrides
                               Environment variables override makefiles.
   -f FILE, --file=FILE, --makefile=FILE
                               Read FILE as a makefile.
   -h, --help                  Print this message and exit.
   -i, --ignore-errors         Ignore errors from commands.
   -I DIRECTORY, --include-dir=DIRECTORY
                               Search DIRECTORY for included makefiles.
   -j [N], --jobs[=N]          Allow N jobs at once; infinite jobs  
with no arg.
   -k, --keep-going            Keep going when some targets can't be  
made.
   -l [N], --load-average[=N], --max-load[=N]
                               Don't start multiple jobs unless load  
is below N.
   -L, --check-symlink-times   Use the latest mtime between symlinks  
and target.
   -n, --just-print, --dry-run, --recon
                               Don't actually run any commands; just  
print them.
   -o FILE, --old-file=FILE, --assume-old=FILE
                               Consider FILE to be very old and don't  
remake it.
   -p, --print-data-base       Print make's internal database.
   -q, --question              Run no commands; exit status says if up  
to date.
   -r, --no-builtin-rules      Disable the built-in implicit rules.
   -R, --no-builtin-variables  Disable the built-in variable settings.
   -s, --silent, --quiet       Don't echo commands.
   -S, --no-keep-going, --stop
                               Turns off -k.
   -t, --touch                 Touch targets instead of remaking them.
   -v, --version               Print the version number of make and  
exit.
   -w, --print-directory       Print the current directory.
   --no-print-directory        Turn off -w, even if it was turned on  
implicitly.
   -W FILE, --what-if=FILE, --new-file=FILE, --assume-new=FILE
                               Consider FILE to be infinitely new.
   --warn-undefined-variables  Warn when an undefined variable is  
referenced.
   -N OPTION, --NeXT-option=OPTION
                               Turn on value of NeXT OPTION.

This program built for powerpc-apple-darwin9.0
Report bugs to <bug-make at gnu.org>


-- 
Scott * If you contact me off list replace talklists@ with scott@ *



More information about the macports-dev mailing list