LinuxQuestions.org
Visit Jeremy's Blog.
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 12-03-2014, 10:00 AM   #1
Cristiano Urban
Member
 
Registered: Jul 2013
Location: Gonars (UD), Italy
Distribution: Slackware 14.2 x86_64
Posts: 76

Rep: Reputation: 10
(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.
 
Old 12-03-2014, 10:58 AM   #2
jlinkels
LQ Guru
 
Registered: Oct 2003
Location: Bonaire, Leeuwarden
Distribution: Debian /Jessie/Stretch/Sid, Linux Mint DE
Posts: 5,195

Rep: Reputation: 1043Reputation: 1043Reputation: 1043Reputation: 1043Reputation: 1043Reputation: 1043Reputation: 1043Reputation: 1043
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
 
Old 12-24-2014, 05:13 AM   #3
Cristiano Urban
Member
 
Registered: Jul 2013
Location: Gonars (UD), Italy
Distribution: Slackware 14.2 x86_64
Posts: 76

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


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
how to install g++ from source code or deb package wang Ubuntu 3 04-18-2013 01:18 AM
which method is better for building deb package kushalkoolwal Debian 10 02-02-2008 06:58 AM
need help building deb package of qemu fakie_flip Programming 0 10-28-2007 04:54 PM
Building my own .deb package (help on postinst config) Hungry ghost Debian 3 01-28-2007 10:49 AM

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

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