LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Debian (https://www.linuxquestions.org/questions/debian-26/)
-   -   (Re)building a .deb package after modification on source code (https://www.linuxquestions.org/questions/debian-26/re-building-a-deb-package-after-modification-on-source-code-4175527205/)

Cristiano Urban 12-03-2014 10:00 AM

(Re)building a .deb package after modification on source code
 
Hi,
I'm using Raspbian (Debian Wheezy) on my Raspberry Pi and I was trying to rebuild a package after a modification on sources.
In parallel, I use a Debian x86 VM on VirtualBox for testing purposes (before moving my code on the RPi).
In my specific case I need to rebuild the .deb package of mpg123 after an addition on the file common.h. Keep in mind that the modified package will not be distributed in official way but it's only for my own use.
Is there a simple procedure to do this? And is it the same for Debian x86 and for Raspbian (ARM)?
On Slackware I simply used the SlackBuild provided by the distribution (since mpg123 is included as official package), but I'm not very pratical on Debian so, please, be patient :P
I don't know if this is the right section of the forum for this topic, anyhow thank you in advance for your suggestions.

jlinkels 12-03-2014 10:58 AM

This is the complete instruction manual: https://wiki.debian.org/BuildingAPackage.

There is no difference between x86 and ARM. However you should build each package on its own platform. To keep it simple. Cross-compiling can be done but is less simple.

Even if you do not intend to redistribute the package, follow the Debian way for recompiling and installing. Debian is an extremely stable system, and by adhering to the rules you will keep your system stable and upgrade-proof. It is not as complicated as it looks.

jlinkels

Cristiano Urban 12-24-2014 05:13 AM

Hi! I've solved following the Debian way! :D :D :D
I used quilt to apply a simple patch to mpg123 and it worked!
Thank you very much jlinkels and Merry Christmas!!


All times are GMT -5. The time now is 01:39 PM.