On Wed, May 04, 2022 at 06:20:59AM -0600, Theo de Raadt wrote:
> 
> Users are capable of creating linking against older lib*.so.* files.
> Such binaries could be anywhere on-disk, and we should not walk the entire
> disk to find them.  Therefore such old libraries should NEVER be deleted.
> 
> It isn't that track as been lost.  The linker isn't going to create a log
> file about what lib* files have been used at compile time.
> 
> New OpenBSD snapshots come with new libraries, because we crank
> major.minor for incompatible changes, and there are some who think they
> can delete the old libraries.
> 
> Such old libraries should NEVER be deleted.

yes. it is why it isn't a simple problem in the general case. some users could 
rely on old files.

> sysclean wasn't designed to delete these libraries, but these libraries
> are the biggest win as far as diskspace, so the selection algorithm
> started hoovering them up, and it seems semarie doesn't want to walk
> back "OK, I can clean _other things_ but I must leave the libaries alone".
> 
> Because then I guess then sysclean doesn't feel like such a winning
> proposition at all...
 
semarie@ spoke about integrating some elements inside the installer when he was 
about "clean _other things_". It isn't about "stepping back". Even if the 
installer would clean all it is possible to remove safely, I would still use a 
program to list libraries without registered packages using them.

I wrote sysclean because it solves *my* problems regarding maintaining a 
system, 
and I shared it because it could help *some* others people. It wasn't created 
with intent to solve the general use case for all possibles users.

My use case is I don't build local program without packages (and I created some 
"local" packages for personal stuff). So I know I could remove old libraries. I 
know the systems I am maintaing, so I know what I could remove or not.

You don't like it, fine. Just don't use it.

And I recall it comes with a ISC license:

# Permission to use, copy, modify, and distribute this software for any
# purpose with or without fee is hereby granted, provided that the above
# copyright notice and this permission notice appear in all copies.
#
# THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
# WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
# MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
# ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
# WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
# ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
# OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.

Thanks.
-- 
Sebastien Marie

Reply via email to