THIS IS A TEST INSTANCE. Feel free to ask and answer questions, but take care to avoid triggering too many notifications.
0

ninja rpm-package doesn't work in wiresharkv4

  • retag add tags

Hey, In previous versions after compiling with

cmake3 -G Ninja -DBUILD_wireshark=OFF  -DCMAKE_INSTALL_PREFIX=/usr ..

I could run

ninja rpm-package

which will create an rpm installation.

But while trying to run ninja rpm-package on version 4 I get:

ninja: error: unknown target 'rpm-package'

Does anyone knows how can it be solved?

Thanks!

Aharon5's avatar
1
Aharon5
asked 2022-11-15 09:39:02 +0000
grahamb's avatar
23.8k
grahamb
updated 2022-11-15 10:41:39 +0000
edit flag offensive 0 remove flag close merge delete

Comments

add a comment see more comments

1 Answer

1

As described in the Wireshark Developer Guide: "You can build an RPM package using the wireshark_rpm target."

Jaap's avatar
13.7k
Jaap
answered 2022-11-15 12:29:09 +0000
edit flag offensive 0 remove flag delete link

Comments

Thank you for the quick response. Tried to run 'ninja wireshark_rpm' from build directory and got:

The build system cannot produce a source tarball outside of a git repository. If you are trying to build an RPM package from source extracted from a tarball, copy it (i.e., wireshark-4.0.0.tar.xz) to /home/wireshark4_upgrade/wireshark_probe_3.6.5/build and run the build command again. ninja: build stopped: subcommand failed.

Aharon5's avatar Aharon5 (2022-11-15 13:06:46 +0000) edit

You've encountered Issue 15167 - rpm-package build target fails when source unpacked from a tarball

As instructed, copy the tarball to the build directory and then it should work.

cmaynard's avatar cmaynard (2022-11-15 15:41:29 +0000) edit

There isn't a tar in the build path. should I create one? and if yes from where?

Aharon5's avatar Aharon5 (2022-11-17 15:02:09 +0000) edit

Where did you get the source files? Typically you'd get the tarball from https://www.wireshark.org/#download for the latest version or from one of the mirrors listed at https://www.wireshark.org/download.ht... if you downloaded an older version, for example from https://1.as.dl.wireshark.org/src/all....

Or if you're working with modified sources, then you'll have to tarzip your own sources.

cmaynard's avatar cmaynard (2022-11-17 15:06:17 +0000) edit

I did get the tarball from where you specified but have some coding changes myself and some luas dissectors so I need to rebuild a tar with my local changes... So I need to tar my sources from the main directory including build dir?

thank you for your support

Aharon5's avatar Aharon5 (2022-11-20 08:11:03 +0000) edit
add a comment see more comments

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account. This space is reserved only for answers. If you would like to engage in a discussion, please instead post a comment under the question or an answer that you would like to discuss.

Add Answer