Ask Your Question

ninja rpm-package doesn't work in wiresharkv4

asked 2022-11-15 09:39:02 +0000

Aharon5 gravatar image

updated 2022-11-15 10:41:39 +0000

grahamb gravatar image

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?


edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

answered 2022-11-15 12:29:09 +0000

Jaap gravatar image

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

edit flag offensive delete link more


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 gravatar imageAharon5 ( 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 gravatar imagecmaynard ( 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 gravatar imageAharon5 ( 2022-11-17 15:02:09 +0000 )edit

Where did you get the source files? Typically you'd get the tarball from for the latest version or from one of the mirrors listed at if you downloaded an older version, for example from

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

cmaynard gravatar imagecmaynard ( 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 gravatar imageAharon5 ( 2022-11-20 08:11:03 +0000 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower


Asked: 2022-11-15 09:39:02 +0000

Seen: 231 times

Last updated: Nov 15 '22