How kernel-headers package in Slackware is created?!
SlackwareThis Forum is for the discussion of Slackware Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
How kernel-headers package in Slackware is created?!
My system got "screw" due to running from the linux source code: make headers_install which installed headers not compatible or not working with, for example parted.
My question is: How does Slackware pack kernel-headers?!
I suggest you ask such a question in the Slackware forum, you will receive more relevant answers.
AFAIK the kernel-headers package is (probably one of the only ones if not the only one) created by hand by Patrick Volkerding. Installing the package put in /usr/include some files and directories copied from the kernel source tree then does this :
Code:
( cd usr/include ; rm -rf asm )
( cd usr/include ; ln -sf asm-x86 asm )
That's about all.
To check which files are involved just do this for instance:
My system got "screw" due to running from the linux source code: make headers_install which installed headers not compatible or not working with, for example parted.
Hmmm - why did you think you needed to do that ?.
See the reference in post #2 - are you rebuilding glibc ?. And you'd better have a real good reason if your answer is "yes".
Plenty of reason to argue against that for any non source distro.
Rebuilding the tool-chain in a distro designed to handle it is a PITA. Else you'd better have a substantial reason to attempt it - and don't bleat when you don't understand when it causes problems with the rest of the environment.
I once had the same question, 'till I read the reference on the second link. Once you read it, one can simply understand that create a kernel-headers package is no good for anything - you'll just copy the headers and then package them; you can't install them since glibc depends on the distribuited kernel-headers package. If you can't install them nor do anything with them, why bother to create a kernel-headers package?
...Unless, of course, you're building glibc. That's another story.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.