Mar 102012

Well, perhaps not 5000 errors, but quite a lot of errors.

A recent change to Mk/ has caused all sorts of grief on two of the FreshPorts servers. The problem occurs when specifying PORTDIR. Here is an example:


-f /usr/home/dan/ports/databases/p5-DBIx-Class/Makefile DISTDIR=/usr/ports/distfiles PORTSDIR=/usr/home/dan/ports

-f /usr/home/dan/ports/databases/p5-DBIx-Class/Makefile DISTDIR=/usr/ports/distfiles

The difference in the output for perl.


That is the problem. There is no port called lang. Thus, when FreshPorts tries to add the dependencies, it errors.

The system which works is using revision 1.22 of The system which fails is using revision 1.23.

The diff is:

 diff ~dan/ports/Mk/ | less
< # $FreeBSD: ports/Mk/,v 1.23 2012/03/08 18:37:53 pgollucci Exp $
> # $FreeBSD: ports/Mk/,v 1.22 2011/08/15 06:50:00 sunpoet Exp $
> .elif  ${PERL_LEVEL} >= 501000
> PERL_PORT?=   perl5.10
> .else # ${PERL_LEVEL} < 501000
> PERL_PORT?=   perl5.8

Before you ask, this is the setting on all systems, regardless of success or failure:

$ grep PERL_VERSION /etc/make.conf

The fix is as follows:

$ diff  ~dan/ports/Mk/ ~dan/ports/Mk/
< .else
< PERL_PORT?=     perl5.8

Thanks to aDe and melflynn for helping me track this down and come up with a fix to stop the errors.

Hopefully this will be fixed in Mk/ soon.

Website Pin Facebook Twitter Myspace Friendfeed Technorati Digg Google StumbleUpon Premium Responsive

  3 Responses to “Mk/ bug causes 5000 errrors….”

  1. The change which triggered this problem has been reverted.

  2. I have a few ports to clean up. select count(*) from ports_active where depends_build like ‘%/lang’ or depends_build like ‘%/lang %’ or depends_run like ‘%/lang’ or depends_run like ‘%/lang %’ or
    depends_lib like ‘%/lang’ or depends_lib like ‘%/lang %’;
    (1 row)

  3. And here is how I think we can fix it:

    -- this will cause all the ports in that commit to be refreshed
    UPDATE commit_log_ports
       SET needs_refresh = 7
     WHERE commit_log_id = 428321;
    -- what ports have been updated since this commit?
    SELECT '' || category || '/' || name || '/'
      FROM ports_active
     WHERE last_commit_id > 428321
       AND id in (SELECT port_id
                    FROM commit_log_ports
                   WHERE commit_log_id = 428321);

    The ports in question are:

    Let’s see if this works.