LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices


Reply
  Search this Thread
Old 04-15-2007, 05:07 PM   #1
Quakeboy02
Senior Member
 
Registered: Nov 2006
Distribution: Debian Linux 11 (Bullseye)
Posts: 3,407

Rep: Reputation: 141Reputation: 141
When is a package "installed" in debian?


I ran into an odd situation this weekend. On my test mule I use dmraid. I had to add an offset to pdc.h in order for my old FastTrak66 to see a couple of older drives I have. I made the mistake of using apt-get to remove the debian version of dmraid, and then I used make install to install the version of dmraid I compiled. But, the next time I booted, no dmraid and I was stuck with the classic "waiting on root file system".

I got round this by using a knoppix and apt-get to reinstall the debian dmraid package and then doing a make install over top of that in order to replace libdmraid.a. Apparently there is something different between installing a deb and just doing a make install. Clearly now that I know what's going on I can get around it, but it would be nice to have some basic understanding of what happened.
 
Old 04-15-2007, 05:24 PM   #2
cgjones
Member
 
Registered: Nov 2005
Location: Central New York
Distribution: Ubuntu
Posts: 405

Rep: Reputation: 31
My guess would be that installing it via APT sets up any startup scripts that are needed, such as /etc/init.d/dmraid. Whereas compiling it from source doesn't set up any distro specific stuff.
 
Old 04-15-2007, 05:30 PM   #3
Quakeboy02
Senior Member
 
Registered: Nov 2006
Distribution: Debian Linux 11 (Bullseye)
Posts: 3,407

Original Poster
Rep: Reputation: 141Reputation: 141
"My guess would be that installing it via APT sets up any startup scripts that are needed, such as /etc/init.d/dmraid. Whereas compiling it from source doesn't set up any distro specific stuff."

dmraid has to be part of the kernel package in the initramfs (sorry, don't have terminology correct), because it has to get executed to setup the mapper before the kernel takes over the hardware. It's kind of puzzling because I had run update-initramfs but libdmraid.a simply wasn't there when the kernel gave up and tossed me into intramfs. I could see the devmapper there, but no libdmraid.
 
Old 04-16-2007, 01:39 AM   #4
nx5000
Senior Member
 
Registered: Sep 2005
Location: Out
Posts: 3,307

Rep: Reputation: 57
Quote:
Originally Posted by Quakeboy02
I ran into an odd situation this weekend. On my test mule I use dmraid. I had to add an offset to pdc.h in order for my old FastTrak66 to see a couple of older drives I have. I made the mistake of using apt-get to remove the debian version of dmraid, and then I used make install to install the version of dmraid I compiled.
You should have used only the debian tool as long as you can.
apt-get build-dep package
apt-get source package
cd package-*
cd src maybe
patch -p1 < ...
cd ..
EDITOR=gvim dch -v 0.5.quake <-- that's supposing you patch version 0.5 of "package" and you want to add your version number.
Enter a comment for your package.
Rebuild the package:
fakeroot debian/rules binary maybe
cd .. ; dpkg -i package_0.5.quake_i386.deb


My guess would be that the debian version of dmraid includes other stuff that you missed when you did a make ?
Or different compile options.

Last edited by nx5000; 04-16-2007 at 01:56 AM.
 
Old 04-16-2007, 02:42 AM   #5
Quakeboy02
Senior Member
 
Registered: Nov 2006
Distribution: Debian Linux 11 (Bullseye)
Posts: 3,407

Original Poster
Rep: Reputation: 141Reputation: 141
Quote:
nx5000: You should have used only the debian tool as long as you can.
Thanks!!!!! For some reason, it just didn't occur to me that there would be a *debian* source package for this package. There were some dependency issues, and some confusion over udeb vs deb files. But, I managed to change the header file to add my drives, compile it, and it looks like it works. It's much better this way, assuming it boots up, which I think it will. I'm saving a link to this solution.

Cheers

Last edited by Quakeboy02; 04-16-2007 at 02:49 AM.
 
  


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
Can't locate object method "splitpath" via package "PACK001" at /usr/lib/perl5/5.8.8/ sajigeorge Linux - Software 1 01-11-2009 06:33 AM
Just installed: How do I get from "debian:~#" to a Desktop, internet browser, etc.? habreu Debian 6 12-12-2006 09:02 AM
Message: Package "kernel-source" needs to be installed by YaST2 first! snarvey SUSE / openSUSE 3 03-17-2006 10:22 PM
"gdesklets" package in Debian: 0.33 or 0.35 version Blue Jacket Linux - Software 7 10-28-2005 04:28 AM
"Repair permissions" - installed .deb package achallenger1 Debian 3 08-21-2005 03:49 PM

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

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