LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 06-19-2010, 12:56 PM   #1
robertjinx
Member
 
Registered: Oct 2007
Location: Prague, CZ
Distribution: RedHat / CentOS / Ubuntu / SUSE / Debian
Posts: 749

Rep: Reputation: 73
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?!

If someone knows, please let me know

Thx!
 
Old 06-19-2010, 02:48 PM   #2
Didier Spaier
LQ Addict
 
Registered: Nov 2008
Location: Paris, France
Distribution: Slint64-15.0
Posts: 11,058

Rep: Reputation: Disabled
Please see here.
 
1 members found this post helpful.
Old 06-19-2010, 04:16 PM   #3
robertjinx
Member
 
Registered: Oct 2007
Location: Prague, CZ
Distribution: RedHat / CentOS / Ubuntu / SUSE / Debian
Posts: 749

Original Poster
Rep: Reputation: 73
That does not answer my question... I need to know how Slackware created kernel-headers package.
 
Old 06-19-2010, 05:19 PM   #4
Didier Spaier
LQ Addict
 
Registered: Nov 2008
Location: Paris, France
Distribution: Slint64-15.0
Posts: 11,058

Rep: Reputation: Disabled
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:
Code:
wget ftp://slackware.mirrors.tds.net/pub/..._smp-x86-1.txz
tar xf kernel-headers-2.6.33.4_smp-x86-1.txz
Then compare the files in the newly created usr directory to those included in the linux-26.33.4 kernel source tree.

Some posts of this thread could be of interest to you as well

[EDIT] To fix your kernel headers (I suppose you use Slackware-13.0, otherwise adapt accordingly):
Code:
upgradepkg --install-new --reinstall kernel-headers-2.6.33.4_smp-x86-1.txz
You can reinstall kernel-source the same way, of course.

Last edited by Didier Spaier; 06-20-2010 at 04:59 AM.
 
Old 06-19-2010, 06:00 PM   #5
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,128

Rep: Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121
Quote:
Originally Posted by robertjinx View Post
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.
Why did you do that ?.
 
Old 06-20-2010, 04:45 AM   #6
robertjinx
Member
 
Registered: Oct 2007
Location: Prague, CZ
Distribution: RedHat / CentOS / Ubuntu / SUSE / Debian
Posts: 749

Original Poster
Rep: Reputation: 73
Because Im testing and there is not where written how to generate your own kernel-headers.
 
Old 06-20-2010, 04:53 AM   #7
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,128

Rep: Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121
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".
 
1 members found this post helpful.
Old 06-20-2010, 06:31 AM   #8
robertjinx
Member
 
Registered: Oct 2007
Location: Prague, CZ
Distribution: RedHat / CentOS / Ubuntu / SUSE / Debian
Posts: 749

Original Poster
Rep: Reputation: 73
I dont wanna rebuild glibc, I wanna create kernel-headers package...
 
Old 06-20-2010, 06:49 AM   #9
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,128

Rep: Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121
'nuff said - goodbye.
 
Old 06-20-2010, 07:00 AM   #10
rkelsen
Senior Member
 
Registered: Sep 2004
Distribution: slackware
Posts: 4,448
Blog Entries: 7

Rep: Reputation: 2553Reputation: 2553Reputation: 2553Reputation: 2553Reputation: 2553Reputation: 2553Reputation: 2553Reputation: 2553Reputation: 2553Reputation: 2553Reputation: 2553
Quote:
Originally Posted by robertjinx View Post
I dont wanna rebuild glibc, I wanna create kernel-headers package...
Why?

glibc and the kernel-headers are two packages joined at the hip. You should never upgrade one without upgrading the other.

If you do this, your system will malfunction.

My advice is to reinstall the stock kernel-headers package, and not upgrade it until you upgrade glibc.

A new kernel does not need new kernel-headers.
 
Old 06-20-2010, 07:11 AM   #11
Didier Spaier
LQ Addict
 
Registered: Nov 2008
Location: Paris, France
Distribution: Slint64-15.0
Posts: 11,058

Rep: Reputation: Disabled
My guess is robertjinx wants to do that just for fun, no need to argue against that
 
Old 06-20-2010, 07:34 AM   #12
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,128

Rep: Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121
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.

No sympathy here.
 
Old 06-24-2010, 05:57 PM   #13
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Mint
Posts: 17,809

Rep: Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743
Moved to Slackware (not a Programming question)
 
Old 06-24-2010, 06:37 PM   #14
rfernandez
Member
 
Registered: Mar 2010
Location: Brazil
Distribution: Slackware64
Posts: 264

Rep: Reputation: 41
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.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Automatic removal of kernel headers package when kernel packages are removed bgoodr Debian 3 12-30-2008 08:14 PM
Compiling 2.6.23.1, do i need 2.6.23.1 headers and modules pkg from slackware package agentc0re Slackware 32 11-19-2007 02:21 AM
If I install the kernel source package, do I need the headers? TSquaredF Slackware 12 09-12-2006 10:08 AM
I need the kernel headers package for 2.6.13-7smp Thaidog Linux - General 2 06-25-2006 02:24 PM
kernel-headers package? mike2265 Linux - Newbie 1 03-17-2005 04:02 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 07:46 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration