----- Original Message ----- 
From: "Dan Nicholson" <[EMAIL PROTECTED]>
To: "LFS Developers Mailinglist" <lfs-dev@linuxfromscratch.org>
Sent: Wednesday, July 11, 2007 3:16 PM
Subject: Re: Safer linux-headers install


> On 7/11/07, Luca2 <[EMAIL PROTECTED]> wrote:
>>
>> Same issue could be solved with a little patch removing or commenting
>> out the line in question as I've been already using for some months.
>>
>> There's ony an additional "issue": it's an extra patch and this 
>> depends
>> on authors' feelings towards patches...
>
> Well, you didn't include the patch, but I assume you must be
> commenting out one of these lines in scripts/Makefile.headersinst:
>
> # Work out what needs to be removed
> oldheaders      := $(patsubst
> $(INSTALL_HDR_PATH)/$(_dst)/%,%,$(wildcard
> $(INSTALL_HDR_PATH)/$(_dst)/*.h))
> unwanted        := $(filter-out $(header-y) $(unifdef-y)
> $(objhdr-y),$(oldheaders))
>
> Unless it's going to be accepted upstream, then I'm not really
> interested in adding a patch here which takes one extra command to
> workaround. Which, now that I look again, makes this much easier to
> solve.
>
> # make INSTALL_HDR_PATH=/usr oldheaders= headers_install
>
> Try running with V=1 and with and without oldheaders set.
>
> $ mkdir -p ~/src/include/
> $ cp /usr/include/*.h ~/src/include/
> $ make INSTALL_HDR_PATH=~/src headers_install V=1
> ...
> make[1]: `scripts/unifdef' is up to date.
> make -f 
> /home/dnicholson/src/linux-2.6.21.5/scripts/Makefile.headersinst
> obj=include
>  rm -f /home/dnicholson/src/include/aio.h
>  rm -f /home/dnicholson/src/include/aliases.h
>  rm -f /home/dnicholson/src/include/alloca.h
>  rm -f /home/dnicholson/src/include/ansidecl.h
>  rm -f /home/dnicholson/src/include/a.out.h
> ...
> $ ls ~/src/include/
> asm  asm-generic  linux  mtd  rdma  sound  video
> $ make INSTALL_HDR_PATH=~/src oldheaders= headers_install V=1
> ...
> make[1]: `scripts/unifdef' is up to date.
> make -f 
> /home/dnicholson/src/linux-2.6.21.5/scripts/Makefile.headersinst
> obj=include
> make -rR -f 
> /home/dnicholson/src/linux-2.6.21.5/scripts/Makefile.headersinst
> obj=include/asm-generic dst=include/asm-generic rel=../
> ...
> $ ls ~/src/include/
> aio.h                    _G_config.h         sched.h
> aliases.h                gconv.h             search.h
> alloca.h                 getopt.h            semaphore.h
> ansidecl.h               gettext-po.h        setjmp.h
>
> So, just by passing oldheaders= to make, it won't try to remove
> anything. Is that better?
>
> --
> Dan

Hi Dan.

I didn't attach the patch because I'm not home nor on that box and, oh 
my god (...horror...), am on a M$ box because a project I'm involved.

In using your suggestion there is an additional "issue" too, an extra 
"cp"; anyway if you don't like an extra patch like, probably, many 
others, well, these are personal feelings and preferences :)

Anyway, seeming to remember, there are some kernel headers installed 
(using "make headers_install") with wrong permissions, revealing when 
installing glibc; perhaps this issue is now solved, I don't know... (I 
built last lfs-dev last month) so sorry if I recall a "closed" issue.

For the upstream I simply don't care about it... like some FHS 
standards...

Regards,
Luca 

-- 
http://linuxfromscratch.org/mailman/listinfo/lfs-dev
FAQ: http://www.linuxfromscratch.org/faq/
Unsubscribe: See the above information page

Reply via email to