<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	>
<channel>
	<title>Comments on: What ports are dependant upon this port?</title>
	<atom:link href="http://news.freshports.org/2011/02/05/what-ports-are-dependant-upon-this-port/feed/" rel="self" type="application/rss+xml" />
	<link>http://news.freshports.org/2011/02/05/what-ports-are-dependant-upon-this-port/</link>
	<description>News and announcements regarding FreshPorts, The Place For Ports.</description>
	<pubDate>Thu, 17 May 2012 00:08:05 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.5</generator>
		<item>
		<title>By: Dan Langille</title>
		<link>http://news.freshports.org/2011/02/05/what-ports-are-dependant-upon-this-port/#comment-1659</link>
		<dc:creator>Dan Langille</dc:creator>
		<pubDate>Mon, 07 Feb 2011 19:51:16 +0000</pubDate>
		<guid isPermaLink="false">http://news.freshports.org/?p=224#comment-1659</guid>
		<description>dougb just mentioned: make run-depends-list and make build-depends-lis</description>
		<content:encoded><![CDATA[<p>dougb just mentioned: make run-depends-list and make build-depends-lis</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dan Langille</title>
		<link>http://news.freshports.org/2011/02/05/what-ports-are-dependant-upon-this-port/#comment-1658</link>
		<dc:creator>Dan Langille</dc:creator>
		<pubDate>Mon, 07 Feb 2011 02:38:21 +0000</pubDate>
		<guid isPermaLink="false">http://news.freshports.org/?p=224#comment-1658</guid>
		<description>We also have: PATCH_DEPENDS FETCH_DEPENDS and EXTRACT_DEPENDS.

Thanks for bf for pointing this out. I shall leave this for another weekend. It should be trivial to add in. It's just code. No database changes.</description>
		<content:encoded><![CDATA[<p>We also have: PATCH_DEPENDS FETCH_DEPENDS and EXTRACT_DEPENDS.</p>
<p>Thanks for bf for pointing this out. I shall leave this for another weekend. It should be trivial to add in. It&#8217;s just code. No database changes.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dan Langille</title>
		<link>http://news.freshports.org/2011/02/05/what-ports-are-dependant-upon-this-port/#comment-1657</link>
		<dc:creator>Dan Langille</dc:creator>
		<pubDate>Sun, 06 Feb 2011 19:36:06 +0000</pubDate>
		<guid isPermaLink="false">http://news.freshports.org/?p=224#comment-1657</guid>
		<description>It appears we have created some monsters.  Look at the size of this page:

</description>
		<content:encoded><![CDATA[<p>It appears we have created some monsters.  Look at the size of this page:</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dan Langille</title>
		<link>http://news.freshports.org/2011/02/05/what-ports-are-dependant-upon-this-port/#comment-1656</link>
		<dc:creator>Dan Langille</dc:creator>
		<pubDate>Sun, 06 Feb 2011 15:17:51 +0000</pubDate>
		<guid isPermaLink="false">http://news.freshports.org/?p=224#comment-1656</guid>
		<description>I am now running the upgrade script on http://beta.freshports.org... then I'll let that site run for a while with the new code before moving over to production.</description>
		<content:encoded><![CDATA[<p>I am now running the upgrade script on <a href="http://beta.freshports.org.." rel="nofollow">http://beta.freshports.org..</a>. then I&#8217;ll let that site run for a while with the new code before moving over to production.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dan Langille</title>
		<link>http://news.freshports.org/2011/02/05/what-ports-are-dependant-upon-this-port/#comment-1655</link>
		<dc:creator>Dan Langille</dc:creator>
		<pubDate>Sun, 06 Feb 2011 13:05:32 +0000</pubDate>
		<guid isPermaLink="false">http://news.freshports.org/?p=224#comment-1655</guid>
		<description>Last night, I realized the website already has this functionality.  Here are all the ports which depend upon archivers/zip:

http://www.freshports.org/search.php?stype=depends_all&#038;method=match&#038;query=archivers%2Fzip&#038;num=100&#038;orderby=category&#038;orderbyupdown=asc&#038;search=Search</description>
		<content:encoded><![CDATA[<p>Last night, I realized the website already has this functionality.  Here are all the ports which depend upon archivers/zip:</p>
<p><a href="http://www.freshports.org/search.php?stype=depends_all&#038;method=match&#038;query=archivers%2Fzip&#038;num=100&#038;orderby=category&#038;orderbyupdown=asc&#038;search=Search" rel="nofollow">http://www.freshports.org/search.php?stype=depends_all&#038;method=match&#038;query=archivers%2Fzip&#038;num=100&#038;orderby=category&#038;orderbyupdown=asc&#038;search=Search</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dan Langille</title>
		<link>http://news.freshports.org/2011/02/05/what-ports-are-dependant-upon-this-port/#comment-1654</link>
		<dc:creator>Dan Langille</dc:creator>
		<pubDate>Sat, 05 Feb 2011 20:24:54 +0000</pubDate>
		<guid isPermaLink="false">http://news.freshports.org/?p=224#comment-1654</guid>
		<description>We now have a great little stored procedure:

SELECT PortsDependenciesAdd ('lang/gcc45', 'lang/perl5.8', 'B');

Which looks like this:

&lt;pre&gt;
CREATE OR REPLACE FUNCTION PortsDependenciesAdd (text, text, text) returns
int AS $$
  DECLARE
    p_PortName              ALIAS FOR $1;
    p_PortNameDependentUpon ALIAS FOR $2;
    p_DependencyType        ALIAS FOR $3;

    l_PortID           int;
    l_PortIDDependency int;
    OID                int8;

  BEGIN
    select GetPort(p_PortName)
      INTO l_PortID;

    select GetPort(p_PortNameDependentUpon)
      INTO l_PortIDDependency;

    if l_PortID IS NOT NULL AND l_PortIDDependency IS NOT NULL then
      INSERT INTO port_dependencies (port_id, port_id_dependent_upon, dependency_type)
            VALUES (l_PortID, l_PortIDDependency, p_DependencyType);
      RETURN 1;
    else
      if l_PortID IS NULL then
        RAISE EXCEPTION 'cannot find this port: %', p_PortName;
      end if;
      if l_PortIDDependency IS NULL then
        RAISE EXCEPTION 'cannot find this port: %', p_PortNameDependentUpon;
      end if;
    end if;

    RETURN 0;
  END;
$$  LANGUAGE 'plpgsql';
&lt;/pre&gt;</description>
		<content:encoded><![CDATA[<p>We now have a great little stored procedure:</p>
<p>SELECT PortsDependenciesAdd (&#8217;lang/gcc45&#8242;, &#8216;lang/perl5.8&#8242;, &#8216;B&#8217;);</p>
<p>Which looks like this:</p>
<pre>
CREATE OR REPLACE FUNCTION PortsDependenciesAdd (text, text, text) returns
int AS $$
  DECLARE
    p_PortName              ALIAS FOR $1;
    p_PortNameDependentUpon ALIAS FOR $2;
    p_DependencyType        ALIAS FOR $3;

    l_PortID           int;
    l_PortIDDependency int;
    OID                int8;

  BEGIN
    select GetPort(p_PortName)
      INTO l_PortID;

    select GetPort(p_PortNameDependentUpon)
      INTO l_PortIDDependency;

    if l_PortID IS NOT NULL AND l_PortIDDependency IS NOT NULL then
      INSERT INTO port_dependencies (port_id, port_id_dependent_upon, dependency_type)
            VALUES (l_PortID, l_PortIDDependency, p_DependencyType);
      RETURN 1;
    else
      if l_PortID IS NULL then
        RAISE EXCEPTION 'cannot find this port: %', p_PortName;
      end if;
      if l_PortIDDependency IS NULL then
        RAISE EXCEPTION 'cannot find this port: %', p_PortNameDependentUpon;
      end if;
    end if;

    RETURN 0;
  END;
$$  LANGUAGE 'plpgsql';
</pre>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dan Langille</title>
		<link>http://news.freshports.org/2011/02/05/what-ports-are-dependant-upon-this-port/#comment-1653</link>
		<dc:creator>Dan Langille</dc:creator>
		<pubDate>Sat, 05 Feb 2011 19:34:15 +0000</pubDate>
		<guid isPermaLink="false">http://news.freshports.org/?p=224#comment-1653</guid>
		<description>Initial testing with Ade's code on a recent lang/gcc45/ commit.

The B depends are
archivers/zip - devel/gmake - devel/binutils - devel/bison - lang/perl5.8

The R depends are
devel/binutils

The L depends are
math/gmp - math/mpfr - math/mpc - converters/libiconv</description>
		<content:encoded><![CDATA[<p>Initial testing with Ade&#8217;s code on a recent lang/gcc45/ commit.</p>
<p>The B depends are<br />
archivers/zip - devel/gmake - devel/binutils - devel/bison - lang/perl5.8</p>
<p>The R depends are<br />
devel/binutils</p>
<p>The L depends are<br />
math/gmp - math/mpfr - math/mpc - converters/libiconv</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dan Langille</title>
		<link>http://news.freshports.org/2011/02/05/what-ports-are-dependant-upon-this-port/#comment-1652</link>
		<dc:creator>Dan Langille</dc:creator>
		<pubDate>Sat, 05 Feb 2011 18:42:44 +0000</pubDate>
		<guid isPermaLink="false">http://news.freshports.org/?p=224#comment-1652</guid>
		<description>This may be useful when I come to process the depends:
&lt;pre&gt;
&#60;aDe&gt; my @shizzle = map { s/^.*\/usr\/ports\///;$_ } split(/ /, $string);
&#60;aDe&gt; print join(' - ', @shizzle) . "\n";
&#60;aDe&gt; [ade@lab:~] 179% ./x
&#60;aDe&gt; security/fpc-hash - archivers/fpc-paszlib - devel/fpc-pthread
&lt;/pre&gt;</description>
		<content:encoded><![CDATA[<p>This may be useful when I come to process the depends:</p>
<pre>
&lt;aDe> my @shizzle = map { s/^.*\/usr\/ports\///;$_ } split(/ /, $string);
&lt;aDe> print join(' - ', @shizzle) . "\n";
&lt;aDe> [ade@lab:~] 179% ./x
&lt;aDe> security/fpc-hash - archivers/fpc-paszlib - devel/fpc-pthread
</pre>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dan Langille</title>
		<link>http://news.freshports.org/2011/02/05/what-ports-are-dependant-upon-this-port/#comment-1651</link>
		<dc:creator>Dan Langille</dc:creator>
		<pubDate>Sat, 05 Feb 2011 17:31:44 +0000</pubDate>
		<guid isPermaLink="false">http://news.freshports.org/?p=224#comment-1651</guid>
		<description>We now have proof of concept at http://dev.freshports.org/textproc/libwps/

Now for the big work: populating and maintaining the new table.</description>
		<content:encoded><![CDATA[<p>We now have proof of concept at <a href="http://dev.freshports.org/textproc/libwps/" rel="nofollow">http://dev.freshports.org/textproc/libwps/</a></p>
<p>Now for the big work: populating and maintaining the new table.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dan Langille</title>
		<link>http://news.freshports.org/2011/02/05/what-ports-are-dependant-upon-this-port/#comment-1650</link>
		<dc:creator>Dan Langille</dc:creator>
		<pubDate>Sat, 05 Feb 2011 17:00:41 +0000</pubDate>
		<guid isPermaLink="false">http://news.freshports.org/?p=224#comment-1650</guid>
		<description>This is the query I'll need for displaying details on the webpage:

&lt;pre&gt;
  SELECT port_id,
         port_id_dependent_upon,
         dependency_type,
         categories.name    as category,
         element.name       as port
    FROM port_dependencies
         LEFT OUTER JOIN ports      ON ports.id         = port_dependencies.port_id_dependent_upon
         LEFT OUTER JOIN categories ON categories.id    = ports.category_id
         LEFT OUTER JOIN element    ON ports.element_id = element.id
   WHERE port_id = 22514
&lt;/pre&gt;</description>
		<content:encoded><![CDATA[<p>This is the query I&#8217;ll need for displaying details on the webpage:</p>
<pre>
  SELECT port_id,
         port_id_dependent_upon,
         dependency_type,
         categories.name    as category,
         element.name       as port
    FROM port_dependencies
         LEFT OUTER JOIN ports      ON ports.id         = port_dependencies.port_id_dependent_upon
         LEFT OUTER JOIN categories ON categories.id    = ports.category_id
         LEFT OUTER JOIN element    ON ports.element_id = element.id
   WHERE port_id = 22514
</pre>
]]></content:encoded>
	</item>
</channel>
</rss>

