This is a static archive of our old Q&A Site. Please post any new questions and answers at ask.wireshark.org.

error building wireshark rpm for cent os 6.2

0

Hi,

I am trying to build a rpm for my modified wireshark source code version 1.8.0rc2. is there any steps on website where I can loop up inorder to generate rpm package?

Regards, Kerol

asked 16 Aug '12, 14:56

kerolkarper's gravatar image

kerolkarper
1224
accept rate: 0%


2 Answers:

0

Currently I'm aware of The Developers Guide as the only source of information on it. Another source is the Fedora Core build files. I guess CentOS has something similar, I just never looked it up.

answered 17 Aug '12, 02:25

Jaap's gravatar image

Jaap ♦
11.7k16101
accept rate: 14%

0

Well, first you need to get a wireshark.spec file. When I went through this exercise recently I think I started with the CentOS 6 spec file (which you can get out of their SRPM--source rpm) and modified it until it could build a usable RPM with Wireshark (at the time) 1.8.0.

The actual building of the RPM is done by:

  1. Put Wireshark source code (and maybe some other stuff) in ~/rpmbuild/SOURCES
  2. Put wireshark.spec in ~/rpmbuild/SPECS
  3. cd ~/rpmbuild/SPECS
  4. rpmbuild -ba wireshark.spec

Yes, it's on my list to update Wireshark's .spec file (in packaging/rpm/SPECS/) so it's easier to use or more up to date or something.

(I'd give you my .spec file but it's got a lot of my private stuff in there which would probably cause more confusion than help. If I do get it cleaned up, I'll put it in Wireshark's repository.)

BTW, I'd suggest not using 1.8.0rc2: that's a Release Candidate. The current version is 1.8.2.

answered 17 Aug '12, 07:12

JeffMorriss's gravatar image

JeffMorriss ♦
6.2k572
accept rate: 27%

Thanks mate. I am doing for homework purpose so whichever release it is , doesnt matter that much to me. Here is what I have done for Cent OS 6.2

I found the spec file in wireshark-root-dir/packaging/rpm/SPECS/wireshark.spec

modified it and

installed libqt4-dev libtool openssl-devel

then from wireshark-root-dir ran

./configure

make rpm-package

and it will build new rpm based on spec file. :)

(17 Aug '12, 11:38) kerolkarper