Opened 14 years ago

Closed 14 years ago

#23453 closed enhancement (fixed)

memtester 4.1.2 +universal patch

Reported by: scott@… Owned by: ryandesign (Ryan Carsten Schmidt)
Priority: Normal Milestone:
Component: ports Version: 1.8.2
Keywords: memtester, universal Cc:
Port: memtester

Description

I worked a little with the memtester source files, and had a quick conversation with the developer on how to possibly build memtester 4.1.2 as universal. Once I got it to built locally, I tested it on a PPC machine and has success there as well.

There were two files that needed altering in the source:

conf-cc
conf-ld

After discussion on the dev mailing list, I was shown (by Ryan) how to properly update a "configure no" style Portfile to be universal.

Ryan was kind enough to create the patch file for me, which I applied to my local repo of ports, uninstalled the non universal version and ran:

cd ~/macports
portindex
sudo port install memtester +universal
file `which memtester`

-> /opt/local/bin/memtester: Mach-O 64-bit executable x86_64

I then ran a quick test:

memtester 4096 1
memtester version 4.1.2 (64-bit)
Copyright (C) 2009 Charles Cazabon.
Licensed under the GNU General Public License version 2 (only).

pagesize is 4096
pagesizemask is 0xfffff000
want 4096MB (4294967296 bytes)
got  4096MB (4294967296 bytes), trying mlock ...

I have snipped the rest of the output, as it appears to work as advertised. Patch file is attached.

Attachments (1)

memtester.diff (730 bytes) - added by scott@… 14 years ago.
Diff file adds universal variant, configure.cc_archflags, and configure.universal_cflags

Download all attachments as: .zip

Change History (3)

Changed 14 years ago by scott@…

Attachment: memtester.diff added

Diff file adds universal variant, configure.cc_archflags, and configure.universal_cflags

comment:1 Changed 14 years ago by ryandesign (Ryan Carsten Schmidt)

Cc: ryandesign@… removed
Owner: changed from macports-tickets@… to ryandesign@…
Status: newassigned

comment:2 Changed 14 years ago by ryandesign (Ryan Carsten Schmidt)

Resolution: fixed
Status: assignedclosed

Committed in r63177.

Note: See TracTickets for help on using tickets.