DragonFly BSD
DragonFly bugs List (threaded) for 2004-11
[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]

Re: dfports override system broken?


From: walt <wa1ter@xxxxxxxxxxxxx>
Date: Thu, 25 Nov 2004 10:50:51 -0800

walt wrote:
"/usr/share/mk/bsd.port.mk", line 85: warning: duplicate script for target
".BEGIN" ignored

Sorry, my first post was misleading. The warning message above is harmless to the dfport build itself, but it does break 'portupgrade' because of this test:

output = `cd #{portdir} && #{shelljoin(*cmdargs)} -V PKGNAME -V IGNORE -V NO_IGNORE 2>&1`.to_a

  if output.size != 3
    warning_message "Makefile possibly broken: #{origin}:"
    output.each { |line| STDERR.print "\t" + line }
    raise MakefileBrokenError
  end

Looks like portupgrade watches for any output on stderr and kills
the upgrade if it finds any(?)

If we really want 'make' to warn about duplicate scripts I suppose
we could teach portupgrade to ignore stderr.



[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]