tech-pkg archive

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

pkgsrc buildlink small patch



Hallo,
please consider the small attached patch for application, or
something along that line, since I am not a bmake guru.
It avoids setting IGNORE flag during creation of buildlinks, 
if the package is already installed.
It serves the purpose of programs optionally booting
by means of themselves.
Fulvio Ciriaco
Index: buildlink3/bsd.buildlink3.mk
===================================================================
RCS file: /cvsroot/pkgsrc/mk/buildlink3/bsd.buildlink3.mk,v
retrieving revision 1.206
diff -u -r1.206 bsd.buildlink3.mk
--- buildlink3/bsd.buildlink3.mk        20 Mar 2009 20:10:15 -0000      1.206
+++ buildlink3/bsd.buildlink3.mk        12 Oct 2009 18:36:15 -0000
@@ -132,9 +132,13 @@
 .  if defined(BUILDLINK_PKGSRCDIR.${_pkg_})
 .    if !defined(IGNORE_PKG.${_pkg_}) && \
         (${BUILDLINK_PKGSRCDIR.${_pkg_}:C|.*/([^/]*/[^/]*)$|\1|} == ${PKGPATH})
+instq=${PKG_BEST_EXISTS} ${PKGWILDCARD}
+isinst!=${instq}
+.    if empty(isinst)
 IGNORE_PKG.${_pkg_}=   yes
 MAKEFLAGS+=            IGNORE_PKG.${_pkg_}=${IGNORE_PKG.${_pkg_}}
 .    endif
+.    endif
 .  endif
 .endfor
 


Home | Main Index | Thread Index | Old Index