Re: .depend line 264: Inconsistent operator for ipf

From: Ruslan Ermilov (ru_at_FreeBSD.org)
Date: 05/30/05

  • Next message: Ruslan Ermilov: "Re: SMP, DEVICE_POLLING and fxp LOR"
    Date: Mon, 30 May 2005 21:46:19 +0300
    To: Kris Kennaway <kris@obsecurity.org>
    
    
    

    On Mon, May 30, 2005 at 11:39:06AM -0700, Kris Kennaway wrote:
    > On Mon, May 30, 2005 at 02:22:10PM +0300, Ruslan Ermilov wrote:
    >
    > > When someone changes the type of "foo" from file to directory,
    > > this is exactly what happens. sbin/ipf/ipf was a file, which
    > > has a recorded dependency in your stale .depend file. Now,
    > > sbin/ipf/ipf is a directory, and it has a :: type of dependency
    > > provided by bsd.subdir.mk in sbin/ipf/Makefile, hence the error
    > > from make(1). Just blow away your /usr/obj/usr/src/sbin/ipf.
    > > I'm considering changing bsd.subdir.mk to prevent this from
    > > happening again and again.
    >
    > That would probably be a good idea..this question will surely come up
    > again and again each time someone tries to update from 5.x to 6.x.
    >
    The patch I'm testing now is very simple:

    %%%
    Index: bsd.subdir.mk
    ===================================================================
    RCS file: /home/ncvs/src/share/mk/bsd.subdir.mk,v
    retrieving revision 1.49
    diff -u -r1.49 bsd.subdir.mk
    --- bsd.subdir.mk 14 Feb 2005 12:57:51 -0000 1.49
    +++ bsd.subdir.mk 30 May 2005 11:21:00 -0000
    @@ -57,7 +57,7 @@
             done
     .endif
     
    -${SUBDIR}::
    +${SUBDIR}:
             ${_+_}@if test -d ${.TARGET}.${MACHINE_ARCH}; then \
                     cd ${.CURDIR}/${.TARGET}.${MACHINE_ARCH}; \
             else \
    %%%

    Cheers,

    -- 
    Ruslan Ermilov
    ru@FreeBSD.org
    FreeBSD committer
    
    



  • Next message: Ruslan Ermilov: "Re: SMP, DEVICE_POLLING and fxp LOR"

    Relevant Pages

    • Re: BETA1 5.3 make world DESTDIR failure
      ... and specify DESTDIR when doing make installworld. ... I'm finishing testing a patch for Makefile.inc1. ... Ruslan Ermilov ... FreeBSD committer ...
      (freebsd-current)
    • Re: bin/72138: libc.so.5 isnt installed in a safe way
      ... > I must say that although Xin's patch will certainly work well to address ... You can check it easily, by doing two installworlds, one with ... Ruslan Ermilov ... FreeBSD committer ...
      (freebsd-current)
    • Re: ng_bridge(4) has an easily exploitable memory leak
      ... #define NG_FWD_ITEM_HOOK(error, item, hook) \ ... On Thu, 8 Apr 2004, Ruslan Ermilov wrote: ... the patch for RELENG_4 is attached. ... > FreeBSD committer ...
      (freebsd-stable)
    • Re: xl(4) & polling
      ... Those of you wishing to try your xlcard under polling ... are welcome to test this patch: ... Ruslan Ermilov ... FreeBSD committer ...
      (freebsd-current)
    • Re: semi HEADS UP: icc support committed
      ... >> Does icc build a stable world, or is that the next step? ... Ruslan Ermilov ... FreeBSD committer ...
      (freebsd-current)