Subject: A nice suggestion about pkgsrc!
To: None <pkgsrc-changes@NetBSD.org>
From: None <falaki@ce.sharif.edu>
List: pkgsrc-changes
Date: 03/10/2005 21:18:30
Hi all;
Consider the following situation:
I am installing two packages in the pkgsrc system and one of them is
compiling. At the same time I understand that I am going short of space on
my ''/usr'' partition. I don't want to stop the currently compiling
program and also I don't know what packages have not been clean. So I run
''make clean'' on the root of the pkgsrc system and ...
This has two major problems:
1. The make clean process on the root of pkgsrc is too slow and it wastes
lots of its time trying actually clean directories.
2. It may delete the currently compiling programs results.
I suggest some thing like a ''dirty file list'' be added to the pkgsrc
system. Any program which is compiled on the system adds his address at
the end of this file after the compilation process is over. After getting
cleaned it removes its address.
In this way the exhaustive recursive search would not be needed and data
of a currently compiling package is not in danger.
This new file can be very simple. Just consisting of the relative address
of the work directory of the dirty package and maybe some other necessary
information. For example if the package is compiled but not installed,
cleaning it would waste a lot of work, so trying to make it clean can
generate suitable warning and ask for confirmation.
What is your idea bout this nice extension?
Mohammad H. Falaki,
Computer Engineering Student,
Sharif University of Technology.