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

Wireshark-users: Re: [Wireshark-users] How to change the version string

From: Gerald Combs <gerald@xxxxxxxxxxxxx>
Date: Mon, 10 Nov 2008 08:23:15 -0800
Martin d'Anjou wrote:
>>>>> What is the right place to change the version string?
>>>> Then, run "perl make-version.pl -p". This will update config.nmake and
>>>> configure.in with your package name modifications.
>>> What if it is not on an SVN build? Can set
>>>
>>> AM_INIT_AUTOMAKE(wireshark,1.0.4-mypatch-blah-blah)?
>> Sure. (Assuming you're not on Windows, which uses config.nmake)
> 
> That did not work:
> $ make clean distclean
> $ ./configure && make -j 4 && make install
> $ grep AM_INIT_AUTOMAKE configure.in
> AM_INIT_AUTOMAKE(wiresharkAAA, 1.0.4-mypatch-blah-blah)
> $ wireshark -v
> wireshark 1.0.4
> 
> Copyright ...
> 
> Compiled with GTK+ 2.4.13, with GLib 2.4.7, with libpcap 0.8.3, with libz 
> 1.2.1.2, with POSIX capabilities (Linux), without libpcre, without SMI, 
> without ADNS, without Lua, with GnuTLS 2.6.0, with Gcrypt 1.4.3, without 
> Kerberos, without PortAudio, without AirPcap. NOTE: this build doesn't 
> support the "matches" operator for Wireshark filter syntax.
> 
> Running on Linux 2.6.9-78.0.5.ELsmp, with libpcap version 0.8.3.
> 
> Built using gcc 3.4.6 20060404 (Red Hat 3.4.6-10).
> $
> 
> I am kind of puzzled.

AM_INIT_AUTOMAKE sets the package name. If you ran "make dist" you'd end up with
 wiresharkAAA-1.0.4-mypatch-blah-blah.tar.gz. If you want to set the version
reported by "tshark -v" or Wireshark's "About" box, create a "version.conf" with
something like

enable: 1
pkg_format: -mypatch-blah-blah

as its contents.