Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 01 May 2000 09:15:24 +0300
From:      Maxim Sobolev <sobomax@altavista.net>
To:        Satoshi Asami <asami@cs.berkeley.edu>, ports@freebsd.org
Subject:   Re: lists of files and directories missing from PLIST
Message-ID:  <390D20FC.6E7FEB8A@altavista.net>
References:  <200005010154.SAA08504@silvia.hip.berkeley.edu>

next in thread | previous in thread | raw e-mail | index | archive | help
Satoshi Asami wrote:

> Hi,
>
> In the past few days I've been working on getting the package
> building script smarter so it can recognize files that are left over
> after the port is deleted (mostly files missing from PLIST).  It's
> still rather rough but I've gotten something I'd like you to take a
> look at.  Here is a summary:
>
>   http://bento.FreeBSD.org/errorlogs/5-latest-logs/extras.html
>
> Right now only the 5-latest branch has a full listing (because the
> script was not ready before).
>
> Note that the check works by pkg_delete'ing all the ports in
> /var/db/pkg and then comparing ${PREFIX} with mtree.  Thus, if there
> is a directory left by a package depended upon by a whole bunch of
> others, it will show up many times in the listing.  So please don't
> worry for things like share/doc/jpeg and share/locale for the time
> being, I'm fixing those at the root (graphics/jpeg, devel/gettext,
> etc.).
>
> At some point in the future, I would like to make failure of this test
> fatal, i.e., the package build will fail if a port installs a file it
> doesn't say it does, or leaves an extra directory behind.  There are
> cases where files *are* supposed to be left behind (like info/dir), so
> we probably need an extra directive to speficy that.

IMHO, there is easiest way to detetmine leftover files. You can use script
to mesure time spent to make install/deinstall, and then find files in
${PREFIX}, which have been created during this time. This would allow to
easily associate leftovers with appropriate port.

1. cd /usr/ports/myport & make all
2. t1=time
3. cd /usr/ports/myport & make install deinstall
4. t2=time
5. t=t2-t1
6. find ${PREFIX} -cmin -(t+1)

-Maxim



To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-ports" in the body of the message




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