maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Development (https://talk.maemo.org/forumdisplay.php?f=13)
-   -   Packaging debs: module-init-tools (https://talk.maemo.org/showthread.php?t=12777)

JeffElkins 2007-12-05 21:54

Packaging debs: module-init-tools
 
I've compiled module-init-tools-3.3-pre1 for OS2008, mainly because I wanted a working modprobe. I've created a .deb, but I have to install it with dpkg --force-conflicts due to the conflicts with busybox.

Is there a way to create the control file so dpkg or apt does this automatically?

TA-t3 2007-12-06 13:01

Re: Packaging debs: module-init-tools
 
Not that I know of. The control file fields are described here: http://www.debian.org/doc/debian-pol...rolfields.html

A workaround could be to install the conflicting files in /usr/local, and set /usr/local/{bin,sbin} first in the PATH in your .profile file.

Another workaround could be to call your file modprobe.new, and include a post-inst script which renames the old one and either symlinks or renames the new one (symlink is probably better), and a postrm (or prerm) script which does the opposite.

(BTW I though the reason modprobe (the installed one) didn't work was because of a missing depmod? Which, IIRC, needs Perl to work? Something like that?)

JeffElkins 2007-12-06 16:33

Re: Packaging debs: module-init-tools
 
Quote:

Originally Posted by TA-t3 (Post 105181)
Not that I know of. The control file fields are described here: http://www.debian.org/doc/debian-pol...rolfields.html

(BTW I though the reason modprobe (the installed one) didn't work was because of a missing depmod? Which, IIRC, needs Perl to work? Something like that?)

Thanks for the reply. I've played with post* scripts, but I was hoping for some magic control file-fu I hadn't stumbled across :)

I wasn't aware of any perl dependency, but thus far, it all works well. I experimented with nfs and smbfs. An initial depmod was required for modules.dep creation.

Code:

root@Nokia-N800-44-4 /root # modprobe nfs
root@Nokia-N800-44-4 /root # modprobe smbfs
root@Nokia-N800-44-4 /root # lsmod
Module                  Size  Used by
smbfs 64092 0 - Live 0xbf0a8000
nfs 122464 0 - Live 0xbf089000
lockd 63992 1 nfs, Live 0xbf078000
sunrpc 158648 2 nfs,lockd, Live 0xbf050000
ext3 107304 2 - Live 0xbf0d2000
jbd 51592 1 ext3, Live 0xbf0c4000
mbcache 7108 1 ext3, Live 0xbf0c1000
g_file_storage 27560 0 - Live 0xbf0b9000
cx3110x 56200 0 - Live 0xbf041000
umac 258788 1 cx3110x, Live 0xbf000000 (P)

The tools live in /usr/sbin.


All times are GMT. The time now is 12:16.

vBulletin® Version 3.8.8