Wireshark mailing list archives

Re: dpkg-buildpackage -rfakeroot picking wrong version and dissectors


From: Anders Broman <anders.broman () ericsson com>
Date: Wed, 25 Mar 2015 16:18:09 +0000

Hi,
You could also add it to a CMakeListCustom.txt file see CMakelistCustom.txt.example you also need a Cmake file in your 
custom dissectors file.
Regards
Anders

From: wireshark-dev-bounces () wireshark org [mailto:wireshark-dev-bounces () wireshark org] On Behalf Of Juan Jose 
Martin Carrascosa
Sent: den 25 mars 2015 17:10
To: Bálint Réczey; Developer support list for Wireshark
Subject: Re: [Wireshark-dev] dpkg-buildpackage -rfakeroot picking wrong version and dissectors

Well, after doing some awful research...

1) To add the dissector, I edited epan/CMakeLists.txt.
2) To add files to the package, I added my custom files to the same list that colorfilters is, and it seems it work.
3) It seems the version is controlled in CMakeLists.txt using PROJECT_<MAJOR/MINOR/PATCH>_VERSION and 
PROJECT_VERSION_EXTENSION.

I think I got it working. Thanks for the initial point Bálint.

Juanjo

On Wed, Mar 25, 2015 at 4:06 PM, Juan Jose Martin Carrascosa <juanjo () rti com<mailto:juanjo () rti com>> wrote:
Thanks for the prompt reply Bálint.

So, I assume that what I did for the make build doesn't apply here. Does anyone know how to modify the cmake build for:

1) add a dissector
2) add files to the package (for instance, a pdf in the root directory)
3) change the version

Any documentation/guidelines would be appreciated.

Thanks,
Juanjo

On Wed, Mar 25, 2015 at 3:36 PM, Bálint Réczey <balint () balintreczey hu<mailto:balint () balintreczey hu>> wrote:
Hi Juanjo,

2015-03-25 15:26 GMT+01:00 Juan Jose Martin Carrascosa <juanjo () rti com<mailto:juanjo () rti com>>:
Hi all,

I am building a package for Ubuntu, and the debian packages I get as result
are not picking the proper customized version (set in configure.ac<http://configure.ac>), but
what is worse, a custom dissector I wrote is not in the packages.
The Debian packages use the cmake-based build system thus you have your
custimizations present there to be part of the packages.

Cheers,
Balint


I did "make" before doing the packaging and ./wireshark-gtk is as I expect.

Do I have to configure anything else before doing dpkg-buildpackage
-rfakeroot?

By the way, the rest of the build system works sweet in Centos, Mac and
Windows.

Thanks,
Juanjo

___________________________________________________________________________
Sent via:    Wireshark-dev mailing list <wireshark-dev () wireshark org<mailto:wireshark-dev () wireshark org>>
Archives:    https://www.wireshark.org/lists/wireshark-dev
Unsubscribe: https://wireshark.org/mailman/options/wireshark-dev
             mailto:wireshark-dev-request () wireshark org<mailto:wireshark-dev-request () wireshark 
org>?subject=unsubscribe
___________________________________________________________________________
Sent via:    Wireshark-dev mailing list <wireshark-dev () wireshark org<mailto:wireshark-dev () wireshark org>>
Archives:    https://www.wireshark.org/lists/wireshark-dev
Unsubscribe: https://wireshark.org/mailman/options/wireshark-dev
             mailto:wireshark-dev-request () wireshark org<mailto:wireshark-dev-request () wireshark 
org>?subject=unsubscribe


___________________________________________________________________________
Sent via:    Wireshark-dev mailing list <wireshark-dev () wireshark org>
Archives:    https://www.wireshark.org/lists/wireshark-dev
Unsubscribe: https://wireshark.org/mailman/options/wireshark-dev
             mailto:wireshark-dev-request () wireshark org?subject=unsubscribe

Current thread: