[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Bug#346281: Proposal to solve this to everyone's convenience



On Wed, 11 Jan 2006 16:20:57 +0100, Sven Luther <sven.luther@wanadoo.fr> said: 

> On Wed, Jan 11, 2006 at 09:12:14AM -0600, Manoj Srivastava wrote:
>> Why? Anyone who wants to use the headers provided by the headers
>> package must sent an env var, anyway, so why not just set the var
>> to /usr/sr/linux-header-foo? What is the benefit of this symlink?

> For consistency's sake, and so that users can write scripts building
> modules, which will not change if we modify the
> /usr/src/linux-header-foo path down the road.

        Err, this does not make sense.  What do you put into the
 script? Obviously, you can't put /lib/modules/$uname -r)/build there,
 since that shall not work.

        Why can't the script have:
,----
| KVERS=<VERSION_I_AM_TRYING_TO_BUILD_FOR>
| if [ -e "/lib/modules/$KVERS/build" ]; then
|     export KSRC="/lib/modules/$KVERS/build"
| elif [ -d "/usr/src/linux-headers-$KVERS" ]; then
|     export KSRC="/usr/src/linux-headers-$KVERS"
| fi
`----

        manoj

-- 
Democrats give their worn-out clothes to those less fortunate.
Republicans wear theirs.
Manoj Srivastava     <srivasta@acm.org>    <http://www.golden-gryphon.com/>
1024D/BF24424C print 4966 F272 D093 B493 410B  924B 21BA DABB BF24 424C



Reply to: