PDA

View Full Version : [gnome] ho do I repack source packages into .debs?



snkiz
August 24th, 2008, 05:17 PM
well I finally got fed up with gnome-screensaver not restoring graphics settings. So I downloaded the source and the patch and fixed it. (yea me!) but now I would like to install it, but I don't know how to repack it. So anyone know how to do this?

Thanks in advance :)

P.S I know I could use ./configure & make install but I want a proper .deb

porchrat
August 24th, 2008, 05:25 PM
why not use dpkg worked on my ATI driver binaries

bobbocanfly
August 24th, 2008, 05:34 PM
It would be better to send your patch to the developers, so it would then filter down to the Ubuntu developers and be released to everybody.

snkiz
August 24th, 2008, 05:54 PM
thats where I got the patch https://bugs.launchpad.net/gnome-screensaver/+bug/33214

snkiz
August 24th, 2008, 05:57 PM
um.. not familar with how to do that either, took long enough to figure out how to put in the patch in the first place, this is new ground for me.

Oldsoldier2003
August 24th, 2008, 05:58 PM
"Fix Released" means it is now in the repos and will be available through updates or in the next distibution.

However many packages have issues because of inconsistencies in usage. see https://bugs.launchpad.net/malone/+bug/163694 for what I mean there...


edit: I made this comment to explain the issue related to the patch he references. Making a Debian package is probably not worth the trouble to be honest. However if you do its best to upload it to your PPA if you plan on making the binary available. If you properly increment the package version with ~ppa it will not be a problem when the official patch is incorporated)

forger
August 24th, 2008, 06:01 PM
I think you're looking for guides like:
https://wiki.ubuntu.com/PackagingGuide/
https://wiki.ubuntu.com/PackagingGuide/Basic

snkiz
August 24th, 2008, 06:14 PM
maybe its fixed in interpid but not hardy

Vivaldi Gloria
August 24th, 2008, 06:29 PM
"Fix Released" means it is now in the repos and will be available through updates or in the next distibution.

At last. :-)

unutbu
August 24th, 2008, 06:47 PM
You could instead use checkinstall:


sudo apt-get install checkinstall
sudo checkinstall --fstrans=no -D make install

The above checkinstall command will make a .deb package instead of installing the files directly into your system. This way you can then install it with


sudo dpkg -i NAME-OF-DEB.deb

and also uninstall it:


sudo dpkg -r NAME-OF-PACKAGE

snkiz
August 24th, 2008, 07:21 PM
while I apericieate the education in packaging (much needed :) ) I just wanted to repack it so its easy to reinstall if/when I reinstall my system cuz I screwed with it too much. lol I would not deam of uploading my amaturish work to inflict on others I don't have a ppa, although that may be a good idea latter. checkinstall sounds more like what I need right now thanks.