Bug 41922 - 'make headers_install' deletes system headers
Summary: 'make headers_install' deletes system headers
Status: RESOLVED OBSOLETE
Alias: None
Product: Other
Classification: Unclassified
Component: Other (show other bugs)
Hardware: All Linux
: P1 normal
Assignee: other_other
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-08-28 23:11 UTC by Rene Berber
Modified: 2013-12-23 14:22 UTC (History)
1 user (show)

See Also:
Kernel Version: 2.6.39.4
Subsystem:
Regression: No
Bisected commit-id:


Attachments
Log of 'make -n headers_install ...' (67.54 KB, text/plain)
2011-08-28 23:11 UTC, Rene Berber
Details

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).

Note You need to log in before you can comment on or make changes to this bug.