#23453: memtester 4.1.2 +universal patch ----------------------------------+----------------------------------------- Reporter: scott@… | Owner: macports-tickets@… Type: enhancement | Status: new Priority: Normal | Milestone: Component: ports | Version: 1.8.2 Keywords: memtester, universal | Port: memtester ----------------------------------+----------------------------------------- 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 [http://lists.macosforge.org/pipermail/macports- dev/2010-January/011168.html discussion on the dev mailing list], I was [http://lists.macosforge.org/pipermail/macports- dev/2010-January/011171.html 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. -- Ticket URL: <http://trac.macports.org/ticket/23453> MacPorts <http://www.macports.org/> Ports system for Mac OS