LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 04-20-2006, 04:50 AM   #1
binarybob0001
Member
 
Registered: Dec 2004
Distribution: Debian Wheezy
Posts: 444

Rep: Reputation: 30
Tweaking a .tgz made with checkinstall


I made a package for my ALSA driver. I would like it to automatically run the snddevices script and install itself to the appropriate kernel directory. For example, I compiled the package on the 2.6.14.3 kernel, and now I want to install it on a 2.6.16.9 kernel. The appropriate /lib/modules/KernelVersion has changed. Is there a way to make it correctly find the modules directory for any later kernel? Thanks.
 
Old 04-20-2006, 07:09 AM   #2
Hangdog42
LQ Veteran
 
Registered: Feb 2003
Location: Maryland
Distribution: Slackware
Posts: 7,803
Blog Entries: 1

Rep: Reputation: 422Reputation: 422Reputation: 422Reputation: 422Reputation: 422
To be honest, while you can get away with your approach for a while, sooner or later it is going to break. I think you're much better off running the slackbuild scripts for ALSA when you upgrade your kernel rather than trying to fiddle with a package to get it to install.
 
Old 04-20-2006, 04:36 PM   #3
binarybob0001
Member
 
Registered: Dec 2004
Distribution: Debian Wheezy
Posts: 444

Original Poster
Rep: Reputation: 30
I can install ALSA no problems with Slackware. I just build it from source, install and run a few scripts. I reinstall my kernel a lot though. I am a beginner and I mess up things ALL the time. So, I want to make this package once and have it last forever. Perhaps a better idea would be for me to make my own build script. When my version gets outdated (ie. upgrading the kernel), I just rebuild the whole package.
 
Old 04-20-2006, 06:21 PM   #4
Hangdog42
LQ Veteran
 
Registered: Feb 2003
Location: Maryland
Distribution: Slackware
Posts: 7,803
Blog Entries: 1

Rep: Reputation: 422Reputation: 422Reputation: 422Reputation: 422Reputation: 422
Quote:
So, I want to make this package once and have it last forever. Perhaps a better idea would be for me to make my own build script. When my version gets outdated (ie. upgrading the kernel), I just rebuild the whole package.
I certainly understand the sentiment, but sooner or later the kernel is going to change something that will break the modules. Personally, I find it much easier to rebuild things like ALSA from source rather than copying modules from one kernel to the next. And since Pat supplies both the ALSA source code and the scripts used to build the official Slackware packages in the sources directory (on CD4 if you have the CDs), you don't even have to make your own build scripts.
 
Old 04-20-2006, 09:55 PM   #5
binarybob0001
Member
 
Registered: Dec 2004
Distribution: Debian Wheezy
Posts: 444

Original Poster
Rep: Reputation: 30
Thanks for the help Hangdog. I'll take a look at that CD.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
checkinstall - make tgz, but don't install tw001_tw Slackware 6 03-11-2005 09:45 AM
checkinstall tgz file Seiken Slackware 8 03-10-2005 02:30 AM
checkinstall creating i386 tgz xushi Slackware 12 10-01-2004 03:38 AM
tgz file doesn't end in .tgz? detpenguin Slackware 4 05-15-2004 07:13 PM
X Sever crash after xset.tgz & vg16.tgz install lachlan Slackware 0 08-13-2003 02:48 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 09:17 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