[MacPorts] #38090: Please consider valkyrie in addition to valgrind.
#38090: Please consider valkyrie in addition to valgrind. -------------------------------+-------------------------------- Reporter: marty@… | Owner: macports-tickets@… Type: request | Status: new Priority: Normal | Milestone: MacPorts Future Component: ports | Version: 2.1.3 Keywords: valgrind valkyrie | Port: -------------------------------+-------------------------------- It's really great that Macports supports Valgrind. I use it quite frequently on Linux as well as Mac thans to your efforts in keeping valgrind up to date. However, while I can use valkyrie (a graphical front-end to valgrind like ddd is to gdb) on Linux (I use Mageia 2 on Linux), I do not find it available via macports. I have downloaded and built it myself on my Mac 10.8.2 systems (via it's easy-to-use-build instructions) It'd be really helpful if Macports supported it like valgrind is. The link to it is the same as that of valgrind; valkyrie is at the bottom of the same webpage as valgrind. I hope you'll consider adding this to Mac Ports. Regards, Marty -- Ticket URL: <https://trac.macports.org/ticket/38090> MacPorts <http://www.macports.org/> Ports system for Mac OS
#38090: Port request: Valkyrie ----------------------+-------------------------------- Reporter: marty@… | Owner: macports-tickets@… Type: request | Status: new Priority: Normal | Milestone: Component: ports | Version: Resolution: | Keywords: Port: | ----------------------+-------------------------------- Changes (by larryv@…): * keywords: valgrind valkyrie => * version: 2.1.3 => * milestone: MacPorts Future => -- Ticket URL: <https://trac.macports.org/ticket/38090#comment:1> MacPorts <http://www.macports.org/> Ports system for Mac OS
#38090: Port request: Valkyrie ----------------------+-------------------------------- Reporter: marty@… | Owner: macports-tickets@… Type: request | Status: new Priority: Normal | Milestone: Component: ports | Version: Resolution: | Keywords: Port: | ----------------------+-------------------------------- Comment (by egall@…): I'm starting on working on one, it looks like it'll use the qt4 portgroup... -- Ticket URL: <https://trac.macports.org/ticket/38090#comment:2> MacPorts <http://www.macports.org/> Ports system for Mac OS
#38090: Port request: Valkyrie ----------------------+-------------------------------- Reporter: marty@… | Owner: macports-tickets@… Type: request | Status: new Priority: Normal | Milestone: Component: ports | Version: Resolution: | Keywords: Port: | ----------------------+-------------------------------- Comment (by egall@…): OK, I now have a portfile that builds, runs, and passes lint successfully. I also added raimue as a maintainer to it because he's the maintainer for valgrind. I'll attach it next. -- Ticket URL: <https://trac.macports.org/ticket/38090#comment:3> MacPorts <http://www.macports.org/> Ports system for Mac OS
#38090: Port request: Valkyrie ----------------------+-------------------------------- Reporter: marty@… | Owner: macports-tickets@… Type: request | Status: new Priority: Normal | Milestone: Component: ports | Version: Resolution: | Keywords: Port: | ----------------------+-------------------------------- Comment (by marty@…): Wow, thanks so much for jumping on this one so quickly! I'm still somewhat new to using Macports other than the "port" command, so is there a way I can use the portfile you created or do I need to wait until this is officially completed/released? Again, thanks! Marty -- Ticket URL: <https://trac.macports.org/ticket/38090#comment:5> MacPorts <http://www.macports.org/> Ports system for Mac OS
#38090: Port request: Valkyrie ----------------------+-------------------------------- Reporter: marty@… | Owner: macports-tickets@… Type: request | Status: new Priority: Normal | Milestone: Component: ports | Version: Resolution: | Keywords: Port: | ----------------------+-------------------------------- Comment (by larryv@…): Replying to [comment:5 marty@…]:
I'm still somewhat new to using Macports other than the "port" command, so is there a way I can use the portfile you created or do I need to wait until this is officially completed/released?
You have a couple of options. 1. Set up a [http://guide.macports.org/chunked/development.local- repositories.html local portfile repository]. This might be overkill for just one port. 2. Download the portfile to your computer and run `sudo port install` from the directory containing the portfile. The “macports” user will have to have at least search access to this directory; maybe try `/tmp`. -- Ticket URL: <https://trac.macports.org/ticket/38090#comment:6> MacPorts <http://www.macports.org/> Ports system for Mac OS
#38090: Port request: Valkyrie -----------------------+-------------------------------- Reporter: marty@… | Owner: macports-tickets@… Type: request | Status: new Priority: Normal | Milestone: Component: ports | Version: Resolution: | Keywords: Port: valkyrie | -----------------------+-------------------------------- Changes (by ryandesign@…): * cc: raimue@… (added) * port: => valkyrie Comment: I see this in the attached Portfile: {{{ configure.args-delete --prefix=/opt/local \ --disable-dependency-tracking }}} There are three problems here. 1. /opt/local should not be hardcoded. 2. Removing `--prefix=${prefix}` from configure.args has no effect because it's never in configure.args to begin with; it's in configure.pre_args, which you're already clearing. 3. Removing `--disable-dependency-tracking` from configure.args has no effect because it's never in configure.args to begin with; it's in configure.universal_args, from which you should remove it since qmake doesn't support it. -- Ticket URL: <https://trac.macports.org/ticket/38090#comment:7> MacPorts <http://www.macports.org/> Ports system for Mac OS
#38090: Port request: Valkyrie -----------------------+-------------------------------- Reporter: marty@… | Owner: macports-tickets@… Type: request | Status: new Priority: Normal | Milestone: Component: ports | Version: Resolution: | Keywords: Port: valkyrie | -----------------------+-------------------------------- Comment (by raimue@…): Despite the errors already mentioned by Ryan, there are also functional problems. When starting a graphical application from Spotlight, Finder, etc. it does not use the PATH additions for MacPorts usually applied in .bashrc/.bash_profile/.profile. Thus, the default path for the valgrind binary should be patched to be an absolute path to `${prefix}/bin/valgrind` or it will not work out of the box without changing this option. -- Ticket URL: <https://trac.macports.org/ticket/38090#comment:8> MacPorts <http://www.macports.org/> Ports system for Mac OS
#38090: Port request: Valkyrie -----------------------+-------------------------------- Reporter: marty@… | Owner: macports-tickets@… Type: request | Status: new Priority: Normal | Milestone: Component: ports | Version: Resolution: | Keywords: Port: valkyrie | -----------------------+-------------------------------- Comment (by egall@…): Replying to [comment:7 ryandesign@…]:
3. Removing `--disable-dependency-tracking` from configure.args has no effect because it's never in configure.args to begin with; it's in configure.universal_args, from which you should remove it since qmake doesn't support it.
OK, fixing this issue let me fix a lot of the other hacks that I was using, attaching a new portfile now... -- Ticket URL: <https://trac.macports.org/ticket/38090#comment:9> MacPorts <http://www.macports.org/> Ports system for Mac OS
#38090: Port request: Valkyrie -----------------------+-------------------------------- Reporter: marty@… | Owner: macports-tickets@… Type: request | Status: new Priority: Normal | Milestone: Component: ports | Version: Resolution: | Keywords: Port: valkyrie | -----------------------+-------------------------------- Comment (by egall@…): (The new portfile I attached still has the problem raimue mentioned though; not sure how to fix that part...) -- Ticket URL: <https://trac.macports.org/ticket/38090#comment:10> MacPorts <http://www.macports.org/> Ports system for OS X
#38090: Port request: Valkyrie -----------------------+-------------------------------- Reporter: marty@… | Owner: macports-tickets@… Type: request | Status: new Priority: Normal | Milestone: Component: ports | Version: Resolution: | Keywords: Port: valkyrie | -----------------------+-------------------------------- Comment (by raimue@…): Here is a version which patches the path to valgrind, so it should work even when it was not started from terminal. I also patched the default editor from gvim to mvim. Another thing I noticed is that you need to generate the `.dSYM` directories manually using `dsymutil ./foo` before running valkyrie on the binary `foo`. Otherwise you get no source listing in the outut. This could be fixed by calling `valgrind --dsymutil=yes`. Besides that this port seems to work fine now. -- Ticket URL: <https://trac.macports.org/ticket/38090#comment:11> MacPorts <http://www.macports.org/> Ports system for OS X
#38090: Port request: Valkyrie -----------------------+-------------------------------- Reporter: marty@… | Owner: macports-tickets@… Type: request | Status: new Priority: Normal | Milestone: Component: ports | Version: Resolution: | Keywords: Port: valkyrie | -----------------------+-------------------------------- Comment (by egall@…): OK, I tested it now and can confirm that the patch works. -- Ticket URL: <https://trac.macports.org/ticket/38090#comment:12> MacPorts <http://www.macports.org/> Ports system for OS X
#38090: Port request: Valkyrie -----------------------+-------------------------------- Reporter: marty@… | Owner: macports-tickets@… Type: request | Status: new Priority: Normal | Milestone: Component: ports | Version: Resolution: | Keywords: Port: valkyrie | -----------------------+-------------------------------- Comment (by marty@…): Sorry for the tardy reply, but in trying to install this, I've run into problems; I suspect they're just due to my lack of understanding of testing a MacPort, but I will show what I've run into below (I read all the related info from Comment 7 above, but I must still be doing something wrong): 1. I downloaded the valkyrie Portfile.3 and put it in /tmp (note I did not setup a local repository because it seemed per the instructions that was not completely necessary; please correct me if I'm wrong). I will redo it with the final noted patches once I understand more of this. 2. I cd-ed into /tmp and attempted to install the portfile. I ntoed from Google hits on the error that this is somewhat common of a problem, but I've not yet figured out what I'm doing wrong. Please point me at any resources that I should be reading to understand a local install and the port install syntax actually needed. macmini2:tmp marty $ ls 0007c5179098c launch-m9PG09/ launchd-277.jEMjzK/ launch-HkDmja/ launchd-1733.kYtHWX/ launchd-325.DdUWqY/ launch-dQHvaN/ launchd-1742.CRapxH/ launchd-425.7ZytWw/ launch-gyyrJK/ launchd-1749.5jMg4b/ launchd-855.GJMOXp/ launch-he3bOd/ launchd-1756.cEwEnv/ valkyrie macmini2:tmp marty $ head valkyrie # -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c -basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4 # $Id: Portfile 102485 2013-02-04 16:02:38Z raimue@macports.org $ PortSystem 1.0 PortGroup qt4 1.0 name valkyrie version 2.0.0 revision 0 categories devel aqua macmini2:tmp marty $ sudo port install < valkyrie Password: Can't map the URL 'file://.' to a port description file ("Could not find Portfile in /private/tmp"). Please verify that the directory and portfile syntax are correct. To use the current port, you must be in a port's directory. macmini2:tmp marty $ Apologies in advance if I'm being a bit thick here, I'll endeavor to get better. Again, thanks to all for your efforts on this! -- Ticket URL: <https://trac.macports.org/ticket/38090#comment:13> MacPorts <http://www.macports.org/> Ports system for OS X
#38090: Port request: Valkyrie -----------------------+-------------------------------- Reporter: marty@… | Owner: macports-tickets@… Type: request | Status: new Priority: Normal | Milestone: Component: ports | Version: Resolution: | Keywords: Port: valkyrie | -----------------------+-------------------------------- Comment (by larryv@…): Replying to [comment:13 marty@…]:
{{{ macmini2:tmp marty $ sudo port install < valkyrie Password: Can't map the URL 'file://.' to a port description file ("Could not find Portfile in /private/tmp"). Please verify that the directory and portfile syntax are correct. To use the current port, you must be in a port's directory. }}}
I was not aware that `port(1)` accepted stdin. Rename the file from “valkyrie” to “Portfile” and try again: {{{ % cd /tmp && sudo port install }}} -- Ticket URL: <https://trac.macports.org/ticket/38090#comment:14> MacPorts <http://www.macports.org/> Ports system for OS X
#38090: Port request: Valkyrie -----------------------+-------------------------------- Reporter: marty@… | Owner: macports-tickets@… Type: request | Status: new Priority: Normal | Milestone: Component: ports | Version: Resolution: | Keywords: Port: valkyrie | -----------------------+-------------------------------- Comment (by marty@…): Replying to [comment:14 larryv@…]:
Replying to [comment:13 marty@…]:
{{{ macmini2:tmp marty $ sudo port install < valkyrie Password: Can't map the URL 'file://.' to a port description file ("Could not find Portfile in /private/tmp"). Please verify that the directory and portfile syntax are correct. To use the current port, you must be in a port's directory. }}}
I was not aware that `port(1)` accepted stdin. Rename the file from “valkyrie” to “Portfile” and try again: {{{ % cd /tmp && sudo port install }}}
Okay, so I did as you replied, but I'm still getting an error that I have not figured out yet. Please see the attached log of the attempted install. <pre> Script started on Fri Apr 19 09:13:38 2013 [?1034hmacmini2:valkyrie marty[0;32m [0m$ ping crikeymacmini2[K[K[K[K[K[K[K[K[K[K[K[K[Kping localhost[6Pifconfigping macminigw[K192.168.0.21gw[Kcrikeymacmini192.168.0.2111[9Phostnameifconfighostnameping 192.168.0.1121[5Pmacmini[1Pcrikey[4Pgw192.168.0.21gw[Kmacmini[4Pifconfigping localhost[Kping crikey[Ksudo port install ---> Computing dependencies for valkyrie ---> Fetching distfiles for valkyrie ---> Attempting to fetch patch-binary-paths.diff from http://aarnet.au.distfiles.macports.org/pub/macports/mpdistfiles/valkyrie ---> Attempting to fetch patch-binary-paths.diff from http://distfiles.macports.org/valkyrie ---> Attempting to fetch patch-binary-paths.diff from http://sea.us.distfiles.macports.org/macports/distfiles/valkyrie ---> Attempting to fetch patch-binary-paths.diff from http://jog.id.distfiles.macports.org/macports/mpdistfiles/valkyrie ---> Attempting to fetch patch-binary-paths.diff from http://cjj.kr.distfiles.macports.org/valkyrie ---> Attempting to fetch patch-binary-paths.diff from http://ykf.ca.distfiles.macports.org/MacPorts/mpdistfiles/valkyrie ---> Attempting to fetch patch-binary-paths.diff from http://mse.uk.distfiles.macports.org/sites/distfiles.macports.org/valkyrie ---> Attempting to fetch patch-binary-paths.diff from http://valgrind.org/downloads/ ---> Attempting to fetch patch-binary-paths.diff from http://lil.fr.distfiles.macports.org/valkyrie ---> Attempting to fetch patch-binary-paths.diff from http://fco.it.distfiles.macports.org/mirrors/macports-distfiles/valkyrie ---> Attempting to fetch patch-binary-paths.diff from http://her.gr.distfiles.macports.org/mirrors/macports/mpdistfiles/valkyrie ---> Attempting to fetch patch-binary-paths.diff from http://svn.macports.org/repository/macports/distfiles/valkyrie Error: org.macports.fetch for port valkyrie returned: fetch failed Please see the log file for port valkyrie for details: /opt/local/var/macports/logs/_Users_marty_Projects_macports_valkyrie/valkyrie/main.log To report a bug, follow the instructions in the guide: http://guide.macports.org/#project.tickets Error: Processing of port valkyrie failed macmini2:valkyrie marty[0;32m [0m$ exit Script done on Fri Apr 19 09:17:42 2013 </pre> -- Ticket URL: <https://trac.macports.org/ticket/38090#comment:15> MacPorts <http://www.macports.org/> Ports system for OS X
#38090: Port request: Valkyrie -----------------------+-------------------------------- Reporter: marty@… | Owner: macports-tickets@… Type: request | Status: new Priority: Normal | Milestone: Component: ports | Version: Resolution: | Keywords: Port: valkyrie | -----------------------+-------------------------------- Comment (by larryv@…): Replying to [comment:15 marty@…]:
{{{ ---> Attempting to fetch patch-binary-paths.diff from http://aarnet.au.distfiles.macports.org/pub/macports/mpdistfiles/valkyrie ---> Attempting to fetch patch-binary-paths.diff from http://distfiles.macports.org/valkyrie ---> Attempting to fetch patch-binary-paths.diff from http://sea.us.distfiles.macports.org/macports/distfiles/valkyrie ---> Attempting to fetch patch-binary-paths.diff from http://jog.id.distfiles.macports.org/macports/mpdistfiles/valkyrie ---> Attempting to fetch patch-binary-paths.diff from http://cjj.kr.distfiles.macports.org/valkyrie ---> Attempting to fetch patch-binary-paths.diff from http://ykf.ca.distfiles.macports.org/MacPorts/mpdistfiles/valkyrie ---> Attempting to fetch patch-binary-paths.diff from http://mse.uk.distfiles.macports.org/sites/distfiles.macports.org/valkyrie ---> Attempting to fetch patch-binary-paths.diff from http://valgrind.org/downloads/ ---> Attempting to fetch patch-binary-paths.diff from http://lil.fr.distfiles.macports.org/valkyrie ---> Attempting to fetch patch-binary-paths.diff from http://fco.it.distfiles.macports.org/mirrors/macports-distfiles/valkyrie ---> Attempting to fetch patch-binary-paths.diff from http://her.gr.distfiles.macports.org/mirrors/macports/mpdistfiles/valkyrie ---> Attempting to fetch patch-binary-paths.diff from http://svn.macports.org/repository/macports/distfiles/valkyrie
Error: org.macports.fetch for port valkyrie returned: fetch failed }}}
You need to download the `patch-binary-paths.diff` attachment from this ticket and place it in a `files` directory at the same level as `Portfile` (so probably `/tmp/files` for you). -- Ticket URL: <https://trac.macports.org/ticket/38090#comment:16> MacPorts <http://www.macports.org/> Ports system for OS X
#38090: Port request: Valkyrie -----------------------+-------------------------------- Reporter: marty@… | Owner: macports-tickets@… Type: request | Status: new Priority: Normal | Milestone: Component: ports | Version: Resolution: | Keywords: Port: valkyrie | -----------------------+-------------------------------- Comment (by marty@…): Hello again: I thought of that, then wasn't sure, so I didn't do it; silly me! This worked like a champ for me! Thanks again for all your work on this and for your patience with my learning to use MacPorts installation outside of the usual way of installing them. I am now at least more literate should I need to try another port in this sam emanner. Hoping to see valkyrie in a future ports update. Thanks again! Marty -- Ticket URL: <https://trac.macports.org/ticket/38090#comment:17> MacPorts <http://www.macports.org/> Ports system for OS X
#38090: Port request: Valkyrie -----------------------+-------------------------------- Reporter: marty@… | Owner: macports-tickets@… Type: request | Status: new Priority: Normal | Milestone: Component: ports | Version: Resolution: | Keywords: Port: valkyrie | -----------------------+-------------------------------- Comment (by marty@…): BTW I'm not sure what is needed on my part from here on with this ticket, so please advise if I need to do anything procedurally. -- Ticket URL: <https://trac.macports.org/ticket/38090#comment:18> MacPorts <http://www.macports.org/> Ports system for OS X
#38090: Port request: Valkyrie -----------------------+-------------------------------- Reporter: marty@… | Owner: macports-tickets@… Type: request | Status: new Priority: Normal | Milestone: Component: ports | Version: Resolution: | Keywords: Port: valkyrie | -----------------------+-------------------------------- Comment (by egall@…): This port can now use the new qmake portgroup as of r106912 -- Ticket URL: <https://trac.macports.org/ticket/38090#comment:19> MacPorts <http://www.macports.org/> Ports system for OS X
participants (1)
-
MacPorts