The Porters Handbook, part 4.10 lists a dependency on ${PREFIX}, while a portlint check says people should use ${LOCALBASE} or ${X11BASE} instead. Fix: Not sure. Either the documenation is faulty, or portlint is outdated. Hence submitted to ports at first, but can/needs to be reassigned to docs if it is a documenation error. How-To-Repeat: Have a port with a dependency which contains ${PREFIX} and unleash portlint -abcvtN on it.
Responsible Changed From-To: freebsd-ports->freebsd-doc portlint is accurate. This is a documentation issue
What about the following patch, for starters. Also, perhaps we should add a line stating that unless a *_DEPENDS target is a library or binary in the path, it should be prepended with either LOCALBASE or X11BASE where appropriate; LOCALBASE if the dependency port has a standard PREFIX; or X11BASE if USE_X_PREFIX. --- book.sgml.orig Wed Feb 13 17:41:08 2002 +++ book.sgml Wed Feb 13 17:42:28 2002 @@ -1129,7 +1129,7 @@ <para>For example,</para> - <programlisting>RUN_DEPENDS= ${PREFIX}/etc/innd:${PORTSDIR}/news/inn \ + <programlisting>RUN_DEPENDS= ${LOCALBASE}/etc/innd:${PORTSDIR}/news/inn \ wish8.0:${PORTSDIR}/x11-toolkits/tk80</programlisting> <para>will check if the file or directory -- Mario S F Ferreira - DF - Brazil - "I guess this is a signature." Computer Science Undergraduate | FreeBSD Committer | CS Developer flames to beloved devnull@someotherworldbeloworabove.org feature, n: a documented bug | bug, n: an undocumented feature
-On [20020213 20:49], Mario Sergio Fujikawa Ferreira (lioux@FreeBSD.org) wrote: >What about the following patch, for starters. Looks fine to me. >Also, perhaps we should add a line stating that unless a *_DEPENDS >target is a library or binary in the path, it should be prepended >with either LOCALBASE or X11BASE where appropriate; LOCALBASE if >the dependency port has a standard PREFIX; or X11BASE if USE_X_PREFIX. Yes, like portlint warns you about. *nod* -- Jeroen Ruigrok van der Werven / asmodai / Kita no Mono / xMach coreteam asmodai@[wxs.nl|xmach.org], finger asmodai@ninth-circle.org http://www.softweyr.com/asmodai/ The distance to here is infinite...
State Changed From-To: open->closed Committed.