Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 20 Mar 2011 17:31:57 +0100
From:      Alexander Leidinger <Alexander@Leidinger.net>
To:        David Demelier <demelier.david@gmail.com>
Cc:        freebsd-current@freebsd.org
Subject:   Re: WITHOUT_JAIL and make delete-old{,-libs}
Message-ID:  <20110320173157.00002024@unknown>
In-Reply-To: <4D85AE1B.7010407@gmail.com>
References:  <4D85AE1B.7010407@gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Sun, 20 Mar 2011 08:34:51 +0100 David Demelier
<demelier.david@gmail.com> wrote:

> Hello,
> 
> I was surprised to see there is no ${MK_JAIL} conditional to remove
> old files on 8.2-RELEASE so I started to write it without watching if 
> -CURRENT already make it in 
> /usr/src/tools/build/mk/OptionalObsoleteFiles.inc.
> 
> .if ${MK_JAIL} == no
> OLD_FILES+=usr/sbin/jail
> OLD_FILES+=usr/sbin/jexec
> OLD_FILES+=usr/sbin/jls
> OLD_FILES+=usr/share/man/man8/jail.8.gz
> OLD_FILES+=usr/share/man/man8/jexec.8.gz
> OLD_FILES+=usr/share/man/man8/jls.8.gz
> .endif
> 
> I personnaly added more files :
> 
> OLD_LIBS+=lib/libjail.so.1
> OLD_LIBS+=usr/lib/libjail.a
> OLD_LIBS+=usr/lib/libjail_p.a
> OLD_FILES+=usr/lib/libjail.so
> OLD_FILES+=etc/rc.d/jail

So if you do an installworld, do those files you added show up again or
not? If they show up, they are wrong to be added there. Delete old is
supposed to delete stuff which does not get installed during an
installworld but was installed in some older version of FreeBSD. From
my reading of the Makefile in src/lib/ (on -current) it looks like at
least the libjail is installed regardless of the knob. I do not know if
this is a bug or by design, this would have to be discussed on the
mailinglist which is about FreeBSD jails.

If those files are not installed during an installworld, it's obviously
a bug which needs to be fixed (and I would have misunderstood the
Makefile).

> (/usr/lib/libjail.so is a symbolic link)
> 
> I think they should be removed too, thus can you merge it to -STABLE
> if it's not already done? (sorry I'm not used to the cvs web
> interface and I don't have -STABLE right now)
> 
> Cheers,
> 




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20110320173157.00002024>