LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 06-19-2007, 03:34 AM   #1
binarybob0001
Member
 
Registered: Dec 2004
Distribution: Debian Wheezy
Posts: 444

Rep: Reputation: 30
Making A Better Checkinstall


OK, checkinstall works about 95% of the time, but I dislike using it because a lot of times you need to actually install the application before making the package. It also fail miserably on python install scripts, so I have a bright idea. Please tell me if someone has already done this. Why not alter the permissions of the install program so that it runs with the user ID "install." To figure out what files are being written or created, we just need to look for I/O calls that are attached with a user ID install and redirect them to where we actually want them to go (most likely a directory for packaging). This system would allow me to use the default make because custom options fail far too often and allow me to use any strange installer the developer wants without having to learn all the options.
If this design is possible, all I need to know is has this been done before and where do I start. Do I need to rewrite existing kernel code or can I make a module to do this? What would this kind of system be called a wrapper or a driver or something else. Any suggestions on what calls to monitor? Thanks.
 
Old 06-19-2007, 09:41 AM   #2
Randux
Senior Member
 
Registered: Feb 2006
Location: Siberia
Distribution: Slackware & Slamd64. What else is there?
Posts: 1,705

Rep: Reputation: 55
You should probably have posted this on the Slackware forum. Some of the Slackware devs hang out there.
 
Old 06-19-2007, 11:48 AM   #3
gnashley
Amigo developer
 
Registered: Dec 2003
Location: Germany
Distribution: Slackware
Posts: 4,928

Rep: Reputation: 612Reputation: 612Reputation: 612Reputation: 612Reputation: 612Reputation: 612
I have a nice, more powerful replacement for checkinstall called src2pkg, but since it uses the installwatch libs just like checkinstall and slackpkg, it will not catch the mknod command which is being called to create the device. But I have src2pkg build scripts for several fuse versions.
 
Old 06-19-2007, 01:29 PM   #4
binarybob0001
Member
 
Registered: Dec 2004
Distribution: Debian Wheezy
Posts: 444

Original Poster
Rep: Reputation: 30
Src2pkg looks good, but it uses installwatch like you pointed out. Perhaps the idea of making this is laughable to many of you, but this is a really frustrating problem. I want absolute control over where the install program writes files. I will look further into this. Thanks.
 
  


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
checkinstall help meknb Linux - Software 10 10-22-2006 04:45 PM
checkinstall making symlinks in root?? puffinman Slackware 1 06-13-2005 08:56 PM
Checkinstall in 5.1.1 Kroenecker Linux From Scratch 5 07-13-2004 11:37 AM
checkinstall... marsques Linux - Software 3 05-25-2004 12:56 PM
Using 'checkinstall' gonzalo76 Slackware 20 05-20-2004 06:09 PM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 12:50 AM.

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