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.
I would like to install a Slack Pack which apparently was compiled for the 2.6.17.13 kernel. However I am running kernel 2.6.20. This should not normally be an issue but when I unpacked the archive to view the contents before installing, I noticed a "..../lib/modules/2.6.17.13/kernel/drivers/net/wireless" folder structure. Since I am running kernel 2.6.20 my structure would show this value rather the the 2.6.17.13. My question is, is it possible to unpack and modify the package to change the name of the 2.6.17.13 directory to 2.6.20 and have the entire archive repackaged into a genuine Slack Pack?
What is the package? It sounds like a kernel module of some sort. If that is the case it will need to be recompiled for your present kernel. With any luck the package will include a slackbuild script. If it does, extract the slackbuild script, obtain the source and run the script and you should have a package built against your kernel. Full instructions for using slackbuilds are here at slackbuilds.org
No.
A precompiled package with a kernel module inside can not be used on another kernel.
You can re-build the package using the sources however, and create a kernel module for your version of the kernel.
What package are you referring to by the way?
Yeah, just untar it in a test directory that has nothing else in it. And then make your change, go to the base directory of your test, and as root "makepkg foo.tgz"
But If it is just a directory structure, you could also go to that directory and create a soft link from one directory to the other: ln -s 2.6.17.13 2.6.20.
But now I look at where it is installed: Kernel modules from one version do not work with kernels of a different version number, so I don't think your 2.6.17.13 module that it is placing in there will actually work.
Thanks for all the informative responses. For the record the package is: ipw3945-1.2.0_2.6.17.13-i486-1.tgz. So based on the advice here its strictly for 2.6.17.13 then.
Excellent, although I am completely clueless about the "SlackBuild" bit. However Eternal_Newbie has been good enough to post a link which I hope will clear things up.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.