ANNOUNCEMENT: Live Wireshark University & Allegro Packets online APAC Wireshark Training Session
April 17th, 2024 | 14:30-16:00 SGT (UTC+8) | Online

Wireshark-dev: Re: [Wireshark-dev] dpkg-buildpackage -rfakeroot picking wrong version and disse

From: Anders Broman <anders.broman@xxxxxxxxxxxx>
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@xxxxxxxxxxxxx [mailto:wireshark-dev-bounces@xxxxxxxxxxxxx] 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@xxxxxxx> 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@xxxxxxxxxxxxxxx> wrote:

Hi Juanjo,

2015-03-25 15:26 GMT+01:00 Juan Jose Martin Carrascosa <juanjo@xxxxxxx>:
> 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), 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@xxxxxxxxxxxxx>
> Archives:    https://www.wireshark.org/lists/wireshark-dev
> Unsubscribe: https://wireshark.org/mailman/options/wireshark-dev
>              mailto:wireshark-dev-request@xxxxxxxxxxxxx?subject=unsubscribe
___________________________________________________________________________
Sent via:    Wireshark-dev mailing list <wireshark-dev@xxxxxxxxxxxxx>
Archives:    https://www.wireshark.org/lists/wireshark-dev
Unsubscribe: https://wireshark.org/mailman/options/wireshark-dev
             mailto:wireshark-dev-request@xxxxxxxxxxxxx?subject=unsubscribe