Wireshark-dev: Re: [Wireshark-dev] Create tshark rpm
From: Anders Broman <a.broman58@xxxxxxxxx>
Date: Fri, 19 Aug 2022 22:32:39 +0200
Hi,
Thanks Chuck for the reference, this did the tric:
--- a/packaging/rpm/wireshark.spec.in
+++ b/packaging/rpm/wireshark.spec.in
@@ -65,7 +65,11 @@ Source: https://www.wireshark.org/download/src/OneWireshark-%{package_version}.
URL: https://www.wireshark.org/
Packager: Gerald Combs <gerald[AT]wireshark.org>
+%if 0%{?rhel} && ( 0%{?rhel} <= 7 )
+BuildRequires: cmake3 >= 3.10
+%else
BuildRequires: cmake >= 3.10
+%endif
BuildRequires: python3
%if %{with toolchain_clang}
BuildRequires: clang
@@ -281,7 +285,12 @@ development of Wireshark scripts and plugins.
# Fedora's new RPATH hardening means we need to enable $ORIGIN if the
# prefix is anything other than /usr:
# https://fedoraproject.org/wiki/Changes/Broken_RPATH_will_fail_rpmbuild
+%if 0%{?rhel} && ( 0%{?rhel} <= 7 )
+cmake3 \
+ -DCMAKE_INSTALL_PREFIX:PATH=%{_prefix} \
+%else
%cmake \
+%endif
%if 0%{?fedora} && ( "%{_prefix}" != "/usr" )
-DENABLE_RPATH_ORIGIN=ON \
%endif
+++ b/packaging/rpm/wireshark.spec.in
@@ -65,7 +65,11 @@ Source: https://www.wireshark.org/download/src/OneWireshark-%{package_version}.
URL: https://www.wireshark.org/
Packager: Gerald Combs <gerald[AT]wireshark.org>
+%if 0%{?rhel} && ( 0%{?rhel} <= 7 )
+BuildRequires: cmake3 >= 3.10
+%else
BuildRequires: cmake >= 3.10
+%endif
BuildRequires: python3
%if %{with toolchain_clang}
BuildRequires: clang
@@ -281,7 +285,12 @@ development of Wireshark scripts and plugins.
# Fedora's new RPATH hardening means we need to enable $ORIGIN if the
# prefix is anything other than /usr:
# https://fedoraproject.org/wiki/Changes/Broken_RPATH_will_fail_rpmbuild
+%if 0%{?rhel} && ( 0%{?rhel} <= 7 )
+cmake3 \
+ -DCMAKE_INSTALL_PREFIX:PATH=%{_prefix} \
+%else
%cmake \
+%endif
%if 0%{?fedora} && ( "%{_prefix}" != "/usr" )
-DENABLE_RPATH_ORIGIN=ON \
%endif
@jeff.morriss.ws@xxxxxxxxx i got cmake3 from epel I believe
yum-config-manager --enable base epel extras updates
yum install cmake3
Built from source:
c-ares-1.14.0
libgcrypt-1.10.1
ibgpg-error-1.27
Best regards
Anders
Den fre 19 aug. 2022 kl 17:49 skrev chuck c <bubbasnmp@xxxxxxxxx>:
Similar error message:Changes to rhel7 cmake requirements:___________________________________________________________________________On Fri, Aug 19, 2022 at 10:26 AM Anders Broman <a.broman58@xxxxxxxxx> wrote:Hi,Yes that did the trick now stuck onCreate a rpm from the current git commit.
error: Failed build dependencies:
cmake >= 3.10 is needed by wireshark-4.1.0rc0.5120_gc67cdc0514d9_Ericsson-1.x86_64
make[3]: *** [CMakeFiles/wireshark_rpm] Error 1
make[2]: *** [CMakeFiles/wireshark_rpm.dir/all] Error 2
make[1]: *** [CMakeFiles/wireshark_rpm.dir/rule] Error 2
make: *** [wireshark_rpm] Error 2
[root@wireshark-build-server-inst-site1 build]# cmake --version
cmake3 version 3.17.5Used alternatives as suggested here:RegardsAnders___________________________________________________________________________Den fre 19 aug. 2022 kl 17:07 skrev chuck c <bubbasnmp@xxxxxxxxx>:___________________________________________________________________________On Fri, Aug 19, 2022 at 9:23 AM Anders Broman <a.broman58@xxxxxxxxx> wrote:Hi,___________________________________________________________________________I'm trying to build a tshark RPM on Centos7 after manually building some required packagesl(ibcryp c-ares) the build workscmake3 -G "Unix Makefiles" ../source -DBUILD_wireshark=OFFmake (successful)make rpm-package
make: *** No rule to make target `rpm-package'. Stop.Shouldn't it be possible to do a tshark rpm only?RegardsAnders
Sent via: Wireshark-dev mailing list <wireshark-dev@xxxxxxxxxxxxx>
Archives: https://www.wireshark.org/lists/wireshark-dev
Unsubscribe: https://www.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://www.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://www.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://www.wireshark.org/mailman/options/wireshark-dev
mailto:wireshark-dev-request@xxxxxxxxxxxxx?subject=unsubscribe
- References:
- [Wireshark-dev] Create tshark rpm
- From: Anders Broman
- Re: [Wireshark-dev] Create tshark rpm
- From: chuck c
- Re: [Wireshark-dev] Create tshark rpm
- From: Anders Broman
- Re: [Wireshark-dev] Create tshark rpm
- From: chuck c
- [Wireshark-dev] Create tshark rpm
- Prev by Date: Re: [Wireshark-dev] Create tshark rpm
- Next by Date: Re: [Wireshark-dev] Future of extcap "API"
- Previous by thread: Re: [Wireshark-dev] Create tshark rpm
- Next by thread: [Wireshark-dev] Qt6 default for -dev tree
- Index(es):