[122522] trunk/dports/science/nds2-client/Portfile

Michael Dickens michaelld at macports.org
Wed Jul 23 07:52:30 PDT 2014

I think there's a bug in the way port does "outdated", or maybe an enhancement is needed in this regard.  I wanted to patch nds2-client via:

Index: Portfile
--- Portfile	(revision 122521)
+++ Portfile	(working copy)
@@ -124,6 +124,7 @@
     # The Octave dependency can be satisfied by either octave or octave-devel.
     depends_lib-append              path:bin/octave:octave
     destroot.args-append            pkgoctexecdir="${prefix}/share/octave/site/m"
+    revision                        1
 set need_sqlite 0

which just bumps the revision if octave is required, either via the +mex_octave or +swig_octave variant.  With this change, "port outdated" does not show that this port needs to be updated.  If I move the "revision" into the 2 variants, I get the same result.  I did execute "portindex" between these commands to make sure the change was registered; the only version that worked is the one I committed.

So, it seems like "port outdated" is not checking for updates via the installed variants, just the core port / subport without variants.

Since this port is pretty small, I just moved the revision to the top-level.  But, this would be an interesting enhancement IMHO if it is not a bug. - MLD

More information about the macports-dev mailing list