Help answer threads with 0 replies.
Go Back > Forums > Linux Forums > Linux - Distributions > Ubuntu
User Name
Ubuntu This forum is for the discussion of Ubuntu Linux.


  Search this Thread
Old 09-28-2006, 07:20 AM   #1
LQ Newbie
Registered: Sep 2006
Distribution: Kubuntu
Posts: 16

Rep: Reputation: 0
rebuilding an Ubuntu package


I'd like to rebuild ethereal to change some of the options passed to ./configure.

The problem is I'm having difficulty finding instructions how to do this.

I've gotten as far as apt-get source ethereal.

I've found a file debian/rules that contains a ./configure line. Is this the file I should edit in order to make the changes I need?

Also, how do I change the version number the package is given? I'd like to change it to indicate it's not from the normal repository.

Once I've worked that out, what do I do then?

I'm sorry if this seems obvious to most people, but it's all completely new to me!


Old 09-28-2006, 08:21 AM   #2
Senior Member
Registered: Feb 2002
Distribution: t2 - trying to anyway
Posts: 2,541

Rep: Reputation: 47
Well -you might want ot have a look at those links:

You do change the .config in the Debian rules but that is only half the fun.
You need to make a package and set it up in a local repository and pin that so it gets prefered over the Debian repositories or the next update will thrown it out.
The devlib dependencies can get handled automatically with apt-get (apt-get build-dep).

If you got nothing in there that depends on wireshark - meaning you only want to install it from source it would be much easier to just compile it and throw it in there.

Google for man auto-apt to resolve dependencies for devlibs automatically.
Old 09-28-2006, 09:23 AM   #3
LQ Newbie
Registered: Sep 2006
Distribution: Kubuntu
Posts: 16

Original Poster
Rep: Reputation: 0
Thanks for the reply and the confirmation that debian/rules is the place to edit to change the configure.

The one thing I still don't know how to do is to change the version number.

As for creating a repository, that's not something I wish to do at this point in time. A simple dpkg -i will be enough on my new ethereal package for the time being. The machine it's going onto is a "frozen" system and not publically accessible so never has apt-get update run on it.

That second link you provided is marked as "don't use anymore", and the new link it points to is way too complicated for me. I was under the (wrong) impression that rebuilding a source package was a relatively simple affair. Perhaps I shall just compile from source and be done in a matter of minutes.

Thanks again,

Old 09-29-2006, 02:28 AM   #4
Registered: Jul 2005
Location: England, UK
Distribution: Ubuntu 8.04 Server, Kubuntu 12.04
Posts: 698
Blog Entries: 1

Rep: Reputation: 31
If you just want to change the options to the configure script then, change them in debian/rules and to change the version number (I'm not 100% on this) you should just add an entry to the top of debian/changelog
Then just do (from the top of the source dir:
user@host:ethereal-0.99.0$ debian/rules
(configures and runs make)...
user@host:ethereal-0.99.0$ fakeroot debian/rules binary
if you don't have fakeroot installed use sudo
then you should have the debs in the directory above the source.


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
binary package of gtk mplayer (default in ubuntu) fakie_flip Linux - Software 3 09-09-2006 09:23 AM
Remove a ubuntu package in Debian Sarge gbratig Linux - Distributions 3 07-29-2006 08:04 AM
No make package in Ubuntu? dragon Ubuntu 6 05-06-2006 09:46 PM
Opera- Ubuntu package hitest Ubuntu 13 09-05-2005 09:00 AM > Forums > Linux Forums > Linux - Distributions > Ubuntu

All times are GMT -5. The time now is 12:56 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration