tech-pkg archive

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

Re: fixing bugs in packages



On Wed, May 16, 2012 at 7:03 PM, Aleksey Cheusov <cheusov%tut.by@localhost> 
wrote:
> On Sun, May 13, 2012 at 3:44 AM, Joerg Sonnenberger
> <joerg%britannica.bec.de@localhost> wrote:
>> On Sat, May 12, 2012 at 02:58:51PM +0300, Aleksey Cheusov wrote:
>>>  >>> for example. Some time ago, I proposed the same here and still have
>>>  >>> "rebuild" target in my mk.conf.
>>>  >>
>>>  >> A quick search did not find it, could you please share it (again)?
>>>  >> Thanks,
>>> > The attached patch implements "rebuild" target and I think
>
>> Incomplete. Doesn't handle package. Also should likely kill .destdir and
>> the various PLIST check files. I'm not completely sure about the
>> post-barrier implications for this either.
>
> Updated patch is in attachment.

Something bad happened to my webmail interface :-(

Index: mk/plist/plist.mk
===================================================================
RCS file: /cvsroot/pkgsrc/mk/plist/plist.mk,v
retrieving revision 1.42
diff -u -r1.42 plist.mk
--- mk/plist/plist.mk   13 May 2012 12:39:47 -0000      1.42
+++ mk/plist/plist.mk   16 May 2012 16:01:12 -0000
@@ -292,3 +292,13 @@
        ${PKGSRC_SETENV} ${_PLIST_AWK_ENV} ${AWK} ${_PLIST_INFO_AWK} |  \
        ${AWK} '($$0 !~ "-[0-9]*(\\.gz)?$$") { print }'
 .endif
+
+######################################################################
+### plist-clean (PRIVATE)
+######################################################################
+### plist-clean removes the files for the "plist"
+### so that the "plist" target may be re-invoked.
+###
+.PHONY: plist-clean
+plist-clean:
+       ${RUN} ${RM} -f ${PLIST} ${_PLIST_NOKEYWORDS} ${_DEPENDS_PLIST}
Index: mk/build/build.mk
===================================================================
RCS file: /cvsroot/pkgsrc/mk/build/build.mk,v
retrieving revision 1.20
diff -u -r1.20 build.mk
--- mk/build/build.mk   8 Sep 2011 20:17:15 -0000       1.20
+++ mk/build/build.mk   16 May 2012 16:01:12 -0000
@@ -93,6 +93,26 @@
 .endif

 ######################################################################
+### rebuild (PUBLIC)
+######################################################################
+### rebuild is a special target to re-run the build target.
+###
+
+.PHONY: rebuild
+rebuild: build-clean
+       ${RUN} ${RECURSIVE_MAKE} ${MAKEFLAGS} build
+
+######################################################################
+### build-clean (PRIVATE)
+######################################################################
+### build-clean removes the state files for the "build" and
+### later phases so that the "build" target may be re-invoked.
+###
+.PHONY: build-clean
+build-clean: install-clean _package-clean
+       ${RUN} ${RM} -f ${_COOKIE.build}
+
+######################################################################
 ### real-build (PRIVATE)
 ######################################################################
 ### real-build is a helper target onto which one can hook all of the


Home | Main Index | Thread Index | Old Index