I have been having a problem with bad category errors when running make
from /usr/ports/mystuff.  

$ cd /usr/ports/mystuff
$ make describe
===> mystuff/archivers
===> mystuff/archivers/p5-Archive-Rar
Fatal: one category in archivers perl5 should match 
PKGPATH=mystuff/archivers/p5-Archive-Rar (in mystuff/archivers/p5-Archive-Rar)
*** Error code 1

Stop.
===> Exiting mystuff/archivers/p5-Archive-Rar with an error
*** Error code 1

Stop in /usr/ports/mystuff/archivers (line 134 of 
/usr/ports/infrastructure/mk/bsd.port.subdir.mk).
===> Exiting mystuff/archivers with an error
*** Error code 1

Stop in /usr/ports/mystuff (line 134 of 
/usr/ports/infrastructure/mk/bsd.port.subdir.mk).


This seems to fix it, but I don't know if it is the correct fix.


Index: bsd.port.mk
===================================================================
RCS file: /cvs/ports/infrastructure/mk/bsd.port.mk,v
retrieving revision 1.972
diff -N -u -p -u bsd.port.mk
--- bsd.port.mk 14 Oct 2009 13:01:03 -0000      1.972
+++ bsd.port.mk 20 Nov 2009 17:19:47 -0000
@@ -1081,7 +1081,7 @@ ERRORS += "Fatal: CATEGORIES is mandatory."
 _badcat = Yes
 .  for _i in ${CATEGORIES}
 .    if ${_badcat} == "Yes"
-.      if ${PKGPATH:M${_i}/*}
+.      if ${PKGPATH:M${_i}/*} || ${PKGPATH:Mmystuff/${_i}/*}
 _badcat = No
 .      endif
 .    endif


l8rZ,
-- 
andrew - ICQ# 253198 - Jabber: and...@rraz.net

BOFH excuse of the day: Too many interrupts

Reply via email to