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

I'm running configure.ac on RHEL 7.2, i'm wondering if there's a way to set the Release number (which is defined om the spec file) as a variable like the Version number which is being generated by the configure.ac and is written to the config.h , I'd like to set a kind of BUILD_NUMBER variable somewhere, and it'll take the value of the exported variable during the execution.

asked 14 Feb '16, 14:27

alex1312's gravatar image

alex1312
6112
accept rate: 0%


Sure. You'd just need to set a variable (e.g., BUILD_NUMBER) and then AC_SUBST it (all in configure.ac) and then change the Release line in packaging/rpm/SPECS/wireshark.spec.in to reference the variable (Release: @[email protected]). You could add the build number to other .in files too if desired.

Of course you'd need to autogen and configure again to regenerate wireshark.spec.

permanent link

answered 17 Feb '16, 08:00

JeffMorriss's gravatar image

JeffMorriss ♦
6.2k572
accept rate: 27%

Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:

×1,620
×110
×13
×9
×6

question asked: 14 Feb '16, 14:27

question was seen: 1,532 times

last updated: 17 Feb '16, 08:00

p​o​w​e​r​e​d by O​S​Q​A