Bug 41922

Summary: 'make headers_install' deletes system headers
Product: Other Reporter: Rene Berber (r.berber)
Component: OtherAssignee: other_other
Status: RESOLVED OBSOLETE    
Severity: normal CC: alan
Priority: P1    
Hardware: All   
OS: Linux   
Kernel Version: 2.6.39.4 Subsystem:
Regression: No Bisected commit-id:
Attachments: Log of 'make -n headers_install ...'

Description Rene Berber 2011-08-28 23:11:05 UTC
Created attachment 70742 [details]
Log of 'make -n headers_install ...'

With the objective of building glibc I needed the kernel headers installed so I used the command: make headers_install INSTALL_HDR_PATH=/opt .

As can be seen in the attached file (where I used 'make -n' to reproduce the problem) many of my system headers, unrelated to the kernel (things like stdio.h), where deleted.  The problem is in line 111.

Of course part of the problem is that I installed where the old glibc, and other headers (many also deleted) are kept.  Installing to an empty directory works fine, but I don't see a good reason to delete files that are not going to be replaced, and are required to build anything else.

Environment: Linux (2.6.12) with no system headers installed (i.e. nothing under /usr/include -- its a NAS), gcc (4.5.4 prerelease), make (3.82), perl (5.8.8).