LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu
User Name
Password
Ubuntu This forum is for the discussion of Ubuntu Linux.

Notices


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

Rep: Reputation: 0
rebuilding an Ubuntu package


Hi,

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!

Thanks

H.
 
Old 09-28-2006, 08:21 AM   #2
crashmeister
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:

http://www.debian.org/doc/manuals/re...pository-howto
http://people.debian.org/~jaldhar/make_package3.html
http://jaqque.sbih.org/kplug/apt-pinning.html
http://www.debian.org/doc/manuals/ap...ndling.en.html

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
MacHamster
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,

H.
 
Old 09-29-2006, 02:28 AM   #4
binary_y2k2
Member
 
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:
Code:
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.
 
  


Reply



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

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

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